:root {
  --red: #800711;
  --red-dark: #65050d;
  --ink: #111111;
  --muted: #555555;
  --soft: #f7f7f7;
  --line: #e6e0e0;
  --line-nav: #ece8e8;
  --nav-tint: #fbf9f9;
  --blue: #2f73c7;
  --font-ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --max-page: 100vw;
  --page-gutter: clamp(0.875rem, 4vw, 3rem);
  --section-space: clamp(2.5rem, 6vw, 5.5rem);
  --radius: clamp(16px, 2.5vw, 24px);
  --shadow: 0 18px 50px rgb(17 17 17 / 8%);
  --shadow-card: 0 4px 24px rgb(17 17 17 / 6%);
  --shadow-card-hover: 0 12px 40px rgb(17 17 17 / 10%);
  --hero-gif-width: 33.333%;
  /* Tarjetas de cotización: ancho fijo, centradas en la fila */
  --quote-card-width: 19rem;
  /* Ancho de lectura / bloques centrados bajo el hero */
  --content-max: 72rem;
  --content-narrow: 52rem;
  /* Ilustraciones secciones (escalan en viewports amplias vía @media) */
  --img-quote-icon: 7.25rem;
  --img-agent: 12.5rem;
  --img-difference: 15rem;
  --section-band: #f5f3f2;
  --section-band-2: #faf8f7;
  /* Tipografía unificada en tarjetas (quote / agents / difference) */
  --card-title-size: clamp(1.465rem, 2.09vw, 1.675rem);
  --card-body-size: clamp(1.26rem, 1.54vw, 1.38rem);
  --footer-bg: #1e2226;
  --footer-text: #d1d5db;
  --footer-heading: #f9fafb;
  --footer-muted: #9ca3af;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: var(--max-page);
  width: 100%;
  overflow-x: hidden;
}

body {
  max-width: var(--max-page);
  width: 100%;
  margin: 0;
  /* Sin padding horizontal: el hero y los GIF van al borde del viewport */
  color: var(--ink);
  background: #fff;
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5;
  overflow-x: hidden;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

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

main {
  display: block;
  background: #fff;
  /* padding horizontal: lo llevan las secciones con --page-gutter */
  box-sizing: border-box;
}

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

img.hero-town {
  max-width: none;
}

.site-header {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--max-page);
  min-height: 70vh;
  min-height: 70dvh;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top, 0)) 0 0;
  background: #fff;
}

.header-top {
  position: relative;
  display: block;
  flex: 0 0 auto;
  min-height: 0;
  padding: 0.45rem var(--page-gutter) 0.55rem;
  background: linear-gradient(180deg, var(--nav-tint) 0%, #fff 100%);
}

/* Fila: desktop con nav centrado; móvil — botones izq. + hamburguesa */
.header-bar {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  width: 100%;
  min-height: 3.35rem;
}

.header-right {
  position: relative;
  z-index: 3;
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

/* Hamburguesa (visible solo en móvil) — mínima, sin caja */
.nav-toggle {
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nav-toggle:hover {
  opacity: 0.75;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.nav-toggle:focus:not(:focus-visible) {
  outline: none;
}

.nav-toggle__bar {
  display: block;
  width: 1.2rem;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-toggle__bar + .nav-toggle__bar {
  margin-top: 5px;
}

body.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-open .nav-toggle {
  opacity: 1;
}

.top-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 8px;
  min-height: 0;
  margin: 0;
  margin-left: auto;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
}

/* Header: CTA rojo, más compacto que un botón de hero de página completa */
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.28rem 0.6rem;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 999px;
  font-size: clamp(0.62rem, 0.88vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgb(128 7 17 / 12%);
  transition: background 0.2s ease;
}

.action-button:hover,
.quote-button:hover,
.pending-link:hover {
  background: var(--red-dark);
}

.login-link {
  margin-left: 0.15rem;
  padding: 0.45em 0.7em;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.login-link:hover {
  color: var(--ink);
  background: rgb(0 0 0 / 0.05);
}

.main-nav {
  --nav-link-pad-y: 0.55em;
  --nav-link-pad-x: 0.9em;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 0.5rem;
  column-gap: clamp(0.2rem, 1.2vw, 0.6rem);
  width: max-content;
  max-width: min(58rem, calc(100% - 18rem));
  margin: 0;
  padding: 0.35rem 0.5rem;
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 0;
  transform: translate(-50%, -50%);
}

.main-nav a {
  position: relative;
  display: inline-block;
  padding: var(--nav-link-pad-y) var(--nav-link-pad-x);
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.35em;
  width: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.22s ease;
  pointer-events: none;
  opacity: 0.9;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--red);
  background: rgb(128 7 17 / 0.06);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: calc(100% - 1.2em);
}

.main-nav a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.main-nav a:focus:not(:focus-visible) {
  outline: none;
}

.hero {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  background: #fff;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding: clamp(0.75rem, 2.5vh, 2.5rem) var(--page-gutter) clamp(5.5rem, 18vh, 12rem);
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(38rem, 100%);
  max-width: min(620px, 92vw);
  height: auto;
  margin: 0 auto clamp(0.5rem, 1.5vh, 1.25rem);
}

.hero-tagline {
  position: relative;
  z-index: 2;
  max-width: min(45rem, 100%);
  margin: 0 auto clamp(1rem, 2.5vh, 1.75rem);
  padding: 0 var(--page-gutter);
  font-size: clamp(1.15rem, calc(0.4rem + 2.5vw), 2.75rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  hyphens: auto;
  overflow-wrap: break-word;
}

.quote-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: max(44px, 2.75rem);
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 700;
  box-shadow: 0 14px 30px rgb(128 7 17 / 18%);
}

.hero-town {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  box-sizing: border-box;
  width: var(--hero-gif-width);
  max-width: var(--hero-gif-width);
  min-width: 0;
  height: 100%;
  max-height: none;
  margin: 0;
  opacity: 0.8;
  pointer-events: none;
  /* Rellena toda la franja 33% × alto del hero (recorta ligeramente si hace falta) */
  object-fit: cover;
  border: 0;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  clip-path: inset(0 0 0.5px 0);
  -webkit-clip-path: inset(0 0 0.5px 0);
}

.hero-town-left {
  left: 0;
  right: auto;
  object-position: left center;
}

.hero-town-right {
  right: 0;
  left: auto;
  object-position: right center;
}

/* Móvil: un solo GIF a pantalla completa en el hero (el de la izquierda) */
@media (max-width: 900px) {
  .hero-town-right {
    display: none;
  }

  .hero-town-left {
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    object-position: center center;
  }
}

.products-section {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--max-page);
  margin: 0;
  padding: var(--section-space) var(--page-gutter) 0;
  background: #fff;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.quote-card {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  width: min(100%, var(--quote-card-width));
  max-width: var(--quote-card-width);
  min-height: 0;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.1rem, 2.4vw, 2.1rem) clamp(1.25rem, 2.5vw, 2.1rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.quote-icon {
  display: flex;
  width: min(var(--img-quote-icon), 30vw);
  height: min(var(--img-quote-icon), 30vw);
  margin-bottom: clamp(0.85rem, 1.6vw, 1.6rem);
  align-items: center;
  justify-content: center;
}

.quote-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.quote-card--homeowners .quote-coming-soon-tag {
  position: absolute;
  top: clamp(0.55rem, 1.4vw, 0.85rem);
  right: clamp(0.55rem, 1.4vw, 0.85rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-family: inherit;
  font-size: clamp(0.62rem, 0.95vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgb(128 7 17 / 22%);
  pointer-events: none;
}

.quote-card h2 {
  width: auto;
  margin: 0 0 12px;
  padding: 0;
  font-size: var(--card-title-size);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.quote-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--card-body-size);
  line-height: 1.5;
}

.pending-link {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 0 clamp(0.75rem, 2vw, 1.1rem);
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.agents-section,
.difference-section {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--max-page);
  margin: 0;
  padding: var(--section-space) var(--page-gutter) 0;
}

/* Bandas alternas para separar secciones con calma */


.difference-section {
  padding-bottom: var(--section-space);
  background: #fff;
}

.agents-section h1,
.difference-section h1 {
  max-width: var(--content-max);
  margin: 0 auto 2.75rem;
  text-align: center;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.agents-section h1::after,
.difference-section h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 1.1rem auto 0;
  background: var(--red);
  border-radius: 999px;
  opacity: 0.9;
}

.agent-grid {
  display: grid;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-bottom: 0.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.agent-grid article {
  padding: clamp(1.35rem, 2.2vw, 1.75rem) clamp(1.1rem, 2vw, 1.5rem) clamp(1.5rem, 2.2vw, 1.9rem);
  text-align: center;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.2s ease;
}

.agent-grid article:hover {
  border-color: rgb(128 7 17 / 0.15);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.agent-grid img {
  width: 100%;
  max-width: var(--img-agent);
  margin: 0 auto 1.35rem;
  aspect-ratio: 1.1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius) - 4px);
  padding: 0.5rem;
  box-sizing: border-box;
}

.agent-grid h3 {
  margin: 0 0 0.65rem;
  font-size: var(--card-title-size);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.agent-grid p {
  max-width: 34ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: var(--card-body-size);
  line-height: 1.5;
}

.difference-section h1 {
  margin-bottom: 0;
}

.difference-section .difference-card {
  max-width: var(--content-narrow);
}

.difference-card {
  display: grid;
  grid-template-columns: minmax(0, var(--img-difference)) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: center;
  min-height: 0;
  margin: 0 auto clamp(1.5rem, 2.5vw, 2rem);
  padding: clamp(1.5rem, 2.8vw, 2.15rem) clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgb(0 0 0 / 0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition:
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}

.difference-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgb(128 7 17 / 0.12);
}

.difference-card-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--img-difference));
}

.difference-card img {
  width: min(100%, var(--img-difference));
  max-width: var(--img-difference);
  height: auto;
  margin: 0 auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.06);
  padding: 0.6rem;
  box-sizing: border-box;
}

.difference-card div {
  text-align: left;
}

.difference-card h2 {
  margin: 0 0 0.6rem;
  font-size: var(--card-title-size);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.difference-card p {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: var(--card-body-size);
  line-height: 1.5;
}

.contact-section {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--max-page);
  margin: 0;
  padding: var(--section-space) var(--page-gutter) var(--section-space);
}

.contact-kicker {
  max-width: 38rem;
  margin: 0 auto 2.75rem;
  text-align: center;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.contact-kicker::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 1rem auto 0;
  background: var(--red);
  border-radius: 999px;
  opacity: 0.85;
}

.contact-grid {
  display: grid;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}

.contact-grid:has(> .contact-info:only-child) {
  grid-template-columns: 1fr;
  max-width: min(40rem, 100%);
}

.contact-info,
.message-form {
  min-width: 0;
  padding: clamp(1.35rem, 2.5vw, 1.9rem);
  background: #fff;
  border: 1px solid rgb(0 0 0 / 0.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.contact-info h2,
.message-form h2 {
  margin: 0 0 1.4rem;
  padding-bottom: 0.75rem;
  text-align: left;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  line-height: 0;
}

.contact-line .contact-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-info iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: min(50vh, 22rem);
  min-height: 12rem;
  margin-top: 14px;
  border: 0;
  border-radius: 18px;
}

.message-form {
  display: flex;
  flex-direction: column;
}

.message-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.message-form input,
.message-form select,
.message-form textarea {
  width: 100%;
  min-height: 48px;
  margin-bottom: 12px;
  padding: 0 16px;
  color: var(--ink);
  background: #fafbfc;
  border: 1px solid #d8e0e8;
  border-radius: 10px;
  font: 15px var(--font-ui);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.message-form input:hover,
.message-form select:hover,
.message-form textarea:hover {
  border-color: #b8c5d3;
  background: #fff;
}

.message-form input:focus,
.message-form select:focus,
.message-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(128 7 17 / 0.12);
}

.message-form textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

.message-form button {
  min-height: 52px;
  margin-top: 0.25rem;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgb(128 7 17 / 0.25);
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.message-form button:hover {
  background: var(--red-dark);
  box-shadow: 0 8px 28px rgb(128 7 17 / 0.3);
}

.message-form button:active {
  transform: translateY(1px);
}

.site-footer-wrap {
  width: 100%;
  background: var(--footer-bg);
}

.site-footer {
  display: grid;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 3.5rem) var(--page-gutter) clamp(2rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 18rem) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  box-sizing: border-box;
  width: 100%;
  color: var(--footer-text);
}

.footer-brand img {
  width: min(100%, 16rem);
  height: auto;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-brand p {
  max-width: 18rem;
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 28px 36px;
  align-content: start;
}

.footer-links h3,
.footer-contact h2 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-heading);
}

.footer-links a,
.footer-contact a {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--footer-text);
  font-size: 0.9rem;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-contact h2 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--footer-heading);
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--footer-text);
}

.footer-contact .contact-icon {
  width: 1.3rem;
  height: 1.3rem;
  opacity: 0.95;
}

@media (max-width: 1024px) {
  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 700px) {
  .product-grid {
    flex-direction: column;
    align-items: center;
  }

}

@media (max-width: 900px) {
  .header-top {
    z-index: 30;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .header-bar {
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  .header-right {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .top-actions {
    margin-left: 0;
    max-width: calc(100% - 3.25rem);
    justify-content: flex-start;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 4;
    flex: none;
    order: 0;
    max-width: 100%;
    width: 100%;
    min-height: 0;
    margin: 0.12rem 0 0;
    padding: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    row-gap: 0;
    column-gap: 0;
    transform: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--line-nav);
    border-radius: 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    -webkit-overflow-scrolling: touch;
    transition:
      max-height 0.35s ease,
      padding 0.3s ease,
      opacity 0.25s ease,
      visibility 0.3s;
  }

  .main-nav a {
    display: block;
    padding: 0.9em 1.1em;
    border-radius: 0;
    border-top: 1px solid var(--line-nav);
  }

  .main-nav a:first-child {
    border-top: 0;
  }

  .main-nav a::after {
    display: none;
  }

  body.nav-open .main-nav {
    max-height: min(24rem, 80vh);
    padding: 0.2rem 0 0.25rem;
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
  }

  body.nav-open {
    overflow: hidden;
  }

  body:not(.nav-open) .main-nav a {
    pointer-events: none;
  }

  .action-button {
    min-height: 1.65rem;
    padding: 0.24rem 0.4rem;
    font-size: clamp(0.56rem, 2.4vw, 0.64rem);
    box-shadow: 0 2px 8px rgb(128 7 17 / 10%);
  }

  .hero-content {
    padding-bottom: clamp(6rem, 16vh, 10rem);
  }

  .hero-logo {
    width: min(470px, 88vw);
    margin-bottom: 35px;
  }

  .agents-section h1,
  .difference-section h1 {
    font-size: 38px;
  }

  .agent-grid,
  .contact-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .agent-grid img {
    max-width: min(20rem, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .difference-card,
  .difference-card-reverse {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .difference-card div {
    text-align: center;
  }

  .difference-card p {
    margin: 0 auto;
  }

  .site-footer {
    padding: 42px 28px;
  }
}

@media (max-width: 580px) {
  .hero-content {
    padding-top: 1rem;
    padding-bottom: clamp(5.5rem, 22vw, 9rem);
  }

  .hero-tagline {
    font-size: 30px;
  }

  .products-section {
    padding-top: 40px;
  }

  .agents-section,
  .difference-section,
  .contact-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .agents-section h1,
  .difference-section h1 {
    font-size: 32px;
  }

  .contact-kicker {
    font-size: 25px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-top {
    padding-right: var(--page-gutter);
    padding-left: var(--page-gutter);
  }
}

/* 901px–1400px: mismos CTA rojos, talla un poco más ajustada */
@media (min-width: 901px) and (max-width: 1399.98px) {
  .top-actions {
    gap: 5px 6px;
  }

  .action-button {
    min-height: 1.8rem;
    padding: 0.25rem 0.55rem;
    font-size: clamp(0.6rem, 1.02vw, 0.72rem);
  }
}

/* Pantallas anchas: más uso horizontal (hero no se toca) */
@media (min-width: 1400px) {
  :root {
    --content-max: 92rem;
    --content-narrow: 66rem;
    --quote-card-width: 22.5rem;
    --img-quote-icon: 8.25rem;
    --img-agent: 14rem;
    --img-difference: 17.5rem;
    --card-title-size: clamp(1.675rem, 1.6vw, 2.09rem);
    --card-body-size: clamp(1.42rem, 1.33vw, 1.56rem);
  }

  .product-grid {
    gap: clamp(1.5rem, 2.5vw, 2.75rem);
  }

  .agent-grid {
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
  }

  .contact-kicker {
    max-width: 50rem;
  }

  .contact-grid {
    gap: clamp(1.75rem, 2.5vw, 2.75rem);
  }
}

@media (min-width: 1600px) {
  :root {
    --content-max: 100rem;
    --content-narrow: 70rem;
    --quote-card-width: 24rem;
    --img-quote-icon: 9rem;
    --img-agent: 15.5rem;
    --img-difference: 19rem;
    --card-title-size: clamp(1.81rem, 1.54vw, 2.23rem);
    --card-body-size: clamp(1.51rem, 1.26vw, 1.67rem);
  }

  .contact-kicker {
    max-width: 56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .main-nav a,
  .main-nav a::after,
  .login-link {
    transition: none;
  }

  .agent-grid article:hover,
  .difference-card:hover {
    transform: none;
  }

  .main-nav {
    transition: none;
  }

  .nav-toggle__bar {
    transition: none;
  }
}

/* Legal pages (Privacy Policy, Terms, Accessibility Statement) */
body.page-legal .site-header {
  min-height: auto;
}

.legal-hero {
  padding: clamp(1.25rem, 3vw, 2rem) var(--page-gutter) clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--section-band) 100%);
  border-bottom: 1px solid var(--line);
}

.legal-hero__logo {
  display: block;
  width: min(14rem, 55vw);
  height: auto;
  margin: 0 auto 1rem;
}

.legal-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3.8vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-hero__subtitle {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  color: var(--muted);
}

.legal-back {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  transition: color 0.2s ease;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--red-dark);
}

.legal-back:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 4px;
}

.legal-content {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) var(--page-gutter) clamp(3rem, 8vw, 5rem);
}

.legal-content > p.lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.02rem, 1.8vw, 1.12rem);
  line-height: 1.65;
  color: var(--ink);
}

.legal-content h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.legal-content h3 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-contact-block {
  margin: 0.75rem 0 1.25rem;
  font-style: normal;
  line-height: 1.7;
  color: var(--muted);
}

.legal-placeholder {
  font-style: italic;
}

.legal-content p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.legal-content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  line-height: 1.65;
  color: var(--muted);
}

.legal-content li + li {
  margin-top: 0.4rem;
}

.legal-content .legal-list-plain {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.legal-content .legal-list-plain li {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 0;
  line-height: 1.65;
  color: var(--muted);
}

.legal-content .legal-list-plain li:last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--red-dark);
}

.legal-content a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}
