/* Travel with Brain on the web: the app's one color ecosystem (white, warm gray, graphite, coral). */
:root {
  --coral: #B8412C;
  --coral-strong: #90311F;
  --ink: #292529;
  --secondary: #655E60;
  --surface: #F7F5F3;
  --surface-strong: #F2EEEB;
  --fill: rgba(0, 0, 0, .05);
  --hairline: rgba(0, 0, 0, .09);
  --white: #fff;
  --ok: #2F6B45;
  --radius-control: 12px;
  --radius-card: 16px;
  --radius-sheet: 24px;
  --shadow: 0 3px 10px rgba(0, 0, 0, .10);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06);
  --width: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--coral); text-underline-offset: 3px; }
a:hover { color: var(--coral-strong); }
:focus-visible { outline: 3px solid rgba(184, 65, 44, .45); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -.022em; }
h1 { font-size: clamp(34px, 5.4vw, 56px); letter-spacing: -.035em; }
h2 { font-size: clamp(27px, 3.6vw, 38px); }
h3 { font-size: 19px; letter-spacing: -.012em; font-weight: 600; }
p { margin: 0 0 16px; }
.muted { color: var(--secondary); }
.small { font-size: 14px; }
.tnum { font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 32px, var(--width)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }

/* The language not chosen stays out of sight (site.js sets data-lang on <html>). */
html[data-lang="es"] [lang="en"]:not(html), html[data-lang="en"] [lang="es"]:not(html) { display: none !important; }

/* MARK: Header and footer */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.site-nav a:hover { background: var(--fill); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--coral); }
.lang-switch { border: 1px solid var(--hairline); background: var(--white); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; border-radius: 10px; height: 36px; padding: 0 12px; cursor: pointer; }
.lang-switch:hover { background: var(--surface); }
@media (max-width: 720px) {
  .site-nav a.optional { display: none; }
  .site-header .wrap { gap: 8px; }
  .brand span { display: none; }
}

.site-footer { border-top: 1px solid var(--hairline); background: var(--surface); color: var(--secondary); font-size: 14px; padding: 36px 0 44px; margin-top: 72px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--coral); }

/* MARK: Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px;
  border-radius: var(--radius-control); border: 0; font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-strong); color: var(--white); }
.btn-secondary { background: var(--fill); color: var(--ink); }
.btn-secondary:hover { background: rgba(0, 0, 0, .08); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--coral); min-height: 40px; padding: 0 10px; }
.btn-quiet:hover { background: var(--fill); }
.btn-small { min-height: 38px; font-size: 15px; padding: 0 14px; border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { background: #E6E3E1; color: #8E8789; cursor: not-allowed; transform: none; }
.app-store { display: inline-flex; align-items: center; gap: 10px; }
.app-store svg { width: 20px; height: 20px; fill: currentColor; }

/* MARK: Sections */
.section { padding: 88px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--coral); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--secondary); line-height: 1.5; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { margin-top: 14px; }

.hero { padding: 64px 0 24px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; color: var(--secondary); font-size: 15px; }
.hero-phones { position: relative; display: flex; justify-content: center; gap: 18px; min-height: 520px; }
.phone { width: min(260px, 44vw); border-radius: 34px; overflow: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 22px 50px rgba(41, 37, 41, .18); border: 1px solid var(--hairline); background: var(--surface); aspect-ratio: 660 / 1434; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero-phones .phone:nth-child(2) { margin-top: 64px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phones { min-height: 0; }
}

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
.fact { background: var(--surface); border-radius: var(--radius-card); padding: 18px 20px; }
.fact strong { display: block; font-size: 30px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact span { color: var(--secondary); font-size: 15px; }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--surface); border-radius: var(--radius-sheet); padding: 22px 22px 0; display: flex; flex-direction: column; overflow: hidden; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--secondary); font-size: 15px; }
.feature .shot { margin-top: auto; border-radius: 22px 22px 0 0; overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 660 / 760; }
.feature .shot img { width: 100%; height: auto; }
.features.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature.text-only { padding-bottom: 22px; }
.feature .price { margin: auto 0 0; color: var(--ink); font-weight: 600; font-size: 15px; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .features.three { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.destinations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.region { border: 1px solid var(--hairline); border-radius: var(--radius-sheet); padding: 24px; }
.region h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.region h3 small { color: var(--secondary); font-weight: 400; font-size: 15px; }
.country { margin-top: 14px; }
.country-name { font-size: 14px; color: var(--secondary); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--fill); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.new-tag { display: inline-flex; align-items: center; margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--coral); background: var(--white); border-radius: 999px; padding: 2px 9px; box-shadow: inset 0 0 0 1.5px var(--coral); vertical-align: 3px; letter-spacing: 0; }
@media (max-width: 820px) { .destinations { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border-radius: var(--radius-sheet); padding: 32px; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* MARK: Sponsored mockups (what an ad looks like in the app) */
.mock { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 660 / 900; background: #ECECEC center top / cover no-repeat; box-shadow: var(--shadow-soft); border: 1px solid var(--hairline); }
.mock-map { background-image: url("/assets/shots/es-01-map.webp"); }
html[data-lang="en"] .mock-map { background-image: url("/assets/shots/en-01-map.webp"); }
.mock::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .0) 55%, rgba(255, 255, 255, .55)); pointer-events: none; }
.sponsor-pin { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translate(-50%, -50%); }
.sponsor-pin .tile { width: 74px; height: 74px; border-radius: 17px; background: var(--white); box-shadow: 0 0 0 2.5px var(--white), 0 6px 16px rgba(0, 0, 0, .2); display: grid; place-items: center; overflow: hidden; padding: 8px; }
.sponsor-pin .tag::before { display: none; }
.sponsor-pin .tile img { width: 100%; height: 100%; object-fit: contain; }
.tag { display: inline-flex; align-items: center; gap: 5px; background: var(--white); color: var(--ink); border-radius: 999px; font-size: 12px; font-weight: 600; padding: 3px 9px; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.mock-list { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; background: var(--white); border-radius: 22px; box-shadow: 0 -2px 18px rgba(0, 0, 0, .12); padding: 16px; }
.mock-list .label { font-size: 13px; color: var(--secondary); margin: 0 0 8px 2px; }
.row { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-radius: 14px; }
.row + .row { border-top: 1px solid var(--hairline); border-radius: 0; }
.row .logo { width: 46px; height: 46px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1px var(--hairline); display: grid; place-items: center; overflow: hidden; padding: 4px; }
.row .logo img { width: 100%; height: 100%; object-fit: contain; }
.row .name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.row .meta { font-size: 13px; color: var(--secondary); line-height: 1.3; }
.row.featured { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--coral); }
.placeholder-logo { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 700; color: var(--coral); font-size: 20px; letter-spacing: -.02em; }

/* MARK: Forms */
.card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-sheet); padding: 28px; }
.card + .card { margin-top: 20px; }
.card h3 { margin-bottom: 4px; }
.card > p.muted { margin-bottom: 20px; font-size: 15px; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: var(--white); font-size: 14px; font-weight: 700; margin-right: 10px; vertical-align: 2px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } .card { padding: 22px 18px; } }
label.field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
label.field .hint { font-weight: 400; color: var(--secondary); font-size: 13px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], input[type="number"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; min-height: 46px; border: 1px solid rgba(0, 0, 0, .14); border-radius: var(--radius-control); background: var(--white);
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); padding: 10px 13px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23655E60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center / 20px no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(184, 65, 44, .16); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--coral); }
.counter { font-size: 12px; color: var(--secondary); font-weight: 400; text-align: right; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.choices { display: grid; gap: 12px; }
.choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .choices.three { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box { display: grid; gap: 4px; height: 100%; padding: 16px 16px 14px; border-radius: var(--radius-card); background: var(--fill); border: 1.5px solid transparent; transition: background .15s, border-color .15s; }
.choice .box strong { font-size: 16px; }
.choice .box .price { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 6px; }
.choice .box .muted { font-size: 13px; line-height: 1.4; }
.choice input:checked + .box { background: var(--white); border-color: var(--coral); }
.choice input:checked + .box strong { color: var(--coral); }
.choice input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(184, 65, 44, .25); }

.segmented { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fill); border-radius: 11px; padding: 3px; gap: 2px; width: 100%; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: grid; place-items: center; min-height: 38px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--ink); padding: 0 8px; text-align: center; line-height: 1.15; }
.segmented input:checked + span { background: var(--white); color: var(--coral); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px rgba(184, 65, 44, .25); }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--coral); }

.map-picker { position: relative; height: 340px; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--hairline); background: #E9E9E9; }
.map-picker .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.04); }
.map-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.map-results { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--hairline); border-radius: var(--radius-control); overflow: hidden; }
.map-results:empty { display: none; }
.map-results button { display: block; width: 100%; text-align: left; border: 0; background: var(--white); padding: 10px 14px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.map-results li + li button { border-top: 1px solid var(--hairline); }
.map-results button:hover { background: var(--surface); }
.pin-marker { width: 22px; height: 22px; border-radius: 50%; background: var(--coral); border: 3px solid var(--white); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { font-size: 11px; }

.drop { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 14px; border: 1.5px dashed rgba(0, 0, 0, .18); border-radius: var(--radius-card); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--coral); background: var(--surface); }
.drop .tile { width: 96px; height: 96px; border-radius: 21px; background: var(--white); box-shadow: inset 0 0 0 1px var(--hairline); display: grid; place-items: center; overflow: hidden; padding: 10px; }
.drop .tile img { width: 100%; height: 100%; object-fit: contain; }
.drop input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }

.summary { position: sticky; top: 88px; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--hairline); }
.summary .total strong { font-size: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.summary dt { color: var(--secondary); }
.summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.order { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .order { grid-template-columns: 1fr; } .summary { position: static; } }

.notice { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; background: var(--surface); border-radius: var(--radius-card); padding: 16px 18px; font-size: 15px; }
.notice::before { content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7.5v6M12 16.6v.2' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.notice.ok::before { background-color: var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.error-text { color: var(--coral); font-size: 14px; font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { list-style: none; background: var(--surface); border-radius: var(--radius-card); padding: 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--coral); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--coral); margin-bottom: 12px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--secondary); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
ol.steps { padding: 0; margin: 0; }

/* MARK: Documents (privacy, terms, support) */
.doc { padding-top: 48px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 44px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: #3A3437; }
.doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc li + li { margin-top: 6px; }
.doc .updated { color: var(--secondary); font-size: 15px; margin-bottom: 28px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.toc a { background: var(--fill); color: var(--ink); text-decoration: none; padding: 7px 13px; border-radius: 999px; font-size: 14px; }
.toc a:hover { background: rgba(0, 0, 0, .08); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
