/* ============================================================
   ASESORÍAS & LITIGIOS GROUP S.A.S.
   Stylesheet Principal — Diseño Corporativo de Alta Gama
   ============================================================ */

/* ---------- 1. Variables & Reset ---------- */
:root {
  /* Paleta primaria */
  --navy-deep:    #0d1829;
  --navy-night:   #0a1128;
  --navy-mid:     #111d35;
  --navy-card:    #14213d;

  /* Acento dorado */
  --gold-main:    #c5a880;
  --gold-dark:    #b38e5d;
  --gold-light:   #d9bfa0;
  --gold-subtle:  rgba(197, 168, 128, 0.12);

  /* Neutros claros */
  --white:        #ffffff;
  --off-white:    #f8fafc;
  --gray-light:   #e2e8f0;
  --gray-mid:     #94a3b8;
  --gray-dark:    #475569;

  /* Tipografía */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Montserrat', 'Segoe UI', Arial, sans-serif;

  /* Espaciados */
  --section-pad:  6rem;
  --container-w:  1280px;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;

  /* Transiciones */
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.12);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.18);
  --shadow-lg:    0 16px 56px rgba(0,0,0,0.28);
  --shadow-gold:  0 4px 24px rgba(197,168,128,0.18);

  /* Header height */
  --header-h:     84px;

  /* Dorado reforzado */
  --gold-main:    #c8ac82;
  --gold-dark:    #b8945f;
  --gold-light:   #ddc4a4;
  --gold-subtle:  rgba(200, 172, 130, 0.14);
  --gold-border:  rgba(200, 172, 130, 0.28);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-dark);
  background-color: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- 2. Utilities ---------- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad {
  padding: var(--section-pad) 0;
}

.bg-dark {
  background-color: var(--navy-deep);
}

.centered {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-main);
  border-bottom: 1px solid var(--gold-main);
  padding-bottom: 0.25rem;
  margin-bottom: 1.2rem;
}

.section-label.light {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.section-title.light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-dark);
  max-width: 660px;
  margin: 0 auto 3rem;
}

.section-subtitle.light {
  color: var(--gray-mid);
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
  border: 1px solid transparent;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-main));
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(197, 168, 128, 0.35);
  color: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}

.btn-ghost-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--navy-deep);
  border: 1.5px solid var(--navy-deep);
}

.btn-ghost-dark:hover {
  background: var(--navy-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 0.95rem;
}

/* ---------- 4. Links ---------- */
.link-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  margin-top: 1.2rem;
}

.link-gold svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition);
}

.link-gold:hover {
  color: var(--gold-main);
  gap: 0.7rem;
}

.link-gold:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   5. HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 17, 40, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(197, 168, 128, 0.12);
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 17, 40, 0.98);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
  height: 70px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  min-width: 0;
}

.logo-img {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--gold-border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.logo-link:hover .logo-img {
  border-color: var(--gold-main);
  box-shadow: 0 0 12px rgba(200,172,130,0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-main);
  text-transform: uppercase;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-right: 1.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 1.5px;
  background: var(--gold-main);
  transition: transform var(--transition);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link .chevron {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

@media (min-width: 1025px) {
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .has-dropdown:hover .chevron {
    transform: rotate(180deg);
  }
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 260px;
  background: var(--navy-card);
  border: 1px solid rgba(197,168,128,0.15);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(197,168,128,0.15);
  border-top: 0;
}

.dropdown-link {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.dropdown-link:hover {
  color: var(--gold-main);
  background: rgba(197,168,128,0.08);
  padding-left: 1.3rem;
}

/* Nav CTA */
.nav-cta {
  font-size: 0.8rem;
  padding: 0.65rem 1.3rem;
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  min-width: 44px;
  min-height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition);
  z-index: 1010;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
  pointer-events: none;
}

.nav-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Bloquea scroll del body cuando menú está abierto */
body.nav-open {
  overflow: hidden;
}

/* ============================================================
   5.5 IMAGEN DE APERTURA PRE-HERO
   ============================================================ */
.pre-hero-image {
  width: 100%;
  margin-top: var(--header-h);
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* En PC y pantallas grandes, llena la altura de visualización */
@media (min-width: 769px) {
  .pre-hero-image {
    height: calc(100vh - var(--header-h));
    min-height: 520px;
  }
  .pre-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

/* En dispositivos móviles (< 768px), escala proporcional sin recortar */
@media (max-width: 768px) {
  .pre-hero-image {
    height: auto;
    min-height: auto;
    background: transparent;
  }
  .pre-hero-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
  }
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  padding-top: var(--header-h);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('../images/oficina1.jpg') center center / cover no-repeat;
  opacity: 0.22;
  transform: scale(1.05);
  transition: transform 8s ease-out;
  z-index: 0;
}

.hero.loaded::before {
  transform: scale(1);
}

/* Gradient overlays */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,17,40,0.96) 0%, rgba(10,17,40,0.7) 60%, rgba(10,17,40,0.85) 100%);
  z-index: 1;
}

/* Decorative lines */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-main), var(--gold-dark), transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-main);
  background: rgba(197,168,128,0.1);
  border: 1px solid rgba(197,168,128,0.25);
  border-radius: 100px;
}

.badge svg {
  width: 13px;
  height: 13px;
  stroke: var(--gold-main);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: normal;
  font-weight: 800;
  color: var(--gold-main);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-scroll-indicator span {
  display: block;
  width: 1.5px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold-main), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   7. INTRO SECTION
   ============================================================ */
.intro-section {
  background: var(--off-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.intro-text p {
  margin-bottom: 1rem;
  color: var(--gray-dark);
  font-size: 0.97rem;
}

.intro-text strong {
  color: var(--navy-deep);
}

.intro-image-block {
  position: relative;
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.image-frame:hover img {
  transform: scale(1.04);
}

.image-accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-main));
}

.intro-stat-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--navy-deep);
  border: 1px solid rgba(197,168,128,0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
  min-width: 140px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold-main);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-top: 0.3rem;
}

/* ============================================================
   8. ÁREAS DE PRÁCTICA
   ============================================================ */
.areas-section {
  position: relative;
  overflow: hidden;
}

.areas-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,168,128,0.3), transparent);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.area-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(197,168,128,0.12);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-main));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.area-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(197,168,128,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.area-card:hover::before {
  transform: scaleX(1);
}

.area-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gold-subtle);
  border: 1px solid rgba(197,168,128,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.area-card:hover .area-card-icon {
  background: rgba(197,168,128,0.2);
}

.area-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold-main);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.area-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.area-card-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.5rem;
}

.area-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-main);
  transition: all var(--transition);
}

.area-card-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition);
}

.area-card-link:hover {
  color: var(--gold-light);
  gap: 0.7rem;
}

.area-card-link:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   9. ¿POR QUÉ ELEGIRNOS?
   ============================================================ */
.why-section {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.why-card {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.75rem;
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-main));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.why-card:hover {
  border-color: rgba(197,168,128,0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.why-card:hover::after {
  transform: scaleX(1);
}

.why-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(197,168,128,0.12);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  transition: color var(--transition);
}

.why-card:hover .why-number {
  color: rgba(197,168,128,0.22);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gold-subtle);
  border: 1px solid rgba(197,168,128,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.why-card:hover .why-icon {
  background: rgba(197,168,128,0.18);
}

.why-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.7;
}

/* ============================================================
   10. MISIÓN & VISIÓN
   ============================================================ */
.mission-section {
  position: relative;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.mission-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}

.mission-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,17,40,0.95) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.mission-quote {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.65;
  border-left: 3px solid var(--gold-main);
  padding-left: 1rem;
  quotes: none;
}

.mission-content-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mission-block {
  padding: 2rem;
  border: 1px solid rgba(197,168,128,0.12);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.mission-block:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(197,168,128,0.25);
}

.mission-block-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.mission-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(197,168,128,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mission-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-main);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mission-block h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-main);
}

.mission-block p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

/* ============================================================
   11. FAQ ACCORDION
   ============================================================ */
.faq-section {
  background: var(--off-white);
}

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: rgba(197,168,128,0.4);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-deep);
  text-align: left;
  transition: all var(--transition);
  cursor: pointer;
}

.faq-question:hover {
  background: rgba(197,168,128,0.04);
  color: var(--gold-dark);
}

.faq-question[aria-expanded="true"] {
  color: var(--gold-dark);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.75;
}

.faq-answer p a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   12. CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/oficina6.jpg') center center / cover no-repeat;
  opacity: 0.15;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,17,40,0.97) 0%, rgba(13,24,41,0.85) 100%);
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.cta-banner-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.cta-banner-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.7;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-night);
  border-top: 1px solid rgba(197,168,128,0.12);
}

.footer-top {
  padding: 5rem 0 3rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  border: 1.5px solid rgba(197,168,128,0.3);
}

.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.footer-logo-text span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold-main);
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 340px;
}

.footer-contact-quick {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-contact-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold-main);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.footer-contact-item:hover {
  color: var(--gold-main);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(197,168,128,0.15);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  transition: all var(--transition);
  line-height: 1.5;
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 0.25rem;
}

.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-address p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.footer-address svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold-main);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--gold-main);
}

/* ============================================================
   14. WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wa-tooltip {
  background: var(--navy-deep);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197,168,128,0.2);
  max-width: 220px;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.wa-btn {
  width: 58px;
  height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: all var(--transition);
  flex-shrink: 0;
}

.wa-btn:hover {
  background: #22c55e;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 36px rgba(37,211,102,0.55);
}

.wa-btn svg {
  width: 28px;
  height: 28px;
}

/* Pulse animation */
.wa-btn::before {
  content: '';
  position: absolute;
  width: 58px;
  height: 58px;
  background: rgba(37,211,102,0.35);
  border-radius: 50%;
  animation: waPulse 2.5s ease-out infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2); opacity: 0; }
}

/* ============================================================
   15. PÁGINAS DE ÁREAS (Area Template)
   ============================================================ */
.page-hero {
  background: var(--navy-deep);
  padding: calc(var(--header-h) + 3rem) 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-main), var(--gold-dark), transparent);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/oficina2.jpg') center / cover no-repeat;
  opacity: 0.1;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.breadcrumbs a,
.breadcrumbs span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  color: var(--gold-main);
}

.breadcrumbs .sep {
  color: rgba(255,255,255,0.25);
}

.breadcrumbs .current {
  color: var(--gold-main);
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.page-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.7;
}

/* Area Content */
.area-content {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.area-intro {
  max-width: 860px;
  margin: 0 auto 4rem;
  text-align: center;
}

.area-intro p {
  font-size: 1rem;
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.service-item:hover {
  border-color: rgba(197,168,128,0.4);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.service-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-main);
  flex-shrink: 0;
  margin-top: 0.5rem;
  box-shadow: 0 0 0 3px rgba(197,168,128,0.15);
}

.service-item p {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-deep);
  line-height: 1.5;
}

/* Area Contact CTA */
.area-contact-cta {
  max-width: 760px;
  margin: 0 auto;
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  border: 1px solid rgba(197,168,128,0.15);
  position: relative;
  overflow: hidden;
}

.area-contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-main));
}

.area-contact-cta h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.area-contact-cta p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.area-contact-cta .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   16. QUIÉNES SOMOS PAGE
   ============================================================ */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.value-card {
  padding: 2rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: center;
  transition: all var(--transition);
}

.value-card:hover {
  border-color: rgba(197,168,128,0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.value-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-subtle);
  border: 1px solid rgba(197,168,128,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.value-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.65rem;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--gray-dark);
  line-height: 1.7;
}

/* ============================================================
   17. CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-card {
  background: var(--navy-deep);
  border: 1px solid rgba(197,168,128,0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.contact-detail:last-child {
  border-bottom: none;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(197,168,128,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-main);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail-body span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 0.3rem;
}

.contact-detail-body p,
.contact-detail-body a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  transition: color var(--transition);
}

.contact-detail-body a:hover {
  color: var(--gold-main);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-form-wrapper h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.5rem;
}

.contact-form-wrapper > p {
  font-size: 0.88rem;
  color: var(--gray-dark);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: 0.45rem;
}

label .req {
  color: var(--gold-dark);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--navy-deep);
  background: var(--off-white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold-main);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(197,168,128,0.12);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  justify-content: center;
}

.form-note {
  font-size: 0.75rem;
  color: var(--gray-mid);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.6;
}

/* ============================================================
   18. PRIVACY PAGE
   ============================================================ */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--section-pad) 0;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy-deep);
  margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.92rem;
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ============================================================
   19. AOS (simple JS-driven) animations
   ============================================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="fade-left"]  { transform: translateX(24px); }
[data-aos="fade-down"]  { transform: translateY(-24px); }

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   20. RESPONSIVE
   ============================================================ */

/* ── 1200px: areas grid comprime a 3 columnas ── */
@media (max-width: 1200px) {
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ── 1024px: mobile nav se activa + reorganización ── */
@media (max-width: 1024px) {
  :root { --section-pad: 4.5rem; }

  /* Desactivar backdrop-filter en header móvil para evitar atrapar position: fixed en Safari y Chrome */
  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10, 17, 40, 0.98) !important;
  }

  body.nav-open .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* NAV TOGGLE visible desde 1024px */
  .nav-toggle {
    display: flex;
    z-index: 100000;
  }

  .nav-toggle.active {
    background: rgba(197, 168, 128, 0.18);
    border-color: var(--gold-main);
  }

  .nav-toggle.active .bar {
    background: var(--gold-main);
  }

  /* NAV: ventana desplegable móvil a pantalla completa bajo el header */
  .main-nav {
    position: fixed !important;
    top: var(--header-h) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    width: 100dvw !important;
    height: calc(100vh - var(--header-h)) !important;
    height: calc(100dvh - var(--header-h)) !important;
    max-height: calc(100dvh - var(--header-h)) !important;
    box-sizing: border-box !important;
    background: #080f20 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1.25rem 1.25rem 4rem !important;
    gap: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateY(-8px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, visibility 0.28s;
    opacity: 0;
    visibility: hidden;
    z-index: 99999 !important;
    border-top: 1px solid rgba(197, 168, 128, 0.25) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85) !important;
  }

  .main-nav.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* El botón hamburguesa ya hace de botón de cierre al estar fijo en el header */
  .nav-close {
    display: none !important;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
  }

  .nav-link {
    padding: 0.85rem 1.15rem;
    font-size: 1rem;
    font-weight: 600;
    min-height: 52px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
  }

  .nav-link::after { display: none; }

  .nav-link:hover,
  .nav-link.active {
    color: var(--gold-main);
    background: rgba(197, 168, 128, 0.12);
    border-color: rgba(197, 168, 128, 0.3);
  }

  /* Dropdown en móvil: accordion refinado y accesible */
  .has-dropdown {
    width: 100%;
  }

  .has-dropdown .dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }

  .has-dropdown .chevron {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    transition: transform 0.3s ease, stroke 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
  }

  .has-dropdown.open > .dropdown-trigger {
    color: var(--gold-main);
    background: rgba(197, 168, 128, 0.08);
    border-bottom-color: rgba(197, 168, 128, 0.25);
  }

  .has-dropdown.open > .dropdown-trigger .chevron {
    transform: rotate(180deg);
    stroke: var(--gold-main);
  }

  .has-dropdown .dropdown-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    min-width: 0 !important;
    box-shadow: none !important;
    background: rgba(10, 17, 40, 0.85) !important;
    border-left: 2px solid var(--gold-main) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0.35rem 0 0.5rem 0.75rem !important;
    display: none !important;
    transition: none !important;
    overflow: hidden;
  }

  .has-dropdown .dropdown-menu::before {
    display: none !important;
  }

  .has-dropdown.open .dropdown-menu {
    display: block !important;
    animation: mobileDropdownSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes mobileDropdownSlide {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .dropdown-link {
    padding: 0.8rem 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
  }

  .dropdown-link::before {
    content: '›';
    color: var(--gold-main);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .dropdown-link:hover,
  .dropdown-link.active {
    color: var(--gold-main);
    background: rgba(197, 168, 128, 0.12);
    padding-left: 1.25rem;
  }

  .dropdown-link:hover::before {
    transform: translateX(3px);
  }

  .nav-cta {
    margin-top: 1.5rem;
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-sizing: border-box;
    box-shadow: 0 4px 18px rgba(197, 168, 128, 0.25);
  }

  /* Layout secciones */
  .intro-grid,
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .intro-image-block {
    max-width: 520px;
    margin: 0 auto;
  }

  .image-frame {
    aspect-ratio: 16/10;
  }

  .mission-img-frame {
    aspect-ratio: 16/9;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .areas-grid .area-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
  }

  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ── 768px: mobile ── */
@media (max-width: 768px) {
  :root {
    --section-pad: 3.5rem;
    --header-h: 72px;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 4rem) 0 5rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    justify-content: center;
    width: 100%;
  }

  /* Grid resets */
  .why-grid {
    grid-template-columns: 1fr;
  }

  .areas-grid {
    grid-template-columns: 1fr;
  }

  .areas-grid .area-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .intro-stat-card {
    position: relative;
    left: 0;
    bottom: 0;
    margin-top: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .cta-banner-actions {
    width: 100%;
  }

  .cta-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .wa-tooltip { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-title { font-size: 1.9rem; }

  /* En pantallas muy pequeñas: logo más compacto pero visible */
  .logo-img {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .logo-name {
    font-size: 0.88rem;
    white-space: normal;
    max-width: 160px;
    line-height: 1.15;
  }

  .logo-sub { display: none; }
}

/* ── Ocultar nav-close en desktop ── */
.nav-close {
  display: none;
}

/* ── Footer logo ajustado ── */
.footer-logo-img {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--gold-border);
}

/* ── Área institucional extra: aviso "consulte otras especialidades" ── */
.areas-extra-note {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.25rem 2rem;
  border: 1px dashed rgba(197,168,128,0.2);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
}

.areas-extra-note p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0;
}

.areas-extra-note a {
  color: var(--gold-main);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.areas-extra-note a:hover {
  color: var(--gold-light);
}

/* ── Texto institucional áreas ── */
.areas-institutional {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--gold-main);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-top: 1px solid rgba(197,168,128,0.1);
  border-right: 1px solid rgba(197,168,128,0.1);
  border-bottom: 1px solid rgba(197,168,128,0.1);
}

.areas-institutional p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  font-style: normal;
  font-weight: 400;
  margin: 0;
}
