:root {
  --navy: #1a1e39;
  --navy-light: #242d4e;
  --orange: #d97a2e;
  --gold: #e8a33d;
  --cream: #faf8f4;
  --gray-bg: #eef0f3;
  --text-dark: #141b28;
  --text-muted: #5a6472;
  --border: #e2e5ea;
  --radius: 12px;
  --max-width: 1180px;
  --ease: cubic-bezier(.25, .8, .25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

svg {
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.gold-text {
  background: linear-gradient(100deg, var(--orange), var(--gold) 60%, var(--orange));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s ease-in-out infinite;
}

@keyframes shine {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform 0.35s var(--ease);
}

.logo-img:hover {
  transform: scale(1.04);
}

@media (max-width: 560px) {
  .logo-img {
    height: 42px;
  }
}

nav ul {
  display: flex;
  gap: 32px;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

nav a.active::after,
nav a:hover::after {
  transform: scaleX(1);
}

nav a.active,
nav a:hover {
  color: var(--orange);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
  transition: all 0.3s var(--ease);
}

/* ICONS */
.icon {
  display: inline-flex;
}

.icon svg {
  width: 18px;
  height: 18px;
}

/* BUTTONS */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 130%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(217, 122, 46, 0.35);
}

.btn-outline-dark {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-3px);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}

/* HERO */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 90px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 520px 380px at 12% 15%, rgba(217, 122, 46, 0.14), transparent 70%),
    radial-gradient(ellipse 560px 400px at 88% 65%, rgba(232, 163, 61, 0.10), transparent 70%);
  animation: driftGlow 14s ease-in-out infinite alternate;
}

@keyframes driftGlow {
  0% {
    opacity: 0.7;
    transform: translate(0, 0);
  }

  100% {
    opacity: 1;
    transform: translate(2%, -2%);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: 0;
  background-image: url("img/carreno-icon-color-tile.png");
  background-repeat: repeat;
  background-size: 132px 152px;
  opacity: 0.07;
  animation: logoDrift 90s linear infinite;
  pointer-events: none;
}

@keyframes logoDrift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 528px 608px;
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero p.lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-bottom: 24px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 163, 61, 0.3);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  margin-bottom: 30px;
  box-shadow: 0 0 0 rgba(232, 163, 61, 0.4);
  animation: badgePulse 3.5s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 163, 61, 0.15);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(232, 163, 61, 0);
  }
}

.trust-badge .stars {
  color: var(--gold);
  letter-spacing: 1px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
  flex-wrap: wrap;
}

.stat-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.9rem;
  color: var(--gold);
  font-weight: 700;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.widget {
  background: #fff;
  color: var(--text-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ease);
}

.widget:hover {
  transform: translateY(-6px);
}

.widget-head {
  background: var(--navy-light);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.widget-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  margin-right: 8px;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.widget-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}

.widget-row .label {
  color: var(--text-muted);
}

.widget-row .value.ok {
  color: #2e7d4f;
  font-weight: 600;
}

.widget-row .value.mono {
  font-family: "Courier New", monospace;
}

.widget-footnote {
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  background: var(--gray-bg);
}

.widget-disclaimer {
  font-size: 0.72rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
}

section {
  padding: 84px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 2.1rem;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.bg-gray {
  background: var(--gray-bg);
}

.bg-navy {
  background: var(--navy);
  color: #fff;
}

.bg-navy .eyebrow {
  color: var(--gold);
}

.bg-navy .eyebrow::before {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(20, 27, 40, 0.1);
  border-color: rgba(217, 122, 46, 0.35);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(217, 122, 46, 0.12), rgba(232, 163, 61, 0.12));
  color: var(--orange);
  margin-bottom: 18px;
}

.card-num {
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.card ul li {
  font-size: 0.88rem;
  color: var(--text-dark);
  padding: 5px 0 5px 18px;
  position: relative;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.seguros-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.badge-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.badge {
  padding: 9px 20px;
  border: 1px solid rgba(232, 163, 61, 0.4);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
}

.badge:hover {
  background: rgba(232, 163, 61, 0.1);
}

.tag {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 0.88rem;
  transition: all 0.3s var(--ease);
}

.tag:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.why-list li {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  font-size: 0.95rem;
}

.why-list .check {
  color: var(--gold);
  font-weight: 700;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
}

.pill:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 32px;
}

.why-col {
  border-top: 2px solid var(--orange);
  padding-top: 18px;
  transition: border-color 0.3s var(--ease);
}

.why-col:hover {
  border-color: var(--gold);
}

.why-col h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.why-col p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* GALERÍA / CARRUSEL */
.gallery-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(20, 27, 40, 0.15);
}

.gallery-track {
  display: flex;
  transition: transform 0.6s var(--ease);
}

.gallery-slide {
  min-width: 100%;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 8s linear;
}

.gallery-wrap:hover .gallery-slide img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  padding: 46px 30px 22px;
  font-size: 0.95rem;
  font-family: "Fraunces", Georgia, serif;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all 0.3s var(--ease);
  z-index: 5;
}

.gallery-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.gallery-arrow.prev {
  left: 18px;
}

.gallery-arrow.next {
  right: 18px;
}

.gallery-dots {
  position: absolute;
  bottom: 18px;
  right: 26px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--ease);
}

.gallery-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 5px;
}

@media (max-width: 600px) {
  .gallery-slide img {
    height: 300px;
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
  }
}

.testi-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.google-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.google-mini .stars {
  color: var(--gold);
}

.google-mini a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
}

.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(20, 27, 40, 0.1);
}

.testi-card::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 18px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 3.2rem;
  color: rgba(217, 122, 46, 0.15);
  line-height: 1;
}

.stars {
  color: var(--orange);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.testi-card p.quote {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  position: relative;
}

.testi-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.testi-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-size: 1.02rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: color 0.3s var(--ease);
}

.faq-question:hover {
  color: var(--orange);
}

.faq-question .icon-plus {
  font-size: 1.3rem;
  color: var(--orange);
  transition: transform 0.35s var(--ease);
}

.faq-item.open .faq-question .icon-plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  color: var(--text-muted);
  font-size: 0.94rem;
}

.faq-answer-inner {
  padding-bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(20, 27, 40, 0.12);
}

.contact-left {
  background: var(--navy);
  color: #fff;
  padding: 46px;
}

.contact-left .eyebrow {
  color: var(--gold);
}

.contact-left .eyebrow::before {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.contact-left h2 {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.contact-left p.lead {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.09);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Opciones del desplegable legibles (texto oscuro sobre fondo claro) */
.form-group select option {
  color: var(--text-dark);
  background: #fff;
}

.contact-right {
  background: var(--gray-bg);
  padding: 46px;
}

.contact-right h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}

.hours-row:last-of-type {
  border: none;
}

.hours-row .time {
  font-family: "Courier New", monospace;
}

.contact-info-mini {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.contact-info-mini .label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.map-embed {
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-embed iframe {
  width: 100%;
  height: 200px;
  border: 0;
  display: block;
  filter: grayscale(0.15);
}

footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 44px 0 26px;
  text-align: center;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  margin: 0 auto;
}

.footer-social {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}

.footer-social a:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-3px);
}

.footer-legal {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal a {
  transition: color 0.3s var(--ease);
}

.footer-legal a:hover {
  color: var(--orange);
}

.footer-copy {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  background: linear-gradient(135deg, #25d366, #1ea952);
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: floatBob 3s ease-in-out infinite;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55);
}

@keyframes floatBob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.wa-float svg {
  width: 26px;
  height: 26px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.grid-4 .card.reveal:nth-child(1) {
  transition-delay: 0s;
}

.grid-4 .card.reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.grid-4 .card.reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.grid-4 .card.reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.testi-grid .testi-card.reveal:nth-child(1) {
  transition-delay: 0s;
}

.testi-grid .testi-card.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.testi-grid .testi-card.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

@media (max-width: 900px) {
  nav ul {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .seguros-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.1rem;
  }
}

@media (max-width: 900px) {
  nav.mobile-open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 560px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 28px;
  }
}

/* ANCLAS bajo el header fijo */
section[id] {
  scroll-margin-top: 88px;
}

/* HEADER: sombra al hacer scroll */
header.scrolled {
  box-shadow: 0 6px 24px rgba(20, 27, 40, 0.09);
}

/* BURGER -> X animado */
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Accesibilidad de foco */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* BOTÓN VOLVER ARRIBA */
.to-top {
  position: fixed;
  bottom: 26px;
  right: 96px;
  z-index: 89;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(20, 27, 40, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s var(--ease);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--navy-light);
  transform: translateY(-3px);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 560px) {
  .to-top {
    right: 26px;
    bottom: 92px;
  }
}

/* MENSAJE DE ÉXITO DEL FORMULARIO */
.form-success {
  display: none;
  align-items: flex-start;
  gap: 12px;
  background: rgba(46, 125, 79, 0.14);
  border: 1px solid rgba(46, 125, 79, 0.4);
  color: #eaf6ee;
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-success.show {
  display: flex;
  animation: fadeUp 0.4s var(--ease);
}

.form-success svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #6fdc98;
  margin-top: 1px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPETO A prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== CONSENTIMIENTO RGPD DEL FORMULARIO ===== */
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
  margin: 4px 0 18px;
  cursor: pointer;
}

.form-consent input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}

.form-consent a {
  color: var(--gold);
  text-decoration: underline;
}

.form-error {
  display: none;
  color: #ffb4a8;
  font-size: 0.85rem;
  margin-top: 12px;
}

.form-error.show {
  display: block;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== MAPA CON CONSENTIMIENTO ===== */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 200px;
  padding: 22px;
  background: repeating-linear-gradient(45deg, #e7e9ee, #e7e9ee 12px, #eef0f3 12px, #eef0f3 24px);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.map-placeholder .btn {
  padding: 10px 22px;
}

/* ===== BANNER DE COOKIES ===== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 760px;
  margin: 0 auto;
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(232, 163, 61, 0.35);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: none;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeUp 0.5s var(--ease);
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  flex: 1 1 320px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.cookie-banner p strong {
  color: #fff;
}

.cookie-banner a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  padding: 12px 22px;
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}

/* ===== PÁGINAS LEGALES ===== */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-page a.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal-page h1 {
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 36px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin: 36px 0 12px;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

.legal-page p,
.legal-page li {
  color: var(--text-dark);
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal-page .placeholder {
  background: rgba(217, 122, 46, 0.12);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
  color: var(--orange);
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.9rem;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: var(--gray-bg);
}