/* ============================================================
   Margarita Méndez — Jardines de Esperanza
   Diseño Accesible Optimizado para Adultos Mayores y Familias
   Certificado WCAG AAA / AA · Máxima Legibilidad · Alta Conversión
   ============================================================ */

:root {
  /* Paleta cromática con contraste accesible (WCAG AAA) */
  --navy: #122241;
  --navy-deep: #0B1528;
  --navy-light: #1E345E;
  --gold: #8E6516;           /* Dorado accesible para texto y bordes (contraste > 4.8:1) */
  --gold-soft: #D4B26F;      /* Dorado claro para fondos oscuros */
  --gold-light: #FBF4E6;     /* Fondo suave crema dorada */
  --cream: #F8F5EE;          /* Fondo base cálido y suave para la vista */
  --cream-2: #FFFFFF;        /* Superficie blanca para tarjetas con máxima legibilidad */
  --ink: #111927;            /* Texto principal de alto contraste (ratio > 12:1) */
  --muted: #2E3E55;          /* Texto secundario oscuro de alta legibilidad (ratio > 7:1) */
  --white: #FFFFFF;
  --wa-green: #15803D;       /* Verde WhatsApp oscuro accesible WCAG (ratio > 4.6:1 con blanco) */
  --wa-green-hover: #0F632E;
  --wa-light: #EBF8EF;       /* Fondo suave para botones WhatsApp */
  --phone-blue: #025091;     /* Azul para botón de llamada directa */
  
  --radius: 14px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --shadow: 0 4px 20px rgba(11, 21, 40, 0.08);
  --shadow-hover: 0 12px 32px rgba(11, 21, 40, 0.14);
  --shadow-lg: 0 16px 40px rgba(11, 21, 40, 0.20);
  --max: 1200px;
  
  /* Fuentes optimizadas: Plus Jakarta Sans (fuerte, limpia y legible) + Inter */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Escala tipográfica base para lectura cómoda de personas mayores */
  --font-scale: 1;
}

/* Escala dinámica de texto para accesibilidad (A- / A+) */
:root.font-scale-lg,
html.font-scale-lg,
body.font-scale-lg {
  --font-scale: 1.15;
}

:root.font-scale-xl,
html.font-scale-xl,
body.font-scale-xl {
  --font-scale: 1.30;
}

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

html {
  scroll-behavior: smooth;
  font-size: calc(17px * var(--font-scale));
  transition: font-size 0.2s ease;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Foco visible de alta accesibilidad para teclado */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #0284C7;
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Tipografía y Encabezados ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
  text-wrap: balance;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  margin-bottom: 0.65rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

p {
  color: var(--ink);
  text-wrap: pretty;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: var(--gold-light);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(142, 101, 22, 0.2);
}

.kicker-light {
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 178, 111, 0.3);
}

.section {
  padding: 84px 0;
}

.section-alt {
  background: #F1ECE1;
}

.section-head {
  max-width: 800px;
  margin-bottom: 44px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ---------- Barra Superior de Accesibilidad y Ayuda Rápida ---------- */
.top-bar {
  background: var(--navy-deep);
  color: #FFFFFF;
  font-size: 0.88rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.top-bar-label-mobile {
  display: none;
}

.top-bar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.top-bar-phone:hover {
  color: #FFFFFF;
}

.accessibility-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.accessibility-label {
  font-size: 0.82rem;
  opacity: 0.85;
}

.btn-font-control {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  min-height: 28px;
}

.btn-font-control:hover, .btn-font-control:focus {
  background: var(--gold);
  color: #FFFFFF;
  border-color: var(--gold);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(248, 245, 238, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 34, 65, 0.12);
  box-shadow: 0 4px 16px rgba(11, 21, 40, 0.04);
  transition: box-shadow 0.25s ease;
}

.header.scrolled {
  box-shadow: 0 8px 24px rgba(11, 21, 40, 0.09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  flex-shrink: 0;
}

.brand-agent {
  line-height: 1.22;
}

.brand-agent strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--navy);
  display: block;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-agent small {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 22px);
  flex-wrap: nowrap;
}

.nav a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 8px 3px;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: width 0.25s;
}

.nav a:hover {
  color: var(--navy-light);
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 2px solid rgba(18, 34, 65, 0.2);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  min-height: 46px;
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-icon span {
  width: 20px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Botones Generales Accesibles ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 48px;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn:active {
  transform: translateY(0);
}

/* Botón WhatsApp - Verde accesible con alto contraste */
.btn-wa {
  background: var(--wa-green);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
}

.btn-wa:hover {
  background: var(--wa-green-hover);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.45);
}

/* Botón Outline */
.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: #FFFFFF;
  font-weight: 700;
}

.btn-outline:hover {
  background: var(--navy);
  color: #FFFFFF;
}

/* Botón Dorado */
.btn-gold {
  background: var(--gold-soft);
  color: var(--navy-deep);
  font-weight: 800;
  border-color: #C29F5A;
}

.btn-gold:hover {
  background: #E8D29F;
  color: var(--navy-deep);
}

/* Botón Llamar Directo */
.btn-phone {
  background: #FFFFFF;
  color: var(--phone-blue);
  border-color: var(--phone-blue);
}

.btn-phone:hover {
  background: var(--phone-blue);
  color: #FFFFFF;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.12rem;
  min-height: 54px;
}

/* Botón para Tarjetas (Cards) con Accesibilidad Táctil */
.btn-card-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--wa-light);
  color: var(--wa-green-hover);
  border: 2px solid var(--wa-green);
  padding: 11px 18px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  min-height: 48px;
  width: 100%;
  margin-top: auto;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.1);
}

.btn-card-wa:hover {
  background: var(--wa-green);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.3);
}

.btn-card-wa svg {
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #FFFFFF;
  overflow: hidden;
  padding: 76px 0 84px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('imgs/optimizadas/portada_familia.jpg') center 30%/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(11, 21, 40, 0.94) 0%, rgba(18, 34, 65, 0.84) 55%, rgba(18, 34, 65, 0.48) 100%);
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 980px;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-soft);
  color: var(--navy-deep);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero h1 {
  color: #FFFFFF;
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-wrap: balance;
  max-width: 940px;
}

.hero-sub {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.7;
  color: #F8F5EE;
  max-width: 820px;
  margin-bottom: 30px;
}

.hero-sub strong {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-underline-offset: 4px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 38px;
  padding: 0;
  max-width: 1060px;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  white-space: nowrap;
}

.hero-trust li::before {
  content: "✓";
  color: var(--gold-soft);
  font-weight: 900;
}

/* ---------- Sobre mí ---------- */
.sobre-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.sobre-photo {
  position: relative;
}

.sobre-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/4.8;
  object-fit: cover;
  object-position: center 20%;
  border: 4px solid #FFFFFF;
}

.sello {
  position: absolute;
  bottom: -24px;
  right: -16px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--navy);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 4px solid var(--gold-soft);
  box-shadow: var(--shadow-lg);
  padding: 12px;
}

.sello span {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--gold-soft);
  line-height: 1;
}

.sello small {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1.25;
}

.sobre-text .quote {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--navy);
  font-style: italic;
  font-weight: 600;
  line-height: 1.6;
  border-left: 4px solid var(--gold);
  background: var(--gold-light);
  padding: 18px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.checklist {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
}

.checklist li {
  padding-left: 38px;
  position: relative;
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.6;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  font-size: 0.88rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 2px solid rgba(18, 34, 65, 0.16);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  transition: 0.2s;
  min-height: 48px;
}

.chip svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.chip:hover {
  border-color: var(--navy);
  background: var(--cream);
  transform: translateY(-2px);
}

.chip-wa {
  border-color: var(--wa-green);
  color: var(--wa-green-hover);
  background: var(--wa-light);
}

.chip-wa svg {
  fill: currentColor;
}

.chip-wa:hover {
  background: var(--wa-green);
  color: #FFFFFF;
}

.chip-phone {
  border-color: var(--phone-blue);
  color: var(--phone-blue);
  background: #F0F6FC;
}

.chip-phone svg {
  stroke: currentColor;
}

.chip-phone:hover {
  background: var(--phone-blue);
  color: #FFFFFF;
}

.chip-ig {
  color: #9D174D;
}

.chip-ig svg {
  stroke: currentColor;
}

/* ---------- Píldoras Interactivas de Beneficios ---------- */
.benefits-container {
  margin: 0 0 38px;
}

.benefits-hint {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.benefits-hint strong {
  color: var(--gold);
}

.benefits-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 2px solid rgba(18, 34, 65, 0.16);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(11, 21, 40, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  text-align: left;
  min-height: 48px;
}

.benefit-pill:hover {
  transform: translateY(-2px);
  border-color: var(--navy);
  background: #FAF7F0;
  box-shadow: 0 6px 18px rgba(11, 21, 40, 0.12);
}

.benefit-pill:active {
  transform: translateY(0);
}

.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F4EFE6;
  color: var(--navy);
  flex-shrink: 0;
}

.pill-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.pill-text {
  flex: 1;
}

.pill-action {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: var(--gold-light);
  border: 1px solid rgba(142, 101, 22, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 4px;
  transition: background 0.18s, color 0.18s;
}

.benefit-pill:hover .pill-action {
  background: var(--gold);
  color: #FFFFFF;
}

/* ---------- Modal Explicativo de Beneficio ---------- */
.benefit-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 40, 0.88);
  backdrop-filter: blur(8px);
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.benefit-modal[hidden] {
  display: none;
}

.benefit-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  max-width: 580px;
  width: 100%;
  padding: 38px 34px;
  box-shadow: 0 24px 60px rgba(11, 21, 40, 0.35);
  border: 2px solid rgba(18, 34, 65, 0.12);
  position: relative;
  animation: modal-fade-in 0.22s ease-out;
}

@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.benefit-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #F1ECE1;
  border: 0;
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 800;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.benefit-modal-close:hover {
  background: #E2DDD1;
}

.bm-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-right: 40px;
}

.bm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FAF6ED;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2.5px solid var(--gold-soft);
  color: var(--navy);
}

.bm-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
}

.bm-title {
  font-size: 1.45rem;
  color: var(--navy);
  line-height: 1.25;
  margin: 0;
}

.bm-desc {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 28px;
  background: #FAF8F4;
  padding: 18px 20px;
  border-radius: 10px;
  border-left: 4px solid var(--gold);
}

.bm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bm-actions .btn {
  width: 100%;
}

/* ---------- Cards (Tarjetas de Productos y Servicios) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.card {
  background: #FFFFFF;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(18, 34, 65, 0.08);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(18, 34, 65, 0.2);
}

.card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  background: #F1ECE1;
}

.card-sm img {
  height: 160px;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.28rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.card-body p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
  margin: 6px 0 20px;
  flex: 1;
}

/* ---------- Support Photos Strip ---------- */
.support-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.support-photos img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- IESS / Emergencia ---------- */
.iess {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #FFFFFF;
  position: relative;
}

.iess h2 {
  color: #FFFFFF;
}

.iess-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.iess-text p {
  color: #E2E8F0;
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.iess-text strong {
  color: #FFFFFF;
}

.iess-note {
  border-left: 4px solid var(--gold-soft);
  background: rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.iess-small {
  font-size: 0.92rem !important;
  color: #CBD5E1 !important;
}

.iess-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.iess-media {
  display: grid;
  gap: 20px;
}

.iess-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.iess-media img:first-child {
  background: #FFFFFF;
  padding: 22px;
  object-fit: contain;
}

/* ---------- Cofres ---------- */
.cofres-hero img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 38px;
  max-height: 440px;
  width: 100%;
  object-fit: cover;
}

/* ---------- Exhumación ---------- */
.exhum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.exhum-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.exhum-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 240px;
  width: 100%;
  object-fit: cover;
}

/* ---------- Homenajes ---------- */
.homenaje-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 52px;
}

.homenaje-item {
  display: flex;
  gap: 20px;
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  align-items: flex-start;
  border: 1.5px solid rgba(18, 34, 65, 0.08);
}

.homenaje-item img {
  width: 160px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.homenaje-item h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  color: var(--navy);
}

.homenaje-item p {
  color: var(--muted);
  font-size: 0.98rem;
}

.lapidas-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  background: #FFFFFF;
  border: 2px solid rgba(18, 34, 65, 0.1);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
}

.lapidas-text h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.lapidas-text p {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.lapidas-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.lapidas-gallery img {
  height: 135px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ---------- Pasos / Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  counter-reset: step;
  margin-bottom: 40px;
  padding: 0;
}

.steps li {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  border: 1.5px solid rgba(18, 34, 65, 0.08);
  position: relative;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--gold);
  font-weight: 800;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.steps h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.steps p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

/* ---------- FAQ ---------- */
.faq details {
  background: #FFFFFF;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(18, 34, 65, 0.08);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq details[open] {
  border-color: var(--gold);
}

.faq summary {
  cursor: pointer;
  padding: 20px 26px;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  transition: transform 0.25s;
  line-height: 1;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--navy);
}

.faq details p {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

/* ---------- Contacto ---------- */
.contacto {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #FFFFFF;
}

.contacto h2 {
  color: #FFFFFF;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacto-info p {
  color: #E2E8F0;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 26px 0;
  padding: 0;
}

.contact-list li {
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.07);
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-list span {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 800;
}

.contact-list a, .contact-list p {
  font-size: 1.08rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0;
}

.contact-list a:hover {
  color: var(--gold-soft);
  text-decoration: underline;
}

.contact-note {
  font-size: 0.98rem;
  color: var(--gold-soft);
  font-weight: 600;
}

.contact-form {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  border: 2px solid rgba(18, 34, 65, 0.1);
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: var(--navy);
}

.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 2px solid rgba(18, 34, 65, 0.2);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  background: #FBF9F5;
  color: var(--ink);
  transition: 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(18, 34, 65, 0.12);
}

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

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: #FFFFFF;
  padding: 70px 0 0;
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 44px;
  padding-bottom: 48px;
}

.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
  border-radius: 6px;
}

.footer-slogan {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-soft);
  font-weight: 700;
}

.footer-50 {
  font-size: 0.92rem;
  color: #94A3B8;
  margin-top: 4px;
}

.footer-col h4 {
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 16px;
  font-weight: 800;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.98rem;
  color: #CBD5E1;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 24px 0 28px;
}

.footer-legal p {
  font-size: 0.88rem;
  color: #94A3B8;
}

/* ---------- Cápsula Flotante de WhatsApp para Adultos Mayores ---------- */
.wa-float-badge {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 2.5px solid var(--wa-green);
  padding: 10px 20px 10px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(11, 21, 40, 0.22);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  min-height: 60px;
}

.wa-float-badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(21, 128, 61, 0.35);
  background: #F0FDF4;
}

.wa-float-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--wa-green);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(21, 128, 61, 0.4);
}

.wa-float-content {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.wa-float-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy);
}

.wa-float-sub {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wa-green-hover);
  display: flex;
  align-items: center;
  gap: 5px;
}

.wa-float-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Barra inferior fija de emergencia y WhatsApp para móviles */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 2px solid rgba(18, 34, 65, 0.12);
  padding: 10px 16px;
  z-index: 99;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
  gap: 10px;
}

.mobile-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.mobile-action-wa {
  background: var(--wa-green);
  color: #FFFFFF;
}

.mobile-action-call {
  background: #FFFFFF;
  color: var(--phone-blue);
  border: 2px solid var(--phone-blue);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 40, 0.95);
  backdrop-filter: blur(10px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lb-fade-in 0.2s ease-out;
}

@keyframes lb-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox[hidden] {
  display: none;
}

.lightbox-dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 94vw;
  max-height: 90vh;
}

.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #0B1528;
}

.lightbox-caption {
  color: #FFFFFF;
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  max-width: 800px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: #FFFFFF;
  border: 0;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 800;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 410;
  transition: transform 0.18s, background 0.18s;
}

.lightbox-close:hover {
  background: var(--gold-soft);
  transform: scale(1.08);
}

/* Imágenes ampliables (zoom-in) */
.card img,
.card-sm img,
.gallery img,
.homenaje-item img,
.support-photos img,
.lapidas-gallery img,
.exhum-media img,
.cofres-hero img {
  cursor: zoom-in;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.card:hover img,
.card-sm:hover img,
.gallery img:hover,
.homenaje-item:hover img,
.support-photos img:hover {
  filter: brightness(1.03);
}

/* ---------- Animaciones de Visibilidad ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .cards, .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .iess-grid, .contacto-grid, .exhum-grid, .lapidas-block {
    grid-template-columns: 1fr;
  }
  .lapidas-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .top-bar {
    padding: 6px 0;
    font-size: 0.82rem;
  }
  .top-bar-inner {
    justify-content: center;
    text-align: center;
    gap: 6px 16px;
  }
  .top-bar-label-desktop {
    display: none;
  }
  .top-bar-label-mobile {
    display: inline;
  }
  .accessibility-controls .label-desktop {
    display: none;
  }
  .btn-font-control {
    padding: 2px 8px;
    font-size: 0.8rem;
    min-height: 24px;
  }
  .nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 28px;
    gap: 16px;
    box-shadow: 0 16px 36px rgba(11, 21, 40, 0.18);
    transform: translateY(-140%);
    transition: transform 0.35s ease;
    z-index: 89;
    border-bottom: 2px solid rgba(18, 34, 65, 0.1);
  }
  .nav.open {
    transform: none;
  }
  .nav a {
    font-size: 1.15rem;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid rgba(18, 34, 65, 0.08);
  }
  .nav a::after {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-actions .btn-wa {
    display: none; /* Se muestra en la barra fija inferior o en el menú abierto */
  }
  .cards, .cards-3, .cards-5 {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .homenaje-grid {
    grid-template-columns: 1fr;
  }
  .support-photos {
    grid-template-columns: 1fr;
  }
  .exhum-media, .lapidas-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .section {
    padding: 64px 0;
  }
  .hero {
    min-height: 72vh;
    padding: 48px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .sello {
    width: 110px;
    height: 110px;
    bottom: -16px;
    right: 4px;
  }
  .sello span {
    font-size: 1.6rem;
  }
  .sello small {
    font-size: 0.65rem;
  }
  .wa-float-badge {
    bottom: 80px; /* Deja espacio para la barra fija inferior */
    right: 16px;
    padding: 8px 16px 8px 10px;
  }
  .mobile-action-bar {
    display: flex;
  }
  body {
    padding-bottom: 74px; /* Evita que la barra inferior tape el footer */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .top-bar-inner {
    gap: 4px 10px;
  }
  .gallery, .exhum-media, .lapidas-gallery {
    grid-template-columns: 1fr;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .homenaje-item {
    flex-direction: column;
  }
  .homenaje-item img {
    width: 100%;
    height: 180px;
  }
  .lapidas-block {
    padding: 24px;
  }
  .wa-float-content {
    display: none; /* En pantallas muy angostas se simplifica a botón redondo para no tapar */
  }
  .wa-float-badge {
    padding: 6px;
    border-radius: 50%;
    min-height: auto;
  }
}
