/* ============================================================
   RedFuneraria.cl — Sistema de diseño
   Paleta: blanco roto + azul marino + verde bosque
   ============================================================ */

:root {
  /* Paleta del mockup — blanco roto, azul marino profundo y verde bosque */
  --marfil: #fafaf7;            /* Fondo blanco roto */
  --marfil-claro: #ffffff;      /* Blanco puro */
  --piedra-900: #1a3548;        /* Azul marino profundo (marco oscuro y titulares) */
  --piedra-700: #2d4554;        /* Azul gris medio (texto enfático) */
  --piedra-500: #6b7c89;        /* Azul gris secundario */
  --piedra-300: #b0bcc6;        /* Gris azulado claro */
  --piedra-100: #e4e8eb;        /* Borde y separadores */
  --dorado: #3d6e5e;            /* Verde bosque (acento principal / CTA) */
  --dorado-claro: #5a8a7a;      /* Verde salvia (hover, elementos suaves) */
  --dorado-oscuro: #2d5447;     /* Verde profundo */
  --blanco: #ffffff;

  /* Niveles de suscripción (antiguos migrados) */

  /* Nuevos planes */
  --gratis: #3d6e5e;            /* Verde bosque */
  --inicia: #0891b2;            /* Cyan */
  --inicia-claro: #22d3ee;      /* Cyan claro */
  --pro: #6366f1;               /* Índigo vibrante */
  --pro-claro: #818cf8;         /* Índigo claro */
  --premium: #1a3548;           /* Azul marino intenso */
  --premium-claro: #5a7a94;     /* Azul medio claro */

  /* Estados */
  --exito: #3d6e5e;
  --error: #a04545;

  /* Tipografía */
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Sombra y radios */
  --sombra-sm: 0 1px 2px rgba(26,53,72,.06), 0 1px 3px rgba(26,53,72,.04);
  --sombra-md: 0 6px 18px rgba(26,53,72,.10), 0 2px 6px rgba(26,53,72,.04);
  --sombra-lg: 0 18px 48px rgba(26,53,72,.16);
  --radio-sm: 6px;
  --radio-md: 12px;
  --radio-lg: 22px;

  /* Espaciado */
  --container: 1180px;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ----------- Scrollbar ----------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--marfil); }
::-webkit-scrollbar-thumb { background: var(--piedra-300); border-radius: 10px; border: 2px solid var(--marfil); }
::-webkit-scrollbar-thumb:hover { background: var(--piedra-500); }

/* ----------- Reset ligero ----------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--piedra-900);
  background: var(--marfil);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--dorado-oscuro); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--piedra-900); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--piedra-900);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--piedra-700); }

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

/* ----------- Navbar ----------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 30px rgba(26, 53, 72, 0.04);
}
.navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--piedra-900);
  letter-spacing: .5px;
}
.brand .brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: transparent;
  color: var(--dorado);
  border-radius: 0;
  flex-shrink: 0;
}
.brand .brand-mark svg,
.brand .brand-mark img {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}
.brand .brand-mark img {
  mix-blend-mode: multiply;
}
/* En footer (fondo oscuro) filtramos la imagen para que se vuelva blanca y no necesite fondo transparente */
.footer .brand .brand-mark img {
  mix-blend-mode: normal;
  filter: grayscale(1) invert(1) brightness(2);
}
.footer .brand .brand-mark { color: var(--dorado-claro); }
.brand small { color: var(--dorado); font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  color: var(--piedra-700);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--piedra-900);
}
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -8px; left: 0; right: 0; height: 2px;
  background: var(--dorado);
}
.nav-cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--piedra-900);
}

/* ----------- Botones ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--piedra-900);
  color: var(--marfil-claro);
}
.btn-primary:hover { background: var(--dorado-oscuro); color: var(--marfil-claro); }
.btn-gold {
  background: linear-gradient(135deg, var(--dorado-claro), var(--dorado-oscuro));
  color: var(--marfil-claro);
  box-shadow: var(--sombra-md);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(61, 110, 94, 0.2); color: var(--marfil-claro); }
.btn-ghost {
  background: transparent;
  color: var(--piedra-900);
  border-color: var(--piedra-300);
}
.btn-ghost:hover { border-color: var(--piedra-900); background: rgba(26, 53, 72, 0.03); }
.btn-link {
  background: transparent;
  color: var(--dorado-oscuro);
  padding: 4px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--dorado);
}
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(61, 110, 94, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(61, 110, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 110, 94, 0); }
}
.btn-pulse { animation: pulseGlow 2s infinite; }

/* ----------- Hero ----------- */
.hero {
  position: relative;
  padding: 70px 0 90px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(61,110,94,.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(26,53,72,.06), transparent 60%),
    var(--marfil);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 strong { color: var(--dorado-oscuro); font-weight: 600; font-style: italic; }
.hero .lead { font-size: 1.15rem; color: var(--piedra-700); max-width: 540px; }
.hero .hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero .hero-stats {
  display: flex; gap: 36px; margin-top: 38px; padding-top: 26px;
  border-top: 1px solid var(--piedra-100);
}
.hero .stat { font-family: var(--serif); }
.hero .stat .num { font-size: 2.2rem; color: var(--piedra-900); font-weight: 600; line-height: 1; }
.hero .stat .label { font-size: .85rem; color: var(--piedra-500); margin-top: 4px; font-family: var(--sans); }

.hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radio-lg);
  overflow: hidden;
  background: var(--piedra-100);
  box-shadow: var(--sombra-lg);
}

/* ----------- Sección base ----------- */
.section { padding: 80px 0; }
.section.section-dark { background: var(--piedra-900); color: var(--marfil-claro); }
.section.section-dark h1, .section.section-dark h2, .section.section-dark h3 { color: var(--marfil-claro); }
.section.section-dark p { color: var(--piedra-300); }
.section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 14px;
  font-weight: 600;
}
.section-title { max-width: 720px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--piedra-500); font-size: 1.05rem; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: 40px; flex-wrap: wrap;
}

/* ----------- Cards ----------- */
.card {
  background: var(--blanco);
  border: 1px solid var(--piedra-100);
  border-radius: var(--radio-md);
  padding: 26px;
  box-shadow: var(--sombra-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra-md); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--blanco);
  border: 1px solid var(--piedra-100);
  border-radius: var(--radio-md);
  padding: 30px 26px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-md);
  border-color: rgba(61, 110, 94, 0.2);
}
.feature .ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--marfil), var(--piedra-100));
  color: var(--dorado-oscuro);
  margin-bottom: 18px;
  font-size: 1.4rem;
}

/* ----------- Plan badges ----------- */
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.plan-badge::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
/* Clases de planes antiguas removidas */

/* Nuevos plan badges: Gratis, Inicia, Pro, Premium */
.plan-gratis { color: #2d5447; background: #e0f2ec; }
.plan-inicia {
  color: var(--blanco);
  background: linear-gradient(135deg, var(--inicia), #0e7490);
  border-color: var(--inicia-claro);
}
.plan-inicia::before { background: var(--inicia-claro); box-shadow: 0 0 8px var(--inicia-claro); }
.plan-pro {
  color: var(--blanco);
  background: linear-gradient(135deg, var(--pro), #4f46e5);
  border-color: var(--pro-claro);
}
.plan-pro::before { background: var(--pro-claro); box-shadow: 0 0 8px var(--pro-claro); }
.plan-premium {
  color: var(--blanco);
  background: linear-gradient(135deg, var(--premium), #0e2434);
  border-color: var(--premium-claro);
}
.plan-premium::before { background: var(--premium-claro); box-shadow: 0 0 8px var(--premium-claro); }

/* Plan card variantes para Inicia, Pro y Premium */
.plan-card.is-inicia {
  border: 2px solid var(--inicia-claro);
  background: linear-gradient(180deg, #ecfeff, #ffffff);
}
.plan-card.is-inicia:hover {
  box-shadow: 0 18px 50px rgba(8, 145, 178, 0.15);
}
.plan-card.is-inicia .plan-name { color: var(--inicia); }
.plan-card.is-inicia ul li::before { background: var(--inicia); }

.plan-card.is-pro {
  border: 2px solid var(--pro-claro);
  background: linear-gradient(180deg, #eef2ff, #ffffff);
}
.plan-card.is-pro:hover {
  box-shadow: 0 18px 50px rgba(99, 102, 241, 0.18);
}
.plan-card.is-pro .plan-name { color: var(--pro); }
.plan-card.is-pro ul li::before { background: var(--pro); }

.plan-card.is-premium {
  background: linear-gradient(180deg, #1a3548, #0e2434);
  color: var(--marfil-claro);
  border: 2px solid var(--premium-claro);
  box-shadow: 0 22px 60px rgba(26, 53, 72, 0.22);
  transform: scale(1.02);
}
.plan-card.is-premium:hover {
  transform: scale(1.02) translateY(-6px);
  box-shadow: 0 30px 70px rgba(26, 53, 72, 0.35);
}
.plan-card.is-premium .plan-name,
.plan-card.is-premium h3,
.plan-card.is-premium .price strong { color: var(--premium-claro); }
.plan-card.is-premium .plan-tag { color: rgba(90, 122, 148, 0.8); }
.plan-card.is-premium ul li { color: rgba(250,250,247,.88); }
.plan-card.is-premium ul li::before { background: var(--premium-claro); }

/* Ocultar planes Pro y Premium por defecto */
.plan-hidden { display: none !important; }
.plan-hidden-row { display: none !important; }

/* Ocultar sección de tráfico por defecto */
.traffic-hidden { display: none !important; }

/* ----------- Mapa de regiones ----------- */
.region-map {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.region-map .map-illustration {
  background: var(--blanco);
  padding: 20px;
  border-radius: var(--radio-md);
  border: 1px solid var(--piedra-100);
  box-shadow: var(--sombra-sm);
}
.region-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  list-style: none; padding: 0; margin: 0;
}
.region-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radio-sm);
  background: var(--blanco);
  border: 1px solid var(--piedra-100);
  color: var(--piedra-700);
  font-size: .92rem;
  font-weight: 500;
  transition: all .2s ease;
}
.region-list a:hover { border-color: var(--dorado); color: var(--piedra-900); transform: translateX(4px); background: var(--marfil); }
.region-list .badge-count {
  font-size: .75rem; color: var(--dorado-oscuro);
  background: var(--marfil); padding: 2px 8px; border-radius: 999px;
}

/* ----------- Funeraria card ----------- */
.fune-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.fune-card {
  background: var(--blanco);
  border-radius: var(--radio-md);
  border: 1px solid var(--piedra-100);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.fune-card:hover { box-shadow: var(--sombra-md); transform: translateY(-3px); }
.fune-card .cover {
  height: 200px;
  background: linear-gradient(135deg, var(--piedra-100), var(--marfil));
  position: relative;
  overflow: hidden;
}
.fune-card .cover img {
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.fune-card:hover .cover img {
  transform: scale(1.08);
}
.fune-card .cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,53,72,0) 60%, rgba(26,53,72,.55));
}
.fune-card .cover .badge-position {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
}
.fune-card .body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.fune-card .body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.fune-card .body .meta { font-size: .85rem; color: var(--piedra-500); margin-bottom: 14px; }
.fune-card .body .desc { font-size: .92rem; color: var(--piedra-700); flex: 1; }
.fune-card .actions {
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--piedra-100);
  background: var(--marfil-claro);
}
.fune-card .rating {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--dorado-oscuro); font-weight: 600; font-size: .9rem;
}

/* Estilos antiguos fune-card removidos */

/* Nuevas variantes de fune-card para planes actuales */
.fune-card.is-premium {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--blanco), var(--blanco)) padding-box,
    linear-gradient(135deg, var(--premium), var(--premium-claro), var(--premium)) border-box;
  box-shadow: 0 14px 40px rgba(26, 53, 72, 0.18);
}
.fune-card.is-premium .cover { background: linear-gradient(135deg, #0e2434, var(--premium-claro)); }

.fune-card.is-pro {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--blanco), var(--blanco)) padding-box,
    linear-gradient(135deg, var(--pro), var(--pro-claro), var(--pro)) border-box;
  box-shadow: 0 14px 40px rgba(99,102,241,.15);
}
.fune-card.is-pro .cover { background: linear-gradient(135deg, #3730a3, var(--pro)); }

.fune-card.is-inicia .cover { background: linear-gradient(135deg, #0e7490, var(--inicia)); }
.fune-card.is-gratis .cover { background: linear-gradient(135deg, #1e4d3e, var(--gratis)); }

/* ----------- Planes ----------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan-card {
  background: var(--blanco);
  border: 1px solid var(--piedra-100);
  border-radius: var(--radio-md);
  padding: 32px 26px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-md); }


.plan-card .plan-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.plan-card .plan-tag { font-size: .8rem; color: var(--piedra-500); margin-bottom: 22px; }

.plan-card .price {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--piedra-500);
  margin-bottom: 24px;
}
.plan-card .price strong {
  font-size: 2.6rem;
  color: var(--piedra-900);
  display: block;
  font-weight: 700;
}
.plan-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan-card ul li {
  position: relative;
  padding-left: 24px;
  padding-block: 8px;
  font-size: .92rem;
  color: var(--piedra-700);
  border-bottom: 1px dashed var(--piedra-100);
}
.plan-card ul li:last-child { border-bottom: 0; }
.plan-card ul li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 12px; height: 12px;
  background: var(--dorado);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.plan-card .featured-tag {
  position: absolute;
  top: -14px; left: 26px;
  background: linear-gradient(135deg, var(--premium), var(--premium-claro));
  color: var(--blanco);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ----------- Testimonios ----------- */
.tests-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.test-card {
  background: var(--blanco);
  border-radius: var(--radio-md);
  padding: 28px;
  border: 1px solid var(--piedra-100);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.test-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-md);
}
.test-card::before {
  content: '“';
  position: absolute; top: -8px; left: 18px;
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--dorado);
  line-height: 1;
}
.test-card p { font-style: italic; color: var(--piedra-700); }
.test-card .who {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
}
.test-card .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--dorado-claro), var(--dorado-oscuro));
  color: var(--blanco);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700;
}

/* ----------- CTA ----------- */
.cta-band {
  background: linear-gradient(135deg, var(--piedra-900), #0e2434);
  color: var(--marfil-claro);
  padding: 70px 50px;
  border-radius: var(--radio-lg);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: -80px -100px auto auto;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(90,138,122,.30), transparent 65%);
}
.cta-band h2 { color: var(--marfil-claro); margin-bottom: 14px; }
.cta-band p  { color: rgba(250,250,247,.78); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 2; }

/* ----------- Forms ----------- */
.form-card {
  background: var(--blanco);
  border-radius: var(--radio-md);
  border: 1px solid var(--piedra-100);
  padding: 36px;
  box-shadow: var(--sombra-md);
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.form-grid.full > .field { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; color: var(--piedra-700); font-weight: 600; }
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--piedra-100);
  background: var(--marfil-claro);
  border-radius: var(--radio-sm);
  color: var(--piedra-900);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--dorado);
  box-shadow: 0 0 0 3px rgba(61,110,94,.18);
}
.field .help { font-size: .75rem; color: var(--piedra-500); }

.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--piedra-700);
}
.checkbox-row input { margin-top: 4px; }

/* ----------- Stepper ----------- */
.stepper {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.stepper .step {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: var(--piedra-500);
}
.stepper .num {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--piedra-100); color: var(--piedra-700);
  font-weight: 700; font-size: .85rem;
}
.stepper .step.active .num { background: var(--piedra-900); color: var(--dorado-claro); }
.stepper .step.done .num { background: var(--dorado); color: var(--blanco); }
.stepper .sep { width: 30px; height: 1px; background: var(--piedra-100); }

/* ----------- Plan picker ----------- */
.picker-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.picker-card {
  border: 2px solid var(--piedra-100);
  background: var(--marfil-claro);
  padding: 14px;
  border-radius: var(--radio-md);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  color: var(--piedra-700);
  transition: all .2s ease;
}
.picker-card:hover { border-color: var(--dorado-claro); }
.picker-card.selected { border-color: var(--piedra-900); background: var(--blanco); }
.picker-card .lvl-label { font-family: var(--serif); font-size: 1.1rem; color: var(--piedra-900); }
.picker-card .lvl-price { font-size: .8rem; color: var(--piedra-500); margin-top: 4px; }

/* ----------- Footer ----------- */
.footer {
  background: var(--piedra-900);
  color: var(--marfil-claro);
  padding: 60px 0 30px;
  margin-top: 60px;
}
.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  font-family: var(--sans);
  font-size: .85rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--dorado-claro); margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 4px 0; }
.footer ul a { color: rgba(250,250,247,.72); font-size: .92rem; }
.footer ul a:hover { color: var(--dorado-claro); }
.footer .small {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(250,250,247,.12);
  font-size: .85rem; color: rgba(250,250,247,.55);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.footer p { color: rgba(250,250,247,.68); font-size: .92rem; }

/* ----------- Hero alt (páginas internas) ----------- */
.page-hero {
  padding: 60px 0 30px;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(61,110,94,.12), transparent 60%),
    var(--marfil);
  border-bottom: 1px solid var(--piedra-100);
}
.page-hero h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); margin-bottom: 10px; }
.page-hero p { color: var(--piedra-700); font-size: 1.05rem; max-width: 720px; }
.breadcrumbs { font-size: .85rem; color: var(--piedra-500); margin-bottom: 18px; }
.breadcrumbs a { color: var(--piedra-500); }
.breadcrumbs a:hover { color: var(--piedra-900); }

/* ----------- Profile (perfil de funeraria) ----------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  align-items: start;
}
.profile-cover {
  height: 280px;
  border-radius: var(--radio-md);
  background: linear-gradient(135deg, #1a3548, #2d4554);
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
}
.profile-head {
  display: flex; gap: 24px; align-items: end; padding: 0 24px 24px;
  position: absolute; bottom: 0; left: 0; right: 0;
  color: var(--marfil-claro);
}
.profile-head .logo {
  width: 110px; height: 110px;
  border-radius: 22px;
  background: var(--blanco);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 2.4rem; color: var(--piedra-900);
  font-weight: 700;
  box-shadow: var(--sombra-md);
}
.profile-head h1 { color: var(--marfil-claro); margin: 0; }
.profile-head .meta { color: rgba(250,250,247,.78); font-size: .95rem; }
.profile-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--piedra-100);
  margin-bottom: 22px;
}
.profile-tabs button {
  background: transparent; border: 0;
  padding: 12px 16px;
  font-weight: 600; font-size: .9rem;
  color: var(--piedra-500); cursor: pointer;
}
.profile-tabs button.active {
  color: var(--piedra-900);
  border-bottom: 2px solid var(--dorado);
}
.contact-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radio-md);
  border: 1px solid var(--piedra-100);
  padding: 24px;
  position: sticky; top: 100px;
  box-shadow: var(--sombra-md);
}
.contact-card .item { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.contact-card .item .ico { color: var(--dorado-oscuro); width: 22px; }
.contact-card .item small { color: var(--piedra-500); display: block; font-size: .75rem; }

/* ----------- Panel ----------- */
.panel-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: start;
}
.sidebar {
  background: var(--blanco);
  border: 1px solid var(--piedra-100);
  border-radius: var(--radio-md);
  padding: 18px;
  position: sticky; top: 80px;
}
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a {
  padding: 10px 14px;
  border-radius: var(--radio-sm);
  color: var(--piedra-700);
  font-weight: 500; font-size: .92rem;
  display: flex; align-items: center; gap: 10px;
}
.sidebar nav a:hover { background: var(--marfil); }
.sidebar nav a.active { background: var(--piedra-900); color: var(--dorado-claro); }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi {
  background: var(--blanco); border: 1px solid var(--piedra-100);
  border-radius: var(--radio-md); padding: 22px;
}
.kpi .label { font-size: .75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--piedra-500); }
.kpi .value { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--piedra-900); margin: 6px 0; }
.kpi .delta { font-size: .8rem; color: var(--exito); font-weight: 600; }
.kpi .delta.neg { color: var(--error); }

/* ----------- Tabla ----------- */
.table-card {
  background: var(--blanco); border: 1px solid var(--piedra-100);
  border-radius: var(--radio-md); overflow: hidden;
}
.table-card .head { padding: 18px 22px; border-bottom: 1px solid var(--piedra-100); display: flex; justify-content: space-between; align-items: center;}
.table-card table { width: 100%; border-collapse: collapse; }
.table-card th {
  text-align: left; font-weight: 600; font-size: .8rem;
  color: var(--piedra-500); padding: 12px 22px;
  background: var(--marfil); border-bottom: 1px solid var(--piedra-100);
  text-transform: uppercase; letter-spacing: 1px;
}
.table-card td { padding: 14px 22px; border-bottom: 1px solid var(--piedra-100); font-size: .92rem; }
.table-card tr:last-child td { border-bottom: 0; }

/* ----------- Toggle ciclo de facturación ----------- */
.cycle-toggle .cycle-btn {
  background: transparent;
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .92rem;
  color: var(--piedra-500);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s ease;
}
.cycle-toggle .cycle-btn.active {
  background: var(--piedra-900);
  color: var(--marfil-claro);
  box-shadow: var(--sombra-sm);
}
.cycle-toggle .cycle-btn .badge-discount {
  background: var(--exito);
  color: var(--marfil-claro);
  font-size: .7rem;
  padding: 2px 8px;

/* ----------- Animaciones & Efectos de Scroll ----------- */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero .reveal:nth-child(2) { transition-delay: 0.2s; }
.hero .reveal:nth-child(3) { transition-delay: 0.3s; }
.hero .reveal:nth-child(4) { transition-delay: 0.4s; }

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

@keyframes floatAnim {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.hero-figure {
  animation: floatAnim 6s ease-in-out infinite;
}
  border-radius: 999px;
  font-weight: 700;
}
.cycle-toggle .cycle-btn.active .badge-discount {
  background: var(--dorado-claro);
  color: var(--piedra-900);
}

/* ----------- Filtros listado regional ----------- */
.filters {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  background: var(--blanco);
  padding: 16px;
  border-radius: var(--radio-md);
  border: 1px solid var(--piedra-100);
  margin-bottom: 28px;
}
.filters select, .filters input {
  background: var(--marfil-claro);
  border: 1px solid var(--piedra-100);
  padding: 10px 14px;
  border-radius: var(--radio-sm);
  font-size: .9rem;
  color: var(--piedra-700);
}
.filters .filter-chip {
  background: var(--piedra-900);
  color: var(--dorado-claro);
  font-size: .78rem;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ----------- Premium regional banner ----------- */
.premium-banner {
  background:
    linear-gradient(135deg, rgba(26,53,72,.94), rgba(45,69,84,.94)),
    radial-gradient(circle at 80% 30%, rgba(90,122,148,.4), transparent 50%);
  color: var(--marfil-claro);
  border-radius: var(--radio-md);
  padding: 36px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--premium-claro);
}
.premium-banner h2 { color: var(--marfil-claro); margin-bottom: 8px; }
.premium-banner p  { color: rgba(250,250,247,.78); }

/* ----------- Admin Panel ----------- */
.admin-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
}
.admin-panel-overlay.visible { display: block; }

.admin-panel {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: rgba(26, 53, 72, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(90, 138, 122, 0.4);
  border-radius: var(--radio-md);
  padding: 28px;
  min-width: 340px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  color: var(--marfil-claro);
  font-family: var(--sans);
}
.admin-panel.visible { display: block; animation: adminSlideIn 0.3s ease; }

@keyframes adminSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-panel .admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(250, 250, 247, 0.12);
}
.admin-panel .admin-header h4 {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dorado-claro);
  margin: 0;
}
.admin-panel .admin-close {
  background: rgba(250, 250, 247, 0.1);
  border: 1px solid rgba(250, 250, 247, 0.15);
  color: var(--marfil-claro);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.admin-panel .admin-close:hover {
  background: rgba(250, 250, 247, 0.2);
}

.admin-panel .admin-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(250, 250, 247, 0.08);
}
.admin-panel .admin-toggle-row:last-child { border-bottom: 0; }
.admin-panel .admin-toggle-row .toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-panel .admin-toggle-row .toggle-label {
  font-weight: 600;
  font-size: 0.95rem;
}
.admin-panel .admin-toggle-row .toggle-price {
  font-size: 0.78rem;
  color: rgba(250, 250, 247, 0.55);
}
.admin-panel .admin-toggle-row .toggle-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.admin-panel .toggle-status.active {
  background: rgba(61, 110, 94, 0.3);
  color: #a8e6cf;
}
.admin-panel .toggle-status.inactive {
  background: rgba(160, 69, 69, 0.3);
  color: #f0a0a0;
}

/* ==========================================================================
   FEATURE GRID & BILLING ICONS
   ========================================================================== */
.feature-grid {
  display: grid;
  gap: 30px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.feature .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blanco), #f5f7f9);
  color: var(--premium);
  border: 1px solid rgba(26, 53, 72, 0.08);
  border-radius: 16px;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(26, 53, 72, 0.06);
  transition: all 0.3s ease;
}
.feature:hover .ico {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(26, 53, 72, 0.12);
  border-color: rgba(26, 53, 72, 0.2);
  color: var(--dorado-oscuro);
}
.feature h3 {
  font-size: 1.1rem;
  color: var(--piedra-900);
  margin-bottom: 8px;
}
.feature p {
  font-size: 0.9rem;
  color: var(--piedra-500);
  line-height: 1.6;
  margin: 0;
}

/* Admin toggle switch */
.admin-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.admin-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.admin-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(250, 250, 247, 0.15);
  border-radius: 999px;
  transition: all 0.3s ease;
}
.admin-switch .slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--marfil-claro);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.admin-switch input:checked + .slider {
  background: var(--dorado);
}
.admin-switch input:checked + .slider::before {
  transform: translateX(22px);
}

.admin-panel .admin-note {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(250, 250, 247, 0.06);
  border-radius: var(--radio-sm);
  font-size: 0.78rem;
  color: rgba(250, 250, 247, 0.5);
  line-height: 1.5;
}

/* ----------- Utilities ----------- */
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 12px; }
.mt-4 { margin-top: 24px; }
.mt-6 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 24px; }
.gap-2 { gap: 12px; }

/* ----------- Responsive ----------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .fune-grid { grid-template-columns: 1fr 1fr; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .tests-grid { grid-template-columns: 1fr 1fr; }
  .region-map { grid-template-columns: 1fr; }
  .footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px; }
  .profile-grid { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .picker-row { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--marfil-claro);
    padding: 20px; border-bottom: 1px solid var(--piedra-100);
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .feature-grid, .fune-grid, .plans-grid, .tests-grid { grid-template-columns: 1fr; }
  .footer .footer-grid { grid-template-columns: 1fr; }
  .hero .hero-stats { gap: 24px; flex-wrap: wrap; }
  .picker-row { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr; }
  .region-list { grid-template-columns: 1fr; }
  .profile-head { flex-direction: column; align-items: flex-start; }
}

/* ----------- Animaciones (Scroll Reveal) ----------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }

/* ----------- Mobile Sticky CTA ----------- */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: flex;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: var(--marfil-claro);
    box-shadow: 0 -4px 20px rgba(26,53,72,.15);
    z-index: 50;
    border-top: 1px solid var(--piedra-100);
  }
  /* Dar padding extra al body para que el cta no tape contenido */
  body { padding-bottom: 80px; }
}
/* ============================================================
   AI Premium Badge (Pricing Cards)
   ============================================================ */
.ai-premium-badge {
  margin-top: 24px;
  background: linear-gradient(135deg, #d4af37 0%, #a67c00 100%);
  border: 1px solid #f9e596;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(212,175,55,0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none !important;
}
.ai-premium-badge::before {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-25deg);
  animation: shimmerAi 5s infinite;
}
@keyframes shimmerAi {
  0% { left: -150%; }
  30% { left: 200%; }
  100% { left: 200%; }
}
.ai-badge-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--piedra-900);
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ai-badge-text {
  color: var(--piedra-900);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}
.ai-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--piedra-900);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(26,53,72, 0.7);
  animation: pulseDark 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulseDark {
  to {
    box-shadow: 0 0 0 10px rgba(26,53,72, 0);
  }
}
