:root {
  --ink: #102235;
  --muted: #5f6f7f;
  --line: #d9e4ec;
  --paper: #f7fafc;
  --white: #ffffff;
  --navy: #0b2942;
  --blue: #1769aa;
  --teal: #00a6a6;
  --gold: #d7a84d;
  --shadow: 0 24px 70px rgba(16, 34, 53, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 228, 236, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 240px;
}

.brand-logo {
  display: block;
  width: clamp(245px, 28vw, 330px);
  max-height: 86px;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: #344b5e;
  font-size: 0.94rem;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--blue);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eff7fb;
}

.language-switch button {
  min-width: 42px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #344b5e;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button.active {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(16, 34, 53, 0.1);
}

.header-action,
.button,
.quote-form button,
.login-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.header-action,
.button.primary,
.quote-form button,
.login-form button {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(23, 105, 170, 0.24);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.11);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 78px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 27, 45, 0.94) 0%, rgba(7, 27, 45, 0.78) 39%, rgba(7, 27, 45, 0.2) 72%),
    linear-gradient(180deg, rgba(7, 27, 45, 0.08), rgba(7, 27, 45, 0.32));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(650px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding: 66px 0 86px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.why h2,
.contact h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.hero-copy {
  max-width: 585px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.insurers,
.auto-quote,
.solutions,
.why,
.client-access,
.contact {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.quote-app-heading h2,
.why h2,
.contact h2 {
  font-size: clamp(2rem, 3.5vw, 3.3rem);
}

.insurer-marquee {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(16, 34, 53, 0.06);
}

.insurer-marquee::before,
.insurer-marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 80px;
  content: "";
  pointer-events: none;
}

.insurer-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--white), rgba(255, 255, 255, 0));
}

.insurer-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--white), rgba(255, 255, 255, 0));
}

.insurer-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 18px;
  padding: 18px;
  animation: insurer-scroll 34s linear infinite;
}

.insurer-marquee:hover .insurer-track {
  animation-play-state: paused;
}

.insurer-track span {
  display: grid;
  flex: 0 0 210px;
  height: 110px;
  place-items: center;
  border: 1px solid rgba(217, 228, 236, 0.9);
  border-radius: 8px;
  background: #fff;
}

.insurer-track img {
  display: block;
  width: auto;
  max-width: 176px;
  max-height: 76px;
  object-fit: contain;
}

@keyframes insurer-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .insurer-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

.solutions {
  background: var(--white);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.solution-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 166, 166, 0.12);
  color: var(--teal);
}

.icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.solution-card h3 {
  margin: 22px 0 10px;
  font-size: 1.28rem;
}

.solution-card p,
.why p,
.why-list span,
.contact p {
  color: var(--muted);
  line-height: 1.68;
}

.why {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.why-copy p {
  max-width: 610px;
  margin-top: 20px;
}

.why-list {
  display: grid;
  gap: 14px;
}

.why-list div {
  padding: 24px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(16, 34, 53, 0.07);
}

.why-list strong,
.why-list span {
  display: block;
}

.why-list strong {
  margin-bottom: 7px;
}

.client-access,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: start;
}

.client-access {
  background: linear-gradient(135deg, #0b2942 0%, #143f62 52%, #0a7c85 100%);
  color: var(--white);
}

.client-copy {
  align-self: center;
}

.client-copy h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 1.04;
}

.client-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.client-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.client-features span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: 0.9rem;
}

.login-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  color: var(--ink);
}

.login-form h3 {
  margin: 0 0 4px;
  font-size: 1.45rem;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #2c4356;
  font-size: 0.92rem;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
}

.login-form button {
  width: 100%;
  margin-top: 4px;
}

.login-form a {
  color: var(--blue);
  font-weight: 800;
  text-align: center;
}

.login-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.contact {
  background: #eaf3f7;
}

.contact-panel,
.quote-form {
  background: var(--white);
  border: 1px solid rgba(217, 228, 236, 0.85);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel {
  min-height: 100%;
  padding: clamp(28px, 5vw, 54px);
}

.contact-panel p {
  max-width: 640px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a {
  padding: 12px 14px;
  border-radius: 8px;
  background: #eff7fb;
  color: var(--blue);
  font-weight: 700;
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: #2c4356;
  font-size: 0.92rem;
  font-weight: 700;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form button {
  width: 100%;
  margin-top: 4px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .header-tools {
    margin-left: auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 2px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 27, 45, 0.95) 0%, rgba(7, 27, 45, 0.76) 58%, rgba(7, 27, 45, 0.38) 100%),
      linear-gradient(180deg, rgba(7, 27, 45, 0.15), rgba(7, 27, 45, 0.45));
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why,
  .client-access,
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 10px;
    min-height: auto;
    padding: 12px 14px;
  }

  .brand {
    width: 100%;
    min-width: auto;
    justify-content: center;
  }

  .brand-logo {
    width: min(300px, 100%);
    max-height: 82px;
  }

  .header-tools {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .header-action {
    width: 116px;
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 2px;
  }

  .main-nav a {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #eff7fb;
    text-align: center;
  }

  .hero {
    min-height: 720px;
  }

  .hero img {
    object-position: 66% center;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
    padding: 76px 0 66px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.1rem);
    line-height: 1.06;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.62;
  }

  .button {
    width: 100%;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .solution-card {
    min-height: auto;
  }

  .insurers,
  .auto-quote,
  .solutions,
  .why,
  .client-access,
  .contact {
    padding: 50px 16px;
  }

  .section-heading h2,
  .quote-app-heading h2,
  .why h2,
  .client-copy h2,
  .contact h2 {
    font-size: clamp(1.85rem, 10vw, 2.45rem);
    line-height: 1.08;
  }

  .insurer-marquee::before,
  .insurer-marquee::after {
    width: 42px;
  }

  .insurer-track {
    gap: 12px;
    padding: 14px;
    animation-duration: 28s;
  }

  .insurer-track span {
    flex-basis: 176px;
    height: 96px;
  }

  .insurer-track img {
    max-width: 145px;
    max-height: 66px;
  }

  .login-form,
  .quote-form,
  .contact-panel,
  .auto-quote-form,
  .quote-results {
    padding: 22px;
  }

  .contact-links a {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 12px;
  }
}

/* --- Formulario de contacto: honeypot y estados --- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  background: rgba(23, 105, 170, 0.08);
  color: var(--blue);
}

.form-status.success {
  background: rgba(0, 166, 166, 0.12);
  color: #077a7a;
}

.form-status.error {
  background: rgba(199, 62, 62, 0.1);
  color: #b03434;
}
