/* ============================================================
   ELiGiO APreZa & Asociados — Design System Global
   Inspirado en el layout azul marino con bloques geométricos
   ============================================================ */

/* ---- GOOGLE FONTS PRELOAD ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@700;800;900&display=swap');

/* ============================================================
   1. VARIABLES CSS (TOKENS)
   ============================================================ */
:root {
  /* Paleta principal */
  --color-bg:          #071120;
  --color-surface:     #0a1628;
  --color-surface-2:   #0e1f3d;
  --color-accent:      #1a3560;
  --color-accent-2:    #122a4e;
  --color-block:       rgba(255, 255, 255, 0.045);
  --color-block-hover: rgba(255, 255, 255, 0.08);
  --color-border:      rgba(255, 255, 255, 0.12);
  --color-border-light:rgba(255, 255, 255, 0.06);

  /* Texto */
  --color-text:        #ffffff;
  --color-text-muted:  #8da0b8;
  --color-text-dim:    #5a7096;

  /* CTAs */
  --color-wa:          #C9A84C;
  --color-wa-dark:     #a8873a;
  --color-call:        #3b82f6;
  --color-call-dark:   #2563eb;
  --color-email:       #64748b;
  --color-email-dark:  #475569;

  /* Tipografía */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Espaciado */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;

  /* Radios */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Sombras */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:  0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg:  0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-wa:  0 4px 20px rgba(37, 211, 102, 0.3);

  /* Transiciones */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

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

/* ============================================================
   3. CONTENEDOR
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

/* ============================================================
   4. TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
h4 { font-size: 1.2rem; }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.text-white  { color: var(--color-text); }
.text-muted  { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-upper  { text-transform: uppercase; letter-spacing: 0.12em; }

/* ============================================================
   5. BLOQUES GEOMÉTRICOS DECORATIVOS (Layout de referencia)
   ============================================================ */
.geo-blocks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.geo-block {
  position: absolute;
  background: var(--color-block);
  border-radius: 2px;
  animation: geoFloat 8s ease-in-out infinite;
}

.geo-block:nth-child(1) { width: 45%; height: 55%; top: -5%; right: -5%; animation-delay: 0s; }
.geo-block:nth-child(2) { width: 35%; height: 45%; top: 20%; right: 10%; animation-delay: 1s; background: rgba(255,255,255,0.03); }
.geo-block:nth-child(3) { width: 25%; height: 35%; top: 40%; right: -2%; animation-delay: 2s; }
.geo-block:nth-child(4) { width: 20%; height: 30%; bottom: 10%; right: 20%; animation-delay: 0.5s; background: rgba(255,255,255,0.06); }
.geo-block:nth-child(5) { width: 15%; height: 20%; top: 60%; right: 5%; animation-delay: 1.5s; }

@keyframes geoFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-8px) rotate(0.3deg); }
  66%       { transform: translateY(5px) rotate(-0.2deg); }
}

/* Marco rectangular del layout de referencia */
.geo-frame {
  position: absolute;
  inset: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 1;
}

.geo-frame::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
}

/* ============================================================
   6. HEADER / NAVBAR
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(7, 17, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: background var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(7, 17, 32, 0.98);
  box-shadow: var(--shadow-md);
}

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

/* Logo */
.header-logo, .footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.05em;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-eligio {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  line-height: 1;
}

.logo-apreza {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  line-height: 1;
}

.logo-tag {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 0.2em;
}

/* Nav */
.header-nav { display: none; }

@media (min-width: 1024px) {
  .header-nav { display: flex; align-items: center; }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-block);
}

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

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-normal);
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-dropdown a:hover {
  color: var(--color-text);
  background: var(--color-block);
  padding-left: 1rem;
}

/* Botón header WhatsApp */
.btn-header {
  display: none !important;
}

@media (min-width: 768px) {
  .btn-header {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.menu-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.header-nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background: rgba(7, 17, 32, 0.98);
  backdrop-filter: blur(16px);
  padding: 2rem 1.5rem 6rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 999;
}

.header-nav.open .nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.header-nav.open .nav-link {
  font-size: 1.2rem;
  padding: 1rem 0;
  width: 100%;
  border-bottom: 1px solid var(--color-border-light);
}

.header-nav.open .nav-dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: transparent;
  border: none;
  box-shadow: none;
  padding-left: 1rem;
}

/* ============================================================
   7. BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.btn-whatsapp {
  background: var(--color-wa);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: var(--color-wa-dark);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
  color: #fff;
}

.btn-call {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-call:hover {
  background: var(--color-block-hover);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-block);
  border-color: rgba(255,255,255,0.3);
}

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

.btn-full { width: 100%; }

.icon-wa { flex-shrink: 0; }

/* ============================================================
   8. HERO / SECCIONES
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-surface);
  padding-top: var(--header-height);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-2xl);
  max-width: 620px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-wa);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-wa);
  flex-shrink: 0;
}

.hero h1 {
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: rgba(255,255,255,0.4);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 600px) {
  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* ============================================================
   9. SECCIONES GENÉRICAS
   ============================================================ */
.section {
  padding-block: var(--space-2xl);
  position: relative;
}

.section-sm { padding-block: var(--space-xl); }

.section-dark {
  background: var(--color-surface);
}

.section-darker {
  background: var(--color-bg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-wa);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 560px;
  margin-inline: auto;
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Separador visual */
.divider {
  width: 40px;
  height: 3px;
  background: var(--color-wa);
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* ============================================================
   10. CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-normal);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--color-wa);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ============================================================
   11. FAQ ACCORDION
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 800px;
  margin-inline: auto;
}

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

.faq-item.open { border-color: var(--color-border); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.faq-question:hover { background: var(--color-block); }

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition-normal);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

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

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ============================================================
   12. DIAGNÓSTICO JURÍDICO GUIADO
   ============================================================ */
.diagnostico-wrapper {
  max-width: 700px;
  margin-inline: auto;
}

.diagnostico-step {
  display: none;
}

.diagnostico-step.active {
  display: block;
  animation: fadeInUp 0.35s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.diagnostico-pregunta {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: 1.75rem;
  text-align: center;
}

.diagnostico-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.diagnostico-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all var(--transition-normal);
}

.diagnostico-option:hover {
  background: var(--color-accent-2);
  border-color: var(--color-border);
  color: var(--color-text);
  transform: translateX(4px);
}

.diagnostico-num {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: var(--color-wa);
  min-width: 28px;
}

.diagnostico-progreso {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.progreso-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--transition-normal);
}

.progreso-dot.active { background: var(--color-wa); }
.progreso-dot.done   { background: rgba(37, 211, 102, 0.4); }

/* Resultado del diagnóstico */
.diagnostico-resultado {
  display: none;
  text-align: center;
  animation: fadeInUp 0.4s ease;
}

.diagnostico-resultado.active { display: block; }

.resultado-badge {
  display: inline-block;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--color-wa);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.resultado-titulo {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--color-text);
  margin-bottom: 1rem;
}

.resultado-desc {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-inline: auto;
}

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

/* ============================================================
   13. SECCIÓN CTA FINAL
   ============================================================ */
.cta-section {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  text-align: center;
  padding-block: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.cta-section .geo-blocks { opacity: 0.5; }

.cta-section h2 {
  color: var(--color-text);
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
}

.cta-section p + * { margin-top: 0; }

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

/* ============================================================
   14. BOTONES FLOTANTES
   ============================================================ */
.float-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  z-index: 900;
}

.btn-float {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-float:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn-float-wa {
  background: var(--color-wa);
  box-shadow: var(--shadow-wa);
}

.btn-float-wa:hover {
  background: var(--color-wa-dark);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.btn-float-email {
  background: var(--color-accent);
  border: 1px solid var(--color-border);
}

.btn-float-email:hover {
  background: var(--color-accent-2);
  color: #fff;
}

.btn-float-label {
  display: none;
}

@media (min-width: 480px) {
  .btn-float-label { display: inline; }
}

/* Pulso animado en WhatsApp flotante */
.btn-float-wa::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: pulse-wa 2.5s ease-out infinite;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
}

@keyframes pulse-wa {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-2xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 600px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text-dim);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.footer-social-link:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--color-wa);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.footer-links li + li { margin-top: 0.6rem; }

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-dim);
  transition: color var(--transition-fast);
  display: block;
}

.footer-links a:hover { color: var(--color-text); }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-dim);
}

.footer-contact-list svg { flex-shrink: 0; margin-top: 2px; color: var(--color-text-muted); }

.footer-contact-list a:hover { color: var(--color-text); }

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--space-xl);
  padding-block: 1.5rem;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy, .footer-legal {
  font-size: 0.78rem;
  color: var(--color-text-dim);
}

/* ============================================================
   16. EMPATÍA / LISTAS DE BENEFICIOS
   ============================================================ */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 680px;
  margin-inline: auto;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.benefit-item:hover { border-color: var(--color-border); }

.benefit-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.benefit-text h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.benefit-text p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   17. AUTORIDAD / CREDENCIALES
   ============================================================ */
.autoridad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .autoridad-grid { grid-template-columns: repeat(2, 1fr); }
}

.autoridad-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.autoridad-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.autoridad-num span {
  color: var(--color-wa);
}

.autoridad-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   18. BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  padding-block: 1rem;
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-text); }
.breadcrumb-sep { color: var(--color-text-dim); }

/* ============================================================
   19. UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 1rem; }
.w-full { width: 100%; }

/* Espaciado de body para header fijo */
body > .page-wrapper { padding-top: var(--header-height); }

/* ============================================================
   20. ANIMACIONES DE ENTRADA
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   21. SCROLLBAR PERSONALIZADA
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-border); }

/* ============================================================
   22. SELECCIÓN DE TEXTO
   ============================================================ */
::selection {
  background: rgba(37, 211, 102, 0.25);
  color: var(--color-text);
}

/* ============================================================
   23. OFF-CANVAS MENU (DISCRETO)
   ============================================================ */
.btn-discreet-menu {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--color-accent);
  color: white;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.btn-discreet-menu:hover {
  transform: scale(1.05);
  background-color: var(--color-accent-2);
}

.offcanvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}
.offcanvas-overlay.active {
  opacity: 1;
  visibility: visible;
}

.offcanvas-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background-color: var(--color-bg);
  color: white;
  z-index: 1001;
  box-shadow: 4px 0 20px rgba(0,0,0,0.8);
  overflow-y: auto;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.offcanvas-menu.active {
  left: 0;
}

.offcanvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 2;
}
.offcanvas-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.offcanvas-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.offcanvas-close:hover {
  color: white;
}

.offcanvas-body {
  padding: 1.5rem;
  padding-bottom: 4rem;
}
.offcanvas-section {
  margin-bottom: 2rem;
}
.offcanvas-section h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 0.5rem;
}
.offcanvas-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.offcanvas-section a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  display: block;
  transition: all var(--transition-fast);
}
.offcanvas-section a:hover {
  color: var(--color-text);
  transform: translateX(4px);
}

/* ============================================================
   24. PREGUNTAS Y RESPUESTAS (FAQ) EN ARTÍCULOS
   ============================================================ */
.post-content .faq-group {
  margin: 2.5rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.post-content .faq-group h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-wa);
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 0.5rem;
}

.post-content .faq-card {
  border-bottom: 1px solid var(--color-border-light);
  padding: 1.25rem 0;
}

.post-content .faq-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.post-content .faq-question {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  text-transform: none;
  letter-spacing: normal;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.post-content .faq-question::before {
  content: "👉";
  font-size: 1rem;
}

.post-content .faq-answer {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  padding-left: 1.75rem;
}

.post-content .faq-answer p {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}
.post-content .faq-answer p:last-child {
  margin-bottom: 0;
}

