/* ============================================================
   Seguros Unidos Insurance Agency & Taxes · Houston, TX
   Sistema de diseño "fintech premium": hero oscuro con malla de
   gradientes esmeralda, glassmorphism, glow y micro-interacciones.
   Verde = marca/salud · Navy = confianza · Ámbar = acción (AAA)
   ============================================================ */

:root {
  /* Marca clara */
  --green-950: #0b2e19;
  --green-900: #0e3d22;
  --green-800: #14532d;
  --green-700: #14602f;
  --green-600: #1b7a3d;
  --green-500: #22a04f;
  --green-100: #dcefe2;
  --green-50: #e8f3ec;
  --navy: #163a5c;
  --navy-dark: #0f2a44;
  --cream: #faf7f0;
  --white: #ffffff;
  --ink: #1f2937;
  --ink-soft: #4b5a51;
  --line: #e2e8e0;
  --amber: #f0a51f;
  --amber-hover: #ffb52e;
  --red: #c0392b;
  /* Modo oscuro premium: base NAVY profundo (confianza) con acentos
     esmeralda medidos (la marca). Menos verde, más ancla azul. */
  --night: #060e1a;
  --night-2: #0a1626;
  --night-3: #0e1f33;
  --emerald: #34d399;
  --mint: #a7f3d0;
  --text-dark: #e8f0f7;
  --text-dark-soft: #9fb3c8;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(148, 190, 230, 0.22);
  --glow-green: 0 0 44px rgba(52, 211, 153, 0.24);
  --glow-blue: 0 0 44px rgba(70, 130, 210, 0.25);
  --glow-amber: 0 8px 32px rgba(240, 165, 31, 0.45);
  --shadow: 0 14px 40px rgba(6, 14, 26, 0.14);
  --shadow-soft: 0 4px 16px rgba(6, 14, 26, 0.08);
  --radius: 18px;
  --width: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.15;
  color: var(--green-950);
  letter-spacing: -0.02em;
}
h1, h2 { color: var(--navy); }

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

a { color: var(--green-700); }

::selection { background: var(--emerald); color: var(--night); }

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

/* ---------- Barra superior (integrada al modo oscuro) ---------- */
.top-bar {
  background: var(--night);
  color: #94a8bd;
  font-size: 0.84rem;
  padding: 7px 0;
  position: relative;
  z-index: 60;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-bar a { color: var(--mint); text-decoration: none; font-weight: 600; }
.top-bar a:hover { color: #ffffff; }
.top-bar .idiomas { opacity: 0.9; display: flex; align-items: center; gap: 12px; }
.language-button {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--mint);
  border-radius: 999px;
  padding: 3px 14px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.language-button:hover { background: rgba(52, 211, 153, 0.16); color: #fff; box-shadow: var(--glow-green); }

/* ---------- Navegación (vidrio oscuro) ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 14, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 190, 230, 0.14);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 0 14px rgba(52, 211, 153, 0.35)); }
.brand .nombre {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.15;
}
.brand .nombre small {
  display: block;
  font-weight: 600;
  color: var(--emerald);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: #ccd9e6;
  font-weight: 600;
  font-size: 0.94rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--mint));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: #ffffff; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: #ffffff; }

/* ---------- Botones con brillo ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
}
.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.button:hover::before { left: 130%; }
.button:hover { transform: translateY(-2px) scale(1.02); }
.button:active { transform: translateY(0) scale(0.98); }
.button-primary { background: var(--amber); color: var(--green-950); box-shadow: var(--glow-amber); }
.button-primary:hover { background: var(--amber-hover); }
.button-green { background: linear-gradient(135deg, var(--green-600), var(--green-500)); color: #fff; box-shadow: 0 8px 26px rgba(27, 122, 61, 0.35); }
.button-outline { background: transparent; color: var(--green-800); border: 2px solid var(--green-600); }
.button-outline:hover { background: var(--green-50); }
.button-whatsapp { background: #25d366; color: #073b1c; box-shadow: 0 8px 26px rgba(37, 211, 102, 0.4); }
.button-whatsapp:hover { background: #2ee273; }
.button-small { padding: 10px 20px; font-size: 0.9rem; border-radius: 11px; }

.mobile-menu-button { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.mobile-menu-button span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--mint);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.2s ease;
}

/* ---------- Banner de temporada ---------- */
.season-banner {
  background: linear-gradient(90deg, #2a1f04, #4a3607, #2a1f04);
  background-size: 200% 100%;
  border-bottom: 1px solid rgba(240, 165, 31, 0.35);
  color: #ffd984;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
}
.season-banner:empty { display: none; }
.season-banner a { color: #ffc55c; font-weight: 800; }

/* ---------- Héroe oscuro con malla de gradientes ---------- */
.hero {
  position: relative;
  background: var(--night);
  color: var(--text-dark);
  padding: 88px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -2;
  background:
    radial-gradient(38% 42% at 22% 28%, rgba(37, 99, 168, 0.32), transparent 70%),
    radial-gradient(30% 34% at 78% 20%, rgba(52, 211, 153, 0.16), transparent 70%),
    radial-gradient(42% 46% at 66% 84%, rgba(16, 42, 74, 0.65), transparent 72%),
    radial-gradient(26% 28% at 10% 86%, rgba(240, 165, 31, 0.1), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(178, 205, 233, 0.13) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(75% 70% at 50% 35%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 70% at 50% 35%, #000 0%, transparent 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}
.orb-1 { width: 380px; height: 380px; top: -120px; right: 6%; background: radial-gradient(circle, rgba(52, 211, 153, 0.38), transparent 70%); }
.orb-2 { width: 320px; height: 320px; bottom: -80px; left: -60px; background: radial-gradient(circle, rgba(43, 108, 176, 0.55), transparent 70%); }
.orb-3 { width: 200px; height: 200px; top: 38%; left: 42%; background: radial-gradient(circle, rgba(240, 165, 31, 0.26), transparent 70%); }

.hero .container {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 22px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
}
.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.55rem);
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--emerald), var(--mint) 60%, #d9fbe9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(52, 211, 153, 0.4));
}
.intro {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 30px;
  max-width: 37rem;
}
.agent-avatar {
  width: 78px;
  height: 78px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(52, 211, 153, 0.65);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.14), var(--glow-green);
}

/* Burbuja estilo WhatsApp para la presentación de Zully */
.chat-bubble {
  position: relative;
  background: linear-gradient(160deg, rgba(37, 211, 102, 0.13), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 4px 18px 18px 18px;
  padding: 12px 16px 9px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.chat-bubble::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -7px;
  width: 12px;
  height: 12px;
  background: rgba(28, 66, 50, 0.95);
  border-left: 1px solid rgba(37, 211, 102, 0.3);
  border-bottom: 1px solid rgba(37, 211, 102, 0.3);
  transform: rotate(45deg);
  border-radius: 0 0 0 3px;
}
.bubble-name {
  display: block;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--mint);
  margin-bottom: 3px;
}
.chat-bubble .sub {
  font-size: 1.02rem;
  color: var(--text-dark);
  margin: 0;
}
.bubble-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-dark-soft);
  margin-top: 4px;
}
.typing-dots {
  display: none;
  position: absolute;
  top: 16px;
  left: 16px;
  gap: 5px;
}
.typing-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9fb3c8;
}
.chat-bubble.escribiendo .contenido-burbuja { visibility: hidden; }
.chat-bubble.escribiendo .typing-dots { display: flex; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 38px; }
/* Altura fija: idéntica geometría aunque un botón lleve icono y otro no,
   y sin desalineados por redondeo de zoom */
.hero-actions .button { height: 58px; padding-top: 0; padding-bottom: 0; }

/* Números que cuentan (dopamina medible) */
.stats {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 2.05rem;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff, #c9dcf0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 0.82rem; color: var(--text-dark-soft); font-weight: 600; }

/* Tarjeta de vidrio del héroe */
.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: var(--glow-blue), 0 30px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 30px;
  color: var(--text-dark);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(148, 190, 230, 0.55), transparent 38%, transparent 68%, rgba(240, 165, 31, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-card h3 { margin-bottom: 6px; font-size: 1.25rem; color: #ffffff; }
.hero-card p { color: var(--text-dark-soft); font-size: 0.95rem; margin-bottom: 18px; }
.hero-card .lista-check { list-style: none; margin-bottom: 22px; }
.hero-card .lista-check li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.hero-card .lista-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: var(--emerald);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card a { color: var(--mint); }

/* Fuera del héroe (fondos claros, ej. la lista de documentos de taxes),
   la misma tarjeta se vuelve clara y legible */
.section .hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--ink);
}
.section .hero-card::before { display: none; }
.section .hero-card h3 { color: var(--navy); }
.section .hero-card p { color: var(--ink-soft); }
.section .hero-card .lista-check li { color: var(--ink); }
.section .hero-card .lista-check li::before {
  background: var(--green-100);
  border: 1px solid var(--green-500);
  color: var(--green-700);
}
.section .hero-card a { color: var(--green-700); }

/* ---------- Marquesina de confianza ---------- */
.marquee {
  background: var(--night-2);
  border-top: 1px solid rgba(148, 190, 230, 0.12);
  border-bottom: 1px solid rgba(148, 190, 230, 0.12);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--night-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--night-2), transparent); }
.marquee-track {
  display: flex;
  gap: 46px;
  width: max-content;
  white-space: nowrap;
}
.marquee-track span {
  color: #8ba3bd;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.marquee-track .star { color: var(--amber); }

/* ---------- Secciones claras ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-header .tag,
.tag {
  display: inline-block;
  background: linear-gradient(120deg, var(--green-100), #d3f1de);
  color: var(--green-700);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
.section-header p { color: var(--ink-soft); font-size: 1.02rem; }

/* Servicios: tarjetas con glow al pasar */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 22px 44px rgba(7, 20, 16, 0.14), 0 0 0 4px rgba(52, 211, 153, 0.1);
}
.service-card { overflow: hidden; }
/* Escena ilustrada de fondo, temática por tarjeta */
.service-card .scene {
  position: absolute;
  top: -14px;
  right: -18px;
  width: 168px;
  height: 168px;
  opacity: 0.13;
  transform: rotate(-6deg);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.service-card:hover .scene { opacity: 0.24; transform: rotate(-2deg) scale(1.06); }
.scene-health { color: #1b7a3d; }
.scene-home { color: #2b6cb0; }
.scene-taxes { color: #b7791f; }
.scene-notary { color: #163a5c; }
.service-card > :not(.scene) { position: relative; z-index: 1; }
.service-card .icono {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  box-shadow: 0 8px 20px rgba(27, 122, 61, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card:hover .icono { transform: scale(1.12) rotate(-4deg); }
.service-card .icono svg { width: 28px; height: 28px; stroke: #ffffff !important; }
.service-card .icono svg [fill="#1b7a3d"] { fill: #ffffff; }
.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: 0.94rem; flex: 1; }
.service-card .service-link {
  margin-top: 18px;
  font-weight: 800;
  text-decoration: none;
  color: var(--green-700);
  font-size: 0.93rem;
  transition: letter-spacing 0.2s ease, color 0.2s ease;
}
.service-card:hover .service-link { color: var(--green-600); letter-spacing: 0.02em; }

/* Pasos conectados */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  counter-reset: paso;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-card .numero {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), #1f4d7a);
  color: #fff;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(22, 58, 92, 0.3);
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { color: var(--ink-soft); font-size: 0.93rem; }

/* Franja de consentimiento */
.cta-strip {
  background:
    radial-gradient(60% 120% at 85% 20%, rgba(37, 99, 168, 0.3), transparent 60%),
    linear-gradient(120deg, var(--night-2), var(--night-3));
  border: 1px solid rgba(148, 190, 230, 0.2);
  color: #fff;
  border-radius: var(--radius);
  padding: 38px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-strip h3 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.cta-strip p { color: var(--text-dark-soft); max-width: 46rem; }

/* Nosotros */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.portrait {
  background:
    radial-gradient(80% 60% at 70% 10%, rgba(37, 99, 168, 0.22), transparent 60%),
    linear-gradient(165deg, var(--night-2), var(--night-3));
  border-radius: 24px;
  border: 1px solid rgba(148, 190, 230, 0.22);
  padding: 40px 34px;
  text-align: center;
  box-shadow: var(--shadow);
  color: var(--text-dark);
}
.portrait .foto-zully {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(148, 190, 230, 0.3), 0 24px 48px rgba(0, 0, 0, 0.45);
}
.portrait h3 { font-size: 1.35rem; color: #ffffff; }
.portrait p { color: var(--text-dark-soft); font-size: 0.92rem; }
.about .texto h2 { font-size: clamp(1.7rem, 3.1vw, 2.25rem); margin-bottom: 16px; }
.about .texto p { color: var(--ink-soft); margin-bottom: 14px; }
.pull-quote {
  border-left: 4px solid var(--emerald);
  background: linear-gradient(90deg, var(--green-50), transparent);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  font-style: italic;
  color: var(--green-900);
  font-weight: 600;
  margin: 20px 0;
  font-size: 1.02rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mint);
}
.chip .star { color: var(--amber); }

/* Testimonios */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 6px;
  right: 20px;
  font-family: Georgia, serif;
  font-size: 4.6rem;
  line-height: 1;
  color: var(--green-100);
}
.testimonial-card .estrellas { color: var(--amber); letter-spacing: 3px; margin-bottom: 12px; font-size: 0.95rem; }
.testimonial-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; position: relative; }
.testimonial-card footer { margin-top: 18px; font-weight: 800; color: var(--green-950); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.testimonial-card footer::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--emerald));
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
  flex: none;
}
.testimonial-card footer small { display: block; font-weight: 500; color: var(--ink-soft); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr; }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; align-items: start; }
@media (max-width: 760px) { .contact-list { grid-template-columns: 1fr; } }
.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 12px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-list li:hover { background: var(--green-50); transform: translateX(4px); }
.contact-list .contact-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-list .contact-icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--green-950); }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span { color: var(--ink-soft); font-size: 0.93rem; }
.map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
}
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Formularios ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 760px;
  margin: 0 auto;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green-950);
  margin-bottom: 7px;
}
.field label .optional { font-weight: 500; color: var(--ink-soft); font-size: 0.82rem; }

/* ---------- Campo de fecha con calendario ---------- */
.date-field { position: relative; }
.date-field > input { width: 100%; padding-right: 42px; }
.date-button {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.date-button svg { width: 19px; height: 19px; }
.date-button:hover { background: var(--green-50); color: var(--green-700); }
.date-button:focus-visible { outline: 2px solid var(--green-600); outline-offset: 1px; }

/* Pikaday con los colores del sitio. Solo se pintan encima los cuatro puntos
   que se notan; el resto lo trae css/vendor/pikaday.css tal cual vino. */
.pika-single {
  z-index: 40;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: inherit;
  color: var(--ink);
}
.pika-label { font-weight: 700; color: var(--ink); }
.pika-table th { color: var(--ink-soft); font-size: 0.7rem; }
.pika-button { border-radius: 8px; font-size: 0.83rem; }
.is-selected .pika-button {
  background: var(--green-600);
  box-shadow: none;
  border-radius: 8px;
  font-weight: 700;
}
.is-today .pika-button { color: var(--green-700); }
.pika-button:hover, .pika-row.pick-whole-week:hover .pika-button {
  background: var(--green-600);
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .date-button { transition: none; }
}

/* Sección opcional dentro de un paso. Es un <details> del navegador, así que
   abre, cierra y se navega con teclado sin JavaScript nuestro. */
.disclosure { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; }
.disclosure > summary {
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green-700);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.disclosure > summary::-webkit-details-marker { display: none; }
/* La flecha la dibujamos para que gire al abrir; la del navegador no se puede
   animar y cambia de forma en cada sistema */
.disclosure > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
  flex: none;
}
.disclosure[open] > summary::before { transform: rotate(45deg); }
.disclosure > summary:hover { background: var(--green-50); }
.disclosure > summary .optional { font-weight: 500; color: var(--ink-soft); font-size: 0.82rem; }
.disclosure-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) {
  .disclosure > summary::before { transition: none; }
}

/* Mientras el envío viaja, el formulario deja de responder. Los campos se
   apagan uno a uno desde el JS; el puntero se apaga aquí porque el lienzo de
   la firma se sigue dibujando aunque sus vecinos estén deshabilitados. */
form.is-sending { pointer-events: none; }
form.is-sending .form-step { opacity: 0.7; transition: opacity 0.2s; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
/* Altura uniforme: los inputs de texto, fecha y select miden igual
   aunque el navegador los dibuje distinto */
.field input:not([type="checkbox"]), .field select { height: 52px; }

/* Lista desplegable estilizada (Chrome 135+ con base-select); los demás
   navegadores conservan la lista nativa del sistema */
@supports selector(::picker(select)) {
  select, ::picker(select) { appearance: base-select; }
  ::picker(select) {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 6px;
    margin-top: 6px;
  }
  select option {
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--ink);
  }
  select option:hover, select option:focus {
    background: var(--green-50);
    color: var(--green-800);
  }
  select option:checked {
    background: var(--green-100);
    color: var(--green-800);
    font-weight: 700;
  }
  select option::checkmark { color: var(--green-600); }
  select::picker-icon { color: var(--green-600); }
}

/* El selector de condado del panel de planes hereda el mismo lenguaje */
.county-select {
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  margin: 10px 0;
}
.county-select:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}
.field .help { font-size: 0.82rem; color: var(--ink-soft); margin-top: 5px; }
/* Los campos de una fila comparten rejilla: etiquetas arriba, controles en
   la misma línea, ayudas y errores debajo. Así una etiqueta de dos líneas
   o un texto de ayuda no desalinean el campo de al lado. */
.field-row, .field-row-3 {
  display: grid;
  column-gap: 16px;
  margin-bottom: 18px;
}
.field-row { grid-template-columns: 1fr 1fr; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.field-row > .field, .field-row-3 > .field { display: contents; }
.field-row > .field > *, .field-row-3 > .field > * { grid-row: 2; }
.field-row > .field > label, .field-row-3 > .field > label { grid-row: 1; align-self: end; }
.field-row > .field > .help, .field-row-3 > .field > .help { grid-row: 3; }
.field-row > .field > .error-message, .field-row-3 > .field > .error-message { grid-row: 4; }
.field-row > .field:nth-child(1) > *, .field-row-3 > .field:nth-child(1) > * { grid-column: 1; }
.field-row > .field:nth-child(2) > *, .field-row-3 > .field:nth-child(2) > * { grid-column: 2; }
.field-row-3 > .field:nth-child(3) > * { grid-column: 3; }

/* Casilla de aceptación del consentimiento */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--green-950);
}
.consent-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--green-600);
  cursor: pointer;
}
.consent-row span { font-size: 0.95rem; line-height: 1.5; }
.field-error { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12) !important; }
.error-message { color: var(--red); font-size: 0.85rem; margin-top: 5px; display: none; }

fieldset { border: 1.5px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 20px; }
legend { font-weight: 800; color: var(--green-800); padding: 0 10px; font-size: 0.95rem; }

/* Chips de selección: el radio nativo se oculta y el chip completo marca
   el estado, sin círculos ni recuadros dobles */
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-group label {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0;
  background: var(--white);
  color: var(--ink-soft);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.radio-group input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.radio-group label:hover { border-color: var(--green-500); }
/* La clase .is-active la sincroniza main.js: la invalidación de :has con
   radios hermanos falla en algunos navegadores y deja el resaltado pegado */
.radio-group label.is-active,
.radio-group label:has(input:checked) {
  border-color: var(--green-600);
  background: var(--green-50);
  color: var(--green-800);
}
.radio-group label:has(input:focus-visible) {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

/* Pasos del formulario */
/* La etiqueta va debajo de su burbuja, no al lado. Ese solo cambio es lo que
   hace que seis pasos quepan en una fila dentro de una tarjeta de 700px: cada
   paso mide lo que mide su palabra, en vez de su palabra mas la burbuja. Antes
   envolvia a dos renglones, y dos renglones de pasos se leen como el doble de
   trabajo del que hay. */
.step-indicator { margin-bottom: 32px; }
/* El tope por paso es lo que evita que auto, con solo dos, estire el riel de
   punta a punta de la tarjeta como si faltara muchisimo. */
.step-indicator .track { display: flex; justify-content: center; align-items: flex-start; }
.step-indicator .dot {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}
/* El riel: dos tramos superpuestos entre el centro de la burbuja anterior y el
   de esta. El gris siempre esta; el verde crece encima al llegar el paso. */
.step-indicator .dot::before,
.step-indicator .dot::after {
  content: "";
  position: absolute;
  top: 13px;
  left: -50%;
  right: 50%;
  height: 2px;
  border-radius: 2px;
}
.step-indicator .dot::before { background: var(--line); }
.step-indicator .dot::after {
  background: linear-gradient(90deg, var(--green-600), var(--emerald));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s ease;
}
/* El primero no tiene de donde venir */
.step-indicator .dot:first-child::before,
.step-indicator .dot:first-child::after { display: none; }
.step-indicator .dot.is-done::after,
.step-indicator .dot.is-active::after { transform: scaleX(1); }

.step-indicator .bubble {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.step-indicator .label {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}
.step-indicator .dot.is-active .bubble {
  background: linear-gradient(135deg, var(--green-600), var(--emerald));
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.18);
}
.step-indicator .dot.is-active .label { color: var(--green-700); font-weight: 700; }
.step-indicator .dot.is-done .bubble { background: var(--green-100); color: var(--green-700); }
.step-indicator .summary { display: none; font-size: 0.85rem; font-weight: 700; color: var(--green-700); }
@media (max-width: 640px) {
  /* En un telefono las palabras no caben debajo de burbujas de 60px de ancho.
     Quedan las burbujas, que se leen de un vistazo, y una linea que dice en
     cual va y cuantos faltan. */
  .step-indicator .label { display: none; }
  .step-indicator .bubble { width: 23px; height: 23px; font-size: 0.75rem; }
  .step-indicator .dot::before, .step-indicator .dot::after { top: 11px; }
  .step-indicator .summary { display: block; margin-top: 10px; text-align: center; }
}
/* Quien pidio menos movimiento ve el mismo progreso, sin el barrido */
@media (prefers-reduced-motion: reduce) {
  .step-indicator .dot::after,
  .step-indicator .bubble,
  .step-indicator .label { transition: none; }
}

.form-step { display: none; }
.form-step.is-visible { display: block; animation: entrarPaso 0.4s ease; }
@keyframes entrarPaso {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.person-card {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  position: relative;
  background: var(--cream);
  animation: entrarPaso 0.35s ease;
}
.person-card h4 { font-size: 0.98rem; margin-bottom: 12px; color: var(--green-800); }
.remove-person { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--red); font-weight: 700; cursor: pointer; font-size: 0.85rem; }

/* Firma */
.signature-area { border: 2px dashed var(--emerald); border-radius: 14px; background: #fdfdfb; position: relative; transition: box-shadow 0.2s ease; }
.signature-area:hover { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12); }
.signature-area canvas { width: 100%; height: 180px; display: block; border-radius: 14px; touch-action: none; cursor: crosshair; }
.signature-area .signature-guide { position: absolute; left: 8%; right: 8%; bottom: 34px; border-bottom: 1.5px solid #b9c8be; pointer-events: none; }
.signature-area .signature-x { position: absolute; left: 8%; bottom: 38px; color: #9fb2a5; font-weight: 700; pointer-events: none; }
.signature-actions { display: flex; gap: 10px; margin-top: 10px; }

.notice-box {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-left: 4px solid var(--emerald);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.9rem;
  color: var(--green-900);
  margin: 18px 0;
}
.notice-box strong { color: var(--green-800); }
.legal-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 18px;
}
.legal-box h4 { margin: 14px 0 6px; font-size: 0.95rem; }
.legal-box h4:first-child { margin-top: 0; }
.legal-box ul { margin: 8px 0 8px 20px; }
.legal-box p { margin-bottom: 8px; }

/* Éxito con palomita animada */
.success { text-align: center; padding: 30px 10px; }
.success .checkmark {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--green-500), var(--emerald));
  color: #ffffff;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(52, 211, 153, 0.15), var(--glow-green);
}

/* Cabecera de páginas interiores (mini héroe oscuro) */
.page-header {
  position: relative;
  background: var(--night);
  color: var(--text-dark);
  padding: 64px 0 56px;
  text-align: center;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(40% 50% at 25% 20%, rgba(37, 99, 168, 0.3), transparent 70%),
    radial-gradient(36% 44% at 80% 30%, rgba(52, 211, 153, 0.12), transparent 70%);
}
.page-header .container { position: relative; }
.page-header h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 12px; color: #ffffff; }
.page-header p { color: var(--text-dark-soft); max-width: 42rem; margin: 0 auto; }

/* ---------- Panel de planes (cotización en vivo) ---------- */
.plans-panel {
  background: linear-gradient(160deg, var(--green-50), #f2faf5);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}
.plans-panel h3 { font-size: 1.05rem; margin-bottom: 4px; }
.plans-panel .plans-note { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.plan-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 17px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 12px 26px rgba(7, 20, 16, 0.1);
}
.plan-card .plan-info { flex: 1; min-width: 180px; }
.plan-card .plan-name { font-weight: 700; color: var(--green-950); font-size: 0.95rem; }
.plan-card .plan-detail { font-size: 0.8rem; color: var(--ink-soft); }
.plan-card .plan-price { text-align: right; }
.plan-card .plan-price strong { font-size: 1.4rem; color: var(--green-700); font-family: "Plus Jakarta Sans", sans-serif; }
.plan-card .plan-price small { display: block; font-size: 0.75rem; color: var(--ink-soft); }
/* Plan accordion: twenty cards at once is a wall, so each metal level is a
   collapsed group and only the one with the cheapest plan opens. Each group
   scrolls on its own so the page never grows past a couple of screens. */
.plans-groups { display: flex; flex-direction: column; gap: 10px; }
.plan-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}
.plan-group > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  transition: background 0.18s ease;
}
.plan-group > summary::-webkit-details-marker { display: none; }
.plan-group > summary:hover { background: rgba(52, 211, 153, 0.07); }
.plan-group > summary:focus-visible { outline: 2px solid var(--emerald); outline-offset: -2px; }
/* The chevron is drawn here so the summary needs no markup of its own */
.plan-group > summary::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.plan-group[open] > summary::after { transform: rotate(-135deg); }
.plan-group[open] > summary { border-bottom: 1px solid var(--line); }
.plan-group > summary .metal-badge { margin-bottom: 0; }
.plan-group-count { color: var(--ink-soft); font-size: 0.82rem; }
.plan-group-from { font-weight: 700; color: var(--green-700); font-size: 0.86rem; }
.plan-list {
  max-height: 21rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px 4px;
}
.plan-list .plan-card:last-child { margin-bottom: 8px; }
/* A hovered card lifting inside a scroller would clip against its edge */
.plan-list .plan-card:hover { transform: none; }
.plan-price-missing { font-size: 0.92rem !important; color: var(--ink-soft) !important; font-weight: 600; }

.metal-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 4px;
}
.metal-badge.bronze { background: #f3e3d3; color: #7c4a12; }
.metal-badge.silver { background: #e8eaed; color: #4b5563; }
.metal-badge.gold { background: #fdf0cc; color: #8a6100; }
.metal-badge.platinum { background: #e5e7f5; color: #3b4485; }
.metal-badge.catastrophic { background: #fde2e2; color: #8a1f1f; }
.demo-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--green-950);
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
}

/* ---------- Preguntas frecuentes ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-list details:hover { border-color: rgba(52, 211, 153, 0.45); }
.faq-list details[open] {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 14px 34px rgba(7, 20, 16, 0.1), 0 0 0 4px rgba(52, 211, 153, 0.08);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 60px 19px 24px;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--navy);
  position: relative;
  font-size: 1.02rem;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { content: ""; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2.5px solid var(--green-600);
  border-bottom: 2.5px solid var(--green-600);
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, margin-top 0.3s ease;
}
.faq-list details[open] summary::after {
  transform: rotate(225deg);
  margin-top: -3px;
  border-color: var(--navy);
}
.faq-list .answer {
  padding: 0 60px 20px 24px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  border-top: 1px dashed var(--line);
  margin: 0 24px 0 0;
  padding-top: 14px;
}

/* ---------- CTA final oscuro ---------- */
.final-cta {
  position: relative;
  background: var(--night);
  color: #ffffff;
  text-align: center;
  padding: 84px 0;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(42% 52% at 30% 30%, rgba(37, 99, 168, 0.28), transparent 70%),
    radial-gradient(38% 46% at 74% 66%, rgba(240, 165, 31, 0.12), transparent 70%);
}
.final-cta .container { position: relative; }
.final-cta h2 { color: #ffffff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.final-cta p { color: var(--text-dark-soft); max-width: 38rem; margin: 0 auto 30px; }
.final-cta .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Redes sociales ---------- */
.socials { display: flex; gap: 12px; margin-top: 14px; }
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 190, 230, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.socials a:hover { background: rgba(52, 211, 153, 0.2); transform: translateY(-3px); box-shadow: var(--glow-green); }
.socials svg { width: 20px; height: 20px; }

/* ---------- Barra fija móvil ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(6, 14, 26, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(148, 190, 230, 0.2);
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.4);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  border-radius: 13px;
  padding: 13px 10px;
}
.mobile-bar .mb-whatsapp { background: #25d366; color: #073b1c; }
.mobile-bar .mb-call { background: var(--amber); color: var(--green-950); }
.mobile-bar .mb-email { background: var(--green-600); color: #ffffff; }
.mobile-bar svg { width: 20px; height: 20px; }

/* Los canales ocultos (WhatsApp mientras no haya número) deben quedar
   fuera aunque el botón traiga display:flex propio */
[hidden] { display: none !important; }

@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  .whatsapp-float { display: none; }
  body { padding-bottom: 74px; }
}

/* ---------- Botón flotante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.whatsapp-float:hover { transform: scale(1.12) rotate(6deg); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Pie ---------- */
.footer {
  background: var(--night);
  border-top: 1px solid rgba(148, 190, 230, 0.12);
  color: #94a8bd;
  padding: 58px 0 28px;
  font-size: 0.92rem;
}
.footer .rejilla-pie { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 34px; }
.footer h4 { color: #ffffff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer a { color: #ccd9e6; text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: var(--mint); }
.footer .marca-pie { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer .marca-pie svg { width: 40px; height: 40px; }
.footer .marca-pie strong { color: #fff; font-family: "Plus Jakarta Sans", sans-serif; }
.footer .legal { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; font-size: 0.8rem; color: #6e8398; line-height: 1.7; }

/* ---------- Utilidades ---------- */
.print-only { display: none; }
.hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px; height: 1px; overflow: hidden; }
.centered { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ---------- Animaciones (respetan reducción de movimiento) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.65);
    animation: anilloWa 2.4s ease-out infinite;
    pointer-events: none;
  }
  @keyframes anilloWa {
    0% { transform: scale(0.9); opacity: 1; }
    70%, 100% { transform: scale(1.55); opacity: 0; }
  }
  @keyframes saltitoWa {
    0%, 88%, 100% { transform: translateY(0) rotate(0deg); }
    90% { transform: translateY(-7px) rotate(-6deg); }
    94% { transform: translateY(0) rotate(5deg); }
    97% { transform: translateY(-3px) rotate(0deg); }
  }
  .whatsapp-float { animation: saltitoWa 7s ease-in-out infinite 3s; }
  @keyframes rebotePunto {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-5px); opacity: 1; }
  }
  .typing-dots i { animation: rebotePunto 1.1s ease-in-out infinite; }
  .typing-dots i:nth-child(2) { animation-delay: 0.15s; }
  .typing-dots i:nth-child(3) { animation-delay: 0.3s; }
  @keyframes entrarMensaje {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
  /* :not(.escribiendo) hace que la animación arranque justo cuando
     los puntos de escribiendo desaparecen */
  .chat-bubble:not(.escribiendo) .contenido-burbuja { animation: entrarMensaje 0.3s ease both; }
  .mobile-bar .mb-whatsapp { position: relative; overflow: visible; }
  .mobile-bar .mb-whatsapp::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 15px;
    border: 2px solid rgba(37, 211, 102, 0.55);
    animation: anilloWa 2.8s ease-out infinite;
    pointer-events: none;
  }
  [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0s);
  }
  [data-reveal].is-revealed { opacity: 1; transform: none; }

  @keyframes aparecerArriba {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
  }
  .hero .hero-badge { animation: aparecerArriba 0.7s ease both; }
  .hero h1 { animation: aparecerArriba 0.75s ease 0.1s both; }
  .hero .intro { animation: aparecerArriba 0.75s ease 0.22s both; }
  .hero .hero-actions { animation: aparecerArriba 0.75s ease 0.34s both; }
  .hero .stats { animation: aparecerArriba 0.75s ease 0.46s both; }
  .hero .hero-card { animation: aparecerArriba 0.9s ease 0.3s both; }

  @keyframes derivaMalla {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(3%, -2%) rotate(1.5deg); }
    66% { transform: translate(-2%, 2%) rotate(-1.5deg); }
  }
  .hero::before, .final-cta::before, .page-header::before { animation: derivaMalla 24s ease-in-out infinite; }

  @keyframes flotarOrbe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-26px) scale(1.06); }
  }
  .orb-1 { animation: flotarOrbe 9s ease-in-out infinite; }
  .orb-2 { animation: flotarOrbe 12s ease-in-out infinite 1.5s; }
  .orb-3 { animation: flotarOrbe 7s ease-in-out infinite 0.8s; }

  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
  }
  .live-dot { animation: pulse 2.2s ease-out infinite; }

  @keyframes desplazarMarquesina {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  .marquee-track { animation: desplazarMarquesina 34s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  @keyframes brilloBanner {
    from { background-position: 0% 0; }
    to { background-position: 200% 0; }
  }
  .season-banner { animation: brilloBanner 8s linear infinite; }

  @keyframes aparecerPalomita {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
  }
  .success .checkmark { animation: aparecerPalomita 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 72px; }
  .about { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer .rejilla-pie { grid-template-columns: 1fr 1fr; }
  .stats { gap: 26px; }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 14, 26, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 190, 230, 0.16);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px;
    gap: 18px;
  }
  .nav-links.is-open { display: flex; }
  .mobile-menu-button { display: block; }
  .nav-cta { display: none; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  .top-bar .idiomas { display: none; }
  .form-card { padding: 24px 18px; }
  .footer .rejilla-pie { grid-template-columns: 1fr; }
  .stat strong { font-size: 1.7rem; }
}

/* ---------- Impresión (consentimiento) ---------- */
@page { margin: 14mm; }
@media print {
  .top-bar, .navbar, .whatsapp-float, .footer, .season-banner,
  .no-print, .signature-actions, .step-indicator, .mobile-bar { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; font-size: 12px; }
  .page-header { padding: 10px 0; background: #fff; color: #111; }
  .page-header::before { display: none; }
  .page-header h1 { color: #111; }
  .form-card { box-shadow: none; border: 0; padding: 0; max-width: 100%; }
  .legal-box { max-height: none; overflow: visible; background: #fff; }
  .signature-area { border: 1px solid #333; }
}



/* ---------- Área de servicio (mapa de Estados Unidos) ---------- */
.us-map { max-width: 860px; margin: 0 auto 30px; }
.us-map svg { width: 100%; height: auto; overflow: visible; }
.us-map .st {
  fill: #e3e9f0;
  stroke: var(--white);
  stroke-width: 1.1;
  stroke-linejoin: round;
  transition: fill 0.35s ease;
}
.us-map .st.is-active {
  fill: var(--green-600);
  stroke: var(--white);
  stroke-width: 1.4;
  filter: drop-shadow(0 3px 10px rgba(27, 122, 61, 0.45));
}
.us-map:hover .st.is-active { fill: var(--green-500); }
.office-pin { fill: var(--amber); stroke: var(--white); stroke-width: 2; }
.office-halo { fill: rgba(240, 165, 31, 0.4); }

.legend {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.legend li { display: flex; align-items: center; gap: 9px; }
.legend .muestra { width: 15px; height: 15px; border-radius: 5px; flex: none; }
.legend .muestra.activa { background: var(--green-600); }
.legend .muestra.oficina { background: var(--amber); border-radius: 50%; width: 13px; height: 13px; }

.state-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}
.state-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.state-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 18px 36px rgba(7, 20, 16, 0.12);
}
.state-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.state-card .mode { color: var(--green-700); font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.state-card .mode small { display: block; font-weight: 500; color: var(--ink-soft); margin-top: 2px; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cities span {
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.8rem;
  font-weight: 600;
}
.area-note { text-align: center; color: var(--ink-soft); font-size: 0.92rem; margin-top: 26px; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes officePulse {
    0% { transform: scale(0.7); opacity: 0.85; }
    70%, 100% { transform: scale(2.3); opacity: 0; }
  }
  .office-halo { animation: officePulse 2.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
}

@media (max-width: 760px) {
  .state-details { grid-template-columns: 1fr; }
  .legend { gap: 14px; font-size: 0.84rem; }
}

/* ---------- Páginas de texto legal ---------- */
.legal-text { max-width: 760px; text-align: left; }
.legal-text h2 {
  font-size: 1.12rem;
  color: var(--green-800);
  margin: 28px 0 8px;
}
.legal-text h2:first-of-type { margin-top: 10px; }
.legal-text p { color: var(--ink-soft); margin-bottom: 10px; font-size: 0.97rem; }
.legal-text .fecha-aviso { color: var(--ink); font-size: 0.9rem; }
.footer .legal .enlaces-legales { margin-top: 8px; }
.footer .legal .enlaces-legales a { color: #ccd9e6; text-decoration: underline; }

/* ---------- Confirmaciones y siguiente paso ---------- */
.success-box {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-left: 4px solid var(--green-600);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--green-800);
  font-weight: 600;
  margin-top: 16px;
}
.next-step {
  background: linear-gradient(135deg, #fdf6e7, #fbeed2);
  border: 1px solid rgba(240, 165, 31, 0.4);
  border-radius: 16px;
  padding: 24px 22px;
  max-width: 34rem;
  margin: 26px auto 0;
}
.next-step h3 { color: var(--green-950); margin-bottom: 8px; font-size: 1.15rem; }
.next-step p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }

/* ---------- Selector de producto del cotizador ---------- */
.product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 14px 30px rgba(7, 20, 16, 0.1);
}
.product-card.is-selected {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(27, 122, 61, 0.18);
}
.product-card .product-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 16px rgba(27, 122, 61, 0.3);
}
.product-card strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--green-950);
  font-size: 1.08rem;
}
.product-card span:last-child { color: var(--ink-soft); font-size: 0.9rem; }

@media (max-width: 640px) {
  .product-cards { grid-template-columns: 1fr; }
}

/* ---------- Iconos en línea (sustituyen a los emojis) ---------- */
.mini-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: -2.5px;
}
.box-icon { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.notice-box .box-icon, .success-box .box-icon { display: inline-block; vertical-align: -4px; margin-right: 4px; }
.success-box.con-icono { display: flex; gap: 10px; align-items: flex-start; text-align: left; }
.title-icon { width: 20px; height: 20px; display: inline-block; vertical-align: -3px; }
.product-icon svg { width: 26px; height: 26px; stroke: #ffffff; }

/* Escena tenue en cada tarjeta de producto, misma idea que los servicios */
.product-card { position: relative; overflow: hidden; }
.product-card > *:not(.scene-product) { position: relative; z-index: 1; }
.scene-product {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 130px;
  height: 130px;
  opacity: 0.1;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.product-card:hover .scene-product { opacity: 0.18; transform: rotate(-3deg) scale(1.05); }
.scene-product-health { color: #1b7a3d; }
.scene-product-car { color: #2b6cb0; }
.scene-product-home { color: #b7791f; }
.scene-product-truck { color: #163a5c; }

/* ---------- Fondos sutiles por sección ---------- */
.bg-dots {
  background-image: radial-gradient(rgba(27, 122, 61, 0.09) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
}
.bg-grid {
  background-image:
    linear-gradient(rgba(22, 58, 92, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 58, 92, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.bg-waves {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='140'%3E%3Cpath d='M0 70 Q 70 20 140 70 T 280 70' fill='none' stroke='%231b7a3d' stroke-opacity='0.07' stroke-width='2'/%3E%3Cpath d='M0 110 Q 70 60 140 110 T 280 110' fill='none' stroke='%23163a5c' stroke-opacity='0.05' stroke-width='2'/%3E%3C/svg%3E");
}

/* ---------- Plan marcado como favorito ---------- */
.plan-card { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.plan-card:hover { border-color: var(--green-500); }
.plan-card.is-selected {
  border-color: var(--green-600);
  background: var(--green-50);
  box-shadow: 0 0 0 3px rgba(27, 122, 61, 0.16);
}
.plan-card:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
