/* Carrera Tours · sitio de muestra (TYM Digital)
   Tema único oscuro: el azul del escudo de la marca + el naranja como único acento.
   Radios: tarjetas y medios 16px, botones píldora. */
@font-face { font-family: "Bricolage"; src: url(fonts/bricolage.woff2) format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Outfit"; src: url(fonts/outfit.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #0D1724;
  --bg-2: #111E2E;
  --surface: #16263A;
  --line: rgba(220, 232, 245, .12);
  --text: #EEF2F6;
  --muted: #A3B2C3;
  --accent: #E8892B;
  --accent-ink: #1A1006;
  --accent-soft: rgba(232, 137, 43, .14);
  --radius: 16px;
  --wrap: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 400 17px/1.6 "Outfit", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: "Bricolage", "Outfit", sans-serif; font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
h2 { font-size: clamp(32px, 4.4vw, 54px); max-width: 18ch; }
h3 { font-size: 24px; letter-spacing: -.015em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
section { position: relative; }

/* botones */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.btn i { font-size: 21px; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #F09A43; transform: translateY(-1px); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(13, 23, 36, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; }
.btn-line { border: 1.5px solid var(--line); color: var(--text); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* barra de muestra */
.demo-bar { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: 13px; font-weight: 600; padding: 7px 16px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(16px, calc((100% - var(--wrap)) / 2)); background: rgba(13, 23, 36, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: "Bricolage"; font-weight: 700; font-size: 20px; }
.brand img { width: 40px; height: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 13px "Outfit"; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--text); }

/* hero */
.hero { min-height: calc(100dvh - 104px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 23, 36, .15) 0%, rgba(13, 23, 36, .05) 35%, rgba(13, 23, 36, .78) 78%, var(--bg) 100%), linear-gradient(90deg, rgba(13, 23, 36, .55), transparent 60%); }
.hero-content { position: relative; width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding: 0 0 72px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); max-width: 13ch; text-wrap: balance; }
.hero-sub { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: #D5DEE8; max-width: 46ch; }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

/* datos */
.facts { width: min(var(--wrap), 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 28px 24px; display: grid; gap: 4px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { font-family: "Bricolage"; font-size: 30px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.fact strong i { color: var(--accent); font-size: 24px; }
.fact span { color: var(--muted); font-size: 15px; }

/* tours */
.tours { padding: 120px 0 96px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filters button { background: none; border: 1.5px solid var(--line); color: var(--muted); font: 600 15px "Outfit"; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.filters button:hover { color: var(--text); border-color: rgba(220, 232, 245, .3); }
.filters button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tour-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tour { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.tour[hidden] { display: none; }
.tour-media { overflow: hidden; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform .8s var(--ease); }
.tour:hover .tour-media img { transform: scale(1.03); }
.tour-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; flex: 1; }
.tour-body p { color: var(--muted); max-width: 52ch; }
.tour-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.tour-feature .tour-media img { aspect-ratio: auto; min-height: 420px; }
.tour-feature .tour-body { padding: 40px; justify-content: center; }
.tour-feature h3 { font-size: clamp(28px, 3vw, 38px); }
.tour-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; }
.tour-wide .tour-media img { aspect-ratio: auto; min-height: 360px; }
.tour-wide-rev { grid-template-columns: 1.1fr 1fr; }
.tour-wide-rev .tour-media { order: 2; }
.price-row { margin-top: auto; padding-top: 8px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price { font-family: "Bricolage"; font-size: 28px; font-weight: 700; color: var(--text) !important; display: flex; align-items: baseline; gap: 6px; }
.price small { font-family: "Outfit"; font-size: 14px; font-weight: 400; color: var(--muted); }
.price-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin: 4px 0 6px; }
.price-split p { background: var(--bg-2); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; color: var(--muted) !important; font-size: 14px; }
.price-split strong { font-family: "Bricolage"; font-size: 26px; color: var(--text); }
.fine { font-size: 13.5px; color: var(--muted); }
.tag { background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text); font-size: 15px; }
.meta li { display: flex; align-items: center; gap: 7px; }
.meta i { color: var(--accent); font-size: 19px; }
.note { margin-top: 26px; color: var(--muted); }

/* banda de video */
.band { min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.band-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 23, 36, .88) 0%, rgba(13, 23, 36, .5) 45%, rgba(13, 23, 36, 0) 75%), linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.band-content { position: relative; }
.band h2 { max-width: 15ch; }
.band p { margin-top: 18px; max-width: 42ch; color: #D5DEE8; font-size: 19px; }

/* ruta (motion graphic) */
.route { background: var(--bg-2); }
.route-pin { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 72px 0; }
.route-stage { position: relative; width: min(1200px, 100% - 32px); margin: 150px auto 40px; aspect-ratio: 1200 / 420; }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-ghost { fill: none; stroke: rgba(220, 232, 245, .14); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; }
.route-line { fill: none; stroke: url(#wake); stroke-width: 5; stroke-linecap: round; }
.stops { list-style: none; position: absolute; inset: 0; }
.stop { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.stop-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.stop img { max-width: none; height: auto; position: absolute; bottom: 30px; left: 50%; translate: -50% 0; width: 170px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 3px solid var(--bg-2); box-shadow: 0 18px 40px rgba(4, 9, 16, .55); }
.stop-card { position: absolute; top: 28px; left: 50%; translate: -50% 0; width: 210px; text-align: center; display: grid; gap: 2px; }
.stop-card strong { font-family: "Bricolage"; font-size: 17px; line-height: 1.2; }
.stop-card span { color: var(--muted); font-size: 14px; line-height: 1.35; }
.stop:first-child .stop-card { left: 0; translate: -12% 0; text-align: left; }

/* cómo reservar */
.book { padding: 120px 0; }
.book-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.steps { list-style: none; margin: 36px 0 36px; display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.num { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font: 700 22px "Bricolage"; }
.steps strong { font-family: "Bricolage"; font-size: 21px; }
.steps p { color: var(--muted); }
.book-video video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--surface); box-shadow: 0 30px 70px rgba(4, 9, 16, .5); }
.book-video figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* cotizador */
.quote { padding: 120px 0; background: var(--bg-2); }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.quote-copy p { margin-top: 16px; color: var(--muted); max-width: 44ch; font-size: 18px; }
.quote-photo { margin-top: 32px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.quote-form { background: var(--surface); border-radius: 20px; padding: 32px; display: grid; gap: 18px; border: 1px solid var(--line); }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 14px; font-weight: 600; color: #C9D4E0; }
.field select, .field input { width: 100%; background: var(--bg); color: var(--text); border: 1.5px solid rgba(220, 232, 245, .2); border-radius: 12px; padding: 13px 14px; font: 400 16px "Outfit"; color-scheme: dark; }
.field select:focus, .field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder { color: #7F8EA0; }
.field input[aria-invalid="true"] { border-color: #F07A6A; }
.stepper { display: grid; grid-template-columns: 46px 1fr 46px; border: 1.5px solid rgba(220, 232, 245, .2); border-radius: 12px; overflow: hidden; background: var(--bg); }
.stepper button { background: none; border: 0; color: var(--text); font-size: 18px; cursor: pointer; }
.stepper button:hover { color: var(--accent); }
.stepper input { border: 0 !important; border-radius: 0; text-align: center; padding: 13px 0; -moz-appearance: textfield; box-shadow: none !important; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.quote-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 18px 0 4px; border-top: 1px solid var(--line); }
.quote-total span { color: var(--muted); font-size: 15px; }
.quote-total strong { font-family: "Bricolage"; font-size: 38px; grid-row: span 2; }
.quote-total small { color: var(--muted); font-size: 14px; }
.form-error { color: #F49A8C; font-size: 14px; }
.btn-block { justify-content: center; width: 100%; border: 0; cursor: pointer; font-family: "Outfit"; }

/* nosotros */
.about { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-photos { position: relative; min-height: 520px; }
.about-photos img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(4, 9, 16, .5); }
.ap-1 { top: 0; left: 0; width: 78%; aspect-ratio: 16 / 10; }
.ap-2 { bottom: 0; right: 0; width: 58%; aspect-ratio: 4 / 3; border: 6px solid var(--bg); }
.about-copy p { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 52ch; }
.about-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.about-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.about-list i { color: var(--accent); font-size: 24px; }
.sign { font-family: "Bricolage"; font-weight: 700; font-size: 20px; color: var(--text) !important; display: grid; }
.sign span { font-family: "Outfit"; font-weight: 400; font-size: 14px; color: var(--muted); }

/* opiniones */
.reviews { padding: 110px 0; background: var(--bg-2); }
.rev-grid { margin-top: 44px; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.rev { background: var(--surface); border-radius: var(--radius); padding: 30px 32px; display: grid; gap: 16px; align-content: start; }
.rev-big { grid-row: span 2; align-content: center; padding: 48px; }
.rev-big p { font-family: "Bricolage"; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -.015em; }
.rev p { font-size: 18px; }
.stars { color: var(--accent); display: flex; gap: 3px; font-size: 18px; }
.rev footer { color: var(--text); font-weight: 600; display: grid; }
.rev footer span { color: var(--muted); font-weight: 400; font-size: 14px; }
.link { display: inline-block; margin-top: 28px; color: var(--accent); font-weight: 600; text-underline-offset: 4px; }

/* galería */
.gallery { padding: 110px 0; }
.masonry { margin-top: 44px; columns: 3 280px; column-gap: 16px; }
.masonry img { width: 100%; margin-bottom: 16px; border-radius: 14px; break-inside: avoid; }
.masonry img:nth-child(3n+1) { aspect-ratio: 4 / 5; object-fit: cover; }

/* faq */
.faq { padding: 100px 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 500; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 28px; color: var(--accent); transition: rotate .3s var(--ease); }
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list details p { color: var(--muted); padding: 0 0 22px; max-width: 60ch; }

/* contacto */
.contact { padding: 100px 0 120px; background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.contact-list { list-style: none; margin: 30px 0 32px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.contact-list i { color: var(--accent); font-size: 22px; flex: none; }
.contact-list a { text-decoration: none; color: var(--text); }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }

.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #25A85A; color: #fff; display: grid; place-items: center; font-size: 32px; box-shadow: 0 12px 30px rgba(4, 9, 16, .45); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.06); }

/* responsive */
@media (max-width: 1020px) {
  .nav-links { display: none; }
}
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-feature, .tour-wide, .tour-wide-rev { grid-template-columns: 1fr; }
  .tour-wide-rev .tour-media { order: 0; }
  .tour-feature .tour-media img, .tour-wide .tour-media img { min-height: 0; aspect-ratio: 16 / 10; }
  .tour-feature .tour-body { padding: 26px 24px 28px; }
  .book-grid, .faq-grid, .contact-grid, .rev-grid, .quote-grid, .about-grid { grid-template-columns: 1fr; }
  .quote-grid, .about-grid { gap: 40px; }
  .about-photos { min-height: 340px; }
  .quote-photo { display: none; }
  .rev-big { grid-row: auto; padding: 32px; }
  .route-stage { aspect-ratio: auto; height: auto; margin-top: 36px; }
  .route-svg { display: none; }
  .stops { position: static; display: grid; gap: 18px; }
  .stop { position: relative; left: auto; top: auto; transform: none; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
  .stop-dot { display: none; }
  .stop img { position: static; translate: none; width: 110px; border: 0; box-shadow: none; }
  .stop-card, .stop:first-child .stop-card { position: static; translate: none; width: auto; text-align: left; }
  .stop:first-child { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav { height: 64px; }
  .brand span { display: none; }
  .nav-actions .btn-sm span { display: none; }
  .tours, .book, .reviews, .gallery, .quote, .about { padding: 80px 0; }
  .quote-form { padding: 22px; }
  .field-row, .price-split { grid-template-columns: 1fr; }
  .hero-content { padding-bottom: 48px; }
  .fact { padding: 20px 14px; }
  .fact strong { font-size: 24px; }
}

/* movimiento: sólo si la persona no pidió reducirlo */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tour img, .btn, .wa-float { transition: none; }
}
.stops[hidden] { display: none !important; }
