/* Asistencia ReparaHogar SG · Web V1 */
:root {
  --sg-blue: #07549a;
  --sg-blue-dark: #073769;
  --sg-blue-deep: #031f3e;
  --sg-orange: #ff7412;
  --sg-orange-deep: #e85d00;
  --text: #172335;
  --muted: #667386;
  --surface: #ffffff;
  --soft: #f4f7fa;
  --line: #dbe3ea;
  --shadow: 0 18px 50px rgba(3,31,62,.10);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
svg { fill: currentColor; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 1000; left: 16px; top: -80px;
  background: white; color: var(--sg-blue-dark); padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Top bar */
.topbar { background: var(--sg-blue-deep); color: #dcecff; font-size: 13px; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-text { display: flex; align-items: center; gap: 8px; }
.topbar-text svg { width: 15px; height: 15px; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.topbar-actions a:hover { color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(7,84,154,.09);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 275px; height: 78px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
.main-nav > a:not(.nav-phone) { position: relative; padding: 30px 0; }
.main-nav > a:not(.nav-phone)::after {
  content: ""; position: absolute; left: 0; bottom: 21px; height: 3px; width: 0;
  border-radius: 3px; background: var(--sg-orange); transition: width .2s ease;
}
.main-nav > a:not(.nav-phone):hover::after { width: 100%; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--sg-blue-dark); color: white; padding: 13px 16px; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(3,31,62,.14);
}
.nav-phone:hover { background: var(--sg-blue); }
.nav-phone svg { width: 17px; height: 17px; }
.menu-toggle { display: none; border: 0; background: none; padding: 12px; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; background: var(--sg-blue-dark); margin: 5px 0; }

/* Hero */
.hero {
  position: relative; overflow: hidden; min-height: 650px; display: flex; align-items: center;
  background:
    linear-gradient(105deg, #eef6fc 0%, #fff 52%, #e9f3fb 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(7,84,154,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,84,154,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.7) 55%, #000 100%);
}
.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; align-items: center; }
.hero-copy { padding: 72px 0 86px; max-width: 690px; }
.eyebrow {
  display: inline-block; color: var(--sg-orange-deep); font-weight: 800; text-transform: uppercase;
  letter-spacing: .11em; font-size: 12px; margin-bottom: 14px;
}
.eyebrow-light { color: #ffad6e; }
.hero h1 {
  margin: 0; font-size: clamp(48px, 5.6vw, 78px); line-height: .98; letter-spacing: -.055em;
  color: var(--sg-blue-deep); max-width: 760px;
}
.hero h1 span { color: var(--sg-blue); display: block; }
.hero-lead { color: #46566c; font-size: 18px; line-height: 1.65; max-width: 650px; margin: 28px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 800; font-size: 14px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: white; background: linear-gradient(135deg, var(--sg-orange), var(--sg-orange-deep)); box-shadow: 0 12px 26px rgba(232,93,0,.22); }
.btn-primary:hover { box-shadow: 0 16px 32px rgba(232,93,0,.28); }
.btn-whatsapp { color: white; background: #168b62; }
.btn-white { background: white; color: var(--sg-blue-deep); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: white; }
.btn-full { width: 100%; }
.hero-trust { display: flex; gap: 26px; margin-top: 38px; color: #68768b; font-size: 13px; }
.hero-trust span { border-left: 1px solid #ccd8e2; padding-left: 16px; }
.hero-trust b { color: var(--sg-blue-dark); font-size: 18px; display: block; margin-bottom: 3px; }

.hero-visual { position: absolute; z-index: 1; right: 0; top: 0; bottom: 0; width: 49%; color: rgba(7,84,154,.12); }
.hero-house { position: absolute; width: 600px; max-width: 96%; right: -10px; bottom: 32px; color: rgba(7,84,154,.12); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-1 { width: 390px; height: 390px; right: 85px; top: 60px; background: rgba(255,116,18,.11); }
.orb-2 { width: 280px; height: 280px; right: -70px; bottom: 20px; background: rgba(7,84,154,.09); }
.tool-card {
  position: absolute; width: 220px; padding: 18px; background: rgba(255,255,255,.9); border: 1px solid rgba(7,84,154,.12);
  box-shadow: var(--shadow); border-radius: 16px; color: var(--sg-blue-deep); backdrop-filter: blur(12px);
}
.tool-card strong, .tool-card small { display: block; }
.tool-card small { color: var(--muted); margin-top: 4px; }
.tool-icon {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,116,18,.12); color: var(--sg-orange-deep);
  display: grid; place-items: center; margin-bottom: 12px; font-weight: 900;
}
.tool-card-a { right: 68px; top: 115px; }
.tool-card-b { right: 350px; bottom: 98px; }

/* Quick strip */
.quick-strip { position: relative; z-index: 5; background: var(--sg-blue-dark); color: white; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-item {
  min-height: 100px; display: flex; align-items: center; gap: 15px; padding: 20px 24px;
  border-right: 1px solid rgba(255,255,255,.13);
}
.quick-item:last-child { border-right: 0; }
.quick-item svg { width: 34px; height: 34px; color: #a8d2f7; flex: 0 0 auto; }
.quick-item strong, .quick-item span { display: block; }
.quick-item strong { font-size: 14px; }
.quick-item span { font-size: 12px; color: #bed3e6; margin-top: 4px; }

/* Sections */
.section { padding: 92px 0; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.section-heading h2, .about-copy h2, .insurance-section h2, .contact-copy h2, .cta-band h2 {
  color: var(--sg-blue-deep); letter-spacing: -.035em; line-height: 1.08; font-size: clamp(34px, 4vw, 50px); margin: 0;
}
.section-heading p { color: var(--muted); line-height: 1.7; margin: 17px auto 0; max-width: 620px; }

/* Service cards */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; min-height: 260px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(7,84,154,.22); }
.service-icon {
  width: 55px; height: 55px; border-radius: 16px; display: grid; place-items: center;
  background: #edf5fb; color: var(--sg-blue); margin-bottom: 25px;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { color: var(--sg-blue-deep); margin: 0 0 11px; font-size: 20px; }
.service-card p { color: var(--muted); line-height: 1.62; margin: 0; font-size: 15px; }
.featured-card { background: linear-gradient(150deg, var(--sg-blue-dark), var(--sg-blue-deep)); border-color: transparent; }
.featured-card h3, .featured-card p { color: white; }
.featured-card p { color: #d8e7f4; }
.featured-card .service-icon { background: rgba(255,255,255,.12); color: #ffb57d; }

/* Insurance */
.insurance-section { padding: 94px 0; background: linear-gradient(135deg, var(--sg-blue-deep), #074a88); color: white; }
.insurance-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.insurance-section h2 { color: white; }
.insurance-section > .container > div > p { color: #c5d9ea; line-height: 1.72; font-size: 17px; }
.process-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.process-list > div { display: flex; gap: 13px; align-items: center; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.055); padding: 14px; border-radius: 14px; }
.process-list > div > span { color: #ffad6e; font-weight: 900; font-size: 12px; }
.process-list p { margin: 0; }
.process-list strong, .process-list small { display: block; }
.process-list small { color: #a9c4da; margin-top: 4px; font-size: 12px; }
.insurer-panel { background: white; color: var(--text); border-radius: 26px; padding: 30px; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.insurer-kicker { margin: 0 0 17px !important; color: var(--muted) !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.insurer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.insurer-name {
  min-height: 92px; display: grid; place-items: center; text-align: center; border: 1px solid var(--line); border-radius: 14px;
  color: var(--sg-blue-dark); font-weight: 900; letter-spacing: .04em; font-size: 22px; background: #fff;
}
.insurer-small { font-size: 15px; line-height: 1.15; }
.insurer-note { font-size: 12px !important; color: #7b8795 !important; margin: 18px 0 0 !important; line-height: 1.5 !important; }

/* About */
.about-section { background: var(--soft); }
.about-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 70px; align-items: center; }
.about-card {
  min-height: 390px; border-radius: 30px; background: linear-gradient(145deg, #fff, #e8f2fa);
  border: 1px solid rgba(7,84,154,.12); display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; box-shadow: var(--shadow); padding: 40px;
}
.about-card img { width: 205px; max-height: 190px; object-fit: contain; margin-bottom: 20px; }
.about-card span { display: block; color: var(--sg-blue); font-weight: 800; font-size: 14px; }
.about-card strong { display: block; color: var(--sg-blue-deep); font-size: 23px; max-width: 340px; margin-top: 8px; }
.about-copy p { color: var(--muted); line-height: 1.75; font-size: 16px; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.facts-grid div { padding: 17px 14px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.facts-grid strong, .facts-grid span { display: block; }
.facts-grid strong { color: var(--sg-blue-dark); font-size: 21px; }
.facts-grid span { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* CTA */
.cta-band { padding: 60px 0; background: linear-gradient(115deg, var(--sg-orange-deep), var(--sg-orange)); color: white; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta-band h2 { color: white; font-size: 38px; }
.cta-band p { margin: 8px 0 0; color: #fff4eb; }
.cta-band-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.contact-copy > p { color: var(--muted); line-height: 1.7; font-size: 16px; }
.contact-cards { display: grid; gap: 11px; margin-top: 30px; }
.contact-cards a {
  display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); padding: 14px 16px;
  border-radius: 14px; transition: border-color .18s ease, transform .18s ease;
}
.contact-cards a:hover { border-color: rgba(7,84,154,.4); transform: translateX(3px); }
.contact-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #edf5fb; color: var(--sg-blue); }
.contact-cards small, .contact-cards strong { display: block; }
.contact-cards small { color: var(--muted); font-size: 11px; }
.contact-cards strong { color: var(--sg-blue-deep); font-size: 15px; margin-top: 3px; }
.contact-form { border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 24px; padding: 28px; }
.contact-form label { display: block; margin-bottom: 17px; }
.contact-form label > span { display: block; font-size: 13px; font-weight: 800; color: #34445a; margin-bottom: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
input, select, textarea {
  width: 100%; border: 1px solid #cfd9e2; background: #fbfcfd; color: var(--text);
  border-radius: 11px; padding: 13px 14px; outline: none; transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--sg-blue); box-shadow: 0 0 0 3px rgba(7,84,154,.1); }
textarea { resize: vertical; }
.form-note { color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; margin: 10px 0 0; }

/* Footer */
.footer { background: #021a33; color: #b9ccdc; padding: 62px 0 100px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 260px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 16px; }
.footer-brand p { max-width: 330px; line-height: 1.6; font-size: 13px; }
.footer h3 { color: white; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 7px 0 16px; }
.footer a, .footer div > span { display: block; margin: 9px 0; font-size: 13px; }
.footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 42px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: #7f9bb0; }

/* Mobile actions */
.mobile-actions { display: none; }

/* Responsive */
@media (max-width: 1020px) {
  .main-nav { gap: 18px; }
  .nav-phone { display: none; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .tool-card-b { right: 180px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-item:nth-child(2) { border-right: 0; }
  .quick-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.13); }
  .insurance-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .about-card { min-height: 330px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 820px) {
  body { padding-bottom: 72px; }
  .topbar-actions a:last-child, .topbar-actions span { display: none; }
  .nav-wrap { min-height: 70px; }
  .brand img { width: 215px; height: 62px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 70px; background: white; border-top: 1px solid var(--line);
    box-shadow: 0 20px 35px rgba(3,31,62,.1); padding: 14px 20px 24px; display: none; flex-direction: column; align-items: stretch; gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.nav-phone) { padding: 14px 10px; border-bottom: 1px solid #edf1f4; }
  .main-nav > a:not(.nav-phone)::after { display: none; }
  .hero { min-height: auto; }
  .hero-grid { display: block; min-height: auto; }
  .hero-copy { padding: 70px 0 250px; }
  .hero-visual { width: 100%; top: auto; height: 300px; }
  .hero-house { width: 360px; right: -20px; bottom: -10px; }
  .orb-1 { width: 250px; height: 250px; right: 35px; top: 15px; }
  .orb-2 { display: none; }
  .tool-card { width: 190px; padding: 13px; }
  .tool-card-a { right: 20px; top: 20px; }
  .tool-card-b { left: 20px; right: auto; bottom: 18px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
  .mobile-actions {
    position: fixed; display: grid; grid-template-columns: repeat(3,1fr); z-index: 200; bottom: 0; left: 0; right: 0;
    background: white; border-top: 1px solid var(--line); box-shadow: 0 -8px 25px rgba(3,31,62,.10);
    padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .mobile-actions a { min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 800; color: var(--sg-blue-dark); border-right: 1px solid var(--line); }
  .mobile-actions a:last-child { border-right: 0; }
  .mobile-actions span { font-size: 18px; color: var(--sg-orange-deep); }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, var(--container)); }
  .topbar-text { font-size: 11px; }
  .topbar-actions { font-size: 11px; }
  .hero-copy { padding-top: 56px; padding-bottom: 245px; }
  .hero h1 { font-size: clamp(44px, 14vw, 62px); }
  .hero-lead { font-size: 16px; }
  .hero-cta { display: grid; grid-template-columns: 1fr; }
  .hero-trust { gap: 10px; flex-wrap: wrap; }
  .hero-trust span { flex: 1 1 120px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); min-height: 86px; }
  .quick-item:last-child { border-bottom: 0; }
  .section { padding: 70px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .insurance-section { padding: 70px 0; }
  .process-list { grid-template-columns: 1fr; }
  .insurer-panel { padding: 22px; }
  .insurer-name { min-height: 78px; font-size: 18px; }
  .insurer-small { font-size: 12px; }
  .facts-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .footer-brand img { width: 230px; }
}


/* V2 additions */
.hero-photo {
  min-height: 700px;
  background: #082f56;
  color: white;
}
.hero-photo .hero-grid { min-height: 700px; grid-template-columns: 1fr 1fr; }
.hero-photo-layer {
  position: absolute; inset: 0;
  background-image: url("../assets/flota-reparahogar-costa.webp");
  background-size: cover;
  background-position: center 58%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(2,23,43,.94) 0%, rgba(2,23,43,.84) 36%, rgba(2,23,43,.40) 62%, rgba(2,23,43,.08) 100%),
    linear-gradient(0deg, rgba(2,23,43,.38), transparent 45%);
}
.hero-photo .hero-copy { position: relative; z-index: 2; max-width: 690px; }
.hero-photo h1, .hero-photo h1 span { color: white; }
.hero-photo .hero-lead { color: #e0ebf4; }
.hero-photo .hero-trust { color: #d4e1eb; }
.hero-photo .hero-trust span { border-left-color: rgba(255,255,255,.28); }
.hero-photo .hero-trust b { color: white; }

.service-visual-section { padding: 0; background: #f5f8fb; }
.service-visual-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 560px; align-items: stretch; }
.service-visual-image { min-height: 560px; margin-left: calc((100vw - min(var(--container), calc(100vw - 40px))) / -2); overflow: hidden; }
.service-visual-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.service-visual-copy { padding: 72px 0 72px 60px; align-self: center; }
.service-visual-copy h2 { color: var(--sg-blue-deep); font-size: clamp(34px, 4vw, 50px); line-height: 1.08; letter-spacing: -.035em; margin: 0; }
.service-visual-copy > p { color: var(--muted); line-height: 1.75; font-size: 16px; }
.service-visual-points { display: grid; gap: 12px; margin-top: 26px; }
.service-visual-points > div { border-left: 4px solid var(--sg-orange); padding: 8px 0 8px 16px; }
.service-visual-points strong, .service-visual-points span { display: block; }
.service-visual-points strong { color: var(--sg-blue-deep); }
.service-visual-points span { color: var(--muted); font-size: 13px; margin-top: 3px; }

.segments-section { background: white; }
.segments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.segment-card { border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: linear-gradient(180deg, #fff, #f9fbfd); box-shadow: 0 12px 35px rgba(3,31,62,.06); }
.segment-badge { display: inline-block; background: #eef5fb; color: var(--sg-blue-dark); border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.segment-card h3 { color: var(--sg-blue-deep); font-size: 22px; margin: 0 0 12px; }
.segment-card p { color: var(--muted); line-height: 1.7; font-size: 15px; }
.segment-card ul { margin: 18px 0 0; padding-left: 18px; color: #48586d; }
.segment-card li { margin: 8px 0; }

.fleet-section { position: relative; min-height: 540px; display: flex; align-items: center; overflow: hidden; color: white; }
.fleet-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.fleet-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,24,45,.92) 0%, rgba(2,24,45,.74) 48%, rgba(2,24,45,.20) 100%); }
.fleet-content { position: relative; z-index: 2; padding: 80px 0; }
.fleet-content h2 { color: white; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.02; letter-spacing: -.045em; max-width: 720px; margin: 0; }
.fleet-content > p { max-width: 680px; color: #d7e4ee; font-size: 17px; line-height: 1.7; }
.fleet-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.fleet-stats > div { min-width: 170px; padding: 16px 18px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; backdrop-filter: blur(8px); }
.fleet-stats strong, .fleet-stats span { display: block; }
.fleet-stats strong { font-size: 22px; }
.fleet-stats span { font-size: 12px; color: #c7d8e4; margin-top: 4px; }

.legal-section { padding: 76px 0; background: #f7f9fb; border-top: 1px solid var(--line); }
.legal-wrap h2 { color: var(--sg-blue-deep); font-size: clamp(32px, 4vw, 46px); margin: 0 0 26px; letter-spacing: -.035em; }
.legal-card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 10px 30px rgba(3,31,62,.05); }
.legal-card p { color: #556376; line-height: 1.72; margin: 0 0 14px; font-size: 14px; }
.legal-card a { color: var(--sg-blue); font-weight: 700; }
.legal-note { padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px !important; color: #7b8795 !important; }

@media (max-width: 900px) {
  .hero-photo { min-height: 650px; }
  .hero-photo .hero-grid { min-height: 650px; display: block; }
  .hero-photo .hero-copy { padding: 90px 0 110px; }
  .hero-photo-layer { background-position: 65% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(2,23,43,.95) 0%, rgba(2,23,43,.83) 65%, rgba(2,23,43,.55) 100%); }
  .service-visual-grid { grid-template-columns: 1fr; }
  .service-visual-image { min-height: 420px; margin-left: 0; border-radius: 22px; margin-top: 28px; }
  .service-visual-copy { padding: 42px 0 66px; }
  .segments-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-photo { min-height: 720px; }
  .hero-photo .hero-grid { min-height: 720px; }
  .hero-photo .hero-copy { padding: 86px 0 100px; }
  .hero-photo-layer { background-position: 69% center; }
  .hero-overlay { background: rgba(2,23,43,.74); }
  .service-visual-image { min-height: 320px; }
  .fleet-section { min-height: 620px; }
  .fleet-overlay { background: rgba(2,24,45,.74); }
  .fleet-content { padding: 72px 0; }
  .fleet-stats { display: grid; grid-template-columns: 1fr; }
}


/* V3 specialized cards */
@media (min-width: 1050px) {
  .segments-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* Production contact and legal styles */
.insurer-public-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.insurer-public-item {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}
.insurer-public-item strong,
.insurer-public-item span {
  display: block;
}
.insurer-public-item strong {
  color: var(--sg-blue-dark);
  font-size: 16px;
}
.insurer-public-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 7px;
}
.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-direct-kicker {
  color: var(--sg-orange-deep);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.contact-direct h3 {
  margin: 0;
  color: var(--sg-blue-deep);
  font-size: 26px;
}
.contact-direct > p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 8px;
}
.btn-secondary-contact {
  border-color: var(--line);
  color: var(--sg-blue-dark);
  background: #fff;
}
.legal-links-section {
  background: #f5f8fb;
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.legal-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.legal-links-grid a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.legal-links-grid strong,
.legal-links-grid span {
  display: block;
}
.legal-links-grid strong {
  color: var(--sg-blue-dark);
}
.legal-links-grid span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.footer-illustration-note {
  font-size: 11px !important;
  color: #7894aa;
}
@media (max-width: 650px) {
  .insurer-public-grid,
  .legal-links-grid {
    grid-template-columns: 1fr;
  }
}

/* Legal pages */
.legal-page-main { padding: 72px 0; background: #f7f9fb; min-height: 70vh; }
.legal-page { max-width: 900px; }
.legal-page h1 { color: var(--sg-blue-deep); font-size: clamp(38px, 5vw, 58px); letter-spacing: -.04em; margin: 0 0 30px; }
.legal-page h2 { color: var(--sg-blue-dark); font-size: 22px; margin-top: 34px; }
.legal-page p, .legal-page li { color: #526176; line-height: 1.75; font-size: 15px; }
.legal-page a { color: var(--sg-blue); font-weight: 700; }
.legal-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.legal-nav { display: flex; gap: 18px; font-size: 13px; font-weight: 700; }
.legal-footer { padding-top: 16px; padding-bottom: 30px; }
@media (max-width: 760px) {
  .legal-nav { display: none; }
}


/* V9 — ofertas integradas exclusivamente en el hero */
.hero-photo {
  position: relative;
}

.hero-offer-widget {
  position: absolute;
  z-index: 10;
  right: max(28px, calc((100vw - var(--container)) / 2));
  top: 44%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Small, fixed-in-hero offer badge */
.hero-offer-trigger {
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 27%, #ffa866 0%, var(--sg-orange) 43%, var(--sg-orange-deep) 100%);
  color: white;
  box-shadow:
    0 18px 44px rgba(0,0,0,.24),
    0 0 0 6px rgba(255,255,255,.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.hero-offer-trigger:hover,
.hero-offer-trigger:focus-visible {
  transform: scale(1.045);
  box-shadow:
    0 22px 48px rgba(0,0,0,.30),
    0 0 0 7px rgba(255,255,255,.20);
}

.hero-offer-trigger:focus-visible {
  outline: 3px solid rgba(255,255,255,.55);
  outline-offset: 5px;
}

.hero-offer-percent {
  font-size: 34px;
  font-weight: 950;
  line-height: .9;
}

.hero-offer-trigger-label {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: .045em;
}

/* Critical: hidden must actually hide it */
.hero-offer-panel[hidden] {
  display: none !important;
}

/* Opens beside the circle, within hero only */
.hero-offer-panel {
  position: absolute;
  right: 124px;
  top: 50%;
  transform: translateY(-50%);
  width: 370px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.20);
  background:
    linear-gradient(145deg, rgba(5,49,91,.97), rgba(3,31,62,.98));
  color: white;
  box-shadow: 0 26px 70px rgba(0,0,0,.30);
  backdrop-filter: blur(18px);
  animation: heroOfferIn .18s ease-out;
}

@keyframes heroOfferIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(12px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

.hero-offer-panel::after {
  content: "";
  position: absolute;
  right: -9px;
  top: calc(50% - 9px);
  width: 18px;
  height: 18px;
  background: #043563;
  transform: rotate(45deg);
}

.hero-offer-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.hero-offer-kicker {
  display: block;
  padding-right: 34px;
  color: #ffad6e;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.hero-offer-panel h2 {
  margin: 9px 0 8px;
  color: white;
  font-size: 31px;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.hero-offer-intro {
  margin: 0 0 17px;
  color: #c9dbea;
  font-size: 14px;
  line-height: 1.5;
}

.hero-offer-items {
  display: grid;
  gap: 9px;
}

.hero-offer-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.065);
}

.hero-offer-item-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: #ffad6e;
  box-shadow: 0 0 0 5px rgba(255,116,18,.12);
}

.hero-offer-item strong,
.hero-offer-item div > span {
  display: block;
}

.hero-offer-item strong {
  color: white;
  font-size: 14px;
}

.hero-offer-item div > span {
  margin-top: 4px;
  color: #b9cedf;
  font-size: 11px;
  line-height: 1.4;
}

.hero-offer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  margin-top: 14px;
  border-radius: 11px;
  background: var(--sg-orange);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.hero-offer-panel small {
  display: block;
  margin-top: 10px;
  color: #92abc0;
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

/* Prevent collision with left hero copy on desktop */
@media (min-width: 1100px) {
  .hero-photo .hero-copy {
    max-width: 570px;
  }
}

/* Tablet: keep it inside hero but below the copy */
@media (max-width: 1099px) {
  .hero-offer-widget {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: min(720px, calc(100% - 40px));
    margin: -210px auto 36px;
    justify-content: flex-end;
  }

  .hero-offer-panel {
    right: 124px;
  }
}

/* Mobile: compact circle, panel opens above/beside it, never full screen */
@media (max-width: 650px) {
  .hero-offer-widget {
    width: calc(100% - 28px);
    margin: -190px auto 30px;
  }

  .hero-offer-trigger {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }

  .hero-offer-percent {
    font-size: 26px;
  }

  .hero-offer-trigger-label {
    font-size: 8px;
  }

  .hero-offer-panel {
    right: 94px;
    width: min(300px, calc(100vw - 122px));
    padding: 17px;
    border-radius: 17px;
  }

  .hero-offer-panel h2 {
    font-size: 24px;
  }

  .hero-offer-item {
    padding: 10px;
  }

  .hero-offer-panel::after {
    right: -7px;
    width: 14px;
    height: 14px;
    top: calc(50% - 7px);
  }
}


/* V9.1 refinements */
.hero-offer-items {
  gap: 10px;
}
.hero-offer-item {
  align-items: flex-start;
}


/* V9.2 — corrección definitiva del logotipo del pie */
.footer-brand img {
  display: block !important;
  width: 260px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: left center !important;
  aspect-ratio: auto !important;
}
@media (max-width: 600px) {
  .footer-brand img {
    width: 230px !important;
    height: auto !important;
  }
}


/* V9.3 — corrección móvil del panel de ofertas */
@media (max-width: 1099px) {
  .hero-photo {
    overflow: visible;
  }

  .hero-offer-widget {
    position: absolute;
    right: 22px;
    top: 210px;
    transform: none;
    width: auto;
    margin: 0;
    display: block;
  }

  .hero-offer-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    transform: none;
    width: min(370px, calc(100vw - 44px));
    max-width: calc(100vw - 44px);
    z-index: 20;
  }

  .hero-offer-panel::after {
    right: 34px;
    top: -8px;
    width: 16px;
    height: 16px;
    border: 0;
    background: #043563;
    transform: rotate(45deg);
  }

  @keyframes heroOfferInMobile {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .hero-offer-panel:not([hidden]) {
    animation: heroOfferInMobile .18s ease-out;
  }
}

@media (max-width: 650px) {
  .hero-offer-widget {
    right: 14px;
    top: 176px;
  }

  .hero-offer-trigger {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
  }

  .hero-offer-percent {
    font-size: 25px;
  }

  .hero-offer-trigger-label {
    font-size: 8px;
  }

  .hero-offer-panel {
    right: 0;
    top: calc(100% + 12px);
    width: min(310px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    padding: 17px;
  }

  .hero-offer-panel h2 {
    font-size: 24px;
  }

  .hero-offer-panel::after {
    right: 27px;
  }
}


/* V9.4 — ajuste fino del botón de ofertas en móvil estrecho */
@media (max-width: 1099px) {
  .hero-offer-widget {
    top: 176px;
    right: 18px;
  }
}

@media (max-width: 650px) {
  .hero-offer-widget {
    top: 118px !important;
    right: 12px !important;
  }

  .hero-offer-trigger {
    width: 72px !important;
    height: 72px !important;
    flex-basis: 72px !important;
    box-shadow:
      0 12px 28px rgba(0,0,0,.22),
      0 0 0 5px rgba(255,255,255,.14) !important;
  }

  .hero-offer-percent {
    font-size: 23px !important;
  }

  .hero-offer-trigger-label {
    margin-top: 4px !important;
    font-size: 7px !important;
    line-height: 1.0 !important;
    letter-spacing: .04em !important;
  }

  .hero-offer-panel {
    top: calc(100% + 10px) !important;
    right: 0 !important;
    width: min(300px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
  }

  .hero-offer-panel::after {
    right: 24px !important;
  }
}


/* V9.5 — forzar diseño claro independientemente del tema del dispositivo */
:root {
  color-scheme: only light;
}

html,
body {
  background-color: #ffffff !important;
  color: var(--text) !important;
}

body {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: only light;
  }

  html,
  body,
  .site-header,
  .section,
  .contact-section,
  .legal-page-main,
  .legal-links-section {
    background-color: #ffffff;
  }

  .service-card,
  .contact-form,
  .legal-card,
  .insurer-panel,
  .insurer-public-item,
  .legal-links-grid a,
  .facts-grid div {
    background-color: #ffffff;
    color: var(--text);
  }

  input,
  select,
  textarea,
  button {
    color-scheme: light;
  }
}
