/*
 * Bitácar: la pagina web.
 *
 * La misma identidad que la app (src/theme/IDENTITY.md): papel y petroleo de
 * dia, grafito de noche, ambar de lampara de taller; Space Grotesk para
 * titulos y cifras, Manrope para leer. Las fuentes van en el propio sitio: ni
 * Google Fonts ni ningun otro servidor. La pagina, como la app, no le pide
 * nada a nadie.
 *
 * Este archivo se edita a mano. El HTML lo escribe `npm run web`.
 */

@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url(fonts/SpaceGrotesk_500Medium.ttf) format('truetype'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url(fonts/SpaceGrotesk_700Bold.ttf) format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(fonts/Manrope_400Regular.ttf) format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url(fonts/Manrope_500Medium.ttf) format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(fonts/Manrope_700Bold.ttf) format('truetype'); }

:root {
  color-scheme: light dark;
  --paper: #F7F3EC;
  --surface: #FFFDF9;
  --sunk: #EFE9DE;
  --ink: #1B1A17;
  --ink-2: #4C473E;
  --muted: #6B6459;
  --line: #D2CABB;
  --petrol: #0E4C5A;
  --petrol-deep: #0A3640;
  --amber: #C86A12;
  /* El ambar como texto sobre papel: el de arriba no llega al contraste. */
  --amber-ink: #A55F0B;
  --glass: #D3E4E1;
  --on-glass: #0B3A44;
  --ok: #2D7A45;
  --tile: #101416;
  --on-dark: #F7F3EC;
  --on-dark-2: #C9D6D4;
  --display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --radius: 22px;
  --gutter: 20px;
  --wrap: 1120px;
  /* Grano de la cabecera de la app, dibujado aqui mismo: sin imagen externa. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15191B;
    --surface: #1E2326;
    --sunk: #1A1F21;
    --ink: #E3E1DC;
    --ink-2: #C7C6BE;
    --muted: #9EA09A;
    --line: #3F4648;
    --petrol: #93C9CF;
    --petrol-deep: #0C2B31;
    --amber: #F0A85A;
    --amber-ink: #F0A85A;
    --glass: #1F3A40;
    --on-glass: #CFE6E3;
    --ok: #8FD9A3;
    --tile: #0B0D0E;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { color: var(--amber-ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--petrol); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
/* Para el lector de pantalla: las ruedas del cuentakilometros son dibujo. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kicker {
  font: 700 0.8rem/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-ink);
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- Cabecera --------------------------------------------------------------- */

.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--petrol); font: 700 1.3rem/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: 0.95rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--petrol); }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--petrol); }
@media (max-width: 760px) { .nav a:not(.lang) { display: none; } }

/* --- Portada ------------------------------------------------------------------ */

.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); color: var(--petrol); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--amber-ink); }
.hero .lead { max-width: 33rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--tile); color: #F7F3EC; text-decoration: none;
  border-radius: 14px; padding: 11px 20px 11px 16px;
  font-weight: 700; line-height: 1.15;
}
.store small { display: block; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.04em; opacity: 0.8; }
.store .icon { width: 26px; height: 26px; stroke: #F0A85A; }
.store[aria-disabled="true"] { cursor: default; }
a.store:not([aria-disabled]):hover { color: #F7F3EC; background: var(--petrol-deep); }
.text-link { font-weight: 700; text-decoration: none; }
.text-link::after { content: ' →'; }
.hero-phone { justify-self: center; position: relative; width: min(330px, 78vw); }
.hero-phone img { filter: drop-shadow(0 28px 40px rgba(14, 76, 90, 0.28)); }
.hero-phone::before {
  /* Un disco de ambar detras del telefono: la lampara del taller. */
  content: ''; position: absolute; inset: 14% -18% auto auto; width: 70%; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle, rgba(200, 106, 18, 0.22), transparent 68%);
  z-index: -1;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-phone { width: min(300px, 76vw); }
}

/* --- Los ceros (cuentakilometros) ------------------------------------------- */

.zeros { background: var(--petrol-deep); color: var(--on-dark); position: relative; isolation: isolate; }
.zeros::after, .band::after { content: ''; position: absolute; inset: 0; background: var(--grain); opacity: 0.07; mix-blend-mode: overlay; pointer-events: none; z-index: -1; }
.zeros .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 34px; }
.zero { display: flex; align-items: center; gap: 16px; }
.zero span { font-size: 0.98rem; line-height: 1.3; color: var(--on-dark-2); }
.odo { display: inline-flex; gap: 4px; flex: none; }
.odo b {
  display: grid; place-items: center; width: 34px; height: 46px;
  border-radius: 7px; background: var(--tile); border: 1px solid rgba(255, 255, 255, 0.08);
  font: 700 1.6rem/1 var(--display); color: #F7F3EC;
  box-shadow: inset 0 -10px 14px rgba(0, 0, 0, 0.35);
}
.odo b.hot { color: #F0A85A; }
@media (max-width: 900px) { .zeros .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .zeros .wrap { grid-template-columns: 1fr; gap: 14px; } }

/* --- Lo que hace: una bitacora, no un muro de tarjetas ---------------------- */

.log { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 4vw, 48px); }
.log li { border-top: 1px solid var(--line); padding: 26px 0 30px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-content: start; }
.log .num { grid-row: span 2; font: 700 0.85rem/1 var(--display); color: var(--amber-ink); padding-top: 6px; letter-spacing: 0.04em; }
.log h3 { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.log h3 .icon { color: var(--petrol); }
.log p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .log { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .log { grid-template-columns: 1fr; } }

/* --- Capturas ----------------------------------------------------------------- */

/*
 * Una rejilla centrada, no un carrusel: el dueño la prefirio quieta, con las
 * seis a la vista (12-10-2026). Tres por fila en computadora, dos en tablet y
 * en telefono.
 */
.shots {
  display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); justify-content: center;
  gap: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 48px); padding-bottom: 8px;
}
.shots figure { margin: 0; display: grid; gap: 16px; align-content: start; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, minmax(0, 250px)); } }
@media (max-width: 480px) { .shots { gap: 32px 16px; } .shots figcaption strong { font-size: 0.95rem; } }
.shots img { filter: drop-shadow(0 16px 22px rgba(27, 26, 23, 0.18)); }
.shots figcaption { display: grid; gap: 6px; }
.shots figcaption strong { font: 700 1.05rem/1.25 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.shots-note { color: var(--muted); font-size: 0.9rem; }

/* --- Bandas oscuras (widgets y privacidad) ----------------------------------- */

.band { background: var(--petrol-deep); color: var(--on-dark); position: relative; isolation: isolate; }
.band h2 { color: var(--on-dark); }
.band .kicker { color: #F0A85A; }
.band .lead { color: var(--on-dark-2); }
.band a { color: #F7F3EC; }
.band a:hover { color: #F0A85A; }

.widgets .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.widgets .section-head { margin-bottom: 0; }
.home {
  /* Los widgets con sus medidas relativas: 2x2, 4x2 y 4x1 sobre el fondo de un telefono. */
  --h: clamp(118px, 15vw, 172px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
  padding: clamp(20px, 3vw, 32px); border-radius: 30px;
  background: linear-gradient(160deg, #13505D, #0B2F37 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.home img { width: auto; height: var(--h); }
.home img.quick { height: calc(var(--h) * 0.4444); }
@media (max-width: 900px) { .widgets .wrap { grid-template-columns: 1fr; } }

.privacy .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.privacy .section-head { margin-bottom: 0; }
.ticket {
  background: #F7F3EC; color: #1B1A17; border-radius: 6px; padding: 28px 28px 34px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  /* El borde de abajo arrancado del talonario. */
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 22px 100% repeat-x;
  mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 22px 100% repeat-x;
  transform: rotate(1.2deg);
}
.ticket h3 { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: #6B6459; font-family: var(--body); margin-bottom: 14px; }
.row { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 0.98rem; }
.row .dots { flex: 1; border-bottom: 2px dotted #B9B0A0; transform: translateY(-4px); min-width: 16px; }
.row b { font-family: var(--display); font-weight: 700; text-align: right; }
.row.total { border-top: 1px dashed #B9B0A0; margin-top: 10px; padding-top: 14px; font-weight: 700; }
.row.total b { color: #0E4C5A; font-size: 1.15rem; }
@media (max-width: 900px) { .privacy .wrap { grid-template-columns: 1fr; } .ticket { transform: none; } }

/* --- Pro ---------------------------------------------------------------------- */

.plans { display: grid; grid-template-columns: 1fr 1fr 0.95fr; gap: clamp(20px, 3vw, 32px); align-items: start; }
.plan { border-top: 3px solid var(--line); padding-top: 22px; display: grid; gap: 16px; }
.plan.pro { border-top-color: var(--amber); }
.plan h3 { font-size: 1.45rem; color: var(--petrol); }
.plan .who { color: var(--ink-2); font-size: 0.98rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--ok); }
.plan.pro .checks .icon { color: var(--amber-ink); }
.prices { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 4px; }
.prices .row { font-size: 1rem; }
.prices .row .dots { border-color: var(--line); }
.prices .row b { color: var(--petrol); }
.prices .row.best b { color: var(--amber-ink); }
/* La etiqueta va debajo del nombre del plan: al lado empujaba el precio a dos lineas. */
.prices .tag { display: block; width: max-content; margin-top: 5px; font: 700 0.66rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-ink); border: 1px solid currentColor; border-radius: 999px; padding: 4px 7px; }
.prices .row b { white-space: nowrap; }
.fine { color: var(--muted); font-size: 0.88rem; margin-top: 10px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr 1fr; } .prices { grid-column: 1 / -1; } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }

/* --- Preguntas ---------------------------------------------------------------- */

.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font: 700 1.12rem/1.35 var(--display); letter-spacing: -0.01em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 500 1.6rem/1 var(--display); color: var(--amber-ink); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 44rem; }

/* --- Contacto ----------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start;
  border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; background: var(--surface);
}
.contact-card .icon { grid-row: span 2; color: var(--amber-ink); margin-top: 2px; }
.contact-card h3 { font-size: 1.05rem; }
.contact-card p { color: var(--ink-2); font-size: 0.98rem; }
.contact-card a { font-weight: 700; }
.contact-form {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
  background: var(--surface); display: grid; gap: 16px; box-shadow: 0 18px 40px rgba(27, 26, 23, 0.06);
}
.contact-form h3 { font-size: 1.35rem; color: var(--petrol); }
.contact-form label { display: grid; gap: 7px; font-weight: 700; font-size: 0.95rem; }
.contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form select:focus, .contact-form textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.contact-form .buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-form button {
  font: 700 1rem/1 var(--body); cursor: pointer; border-radius: 12px; padding: 14px 20px;
  border: 1px solid var(--petrol); background: var(--petrol); color: var(--paper);
}
.contact-form button.secondary { background: transparent; color: var(--petrol); }
.contact-form button:hover { background: var(--petrol-deep); color: #F7F3EC; border-color: var(--petrol-deep); }
.contact-form .fine { margin-top: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- Pie ---------------------------------------------------------------------- */

.site-foot { border-top: 1px solid var(--line); padding-block: 40px 48px; background: var(--sunk); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.site-foot .brand { font-size: 1.1rem; }
.site-foot .brand img { width: 28px; height: 28px; border-radius: 7px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 0.95rem; }
.foot-links a { color: var(--ink-2); }
.foot-note { width: 100%; color: var(--muted); font-size: 0.85rem; }

/* --- Paginas legales ---------------------------------------------------------- */

.legal { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.legal .wrap { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: clamp(28px, 5vw, 64px); justify-content: center; }
.legal header { grid-column: 1 / -1; display: grid; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--petrol); }
.legal .updated { color: var(--muted); font-size: 0.95rem; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 0.92rem; }
.toc p { font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--petrol); text-decoration: underline; }
.legal article { display: grid; gap: 36px; }
.legal section { display: grid; gap: 12px; scroll-margin-top: 20px; }
.legal h2 { font-size: 1.45rem; color: var(--ink); letter-spacing: -0.01em; }
.legal article p, .legal article li { color: var(--ink-2); }
.legal article ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal article strong { color: var(--ink); }
.legal .other { color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--line); padding-top: 24px; }
@media (max-width: 860px) {
  .legal .wrap { grid-template-columns: 1fr; }
  .toc { position: static; background: var(--sunk); border-radius: 14px; padding: 18px 20px; }
}

/* --- 404 ---------------------------------------------------------------------- */

.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.lost .wrap { display: grid; gap: 18px; justify-items: center; }
.lost h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--petrol); }
