/* ==========================================================================
   ARS ADVOCATS I ASSESSORS - AWWWARDS EDITORIAL LUXURY STYLESHEET
   Typography: Cormorant Garamond (Serif Display) + Plus Jakarta Sans (Sans Body)
   ========================================================================== */

/* ==========================================================================
   ARS ADVOCATS I ASSESSORS - EDITORIAL LIGHT PALETTE (ZERO GOLD)
   - Predominant: Warm White & Crisp Cream Backgrounds
   - Signature Brand Accents: Corporate Carmine Red (#c10c13) & Dusty Rose (#dda09f)
   - Contrast: High-legibility Charcoal Typography (#1c1314)
   ========================================================================== */

:root {
  /* Predominant Background: White / Cream / Soft Warm Gray */
  --bg-dark: #fcfbfb;          /* Fondo base general claro */
  --bg-darker: #f5eeed;        /* Fondo top-bar y bandas alternas */
  --bg-surface: #ffffff;       /* Fondo blanco para secciones */
  --bg-card: #ffffff;          /* Tarjetas blancas limpias */
  --bg-card-hover: #fff8f8;    /* Hover sutil con toque rosáceo */
  --bg-light: #ffffff;
  --bg-cream: #fbf7f6;

  /* Header backdrop */
  --header-bg: rgba(255, 255, 255, 0.94);

  /* Accent Colors (Extracted from Brand Identity - No Golds) */
  --accent-primary: #c10c13;   /* Rojo corporativo */
  --accent-hover: #9e0a10;     /* Granate oscuro para hover */
  --accent-soft: #dda09f;      /* Rosa empolvado */
  --accent-light: #fad6d5;     /* Rosa claro */
  --accent-dark: #7a070c;      /* Vino intenso */
  --accent-deep: #540307;

  /* Gradients */
  --accent-grad: linear-gradient(135deg, #c10c13 0%, #8e0a0f 100%);
  --accent-btn-grad: linear-gradient(135deg, #c10c13 0%, #9e0a10 100%);
  --accent-glow: rgba(193, 12, 19, 0.15);

  /* Button Colors */
  --btn-primary-bg: #c10c13;
  --btn-primary-text: #ffffff;
  --btn-primary-border: transparent;
  --btn-primary-hover-bg: #9e0a10;
  --btn-primary-hover-text: #ffffff;

  /* Typography Colors for High Readability on Light Background */
  --text-main: #1c1314;        /* Titulares carbón oscuro */
  --text-body: #3c3233;        /* Texto cuerpo legible */
  --text-muted: #6e6061;       /* Texto secundario */
  --text-dim: #8e8081;         /* Metadatos */
  --text-dark: #1c1314;
  --text-dark-muted: #6e6061;

  /* Borders & Shadows */
  --border-subtle: rgba(40, 20, 20, 0.08);
  --border-card: rgba(40, 20, 20, 0.1);
  --border-accent: rgba(193, 12, 19, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(40, 10, 15, 0.08);
  --shadow-lg: 0 20px 45px rgba(40, 10, 15, 0.12);
  --shadow-accent: 0 8px 25px rgba(193, 12, 19, 0.2);

  /* Hero Gradient */
  --hero-bg-gradient: radial-gradient(circle at 80% 20%, rgba(221, 160, 159, 0.22) 0%, transparent 60%),
                      radial-gradient(circle at 10% 80%, rgba(193, 12, 19, 0.06) 0%, transparent 50%),
                      var(--bg-dark);

  /* Input fields */
  --input-bg: #ffffff;
  --input-border: rgba(40, 20, 20, 0.16);
  --input-focus-border: #c10c13;
  --input-focus-glow: rgba(193, 12, 19, 0.15);

  /* Fonts */
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --container-max: 1240px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 9999px;
}




/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: clip;
  font-weight: 400;
  min-height: 100vh;
  min-height: 100dvh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

:focus:not(:focus-visible) {
  outline: none;
}

button:focus,
.btn:focus,
a:focus {
  outline: none;
}

button:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gold {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.top-bar {
  background-color: var(--bg-darker);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  padding: 8px 0;
  color: var(--text-muted);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-tel {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-tel:hover {
  color: var(--accent-soft);
}

.sep {
  opacity: 0.4;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 2px 4px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.lang-btn.active, .lang-btn:hover {
  color: var(--accent-soft);
}

.lang-divider {
  opacity: 0.3;
  font-size: 0.7rem;
}

/* Transición elegante y perceptible al cambiar de idioma */
.page-lang-transition {
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
  will-change: opacity, transform, filter;
}

body.lang-switching .page-lang-transition,
body.lang-switching [data-i18n] {
  opacity: 0.15 !important;
  transform: translateY(4px);
  filter: blur(2px);
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: max(0px, env(safe-area-inset-top, 0px));
  transition: padding var(--transition-smooth), background-color var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-link {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

/* Dynamic Logo System (White for Wine Theme / Original Brand for Light Theme) */
.interactive-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.interactive-logo-wrap img {
  display: block;
}

.logo-dark-mode {
  display: block !important;
}

.logo-light-mode {
  display: none !important;
}









.nav-logo-wrap {
  display: flex;
  align-items: center;
}

.nav-logo-wrap .brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-grad);
  transition: width var(--transition-smooth);
}

.nav-item:hover {
  color: var(--text-main);
}

.nav-item:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 1001;
  position: relative;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  border-color: var(--accent-soft);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  pointer-events: none;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Transform to 'X' on active */
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--accent-primary);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--accent-primary);
}

.mobile-menu {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-primary,
.btn-gold {
  background: var(--btn-primary-bg);
  background-image: var(--accent-btn-grad);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-border);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.btn-primary:hover,
.btn-gold:hover {
  background: var(--btn-primary-hover-bg);
  color: var(--btn-primary-hover-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  filter: brightness(1.08);
}

.btn-outline {
  background-color: transparent;
  color: #c10c13;
  border: 1.5px solid #c10c13;
}

.btn-outline:hover {
  background: #c10c13;
  border-color: #c10c13;
  color: #ffffff;
}





.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero Section (Editorial Law Firm Style)
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  background: radial-gradient(circle at 80% 20%, rgba(221, 160, 159, 0.16) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(30, 41, 59, 0.3) 0%, transparent 50%),
              var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-bg-overlay {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  background-image: url("assets/images/foto_portada.jpg");
  background-size: cover;
  background-position: center center;
  opacity: 0.08;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.hero-bg-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg-dark) 100%);
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(193, 12, 19, 0.08);
  border: 1.5px solid rgba(193, 12, 19, 0.35);
  color: #c10c13;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(193, 12, 19, 0.08);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: #c10c13;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(193, 12, 19, 0.5);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-title-light {
  font-weight: 400;
  color: var(--text-muted);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #c10c13;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.35;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-subtle);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-emblem-stage {
  position: relative;
  min-height: 380px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  transform-style: preserve-3d;
}

.hero-emblem-stage:hover {
  border-color: transparent;
  box-shadow: none;
}

.emblem-card-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.hero-logo-wrap {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
}

.hero-grand-logo {
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
  filter: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-emblem-stage:hover .hero-grand-logo {
  transform: scale(1.03) translateZ(20px);
  filter: none;
}

/* ==========================================================================
   Section Universal Components
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
  scroll-margin-top: 84px;
}

.section-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ==========================================================================
   Presentació Section
   ========================================================================== */
.section-presentation {
  background-color: var(--bg-darker);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.presentation-bg-overlay {
  position: absolute;
  inset: -14% 0;
  background-image: url("assets/images/foto_detalle.jpg");
  background-size: cover;
  background-position: center center;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.section-presentation .container {
  position: relative;
  z-index: 1;
}

.presentation-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: start;
}

.presentation-images {
  position: relative;
}

.rounded-img {
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.interactive-photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(30, 20, 22, 0.06), 0 1px 3px rgba(30, 20, 22, 0.04);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: pointer;
  user-select: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.interactive-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30, 20, 22, 0.09), 0 2px 6px rgba(30, 20, 22, 0.04);
  border-color: rgba(193, 12, 19, 0.22);
}

.presentation-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3229 / 1786;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.05) brightness(0.96);
  opacity: 0.95;
  transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.interactive-photo-card:hover .presentation-photo,
.interactive-photo-card.is-colored .presentation-photo {
  filter: grayscale(0%) contrast(1) brightness(1);
  opacity: 1;
}

.rich-text p {
  color: var(--text-body);
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.rich-text strong {
  color: var(--text-main);
  font-weight: 600;
}

.quote-box {
  margin: 28px 0;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-left: 3px solid var(--accent-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: rgba(193, 12, 19, 0.25);
  opacity: 0.8;
  position: absolute;
  top: 10px;
  left: 12px;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.quote-author {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c10c13;
}

.presentation-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  gap: 12px;
}

.feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(221, 160, 159, 0.18);
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  flex-shrink: 0;
}

.feature-item strong {
  font-size: 0.95rem;
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Especialitats (Practice Areas)
   ========================================================================== */
.section-specialties {
  background: var(--bg-dark);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}

.pill {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.pill:hover {
  color: var(--text-main);
  border-color: var(--border-accent);
}

.pill.active {
  background: var(--accent-grad);
  color: var(--bg-darker);
  font-weight: 700;
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-accent);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.spec-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.spec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.spec-card:hover {
  transform: translateY(-6px);
  background-color: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.spec-card:hover::before {
  opacity: 1;
}

.spec-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(221, 160, 159, 0.14);
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--accent-glow);
  transition: all var(--transition-fast);
}

.spec-card:hover .spec-icon-wrap {
  background: var(--accent-grad);
  color: var(--bg-darker);
}

.spec-num {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-soft);
  opacity: 0.45;
}



.spec-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 14px;
}

.spec-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(221, 160, 159, 0.12);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}



.specialties-cta {
  margin-top: 60px;
  padding: 36px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-md);
}

.specialties-cta p {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 18px;
}

/* ==========================================================================
   L'Equip (Team Section)
   ========================================================================== */
.section-team {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.team-img-wrap {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background-color: var(--bg-surface);
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(15%) contrast(1.05);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.team-card:hover .team-img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1.08);
}

.team-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
}

.team-pill {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(193, 12, 19, 0.35);
  color: #c10c13;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.team-info {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-role-badge {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c10c13;
  margin-bottom: 6px;
}

.team-role-collab {
  color: #9e0a10;
}

.team-role-assist {
  color: #8c090e;
}

.team-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.2;
}

.team-credentials {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.team-credentials p {
  margin-bottom: 8px;
}

.team-credentials strong {
  color: var(--text-main);
}

.honor-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(193, 12, 19, 0.06);
  border: 1px solid rgba(193, 12, 19, 0.22);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.775rem;
  color: #1c1314;
  margin-top: 12px;
  line-height: 1.4;
}

.honor-badge svg {
  flex-shrink: 0;
  color: #c10c13;
}

.team-action {
  margin-top: auto;
}

/* ==========================================================================
   Filosofia & Valors
   ========================================================================== */
.section-values {
  background: radial-gradient(circle at 50% 50%, rgba(221, 160, 159, 0.08) 0%, transparent 70%),
              var(--bg-dark);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.value-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition-smooth);
}

.value-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.value-icon {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.8;
}

.value-item h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.value-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Contacte & Formulari
   ========================================================================== */
.section-contact {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
}

.contact-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-detail-card {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  align-items: flex-start;
}

.detail-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(221, 160, 159, 0.16);
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-card strong {
  font-size: 0.875rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.contact-detail-card p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.4;
}

.phone-link, .email-link {
  font-weight: 600;
  color: var(--text-main);
}

.phone-link:hover, .email-link:hover, .detail-link:hover {
  color: var(--accent-soft);
}

.sub-tel {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.detail-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-soft);
}

.social-links-block {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.social-title {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icons a:hover {
  background: var(--accent-grad);
  color: var(--bg-darker);
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}

/* Contact Form */
.form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.styled-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-body);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(221, 160, 159, 0.18);
}

.form-group select {
  cursor: pointer;
}

.form-consent {
  margin: 6px 0 10px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.45;
}

.checkbox-container input {
  margin-top: 3px;
  accent-color: var(--accent-primary);
}

.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 14px;
}

.form-feedback.success {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #15803d;
}

.form-feedback.error {
  background: rgba(193, 12, 19, 0.08);
  border: 1px solid rgba(193, 12, 19, 0.35);
  color: #b91c1c;
}

/* ==========================================================================
   Map Section
   ========================================================================== */
.section-map {
  position: relative;
  height: 380px;
  background-color: var(--bg-darker);
  overflow: hidden;
}

.section-map iframe {
  filter: grayscale(20%) contrast(98%);
  transition: filter 0.5s ease;
}

.section-map:hover iframe {
  filter: none;
}

.map-overlay-card {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
}

.map-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.map-overlay-card h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.map-overlay-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 18px;
}

.footer-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.footer-bio {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-badges {
  display: flex;
  gap: 8px;
}

.f-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
}

.footer-links-col h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 20px;
  position: relative;
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--accent-soft);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links-col a:hover {
  color: var(--accent-soft);
  transform: translateX(4px);
  display: inline-block;
}

.f-info-line {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.f-info-line a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-credit-sep {
  margin: 0 6px;
  color: var(--text-dim);
  opacity: 0.6;
}

.footer-credit {
  color: var(--text-muted);
}

.footer-credit-link {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-credit-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.footer-legal-links {
  display: flex;
  gap: 12px;
}

.footer-legal-links a:hover {
  color: var(--accent-soft);
}

/* ==========================================================================
   Modals & WhatsApp Float
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.8);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 10;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 32px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-main);
}

.modal-close {
  font-size: 1.8rem;
  color: var(--text-muted);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-body h4 {
  color: var(--accent-primary);
  margin: 18px 0 8px;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 56px;
  height: 56px;
  background: #7a070c;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(40, 10, 15, 0.28);
  transition: transform var(--transition-bounce), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  background: #9e0a10;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(122, 7, 12, 0.38);
}

/* ==========================================================================
   Animations & Reveal Classes
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (min-width: 1025px) {
  .hero-container {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
  .hero-logo-wrap {
    max-width: 390px;
    width: 100%;
    justify-content: center;
  }
  .hero-grand-logo {
    width: 100%;
    max-width: 390px;
    height: auto;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-content {
    display: contents;
  }
  .hero-badge {
    order: 1;
    justify-self: start;
  }
  .hero-title {
    order: 2;
  }
  .hero-subtitle {
    order: 3;
  }
  .hero-buttons {
    order: 4;
  }
  .hero-visual {
    order: 5;
    max-width: 600px;
    margin: 36px auto 28px;
    width: 100%;
  }
  .hero-stats {
    order: 6;
  }
  .presentation-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .presentation-photo {
    height: auto;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }
  .header-container {
    height: 64px;
  }
  .nav-logo-wrap .brand-logo {
    height: 30px;
  }
  .desktop-nav, .header-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    padding: 8px;
    margin: 0;
  }
  .top-bar-left {
    gap: 8px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .specialties-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .section {
    padding: 72px 0;
    scroll-margin-top: 68px;
  }
  .hero-section {
    min-height: auto;
    padding: 32px 0 28px;
  }
  .hero-container {
    gap: 0;
  }
  .hero-buttons {
    margin-bottom: 32px;
  }
  .hero-visual {
    margin: 28px auto 26px;
  }
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 24px;
  }
  .hero-emblem-stage {
    min-height: auto;
    padding: 12px 0 6px;
  }
  .hero-logo-wrap,
  .hero-grand-logo {
    max-width: 280px;
  }
  .section-map {
    height: auto;
  }
  .map-overlay-card {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: none;
    padding: 18px 20px;
  }
  .hero-badge {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    gap: 7px;
    margin-bottom: 14px;
  }
  .badge-dot {
    width: 6px;
    height: 6px;
  }
  .stat-divider {
    display: none;
  }

  /* Mobile Menu Drawer */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(252, 251, 251, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 2000;
    padding-top: max(0px, env(safe-area-inset-top, 0px));
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  }
  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 18px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
  }
  .mobile-menu-close:hover,
  .mobile-menu-close:active {
    border-color: var(--accent-primary);
    background: rgba(193, 12, 19, 0.08);
  }
  .mobile-menu-inner {
    padding: 24px 24px 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    box-sizing: border-box;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .mobile-nav-item {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-main);
    padding: 4px 0;
    display: block;
    transition: color var(--transition-fast), transform var(--transition-fast);
  }
  .mobile-nav-item:hover, .mobile-nav-item:active {
    color: var(--accent-primary);
    transform: translateX(4px);
  }
  .mobile-menu-footer {
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
  }
  .mobile-contact-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
  }
  .mobile-contact-info strong {
    color: var(--text-main);
  }
  .mobile-lang {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
  }
  .mobile-lang .lang-btn.active {
    color: var(--accent-primary);
    font-weight: 700;
  }
}

body.no-scroll {
  overflow: hidden !important;
  touch-action: none;
}
