:root {
  --brand: #16276B;
  --brand-2: #C41E2F;
  --ink: #101820;
  --bg: #FFFFFF;
  --ok: #1E7F4F;
  --white: #FFFFFF;
  --muted: #536170;
  --line: #D9E0E7;
  --section-alt: #EAF0F8;
  --soft-blue: var(--section-alt);
  --shadow: 0 16px 42px rgba(11, 36, 71, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
main section[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
.container { width: min(100% - 40px, 1040px); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(11, 36, 71, .1); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-link { display: inline-flex; align-items: center; }
.brand-link img { width: min(50vw, 232px); height: auto; }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.header-contact { display: flex; gap: 8px; }
.language-toggle { display: flex; min-height: 48px; align-items: center; gap: 2px; color: var(--muted); }
.language-option { min-width: 48px; min-height: 48px; border: 0; padding: 0; color: var(--muted); background: transparent; font-weight: 800; cursor: pointer; }
.language-option.is-active { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.language-option:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 0; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--brand-2); border-radius: 999px; padding: 11px 22px; color: var(--white); background: var(--brand-2); font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11, 36, 71, .18); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .chat-chip:focus-visible, .chat-back:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.button-secondary { color: var(--brand); background: transparent; }
.button-small { min-height: 48px; padding: 9px 16px; font-size: .9rem; }
.button-whatsapp { border-color: var(--ok); background: var(--ok); }
.button-whatsapp:hover { box-shadow: 0 8px 20px rgba(30, 127, 79, .2); }

.hero { position: relative; overflow: hidden; padding: 72px 0 68px; background: linear-gradient(145deg, var(--bg) 0 55%, var(--soft-blue) 55% 100%); }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -150px; top: 30px; border: 44px solid rgba(200, 16, 46, .10); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 38px; }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-size: .77rem; font-weight: 850; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.1; letter-spacing: -.035em; }
h1 { max-width: 770px; margin-bottom: 22px; font-size: clamp(2.25rem, 7vw, 4.45rem); }
h2 { margin-bottom: 18px; font-size: clamp(1.85rem, 4vw, 3rem); }
h3 { margin-bottom: 12px; font-size: 1.35rem; }
.hero-lede { max-width: 700px; margin: 0 0 30px; color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.25rem); }
.hero-tagline { width: fit-content; margin: -14px 0 26px; border-left: 4px solid var(--brand-2); padding: 7px 12px; color: var(--brand); background: var(--white); font-weight: 820; }
.hero-actions, .hero-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-contact-actions { margin-bottom: 16px; }
.secondary-actions { align-items: center; }
.hero-side { display: grid; gap: 18px; min-width: 0; }
.text-action { min-height: 48px; display: inline-flex; align-items: center; padding: 8px 10px; font-weight: 750; }
.route-panel { position: relative; overflow: hidden; padding: 28px; border: 1px solid rgba(11, 36, 71, .12); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.route-line { display: flex; align-items: center; margin-bottom: 26px; }
.route-line::before, .route-line::after { content: ""; flex: 1; height: 3px; background: var(--brand); }
.route-line span { z-index: 1; width: 12px; height: 12px; margin: 0 -1px; border: 3px solid var(--white); border-radius: 50%; background: var(--brand-2); }
.route-kicker { margin: 0; color: var(--muted); font-weight: 700; }
.route-number { margin: 4px 0 -8px; color: var(--brand); font-size: 5.2rem; font-weight: 850; letter-spacing: -.08em; line-height: 1; }
.route-label { margin: 0 0 22px; font-weight: 680; line-height: 1.4; }
.capacity-row { display: flex; flex-wrap: wrap; gap: 8px; }
.capacity-row span { padding: 6px 10px; border-radius: 7px; background: var(--soft-blue); color: var(--brand); font-size: .8rem; font-weight: 750; }

.trust { border-block: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.trust p { display: flex; align-items: center; gap: 9px; margin: 0; padding: 18px 8px; font-size: .78rem; font-weight: 720; line-height: 1.35; }
.trust svg { flex: 0 0 24px; width: 24px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.section { padding: 78px 0; }
.section-heading { max-width: 680px; margin-bottom: 36px; }
.card-grid { display: grid; gap: 18px; }
.service-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 28px rgba(23, 36, 46, .055); }
.service-card p { margin: 0; color: var(--muted); }
.service-scope { margin: 18px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.icon-wrap { display: grid; width: 48px; height: 48px; margin-bottom: 22px; place-items: center; border-radius: 14px; color: var(--brand); background: var(--soft-blue); }
.icon-wrap svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.services-detail { background: var(--section-alt); }
.services-detail-layout { display: grid; gap: 34px; }
.compact-service-grid { display: grid; gap: 14px; }
.compact-service { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; border: 1px solid rgba(22, 39, 107, .12); border-radius: 14px; background: var(--white); }
.compact-service > svg { width: 42px; height: 42px; border-radius: 11px; padding: 9px; color: var(--brand); background: var(--section-alt); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.compact-service h3 { margin: 1px 0 4px; color: var(--brand); font-size: 1rem; letter-spacing: -.015em; }
.compact-service p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }

.mission-section { color: var(--white); background: var(--brand); }
.mission-grid { display: grid; gap: 32px; align-items: center; }
.mission-section .eyebrow { color: var(--white); }
.mission-copy { max-width: 690px; margin: 0; color: rgba(255,255,255,.88); font-size: clamp(1.08rem, 2.4vw, 1.3rem); }

.photo-slot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin: 0; border-radius: 18px; color: var(--white); background: linear-gradient(145deg, #16276B, #263A85); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 20px; text-align: center; }
.photo-fallback svg { width: 58px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .88; }
.photo-fallback strong { font-size: 1rem; }
.photo-fallback span { font-size: .8rem; opacity: .78; }
.services-photo { align-self: start; }

.why-section { background: var(--white); }
.why-section p:not(.eyebrow) { color: var(--muted); }
.why-grid { display: grid; gap: 34px; }
.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 15px 18px 15px 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--section-alt); font-weight: 680; }
.check-list li::before { content: "✓"; position: absolute; left: 18px; top: 13px; color: var(--brand-2); font-weight: 900; }

.owner-section { padding: 44px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.owner-card { display: grid; grid-template-columns: 80px 1fr; gap: 22px; align-items: center; }
.owner-avatar { width: 80px; height: 80px; }
.owner-avatar circle { fill: var(--soft-blue); stroke: var(--brand); stroke-width: 2; }
.owner-avatar text { fill: var(--brand); font-size: 34px; font-weight: 850; font-family: inherit; }
.owner-card h2 { margin-bottom: 7px; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.owner-card p:last-child { margin: 0; color: var(--muted); }

.quote-section { background: var(--soft-blue); }
.quote-grid { display: grid; gap: 34px; }
.quote-intro > p:not(.eyebrow):not(.direct-call) { color: var(--muted); }
.direct-call { margin-top: 28px; font-weight: 680; }
.direct-call a { font-size: 1.35rem; font-weight: 850; }
.direct-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
input, textarea, select { width: 100%; min-height: 48px; border: 1px solid #AEBBC7; border-radius: 10px; padding: 11px 13px; color: var(--ink); background: var(--white); font-size: 16px; }
.chat-widget { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.chat-header { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 13px 18px; color: var(--white); background: var(--brand); }
.chat-header img { flex: 0 0 42px; border-radius: 10px; }
.chat-header strong, .chat-header span { display: block; }
.chat-header span { color: rgba(255,255,255,.78); font-size: .78rem; }
.chat-thread { display: flex; flex-direction: column; gap: 10px; min-height: 260px; max-height: 430px; overflow-y: auto; overscroll-behavior: contain; padding: 22px 18px 12px; scroll-behavior: smooth; }
.chat-bubble { width: fit-content; max-width: 88%; padding: 12px 15px; border-radius: 5px 17px 17px; background: var(--soft-blue); line-height: 1.42; }
.chat-bubble-user { align-self: flex-end; border-radius: 17px 5px 17px 17px; color: var(--white); background: var(--brand); }
.chat-controls { display: grid; gap: 12px; padding: 12px 18px 20px; border-top: 1px solid var(--line); }
.chat-back { justify-self: start; min-width: 72px; min-height: 48px; border: 0; padding: 8px 4px; color: var(--brand); background: transparent; font-weight: 800; cursor: pointer; }
.chat-back:disabled { cursor: not-allowed; opacity: .45; }
.chat-choices { display: grid; gap: 9px; }
.chat-chip { display: flex; align-items: center; justify-content: center; min-height: 50px; border: 2px solid var(--brand); border-radius: 12px; padding: 10px 13px; color: var(--brand); background: var(--white); font-weight: 750; text-align: center; cursor: pointer; }
.chat-chip:hover { color: var(--white); background: var(--brand); }
.chat-input-row { display: grid; grid-template-columns: 1fr; gap: 9px; }
.chat-continue, .chat-send { width: 100%; }
.chat-validation { grid-column: 1 / -1; min-height: 0; margin: 0; color: #9F132A; font-size: .84rem; font-weight: 750; }
.chat-validation:empty { display: none; }
.chat-summary { display: grid; gap: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.chat-summary-title { padding: 12px 14px; color: var(--white); background: var(--brand); font-weight: 800; }
.chat-summary > div:not(.chat-summary-title) { display: grid; grid-template-columns: minmax(105px, .75fr) 1.25fr; gap: 10px; padding: 9px 13px; border-top: 1px solid var(--line); }
.chat-summary dt { color: var(--muted); font-size: .78rem; font-weight: 800; }
.chat-summary dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.chat-result-actions { display: grid; gap: 9px; }
.chat-send:disabled { cursor: wait; opacity: .65; }
.chat-consent { grid-column: 1 / -1; margin: -2px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.chat-contact-footer { padding: 10px 18px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; text-align: center; }
.chat-contact-footer a { color: var(--brand); font-weight: 800; }
.chat-whatsapp-choice { border-color: #16794b; color: #16794b; }
.chat-whatsapp-choice:hover { border-color: #16794b; background: #16794b; }
.noscript-note { margin: 0; padding: 12px; border-radius: 8px; background: #FFF4E5; }

.spanish-strip { padding: 20px 0; color: var(--white); background: var(--brand-2); font-size: 1.05rem; font-weight: 780; text-align: center; }
.spanish-strip a { color: var(--white); }
.site-footer { padding: 36px 0; color: rgba(255,255,255,.8); background: var(--ink); }
.footer-inner { display: grid; gap: 22px; }
.footer-inner strong, .footer-inner span { display: block; }
.footer-inner strong { color: var(--white); font-size: 1.05rem; }
.footer-inner span { font-size: .84rem; }
.footer-inner .footer-thanks { max-width: 34ch; margin-top: 9px; color: var(--white); font-size: .9rem; font-weight: 700; line-height: 1.4; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-contact span { display: inline; font-size: inherit; }
.footer-contact a { color: var(--white); overflow-wrap: anywhere; }
.footer-legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.footer-legal p { margin: 0 0 7px; font-size: .76rem; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal span { display: inline; font-size: inherit; }

@media (min-width: 720px) {
  .container { width: min(100% - 64px, 1040px); }
  .header-inner { min-height: 82px; }
  .button-small { min-height: 48px; padding-inline: 21px; font-size: 1rem; }
  .hero { padding: 90px 0 84px; }
  .hero-grid { grid-template-columns: minmax(0, 1.7fr) minmax(270px, .7fr); align-items: center; }
  .trust-grid { grid-template-columns: repeat(5, 1fr); }
  .trust p { padding: 22px 14px; border-left: 1px solid var(--line); font-size: .8rem; }
  .trust p:first-child { border-left: 0; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .services-detail-layout { grid-template-columns: minmax(0, 1.55fr) minmax(240px, .65fr); align-items: center; }
  .compact-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mission-grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 60px; }
  .why-grid { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
  .quote-grid { grid-template-columns: .72fr 1.28fr; gap: 60px; align-items: start; }
  .chat-controls, .chat-thread { padding-inline: 24px; }
  .chat-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-input-row { grid-template-columns: 1fr auto; }
  .chat-continue { width: auto; }
  .footer-inner { grid-template-columns: 1.2fr 1fr auto; align-items: center; }
}

@media (max-width: 820px) {
  main section[id] { scroll-margin-top: 140px; }
  .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .header-tools { flex: 1 1 100%; justify-content: space-between; }
  .header-contact { flex: 1; }
  .header-contact .button { flex: 1; padding-inline: 10px; }
}

@media (max-width: 520px) {
  /* Header: row 1 = logo + language toggle, row 2 = two compact contact buttons */
  .header-inner { row-gap: 8px; column-gap: 10px; }
  .header-tools { display: contents; }
  .brand-link img { width: min(48vw, 185px); }
  .language-toggle { gap: 0; }
  .header-contact { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .header-contact .phone-link span[data-phone-display] { display: none; }
  .header-contact .button { font-size: .8rem; padding: 8px 10px; }

  /* Hero: tighter rhythm, full-width thumb-reachable CTAs, compact stat panel */
  .hero { padding: 52px 0 56px; }
  .hero-grid { gap: 30px; }
  h1 { font-size: clamp(1.9rem, 8.5vw, 2.35rem); }
  .hero-lede { margin-bottom: 24px; }
  .hero-contact-actions, .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-contact-actions .button, .hero-actions .button { width: 100%; }
  .hero-actions .text-action { justify-content: center; }
  .route-panel { padding: 22px 18px; }
  .route-number { font-size: 4.2rem; }

  /* Trust bar: tidy 2x2 with icons top-aligned against wrapped text */
  .trust p { align-items: flex-start; padding: 14px 8px; }
  .trust svg { margin-top: 1px; }

  /* Sections: consistent vertical rhythm and gaps */
  .section { padding: 56px 0; }
  .section-heading { margin-bottom: 28px; }
  .why-grid { gap: 26px; }
  .quote-grid { gap: 26px; }
  .compact-service { grid-template-columns: 38px minmax(0, 1fr); padding: 14px; }
  .compact-service > svg { width: 38px; height: 38px; }
  .owner-card { grid-template-columns: 64px 1fr; gap: 16px; }
  .owner-avatar { width: 64px; height: 64px; }
  .direct-call { margin-top: 20px; }

  /* Chat widget */
  .chat-bubble { max-width: 85%; }
  .chat-choices, .chat-result-actions { gap: 8px; }
  .chat-thread { min-height: 220px; max-height: min(430px, 60vh); }

  /* Spanish strip + footer */
  .spanish-strip { padding: 18px 0; font-size: .98rem; }
  .footer-contact { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  .site-header { position: static; }
  .button { border-color: var(--ink); color: var(--ink); background: transparent; }
  .hero, .quote-section, .mission-section, .why-section, .site-footer { color: var(--ink); background: var(--white); }
  .mission-section .eyebrow, .mission-copy, .why-section p:not(.eyebrow), .site-footer { color: var(--ink); }
  .service-card, .chat-widget, .route-panel { box-shadow: none; }
  .chat-widget { display: none; }
}

.brand-link { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 800; font-size: 1.18rem; color: var(--brand); letter-spacing: -0.01em; }
@media (max-width: 520px) { .brand-name { display: none; } .brand-link img { height: 48px !important; } }
