/* =========================================================================
   Travel MR — sitio publico
   Base: Bootstrap 4.6 · Tipografia: Poppins (titulos) + Inter (texto)
   ========================================================================= */
:root {
    --brand: #e8931a;          /* naranja Travel MR */
    --brand-dark: #c9770a;
    --accent: #d7261e;         /* rojo Travel MR */
    --ink: #0f2a3d;            /* azul profundo */
    --ink-2: #33495a;
    --muted: #64748b;
    --line: #e5e9ef;
    --bg: #ffffff;
    --bg-alt: #f6f7fb;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 42, 61, .08);
    --shadow-lg: 0 18px 50px rgba(15, 42, 61, .16);
    --font-head: "Poppins", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    /* Movimiento: curvas con respuesta inmediata (las de CSS por defecto se sienten blandas) */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --dur-press: 140ms;
    --dur-ui: 220ms;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); color: var(--ink-2); background: var(--bg); font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4, .h5 { font-family: var(--font-head); color: var(--ink); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
a { color: var(--brand-dark); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--ink); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: .5rem; }
.narrow { max-width: 820px; }

/* Botones ---------------------------------------------------------------- */
.btn { border-radius: 999px; font-weight: 600; }
.btn-primary { background: var(--ink); border-color: var(--ink); }
.btn-primary:hover, .btn-primary:focus { background: #183d57; border-color: #183d57; }
.btn-outline-primary { color: var(--ink); border-color: var(--ink); }
.btn-outline-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-accent { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-whatsapp { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #178a45; color: #fff; }

/* Barra superior y navegacion --------------------------------------------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.8); font-size: .85rem; padding: .35rem 0; }
.topbar a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); transition: background-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header { background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
}
.site-header .navbar { padding-top: .6rem; padding-bottom: .6rem; }
.site-header .navbar-brand img { height: 44px; width: auto; }
.site-header .nav-link { font-weight: 500; color: var(--ink); padding: .5rem .8rem !important; border-radius: 8px; }
.site-header .nav-link:hover, .site-header .active > .nav-link { color: var(--brand-dark); }
.navbar-toggler { color: var(--ink); font-size: 1.5rem; border: 0; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(15,42,61,.08); }

/* Home: menu transparente sobre el hero */
.page-home .site-header--hero:not(.is-scrolled) { background: transparent; box-shadow: none; position: absolute; left: 0; right: 0; }
@media (min-width: 992px) {
    .page-home .site-header--hero:not(.is-scrolled) .nav-link { color: #fff; }
    .page-home .site-header--hero:not(.is-scrolled) .nav-link:hover { color: var(--brand); }
}
.page-home .site-header--hero:not(.is-scrolled) .navbar-toggler { color: #fff; }
.page-home .site-header--hero.is-scrolled { position: fixed; left: 0; right: 0; }
@media (max-width: 991.98px) {
    .site-header .navbar-collapse { background: #fff; border-radius: var(--radius); padding: .75rem; margin-top: .5rem; box-shadow: var(--shadow-lg); }
}

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; min-height: min(92vh, 780px); min-height: min(92svh, 780px); display: flex; align-items: center; color: #fff;
        background: linear-gradient(100deg, rgba(10,28,41,.88) 0%, rgba(10,28,41,.55) 55%, rgba(10,28,41,.25) 100%), var(--hero-img) center/cover no-repeat;
        padding: 140px 0 80px; }
/* Portada: encabezado + carrusel de proximas salidas + buscador.
   Escritorio: texto a la izquierda, carrusel a la derecha. Movil: titulo, carrusel, buscador. */
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 3rem;
               grid-template-areas: "head slides" "actions slides"; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.3rem); margin-bottom: 1rem; }
@media (min-width: 1200px) { .hero > .container, .page-home .site-header .navbar.container, .page-home .topbar .container { max-width: 1320px; } }
.hero .lead { color: rgba(255,255,255,.88); max-width: 560px; }
.hero .eyebrow { color: var(--brand); }
.hero-search { display: flex; gap: .5rem; background: #fff; padding: .5rem; border-radius: 999px; max-width: 560px; margin: 1.75rem 0 1.25rem; box-shadow: var(--shadow-lg); }
.hero-search .custom-select { border: 0; border-radius: 999px; height: 48px; font-weight: 500; color: var(--ink); }
.hero-search .btn { padding: 0 1.4rem; white-space: nowrap; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .92rem; color: rgba(255,255,255,.9); }
.hero__chips .fa { color: var(--brand); }
.hero__inner--solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "actions"; }
.hero__head { grid-area: head; align-self: end; }
.hero__actions { grid-area: actions; align-self: start; }
.hero .slides { grid-area: slides; }
/* Fondo en movimiento: video propio o fotos que cambian con la tarjeta de salidas */
.hero--media { isolation: isolate; background: var(--ink); }
.hero__video, .hero__bgs { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__bg { position: absolute; inset: 0; opacity: 0; transition: opacity 1200ms var(--ease-in-out); }
.hero__bg.is-active { opacity: 1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
/* Acercamiento lento y constante (lineal); la clase is-leaving conserva la animacion durante el desvanecido */
.hero__bg.is-active img, .hero__bg.is-leaving img { animation: hero-zoom 12s linear forwards; }
.hero.is-paused .hero__bg img { animation-play-state: paused; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero--media::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
                       background: linear-gradient(100deg, rgba(10,28,41,.86) 0%, rgba(10,28,41,.55) 55%, rgba(10,28,41,.3) 100%); }
@media (max-width: 991.98px) {
    .hero--media::before { background: linear-gradient(180deg, rgba(10,28,41,.82) 0%, rgba(10,28,41,.55) 45%, rgba(10,28,41,.8) 100%); }
}
.hero__pause { position: absolute; right: 16px; bottom: 16px; z-index: 2; }

/* Carrusel */
.slides { min-width: 0; }
.slides__track { display: grid; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg);
                 touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.slide { grid-area: 1 / 1; display: flex; flex-direction: column; color: var(--ink); text-decoration: none !important;
         opacity: 0; visibility: hidden; transform: scale(.985);
         transition: opacity 600ms var(--ease-in-out), transform 600ms var(--ease-in-out), visibility 0s linear 600ms; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; z-index: 1; }
.slide:hover { color: var(--ink); }
.slide__media { position: relative; display: block; aspect-ratio: 4 / 3; max-height: 56vh; width: 100%; overflow: hidden; background: var(--ink); }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.75); transform: scale(1.15); }
.slide__img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; }
.slide__tag { position: absolute; left: 12px; top: 12px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 600;
              letter-spacing: .04em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.slide__body { display: block; padding: .9rem 1.25rem 1.1rem; }
.slide__body small { display: block; color: var(--muted); font-size: .82rem; }
.slide__body small .fa { color: var(--brand); }
.slide__body strong { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.25; margin: .15rem 0 .2rem; overflow-wrap: anywhere; }
.slide__price { color: var(--brand-dark); font-weight: 600; }
.slides__controls { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .9rem; }
.slides__btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(10,28,41,.35);
               color: #fff; display: grid; place-items: center; font-size: 1.1rem; line-height: 1; padding: 0;
               -webkit-tap-highlight-color: transparent; touch-action: manipulation;
               transition: transform var(--dur-press) var(--ease-out), background-color 150ms ease; }
.slides__btn:active { transform: scale(.92); }
.slides__pause { font-size: .8rem; margin-left: .35rem; }
.slides__dots { display: flex; gap: .4rem; padding: 0 .25rem; }
.slides__dot { width: 22px; height: 24px; border: 0; padding: 0; background: transparent; display: grid; align-items: center; cursor: pointer;
               -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.slides__dot span { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); overflow: hidden; position: relative;
                    transition: background-color 150ms ease; }
.slides__dot.is-active { width: 40px; }
.slides__dot.is-active span { background: rgba(255,255,255,.4); }
.slides__dot.is-active span::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left center; transform: scaleX(1); }
.slides.is-running .slides__dot.is-active span::after { animation: slide-progress var(--slide-dur, 6000ms) linear forwards; }
@keyframes slide-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) {
    .slides__btn:hover { background: rgba(255,255,255,.2); }
    .slide:hover .slide__img { transform: scale(1.02); }
    .slide__img { transition: transform 400ms var(--ease-out); }
}

@media (max-width: 991.98px) {
    .hero { min-height: auto; padding: 108px 0 48px; }
    .hero__inner, .hero__inner--solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "slides" "actions"; row-gap: 1.25rem; }
    .hero__head h1 { margin-bottom: .5rem; }
    .slides { width: 100%; }
    .slide__media { aspect-ratio: 4 / 3; max-height: none; }
    .hero-search { margin-top: .25rem; }
}
@media (max-width: 575.98px) {
    .hero .lead { display: none; }
    .hero h1 { font-size: 2rem; }
}
@media (max-width: 575.98px) {
    .hero-search { flex-direction: column; border-radius: var(--radius); }
    .hero-search .custom-select, .hero-search .btn { border-radius: 10px; height: 48px; }
}

/* Estadisticas ------------------------------------------------------------ */
.stats { background: var(--brand); color: #fff; padding: 1.75rem 0; }
.stats strong { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.1; }
.stats span { font-size: .9rem; opacity: .95; }

/* Secciones --------------------------------------------------------------- */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.85); }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: var(--brand); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head p { margin-bottom: 0; max-width: 620px; }
.section-head--center { display: block; text-align: center; }
.section-head--center p { margin: 0 auto; }
@media (max-width: 767.98px) { .section { padding: 3.25rem 0; } }

.page-hero { background: linear-gradient(135deg, var(--ink) 0%, #1d4a69 100%); color: rgba(255,255,255,.85); padding: 3rem 0 2.5rem; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .35rem; }
.page-hero p { margin: 0; }
.crumbs { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; font-size: .85rem; }
.crumbs li + li::before { content: "›"; padding: 0 .5rem; opacity: .6; }
.crumbs a { color: var(--brand); }
.crumbs, .crumbs--light { color: rgba(255,255,255,.75); }

/* Tarjetas de viaje ------------------------------------------------------- */
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.trip-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) ease; }
.trip-card__media { position: relative; display: block; aspect-ratio: 4/3; background: var(--bg-alt); overflow: hidden; }
.trip-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.trip-card__date { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); border-radius: 10px; padding: .25rem .6rem; text-align: center; line-height: 1.1; font-size: .75rem; text-transform: uppercase; font-weight: 600; box-shadow: var(--shadow); }
.trip-card__date strong { display: block; font-family: var(--font-head); font-size: 1.25rem; }
.trip-card__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.trip-card__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.trip-card__meta .fa { color: var(--brand); }
.trip-card__title { font-size: 1.15rem; margin-bottom: .4rem; }
.trip-card__title a { color: var(--ink); }
.trip-card__title a:hover { color: var(--brand-dark); text-decoration: none; }
.trip-card__text { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; text-transform: lowercase; }
.trip-card__text::first-letter { text-transform: uppercase; }
.trip-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.trip-card__price { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.25rem; }
.trip-card__price small { font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--muted); }

/* Filtros */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.filters .form-control, .filters .custom-select { height: 48px; border-radius: 12px; border-color: var(--line); }
.filters__search { position: relative; }
.filters__search .fa { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filters__search input { padding-left: 42px; }
.chips { grid-column: 1 / -1; display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem 1rem; font-size: .9rem; color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.results-count { color: var(--muted); font-size: .9rem; }
@media (max-width: 767.98px) { .filters { grid-template-columns: 1fr 1fr; } .filters__search { grid-column: 1 / -1; } }
.empty-state { text-align: center; padding: 3rem 1rem; background: var(--bg-alt); border-radius: var(--radius); color: var(--muted); }

/* Servicios */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card { background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 4px solid var(--brand); }
.service-card > .fa { font-size: 1.8rem; color: var(--brand); background: #fdf1e1; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.2rem; }
.service-card p { font-size: .95rem; flex: 1; }
.service-card__link { font-weight: 600; color: var(--ink); }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { text-align: center; padding: 0 .5rem; position: relative; }
.steps li span { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin: 0 auto 1rem; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; box-shadow: 0 0 0 8px #fdf1e1; }
.steps h3 { font-size: 1.15rem; }
.steps p { font-size: .93rem; color: var(--muted); }
@media (max-width: 767.98px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Galeria de viajes realizados */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; display: block; }
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.gallery__item span { position: absolute; inset: auto 0 0 0; padding: 2rem .9rem .75rem; color: #fff; font-weight: 600; font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.gallery__item small { display: block; font-weight: 400; opacity: .85; }
@media (max-width: 767.98px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* Nosotros, FAQ, contacto */
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.75rem; position: relative; margin-bottom: .4rem; }
.checklist li::before { content: "\f00c"; font-family: FontAwesome; color: var(--brand); position: absolute; left: 0; }
.quote-card { margin: 0; padding: 2.5rem; border-radius: 20px; color: #fff; font-family: var(--font-head); font-size: 1.4rem; line-height: 1.4;
              background: linear-gradient(135deg, rgba(215,38,30,.92), rgba(232,147,26,.92)), url("../images/travelSeccion.jpg") center/cover; box-shadow: var(--shadow-lg); }
.quote-card p { margin: 0; }
.faq details { background: #fff; border-radius: 12px; margin-bottom: .75rem; box-shadow: var(--shadow); }
.faq summary { padding: 1.1rem 1.25rem; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; }
.contact-card { background: var(--bg-alt); border-radius: var(--radius); padding: 1.75rem; }
.contact-card li { margin-bottom: .5rem; }
.contact-card .fa { color: var(--brand); width: 20px; }
.map-embed { margin-top: 1rem; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Formulario */
.quote-form label { font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .3rem; }
.quote-form .form-control, .quote-form .custom-select { border-radius: 10px; border-color: #d6dce4; min-height: 46px; }
.quote-form .form-control:focus, .quote-form .custom-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(232,147,26,.2); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quote-form.is-sending { opacity: .6; pointer-events: none; }

.cta-band { background: linear-gradient(120deg, var(--accent), var(--brand)); color: #fff; padding: 2.5rem 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.6rem; margin: 0; }
.cta-band p { margin: 0; opacity: .95; }

/* Detalle de viaje -------------------------------------------------------- */
.trip-hero { position: relative; color: #fff; padding: 3rem 0 2.5rem; overflow: hidden; background: var(--ink); }
.trip-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.45); transform: scale(1.15); }
.trip-hero .container { position: relative; }
.trip-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); }
.trip-facts { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.trip-facts .fa { color: var(--brand); }
.trip-layout { margin-top: 2rem; }
.trip-cover { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.trip-cover img { width: 100%; display: block; }
.trip-intro { font-size: 1.1rem; color: var(--ink); }
.trip-section { border: 1px solid var(--line); border-radius: 12px; margin-bottom: .9rem; background: #fff; }
.trip-section summary { padding: 1rem 1.25rem; font-family: var(--font-head); font-weight: 600; color: var(--ink); cursor: pointer; font-size: 1.1rem; }
.trip-section summary .fa { color: var(--brand); margin-right: .35rem; }
.rich-text { padding: 0 1.25rem 1.25rem; }
.rich-text h3, .rich-text h4, .rich-text h5 { font-size: 1.05rem; margin-top: 1rem; }
.rich-text ul { padding-left: 1.2rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.5rem 0; }
.share span { font-weight: 600; color: var(--ink); margin-right: .25rem; }
.share__btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem 1rem; font-size: .9rem; color: var(--ink); }
.share__btn:hover { text-decoration: none; border-color: var(--ink); color: var(--ink); }
.share__btn--wa .fa { color: #1fa855; }
.share__btn--fb .fa { color: #1877f2; }

.price-box { position: sticky; top: 90px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1.5rem; border: 1px solid var(--line); }
.price-box__head { border-bottom: 1px dashed var(--line); padding-bottom: 1rem; margin-bottom: 1rem; }
.price-box__head strong { font-family: var(--font-head); font-size: 2.2rem; color: var(--ink); display: block; line-height: 1.1; }
.price-box__head small { color: var(--muted); }
.price-box__title { font-size: 1.05rem; }
.qty-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.qty-row small { color: var(--muted); display: block; font-size: .78rem; }
.qty-row__price { font-size: .85rem; color: var(--brand-dark); font-weight: 600; }
.qty { display: flex; align-items: center; gap: .5rem; }
.qty output { min-width: 1.5rem; text-align: center; font-weight: 700; color: var(--ink); }
.qty__btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; line-height: 1; color: var(--ink); }
.qty__btn:hover { border-color: var(--ink); }
.price-box__total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0 .5rem; }
.price-box__total strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); }
.price-box__note { font-size: .78rem; color: var(--muted); }
@media (max-width: 991.98px) { .price-box { position: static; margin-bottom: 2rem; } }

/* Transporte */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-row > div { text-align: center; }
.feature-row .fa { font-size: 1.6rem; color: var(--brand); margin-bottom: .5rem; }
.feature-row h2 { font-size: 1.05rem; }
.feature-row p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 767.98px) { .feature-row { grid-template-columns: 1fr 1fr; } }
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.fleet-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fleet-card__media { position: relative; display: block; width: 100%; border: 0; padding: 0; aspect-ratio: 3/2; background: var(--bg-alt); cursor: zoom-in; }
.fleet-card__media img { width: 100%; height: 100%; object-fit: cover; }
.badge-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.65); color: #fff; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; }
.fleet-card__body { padding: 1.1rem 1.25rem 1.25rem; }
.fleet-card__body h3 { font-size: 1.1rem; }
.fleet-card__specs { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .88rem; color: var(--muted); }
.fleet-card__specs .fa { color: var(--brand); }
#gallery-carousel img { width: 100%; max-height: 75vh; object-fit: contain; background: #000; }

/* Pie de pagina ----------------------------------------------------------- */
.site-footer { background: #0b2030; color: rgba(255,255,255,.75); padding: 4rem 0 1.5rem; font-size: .93rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand); }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .fa { width: 18px; color: var(--brand); }
.footer-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); margin-right: .4rem; }
.footer-social a .fa { color: #fff; width: auto; }
.footer-social a:hover { background: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; align-items: center; gap: .5rem; background: #1fa855; color: #fff; border-radius: 999px; padding: .7rem 1.1rem; box-shadow: 0 10px 25px rgba(31,168,85,.4); font-weight: 600; text-decoration: none !important; }
.wa-float:hover { color: #fff; background: #178a45; }
.wa-float .fa { font-size: 1.6rem; }
@media (max-width: 575.98px) { .wa-float span { display: none; } .wa-float { padding: .8rem; } }

/* Animacion de aparicion: corta, con curva de salida rapida y escalonada desde JS (--stagger) */
.reveal { opacity: 0; transform: translateY(12px);
          transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
          transition-delay: var(--stagger, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Interacciones con mouse: solo en equipos que realmente tienen hover (evita estados "pegados" al tocar) */
@media (hover: hover) and (pointer: fine) {
    .trip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
    .trip-card:hover:active { transform: translateY(-4px) scale(.99); }
    .trip-card:hover .trip-card__media img { transform: scale(1.04); }
    .gallery__item:hover img { transform: scale(1.05); }
    .video__play:hover img { transform: scale(1.04); opacity: 1; }
    .video__play:hover .video__icon { transform: translate(-50%, -50%) scale(1.08); }
}

/* Respuesta al tocar / presionar: confirma al instante que la interfaz "escucho" */
.btn, .chip, .qty__btn, .share__btn, .wa-float, .navbar-toggler, .video__play, .fleet-card__media, .toast__close {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.btn, .chip, .qty__btn, .share__btn, .wa-float, .navbar-toggler {
    transition: transform var(--dur-press) var(--ease-out), color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.btn:active, .chip:active, .share__btn:active, .wa-float:active, .navbar-toggler:active { transform: scale(.97); }
.qty__btn:active { transform: scale(.92); }
.video__play:active .video__icon { transform: translate(-50%, -50%) scale(.94); }
.trip-card:active { transform: scale(.99); }
.qty__btn, .chip { -webkit-user-select: none; user-select: none; }
.reels { overscroll-behavior-x: contain; }

/* Total de la calculadora: senal breve cuando cambia */
.price-box__total strong { display: inline-block; transform-origin: right center; }

/* Avisos flotantes (resultado del formulario) */
.toaster { position: fixed; z-index: 1060; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(380px, calc(100% - 32px - 72px));
           display: grid; gap: 8px; pointer-events: none; }
.toast-msg { pointer-events: auto; display: flex; align-items: flex-start; gap: .75rem; background: #fff; color: var(--ink); border-radius: 12px;
             padding: .9rem 1rem; box-shadow: 0 12px 32px rgba(15,42,61,.18), 0 0 0 1px rgba(15,42,61,.06);
             opacity: 0; transform: translateY(100%); transition: opacity 400ms ease, transform 400ms ease; }
.toast-msg[data-mounted="true"] { opacity: 1; transform: none; }
.toast-msg[data-removed="true"] { opacity: 0; transform: translateY(30%); transition-duration: 200ms; transition-timing-function: ease-out; }
.toast-msg .fa { font-size: 1.25rem; margin-top: .1rem; }
.toast-msg--success .fa { color: #1fa855; }
.toast-msg--error .fa { color: var(--accent); }
.toast-msg p { margin: 0; flex: 1; font-size: .95rem; line-height: 1.45; }
.toast__close { border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; line-height: 1; padding: 0 .1rem; cursor: pointer; }
@media (min-width: 576px) { .toaster { width: 380px; left: 24px; bottom: 24px; } }

/* Movimiento reducido: menos movimiento, no cero. Se conservan desvanecidos breves. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { transform: none; transition: opacity 200ms ease; transition-delay: 0ms; }
    .toast-msg { transform: none !important; transition: opacity 200ms ease; }
    .trip-card, .trip-card:hover, .btn:active, .chip:active, .qty__btn:active,
    .share__btn:active, .wa-float:active, .trip-card:active { transform: none !important; }
    .hero__bg img { animation: none !important; }
    .slide, .slide.is-active { transform: none !important; transition: opacity 200ms ease, visibility 0s linear 200ms; }
    .slide.is-active { transition-delay: 0s; }
    .trip-card__media img, .gallery__item img, .video__play img { transition: opacity 200ms ease; transform: none !important; }
    *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}

/* Home: barra superior sobre el hero */
.page-home .topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 1031; background: rgba(10,28,41,.55); }
@media (min-width: 768px) { .page-home .site-header--hero:not(.is-scrolled) { top: 33px; } }

/* Reels y videos ------------------------------------------------------------ */
.section--reels { background: linear-gradient(160deg, #0b2030 0%, #143a54 100%); color: rgba(255,255,255,.82); }
.section--reels h2 { color: #fff; }
.section--reels .eyebrow { color: var(--brand); }
.reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 991.98px) {
    .reels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto;
             scroll-snap-type: x mandatory; padding-bottom: .75rem; margin-right: -15px; padding-right: 15px; }
    .reels .video { scroll-snap-align: start; }
}
@media (min-width: 576px) and (max-width: 991.98px) { .reels { grid-auto-columns: 34%; } }
.video { margin: 0; }
.video__play, .video iframe { position: relative; display: block; width: 100%; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.video--reel .video__play, .video--reel iframe { aspect-ratio: 9 / 16; }
.video--wide .video__play, .video--wide iframe { aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg); }
.video__play { cursor: pointer; }
.video__play img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out), opacity 200ms ease; opacity: .9; }
.video__play:focus-visible img { transform: scale(1.04); opacity: 1; }
.video__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); }
.video__icon { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%;
               background: rgba(232,147,26,.95); color: #fff; display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform var(--dur-ui) var(--ease-out); }
.video__icon .fa { margin-left: 4px; }
.video figcaption { margin-top: .6rem; font-weight: 600; font-size: .95rem; }
.section--reels .video figcaption { color: #fff; }
/* Inicio en movil: 3 viajes destacados para llegar antes a los videos */
@media (max-width: 767.98px) { .page-home #viajes .trip-grid > .trip-card:nth-child(n+4) { display: none; } }

/* Viajes realizados: linea de tiempo por año y mes --------------------------- */
.history-stats { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.history-stats strong { font-family: var(--font-head); font-size: 1.5rem; color: #fff; font-variant-numeric: tabular-nums; }
.year-nav { position: sticky; top: 73px; z-index: 1020; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .year-nav { background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
}
.year-nav .container { display: flex; gap: .5rem; overflow-x: auto; padding-top: .6rem; padding-bottom: .6rem; overscroll-behavior-x: contain; scrollbar-width: none; }
.year-nav .container::-webkit-scrollbar { display: none; }
.year-nav .chip { white-space: nowrap; text-decoration: none; }
.year-nav .chip small { color: var(--muted); }
.year-nav .chip.active small { color: rgba(255,255,255,.75); }

.timeline, .timeline__months { list-style: none; margin: 0; padding: 0; }
.timeline__year { position: relative; padding-left: 2.25rem; padding-bottom: 1rem; scroll-margin-top: 150px; }
/* Riel vertical */
.timeline__year::before { content: ""; position: absolute; left: .55rem; top: .5rem; bottom: 0; width: 2px; background: var(--line); }
.timeline__year-title { position: relative; display: inline-block; margin: 0 0 1.25rem -2.25rem; padding: .3rem 1rem; border-radius: 999px;
                        background: var(--ink); color: #fff; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.timeline__month { position: relative; margin-bottom: 2rem; }
/* Punto del mes sobre el riel */
.timeline__month::before { content: ""; position: absolute; left: -2.25rem; top: .45rem; width: 1.15rem; height: 1.15rem; margin-left: .05rem;
                           border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 0 0 4px var(--bg); }
.timeline__month-title { font-size: 1.15rem; margin-bottom: .9rem; display: flex; align-items: baseline; gap: .6rem; }
.timeline__month-title small { font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: var(--muted); }
.timeline__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }

.tl-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
           transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) ease; }
.tl-card__media { display: block; aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.tl-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.tl-card__body { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tl-card__date { font-size: .8rem; color: var(--muted); margin: 0 0 .25rem; }
.tl-card__date .fa { color: var(--brand); }
.tl-card__title { font-size: 1rem; line-height: 1.3; margin: 0 0 .75rem; overflow-wrap: anywhere; }
.tl-card__title a { color: var(--ink); }
.tl-card__title a:hover { color: var(--brand-dark); text-decoration: none; }
.tl-card__cta { margin-top: auto; font-size: .85rem; font-weight: 600; color: #178a45; -webkit-tap-highlight-color: transparent; }
.tl-card__cta:hover { color: #0f6e36; }
@media (hover: hover) and (pointer: fine) {
    .tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
    .tl-card:hover .tl-card__media img { transform: scale(1.04); }
}
@media (max-width: 575.98px) {
    .timeline__year { padding-left: 1.75rem; }
    .timeline__year-title { margin-left: -1.75rem; }
    .timeline__month::before { left: -1.75rem; margin-left: -.1rem; }
    .timeline__year::before { left: .45rem; }
    .timeline__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .tl-card__body { padding: .7rem .75rem .8rem; }
    .tl-card__cta { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .tl-card, .tl-card:hover, .tl-card__media img { transform: none !important; }
}
