/* ComparteTaxi · estilos de la web (v2, septiembre 2026)
   El lenguaje sale de la propia ilustración y de la señalética de una parada de taxi:
   cielo, suelo amarillo, placas azul marino, flechas. Pocas piezas, mucho aire. */

:root {
    --yellow: #ffcc00;
    --yellow-hover: #f2c100;
    --floor: #fdc853;
    --floor-line: #fdbe19;
    --sky: #c6eff8;
    --sky-soft: #eaf7fb;
    --navy: #202e5c;
    --navy-2: #2c3f7a;
    --navy-ink: #d9e2f5;
    --ink: #1f2330;
    --ink-2: #3b4254;
    --muted: #5d6576;
    --line: #dde3ea;
    --white: #ffffff;
    --radius: 16px;
    --wrap: 1140px;
    --gutter: clamp(16px, 4vw, 32px);
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 8px 14px; background: var(--white); z-index: 200; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- buttons and links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 24px; border-radius: 12px; border: 2px solid transparent;
    font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-hover); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; white-space: nowrap; }
/* links styled like wayfinding: text followed by an arrow */
.go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.go::after { content: ""; width: 16px; height: 12px; flex-shrink: 0; background: currentColor; transition: transform .15s ease;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 6h13M9 1l5 5-5 5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 6h13M9 1l5 5-5 5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.go:hover { text-decoration: underline; text-underline-offset: 4px; }
.go:hover::after { transform: translateX(3px); }
.label-short { display: none; }
@media (max-width: 520px) { .label-long { display: none; } .label-short { display: inline; } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); transform: none !important; }
.top-inner { position: relative; display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; flex-shrink: 0; }
.brand img { height: 32px; width: auto; }
.top-nav { display: flex; gap: 22px; margin-left: auto; flex-shrink: 0; }
.top-nav a { font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.top-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.top-nav a.is-active, .top-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--floor-line); }
.menu-movil { display: none; }
.menu-movil summary { list-style: none; width: 42px; height: 42px; border-radius: 10px; border: 2px solid var(--line); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.menu-movil summary::-webkit-details-marker { display: none; }
.menu-movil[open] summary { border-color: var(--ink); }
.menu-panel { position: absolute; right: var(--gutter); top: calc(100% + 8px); min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(32, 46, 92, 0.16); padding: 8px; display: grid; }
.menu-panel a { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.menu-panel a:hover { background: var(--sky-soft); }
.menu-panel a[aria-current="page"] { font-weight: 700; }
@media (max-width: 1100px) {
    .top-nav { display: none; }
    .menu-movil { display: block; }
    .top .btn-small { margin-left: auto; }
    .top-inner { gap: 12px; }
    .brand img { height: 28px; }
}
@media (max-width: 380px) { .brand img { height: 24px; } .top .btn-small { padding: 0 12px; } }

/* ---------- page sections ---------- */
section { scroll-margin-top: 84px; }
.block { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); }
.block-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; max-width: 22ch; }
.block-lead { margin-top: 16px; font-size: 1.125rem; color: var(--muted); max-width: 58ch; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--ink-2); }

/* sky band with the drawing's ground, used by page heads */
.sky { position: relative; background: var(--sky); }
.sky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--suelo, 24px); background: var(--floor); box-shadow: inset 0 calc(var(--suelo, 24px) * .2) 0 var(--floor-line); }
.page-head { padding-block: clamp(40px, 6vw, 72px) calc(clamp(40px, 6vw, 64px) + 24px); }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); letter-spacing: -0.025em; max-width: 20ch; }
.page-head .lead { margin-top: 18px; max-width: 60ch; }

/* ---------- home: hero ---------- */
/* the street (the animation) is the protagonist, standing on the page's yellow ground;
   the route search sits on that same pavement, just below */
.hero { --suelo: 26px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { padding-top: clamp(32px, 4vw, 52px); max-width: 1000px; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); letter-spacing: -0.025em; }
.hero .lead { margin-top: 12px; max-width: 64ch; }
.hero-scene { margin-top: clamp(16px, 3vw, 28px); }
.hero-scene .ht-stage { border-radius: 0; background: var(--sky);
    /* the street fades into the page's sky at both sides; the page's ground runs on underneath */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.hero-scene noscript img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
    .hero-scene { margin-inline: calc(var(--gutter) * -1); }
    .hero-scene .ht-stage { -webkit-mask-image: none; mask-image: none; }
}

/* the pavement with the route search */
.acera { background: var(--floor); padding-block: 8px clamp(28px, 4vw, 44px); }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 10px 12px; align-items: end; }
.bar-field { position: relative; display: grid; gap: 6px; }
.bar-field label { font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.bar-field input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 12px; border: 2px solid transparent; background: var(--white); color: var(--ink); font: 600 1rem/1.3 var(--font); box-shadow: 0 2px 0 rgba(32, 46, 92, 0.12); }
.bar-field input::placeholder { color: #8a92a3; font-weight: 500; }
.bar-field input:focus { outline: none; border-color: var(--navy); }
.bar-arrow { padding-bottom: 14px; font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.bar-go { min-height: 54px; background: var(--navy); color: var(--white); }
.bar-go:hover { background: var(--navy-2); }
.bar-result { margin-top: 14px; font-size: 0.975rem; color: var(--ink-2); max-width: 92ch; }
.bar-result b { color: var(--ink); }
.board-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; background: var(--white); border-radius: 12px; box-shadow: 0 16px 40px rgba(20, 28, 60, 0.24); max-height: 300px; overflow-y: auto; }
.board-list[hidden] { display: none; }
.board-list li { padding: 10px 12px; border-radius: 8px; color: var(--ink); cursor: pointer; line-height: 1.35; }
.board-list li small { display: block; color: var(--muted); font-size: 0.8125rem; }
.board-list li[aria-selected="true"], .board-list li:hover { background: var(--sky-soft); }
.board-list .empty { color: var(--muted); cursor: default; }
.board-list .empty:hover { background: none; }
@media (max-width: 760px) {
    .bar { grid-template-columns: 1fr; }
    .bar-arrow { display: none; }
    .bar-go { width: 100%; margin-top: 4px; }
}

/* ---------- home: scenes ---------- */
.scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: 40px; list-style: none; padding: 0; }
.scenes li { border-top: 3px solid var(--ink); padding-top: 18px; }
.scenes h3 { font-size: 1.0625rem; }
.scenes p { margin-top: 10px; font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); }
.scenes-coda { margin-top: 40px; font-size: 1.125rem; max-width: 60ch; }
@media (max-width: 860px) { .scenes { grid-template-columns: 1fr; } }

/* ---------- home: the story, as a normal player ---------- */
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.story-note { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }
.story-note a { color: var(--muted); }
#historia-completa { --ht-ink: #1f2330; --ht-soft: #5d6576; --ht-line: #dde3ea; }
#historia-completa .ht-stage { border-radius: 14px; }
#historia-completa .ht-play { border-radius: 12px; }
#historia-completa .ht-snd { border-radius: 10px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } #historia-completa { max-width: 460px; } }

/* ---------- home: how it works ---------- */
.steps { counter-reset: paso; list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; max-width: 820px; }
.steps li { counter-increment: paso; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before { content: counter(paso); font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--floor-line); font-variant-numeric: tabular-nums; }
.steps p { font-size: 1.125rem; }
.steps strong { color: var(--ink); }

/* ---------- home: organisations ---------- */
.orgs { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.orgs-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.orgs-links li { border-bottom: 1px solid var(--line); }
.orgs-links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 2px; text-decoration: none; color: var(--ink); font-weight: 600; }
.orgs-links a::after { content: "→"; font-weight: 700; color: var(--navy-2); transition: transform .15s ease; }
.orgs-links a:hover::after { transform: translateX(4px); }
.orgs-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 28px; }
@media (max-width: 860px) { .orgs { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex-shrink: 0; font-size: 1.5rem; font-weight: 500; line-height: 1; color: var(--navy-2); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 62ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contacto-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contacto-grid .block-lead a { color: inherit; }
.contact-form { display: grid; gap: 18px; }
.form-group { display: grid; gap: 6px; }
.form-group label { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.form-control { width: 100%; font: 400 1rem/1.5 var(--font); color: var(--ink); padding: 12px 14px; border: 2px solid #e2e6ec; border-radius: 10px; background: var(--white); }
.form-control:focus { outline: none; border-color: var(--navy); }
textarea.form-control { resize: vertical; min-height: 120px; }
.contact-form .btn { justify-self: start; }
@media (max-width: 860px) { .contacto-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.pie { background: var(--navy); color: #c3cde6; padding-block: 48px 36px; font-size: 0.9375rem; }
.pie-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.pie-brand { display: flex; gap: 14px; align-items: center; }
.pie-brand img { width: 52px; height: auto; }
.pie-name { color: var(--white); font-weight: 700; font-size: 1.125rem; }
.pie-links, .pie-legal { display: grid; gap: 8px; }
.pie a { color: #c3cde6; text-decoration: none; }
.pie a:hover { color: var(--white); text-decoration: underline; }
.pie-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8125rem; color: #9fb0d6; }
@media (max-width: 760px) { .pie-grid { grid-template-columns: 1fr 1fr; } .pie-brand { grid-column: 1 / -1; } }

/* ---------- use cases page ---------- */
.cases { list-style: none; margin: 0; padding: 0; }
.case { scroll-margin-top: 90px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 56px); padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.case:first-child { border-top: 1px solid var(--line); }
.case-head { display: grid; grid-template-columns: 34px 1fr; gap: 2px 14px; align-content: start; }
.case-icon { width: 34px; height: 34px; fill: var(--navy); grid-row: span 2; margin-top: 2px; }
.case h2 { font-size: 1.375rem; }
.case .tagline { color: var(--muted); }
.case ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; }
.case li::marker { color: var(--floor-line); }
.case .ejemplo { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }
.case .ejemplo b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; } }

/* ---------- legal and credits pages ---------- */
.legal-page { padding-block: clamp(48px, 7vw, 88px) clamp(64px, 9vw, 112px); }
.legal-content { max-width: 720px; font-size: 1.0625rem; line-height: 1.75; }
.legal-content h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.02em; line-height: 1.15; }
.legal-content h2 { font-size: 1.375rem; line-height: 1.3; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.legal-content h3 { font-size: 1.125rem; line-height: 1.35; margin-top: 36px; }
.legal-content h2 + p, .legal-content h3 + p, .legal-content h2 + ul, .legal-content h3 + ul { margin-top: 14px; }
.legal-content p { margin-top: 18px; }
.legal-content ul, .legal-content ol { margin: 18px 0 0; padding-left: 1.4rem; }
.legal-content li { margin-top: 10px; padding-left: 4px; }
.legal-content li::marker { color: var(--floor-line); }
.legal-content a { color: var(--navy-2); text-underline-offset: 3px; }
.legal-content strong { color: var(--ink); }
.legal-content .last-updated { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.legal-content .beta-disclaimer, .legal-content .contact-info { margin-top: 28px; padding: 20px 24px; border-radius: 14px; background: var(--sky-soft); line-height: 1.65; }
.legal-content .beta-disclaimer p, .legal-content .contact-info p { margin-top: 8px; }
.legal-content .beta-disclaimer p:first-child, .legal-content .contact-info p:first-child { margin-top: 0; }
.legal-content table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.9375rem; line-height: 1.55; display: block; overflow-x: auto; }
.legal-content th, .legal-content td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-content th { color: var(--ink); background: var(--sky-soft); }
.legal-content code { background: var(--sky-soft); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }

@media (prefers-reduced-motion: reduce) {
    .go::after, .orgs-links a::after, .faq-list summary::after, .btn { transition: none; }
}
