/* ===== Variables ===== */
:root {
  --primary:     #0a72b0;
  --primary-dk:  #075d92;
  --teal:        #1fb0a8;
  --sun:         #f6a623;
  --wa:          #25d366;
  --ink:         #10202b;
  --muted:       #5b6b76;
  --line:        #e4ecf0;
  --bg:          #ffffff;
  --bg-soft:     #f3f8fb;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 10px 30px rgba(10, 60, 90, .08);
  --shadow-lg:   0 18px 50px rgba(10, 60, 90, .14);
  --maxw:        1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 13px 22px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(10,114,176,.3); }
.btn--primary:hover { background: var(--primary-dk); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10,114,176,.38); }
.btn--ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--primary); }
.btn--wa { background: var(--wa); color: #fff; padding: 10px 16px; }
.btn--wa:hover { background: #1ebe5a; }
.ico { width: 18px; height: 18px; fill: currentColor; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: 0 6px 20px rgba(10,60,90,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.4rem; letter-spacing: -.5px; }
.logo__icon { width: 30px; height: 30px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logo__text { color: var(--ink); }
.logo__text span { color: var(--teal); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link { padding: 8px 11px; border-radius: 8px; font-weight: 500; font-size: .93rem; color: var(--muted); transition: color .15s, background .15s; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav__link:hover { color: var(--primary); background: var(--bg-soft); }
.nav__cta { margin-left: 8px; }
.nav__btn { display: inline-flex; align-items: center; gap: 4px; }
.caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }

/* Dropdowns */
.nav__group { position: relative; }
.nav__group--wa { margin-left: 4px; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown--right { left: auto; right: 0; min-width: 180px; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--ink); transition: background .15s, color .15s; }
.dropdown a:hover { background: var(--bg-soft); color: var(--primary); }
.nav__group:hover .dropdown,
.nav__group.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__group.open .caret { transform: rotate(180deg); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, #0a72b0 0%, #0d8bb8 45%, #1fb0a8 100%);
}
.hero__bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 35%, 0 75%);
}
.hero__inner { position: relative; padding: 84px 20px 120px; text-align: center; max-width: 820px; margin: 0 auto; }
.hero__eyebrow { font-weight: 600; letter-spacing: .5px; font-size: .82rem; text-transform: uppercase; opacity: .9; margin-bottom: 16px; }
.hero__title { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.hero__subtitle { font-size: clamp(1.02rem, 2.4vw, 1.2rem); opacity: .95; margin: 18px auto 0; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ===== Sections common ===== */
.section__title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; text-align: center; letter-spacing: -.5px; }
.section__lead { text-align: center; color: var(--muted); max-width: 560px; margin: 12px auto 0; }

/* ===== Action cards (Bocatti-style) ===== */
.actions { padding: 64px 0 56px; margin-top: -40px; position: relative; z-index: 2; }
.actions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card-action {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column; align-items: center;
}
.card-action:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-action__icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, #e7f4fb, #d9f2ef);
}
.card-action__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-action h3 { font-size: 1.25rem; font-weight: 700; }
.card-action p { color: var(--muted); margin-top: 8px; font-size: .96rem; }
.card-action__go { margin-top: 16px; color: var(--primary); font-weight: 600; font-size: .95rem; }

/* ===== Schedule ===== */
.schedule { padding: 60px 0; background: var(--bg-soft); }
.schedule__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.route { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.route__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.route__head h3 { font-size: 1.05rem; font-weight: 700; }
.route__time { background: #e7f4fb; color: var(--primary); font-weight: 600; font-size: .78rem; padding: 4px 10px; border-radius: 50px; white-space: nowrap; }
.route__times { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.route__times li { background: var(--bg-soft); border-radius: 8px; padding: 8px 0; text-align: center; font-weight: 600; font-size: .92rem; color: var(--ink); }
.schedule__note { text-align: center; margin-top: 28px; color: var(--muted); }
.schedule__note a { color: var(--primary); font-weight: 600; }

/* ===== Destinations ===== */
.destinations { padding: 64px 0; }
.destinations__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.dest { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; transition: transform .2s ease, box-shadow .2s; }
.dest:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dest__img { height: 180px; position: relative; overflow: hidden; background: var(--bg-soft); }
.dest__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.dest:hover .dest__img img { transform: scale(1.07); }
.dest__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 45%, rgba(0,0,0,.6));
}
.dest__label {
  position: absolute; bottom: 12px; left: 16px; z-index: 2;
  color: #fff; font-weight: 700; font-size: 1.15rem; text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.dest__body { padding: 16px 18px 20px; }
.dest__body h3 { font-size: 1.05rem; font-weight: 700; }
.dest__body p { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ===== Services ===== */
.services { padding: 64px 0; background: var(--bg-soft); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; transition: transform .18s, box-shadow .2s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service__icon { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px; display: grid; place-items: center; background: linear-gradient(135deg, #e7f4fb, #d9f2ef); }
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.08rem; font-weight: 700; }
.service p { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.service__link { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 600; font-size: .9rem; }

/* ===== App ===== */
.app { padding: 70px 0; }
.app__inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px;
  background: linear-gradient(135deg, #0a72b0, #1fb0a8); border-radius: 28px; padding: 50px; color: #fff; box-shadow: var(--shadow-lg); }
.app__text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.5px; }
.app__text p { margin: 14px 0 26px; opacity: .95; max-width: 420px; }
.app__text .btn--primary { background: #fff; color: var(--primary); }
.app__text .btn--primary:hover { background: #eaf6ff; }
.app__visual { display: flex; justify-content: center; }
.phone { width: 190px; height: 360px; background: #0b2330; border-radius: 32px; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); position: relative; }
.phone__notch { width: 70px; height: 18px; background: #0b2330; border-radius: 0 0 12px 12px; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; }
.phone__screen { width: 100%; height: 100%; border-radius: 22px; background: linear-gradient(160deg, #e7f4fb, #d9f2ef); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.phone__logo { font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.phone__logo span { color: var(--teal); }
.phone__ticket { background: #fff; border-radius: 50px; padding: 8px 16px; font-size: .82rem; font-weight: 600; color: var(--primary); box-shadow: var(--shadow); }

/* ===== Agencies ===== */
.agencies { padding: 64px 0; background: var(--bg-soft); }
.agencies__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.agency { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow); }
.agency h3 { font-size: 1.05rem; font-weight: 700; }
.agency p { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.agency__meta { font-size: .82rem !important; color: var(--teal) !important; font-weight: 600; }

/* ===== Contact ===== */
.contact { padding: 64px 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  background: var(--bg-soft); border-radius: 28px; padding: 44px; border: 1px solid var(--line); }
.contact__text h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; letter-spacing: -.5px; }
.contact__text p { color: var(--muted); margin-top: 10px; }
.contact__cards { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: transform .15s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; flex-shrink: 0; }
.contact-card__icon svg { width: 24px; height: 24px; fill: #fff; }
.contact-card strong { display: block; font-size: 1rem; }
.contact-card span { color: var(--muted); font-size: .95rem; }

/* ===== Footer ===== */
.footer { background: #0b2330; color: #c4d4dd; padding: 56px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer__brand p { margin-top: 14px; font-size: .92rem; max-width: 280px; color: #9fb3bf; }
.logo--footer .logo__text { color: #fff; }
.logo--footer .logo__icon { stroke: var(--teal); }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__col a { display: block; color: #9fb3bf; font-size: .92rem; padding: 5px 0; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; padding: 0; }
.footer__social a:hover { background: var(--teal); }
.footer__social svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding: 20px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__bottom p { font-size: .85rem; color: #7f96a3; }

/* ===== Floating WhatsApp ===== */
.fab-wa { position: fixed; bottom: 22px; right: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.5); transition: transform .2s; }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; fill: #fff; }

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .actions__grid, .schedule__grid { grid-template-columns: 1fr; }
  .destinations__grid, .services__grid, .agencies__grid { grid-template-columns: repeat(2, 1fr); }
  .app__inner { grid-template-columns: 1fr; text-align: center; padding: 40px 28px; }
  .app__text p { margin-left: auto; margin-right: auto; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 14px 18px 22px; gap: 2px; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(10,60,90,.1);
    max-height: calc(100vh - 70px); overflow-y: auto;
    transform: translateY(-130%); transition: transform .28s ease; z-index: 40;
  }
  .nav.open { transform: translateY(0); }
  .nav__link { padding: 12px; font-size: 1rem; text-align: left; }
  .nav__group { width: 100%; }
  .nav__group--wa { margin-left: 0; }
  .nav__btn { width: 100%; justify-content: space-between; }
  .nav__cta { width: 100%; margin: 8px 0 0; justify-content: center; }
  /* Acordeón en móvil */
  .dropdown, .dropdown--right {
    position: static; left: auto; right: auto; min-width: 0;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 0 0 4px 12px; padding: 0;
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav__group:hover .dropdown { max-height: 0; }
  .nav__group.open .dropdown { max-height: 520px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .destinations__grid, .services__grid, .agencies__grid, .footer__inner { grid-template-columns: 1fr; }

  /* Hero más compacto y sin cortes */
  .hero__inner { padding: 48px 18px 84px; }
  .hero__eyebrow { font-size: .66rem; letter-spacing: .3px; line-height: 1.5; }
  .hero__title { font-size: clamp(1.75rem, 8vw, 2.4rem); letter-spacing: -.5px; }
  .hero__subtitle { font-size: 1rem; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .btn--lg { padding: 14px 24px; font-size: 1rem; }

  /* Horarios: que las horas entren cómodas */
  .route { padding: 20px 18px; }
  .route__head h3 { font-size: .98rem; }
  .route__times { gap: 6px; }
  .route__times li { padding: 7px 0; font-size: .86rem; }

  /* Secciones un poco más ajustadas */
  .section__title { font-size: clamp(1.45rem, 6vw, 1.9rem); }
  .contact__inner, .app__inner { padding: 30px 20px; }
  .card-action { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ===================================================== */
/* =============== PÁGINAS INTERNAS ===================== */
/* ===================================================== */

/* Sub-hero */
.subhero { position: relative; color: #fff; text-align: center; padding: 54px 0 60px;
  background: radial-gradient(900px 400px at 80% -20%, rgba(255,255,255,.16), transparent 60%),
              linear-gradient(135deg, #0a72b0 0%, #0d8bb8 45%, #1fb0a8 100%); }
.subhero h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); font-weight: 800; letter-spacing: -.6px; }
.subhero p { opacity: .95; max-width: 640px; margin: 12px auto 0; font-size: 1.05rem; }
.crumb { display: flex; gap: 8px; justify-content: center; align-items: center; font-size: .85rem; margin-bottom: 14px; opacity: .92; }
.crumb a { color: #fff; } .crumb a:hover { text-decoration: underline; } .crumb span { opacity: .55; }

.page { padding: 56px 0 72px; }
.page--soft { background: var(--bg-soft); }

/* Notice / aviso */
.notice { display: flex; gap: 12px; align-items: flex-start; background: #fff7e6; border: 1px solid #f3d488;
  color: #8a5a00; border-radius: 12px; padding: 14px 18px; font-size: .92rem; max-width: 760px; margin: 0 auto 32px; }
.notice svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: #c98a16; stroke-width: 2; }

/* Toolbar / búsqueda */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 0 auto 30px; max-width: 720px; }
.input { font-family: inherit; font-size: .95rem; padding: 12px 18px; border: 1px solid var(--line);
  border-radius: 50px; background: #fff; color: var(--ink); min-width: 240px; flex: 1; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,114,176,.15); }
select.input { cursor: pointer; }
.count { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 22px; }

/* Bloques de tarifas */
.fareblock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.fareblock__head { padding: 16px 22px; background: var(--bg-soft); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fareblock__head h3 { font-size: 1.02rem; font-weight: 700; }
.fareblock__sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.badge { background: #e7f4fb; color: var(--primary); font-size: .74rem; font-weight: 600; padding: 4px 11px; border-radius: 50px; white-space: nowrap; }
.fareblock__scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; min-width: 420px; }
.tbl th, .tbl td { text-align: left; padding: 11px 22px; font-size: .92rem; border-bottom: 1px solid var(--line); }
.tbl th { font-weight: 600; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .5px; background: #fff; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tbl td.num { color: var(--ink); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--bg-soft); }
.tbl mark { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 2px; }

/* Pasos numerados */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: var(--shadow); }
.step__n { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--teal)); color: #fff; font-weight: 700; display: grid; place-items: center; margin: 0 auto 14px; }
.step h3 { font-size: 1.08rem; font-weight: 700; }
.step p { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* Split content */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.4px; }
.prose p { color: var(--muted); margin-top: 12px; }
.checklist { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; font-weight: 500; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--teal); font-weight: 800; font-size: 1.05rem; }
.illus { border-radius: 24px; min-height: 280px; background: linear-gradient(150deg, #0a72b0, #1fb0a8); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.illus svg { width: 110px; height: 110px; fill: none; stroke: rgba(255,255,255,.92); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.illus::after { content: attr(data-label); position: absolute; bottom: 22px; font-weight: 700; font-size: 1.1rem; opacity: .95; }

/* Agencias */
.group-title { margin: 38px 0 6px; font-size: 1.2rem; font-weight: 700; border-left: 4px solid var(--primary); padding-left: 12px; }
.ag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.ag { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); }
.ag h3 { font-size: 1rem; font-weight: 700; }
.ag .row { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin-top: 8px; }
.ag .row svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--primary); stroke-width: 1.8; }
.ag .row a { color: var(--primary); font-weight: 600; }
.ag .auto { display: inline-block; margin-top: 10px; background: #e8f7ee; color: #1a8f4d; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 50px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Caja de contacto (páginas de formulario informativas) */
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 30px; max-width: 720px; margin: 0 auto; text-align: center; }
.contact-box h2 { font-size: 1.4rem; font-weight: 700; }
.contact-box p { color: var(--muted); margin: 10px auto 24px; max-width: 520px; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fields-preview { text-align: left; max-width: 560px; margin: 28px auto 0; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 12px; padding: 20px 24px; }
.fields-preview h4 { font-size: .95rem; margin-bottom: 10px; }
.fields-preview ul { margin-left: 18px; color: var(--muted); font-size: .9rem; display: grid; gap: 5px; }

/* Rutas */
.routes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; }
.routecard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.routecard__num { background: linear-gradient(135deg, var(--primary), var(--teal)); color: #fff; font-weight: 700; font-size: .8rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.routecard h3 { font-size: .98rem; font-weight: 600; }
.routecard--hot { border-color: var(--teal); border-width: 2px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ag-grid { grid-template-columns: repeat(2, 1fr); }
  .routes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ag-grid { grid-template-columns: 1fr; }
  .subhero { padding: 44px 0 48px; }
  .tbl th, .tbl td { padding: 10px 16px; }
}

/* ===== Páginas legales / contacto ===== */
.legal { max-width: 850px; margin: 0 auto; }
.legal .updated { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 10px; color: var(--ink); letter-spacing: -.3px; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 22px 0 6px; color: var(--ink); }
.legal p { color: var(--muted); margin: 10px 0; }
.legal ul, .legal ol { color: var(--muted); margin: 10px 0 14px 4px; display: grid; gap: 8px; list-style-position: inside; }
.legal li { padding-left: 2px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--primary); font-weight: 500; }
.legal__toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 18px 24px; margin-bottom: 28px; }
.legal__toc strong { display: block; margin-bottom: 8px; }
.legal__toc a { display: inline-block; margin: 3px 14px 3px 0; font-weight: 500; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.cmethod { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); text-align: center; transition: transform .15s, box-shadow .2s; }
.cmethod:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cmethod__icon { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px; display: grid; place-items: center; background: linear-gradient(135deg, #e7f4fb, #d9f2ef); }
.cmethod__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cmethod h3 { font-size: 1.02rem; font-weight: 700; }
.cmethod p { color: var(--muted); font-size: .9rem; margin-top: 5px; }
.cmethod a { color: var(--primary); font-weight: 600; word-break: break-word; }
.map-embed { margin-top: 36px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== Mapas (Leaflet) ===== */
.mapwrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 28px; position: relative; }
#agencyMap, #routeMap { width: 100%; height: 460px; background: #e8eef1; z-index: 1; }
.leaflet-popup-content { font-family: 'Poppins', sans-serif; font-size: .86rem; margin: 12px 14px; }
.leaflet-popup-content strong { display:block; font-size:.95rem; color: var(--ink); margin-bottom: 4px; }
.leaflet-popup-content .pp-row { color: var(--muted); margin-top: 3px; }
.leaflet-popup-content a { color: var(--primary); font-weight: 600; }
.map-pin { background: var(--primary); width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.map-pin--auto { background: var(--teal); }

/* Selector de rutas sobre el mapa */
.route-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.route-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 50px; padding: 7px 14px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s; color: var(--muted); }
.route-chip:hover { border-color: var(--primary); color: var(--primary); }
.route-chip__dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.route-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.route-chip.active .route-chip__dot { box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.route-meta { display: flex; gap: 18px; flex-wrap: wrap; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin-bottom: 20px; }
.route-meta__item { font-size: .92rem; color: var(--muted); }
.route-meta__item strong { color: var(--ink); font-size: 1.05rem; }
.route-meta__note { font-size: .78rem; color: var(--muted); width: 100%; }

@media (max-width: 600px) { #agencyMap, #routeMap { height: 360px; } }
.routecard--sel { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(10,114,176,.25), var(--shadow); }
