:root {
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --brand-soft: #ecfdf5;
  --brand-mid: #14b8a6;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f4faf9;
  --shadow: 0 18px 40px rgba(15, 118, 110, 0.12);
  --radius: 1rem;
  --font: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-dark);
}

/* ===== Navbar ===== */
.site-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 118, 110, 0.08);
  transition: box-shadow 0.25s ease;
}

.site-nav.is-scrolled {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-lockup:hover {
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-name span {
  color: var(--brand);
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--muted);
  padding: 0.55rem 0.85rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: var(--brand-dark);
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border: 0;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand) 100%);
}

.btn-accent {
  background: var(--accent);
  border: 0;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
}

.btn-accent:hover,
.btn-accent:focus {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  border: 1.5px solid rgba(15, 118, 110, 0.25);
  color: var(--brand-dark);
  background: transparent;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
}

.btn-ghost:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: var(--brand);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 7.5rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(20, 184, 166, 0.18), transparent 42%),
    radial-gradient(circle at 12% 80%, rgba(234, 88, 12, 0.1), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 55%, transparent);
  pointer-events: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero-title .accent {
  color: var(--brand);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-visual {
  position: relative;
  animation: floatY 5.5s ease-in-out infinite;
}

.hero-visual img,
.hero-visual svg {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-photo-wrap {
  position: relative;
}

.hero-photo-wrap > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-float-card {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 230px;
}

.hero-float-card i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.hero-float-card strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
}

.hero-float-card span {
  font-size: 0.75rem;
  color: var(--muted);
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.trust-strip {
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}

.trust-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  height: 100%;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.trust-item i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
}

.trust-item span {
  font-size: 0.82rem;
  color: var(--muted);
}

.photo-split {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-split img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0.35rem 0.45rem 0;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  min-height: 340px;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.15rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.mosaic img:first-child {
  grid-row: 1 / span 2;
  min-height: 340px;
}

@media (max-width: 767.98px) {
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .mosaic img:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 200px;
    max-height: 220px;
  }

  .mosaic img {
    min-height: 120px;
    max-height: 140px;
  }

  .hero-float-card {
    position: static;
    margin-top: 0.85rem;
    max-width: none;
  }
}

.media-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 210px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-card:hover img {
  transform: scale(1.05);
}

.media-card .overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.15rem;
  background: linear-gradient(transparent, rgba(6, 47, 44, 0.88));
}

.media-card h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
  margin: 0 0 0.25rem;
}

.media-card p {
  margin: 0;
  color: #ccfbf1;
  font-size: 0.86rem;
}

.coverage-icon i {
  font-size: 1.25rem;
}

.testimonial-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.12), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(234, 88, 12, 0.08), transparent 35%),
    #fff;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.35rem;
  height: 100%;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  position: relative;
}

.testimonial-card .quote-ico {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  color: var(--brand);
  opacity: 0.2;
  font-size: 1.6rem;
}

.testimonial-stars {
  color: #f59e0b;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.testimonial-card blockquote {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-person img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25);
}

.testimonial-person strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
}

.testimonial-person span {
  font-size: 0.78rem;
  color: var(--muted);
}

.cta-band {
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  color: #fff;
  min-height: 240px;
  display: flex;
  align-items: center;
}

.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band .cta-inner {
  position: relative;
  z-index: 1;
  padding: 2.25rem 1.75rem;
  background: linear-gradient(90deg, rgba(6, 47, 44, 0.92) 0%, rgba(6, 47, 44, 0.55) 55%, rgba(6, 47, 44, 0.25) 100%);
  width: 100%;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  padding: 0.9rem 0.5rem;
}

.stat-box strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
}

.stat-box span {
  font-size: 0.75rem;
  opacity: 0.85;
}

@media (max-width: 575.98px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Sections ===== */
.section {
  padding: 4.5rem 0;
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-title .mark {
  color: var(--brand);
}

.section-subtitle {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 2rem;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.surface-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(15, 118, 110, 0.25);
}

.insurer-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  padding: 1.25rem;
  gap: 0.85rem;
}

.insurer-card:hover {
  color: inherit;
}

.insurer-logo {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 0.85rem;
  padding: 0.55rem;
}

.insurer-logo img {
  max-height: 36px;
  width: auto;
  object-fit: contain;
}

.insurer-card h3 {
  font-size: 1.02rem;
  font-weight: 750;
  margin: 0;
}

.insurer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.insurer-card .go {
  margin-top: auto;
  font-weight: 700;
  color: var(--brand);
  font-size: 0.9rem;
}

.note-box {
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.coverage-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 0.85rem;
}

.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps-list li {
  position: relative;
  padding: 1.1rem 1.1rem 1.1rem 4.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.alert-warn {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.compare-table th {
  background: var(--brand-dark);
  color: #fff;
  font-weight: 700;
}

.compare-table td,
.compare-table th {
  vertical-align: middle;
}

.legal-page {
  padding: 7rem 0 4rem;
}

.legal-page h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 750;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

/* ===== Footer ===== */
.site-footer {
  background: #062f2c;
  color: #d1fae5;
  padding: 3.5rem 0 1.75rem;
}

.site-footer a {
  color: #a7f3d0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 750;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.55rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.footer-brand:hover {
  color: #fff;
}

.footer-copy {
  border-top: 1px solid rgba(167, 243, 208, 0.18);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: #99f6e4;
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  background: rgba(6, 47, 44, 0.96);
  color: #e2e8f0;
  border-radius: 1.1rem;
  padding: 1rem 1.15rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  display: none;
  backdrop-filter: blur(10px);
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.35s ease;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookie-banner a {
  color: #5eead4;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

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

/* ===== Help FAB + chat panel ===== */
.help-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1070;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c2410c);
  color: #fff;
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.35);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}

.help-fab:hover {
  transform: scale(1.05);
  color: #fff;
}

.help-fab.has-pulse::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  top: 4px;
  right: 4px;
}

/* Globo “¿Necesitas ayuda?” */
.help-teaser {
  position: fixed;
  right: 5.1rem;
  bottom: 1.35rem;
  z-index: 1065;
  width: min(250px, calc(100vw - 5.8rem));
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 1.1rem;
  padding: 0.85rem 1rem 0.9rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.help-teaser.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: teaserPop 0.45s ease;
}

.help-teaser::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 1.35rem;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 1px solid rgba(15, 118, 110, 0.18);
  border-bottom: 1px solid rgba(15, 118, 110, 0.18);
  transform: rotate(-45deg);
}

.help-teaser-title {
  margin: 0 1.2rem 0.2rem 0;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--brand-dark);
}

.help-teaser-text {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.help-teaser-cta {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #c2410c);
  color: #fff;
  font-weight: 750;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  width: 100%;
}

.help-teaser-cta:hover {
  filter: brightness(1.05);
}

.help-teaser-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
}

.help-panel.open ~ .help-teaser,
body:has(.help-panel.open) .help-teaser {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@keyframes teaserPop {
  0% { transform: translateY(12px) scale(0.92); }
  70% { transform: translateY(-3px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

body.cookies-open .help-teaser {
  bottom: 9.85rem;
}

@media (min-width: 768px) {
  body.cookies-open .help-teaser {
    bottom: 6.85rem;
  }
}

@media (max-width: 575.98px) {
  .help-teaser {
    right: 4.7rem;
    bottom: 1.15rem;
    width: min(210px, calc(100vw - 5.4rem));
  }
}

.help-panel {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  width: min(400px, calc(100vw - 2rem));
  height: min(72vh, 620px);
  max-height: min(72vh, 620px);
  z-index: 1070;
  background: #f3faf8;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.help-panel.open {
  display: flex;
  animation: slideUp 0.28s ease;
}

.help-panel-header {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

.help-header-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.help-header-user img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}

.help-header-user h2 {
  font-size: 0.95rem;
  margin: 0;
  font-weight: 750;
  line-height: 1.2;
}

.help-header-user small {
  display: block;
  opacity: 0.85;
  font-size: 0.72rem;
  font-weight: 500;
}

.help-panel-body {
  overflow-y: auto;
  padding: 0.9rem 0.85rem 1rem;
  flex: 1;
  scroll-behavior: smooth;
}

.help-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  max-width: 100%;
  animation: chatIn 0.28s ease;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #fff;
  object-fit: contain;
  padding: 2px;
  border: 1px solid var(--line);
}

.chat-bubble {
  max-width: 86%;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.chat-row.bot .chat-bubble {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

.chat-row.user .chat-bubble {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-bottom-right-radius: 6px;
}

.chat-bubble p {
  margin: 0 0 0.45rem;
}

.chat-bubble p:last-child {
  margin-bottom: 0;
}

.chat-bubble strong {
  font-weight: 750;
}

.chat-visual {
  display: block;
  width: 100%;
  border-radius: 12px;
  margin: 0.45rem 0 0.55rem;
  border: 1px solid var(--line);
  background: #ecfdf5;
}

.chat-steps {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.chat-steps li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  font-size: 0.84rem;
}

.chat-steps .step-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.78rem;
  border: 1px solid rgba(15, 118, 110, 0.15);
}

.chat-insight {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  font-size: 0.82rem;
  color: #9a3412;
}

.chat-insight svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.chat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
  padding-left: 2.1rem;
  animation: chatIn 0.28s ease;
}

.chat-choice {
  border: 1.5px solid rgba(15, 118, 110, 0.28);
  background: #fff;
  color: var(--brand-dark);
  font-weight: 650;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  text-align: left;
  line-height: 1.25;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.chat-choice:hover,
.chat-choice:focus {
  background: var(--brand-soft);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.chat-choice:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.chat-insurers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.chat-insurer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.chat-insurer:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.chat-insurer img {
  height: 24px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
}

.chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-left-radius: 6px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-mid);
  animation: typingDot 1s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

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

.help-panel-footer {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  background: #fff;
  flex-shrink: 0;
  display: grid;
  gap: 0.45rem;
}

.help-panel-footer .hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #25d366;
  color: #fff !important;
  font-weight: 750;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  text-decoration: none !important;
  font-size: 0.9rem;
}

.wa-btn:hover {
  background: #1ebe57;
  color: #fff !important;
}

.help-restart {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem;
}

.help-restart:hover {
  text-decoration: underline;
}

/* Keep help button above cookie banner on small screens */
body.cookies-open .help-fab {
  bottom: 9.5rem;
}

body.cookies-open .help-panel {
  bottom: 13.5rem;
}

@media (min-width: 768px) {
  .cookie-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(920px, calc(100vw - 2rem));
  }

  .cookie-banner .cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .cookie-actions {
    margin-top: 0;
    flex-shrink: 0;
  }

  body.cookies-open .help-fab {
    bottom: 6.5rem;
  }

  body.cookies-open .help-panel {
    bottom: 10.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding-top: 6.25rem;
  }

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

  .section {
    padding: 3.25rem 0;
  }

  .help-fab {
    width: 54px;
    height: 54px;
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .cookie-banner {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.9rem;
  }

  .cookie-actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual,
  .cookie-banner.show,
  .help-panel.open,
  .chat-row,
  .chat-choices {
    animation: none;
  }

  .chat-typing span {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .help-panel-body {
    scroll-behavior: auto;
  }
}

/* ===== Formulario descarga (2 columnas) ===== */
.soat-download-panel {
  background:
    radial-gradient(circle at 12% 20%, rgba(20, 184, 166, 0.12), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(234, 88, 12, 0.08), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, var(--brand-soft) 100%);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: calc(var(--radius) + 0.35rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.08);
}

.soat-download-panel .section-title {
  text-align: left;
  margin-bottom: 0.75rem;
}

.soat-download-lead {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 0 1.75rem;
  font-size: 1.02rem;
}

.soat-inline-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  padding: 1.55rem 1.45rem 1.35rem;
}

.soat-form-head {
  margin-bottom: 1.15rem;
}

.soat-form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.soat-form-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.soat-form-note {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.soat-inline-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  max-width: none;
}

.soat-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 1rem;
}

.soat-step-num {
  flex: 0 0 2.15rem;
  width: 2.15rem;
  height: 2.15rem;
  min-width: 2.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.92rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.22);
}

.soat-step strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.soat-step > div span {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 991.98px) {
  .soat-download-panel .section-title {
    text-align: center;
  }

  .soat-download-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* ===== Modal Descargar seguro ===== */
body.soat-modal-open {
  overflow: hidden;
}

.soat-modal[hidden] {
  display: none !important;
}

.soat-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.soat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.soat-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  background: var(--surface);
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  animation: soatModalIn 0.22s ease-out;
}

@keyframes soatModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.soat-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.soat-modal-close:hover {
  background: rgba(15, 118, 110, 0.18);
}

.soat-modal-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.soat-modal-dialog h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.soat-modal-dialog > p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.soat-field {
  display: block;
  margin-bottom: 0.9rem;
}

.soat-field span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.35rem;
}

.soat-field input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.75rem 0.95rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.soat-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.soat-submit {
  width: 100%;
  background: #25d366 !important;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}

.soat-submit:hover,
.soat-submit:focus {
  background: #1ebe57 !important;
}
