/* Torkly Cars — sitio del producto (talleres de carros): primera versión, buscando talleres piloto.
   Parte de styles.css de Torkly (grafito + ámbar #FFC233, provisional hasta tener identidad propia);
   lo propio de Cars va al final.
   Misma familia tipográfica que Raipe y Takto (Archivo ancho, IBM Plex). */

:root {
  --night: #0e1013;
  --night-2: #15181d;
  --night-3: #1c2027;
  --line-d: rgba(255, 255, 255, 0.09);
  --text-d: #f2f5f4;
  --muted-d: #9aa5a2;

  --bg: #f5f4f0;
  --surface: #ffffff;
  --line: #e4e2db;
  --ink: #121315;
  --muted: #5f625f;

  --amber: #ffc233;
  --amber-2: #ffe08a;
  --amber-deep: #8a5a00;
  --amber-soft: #fff3d1;
  --mint: #2bd9ae;
  --red: #ff6b5b;

  --r-md: 14px;
  --r-lg: 24px;

  --f-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text-d); font-family: var(--f-body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-stretch: 112%; line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
svg { display: block; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: #fff; color: var(--ink); border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.light { background: var(--bg); color: var(--ink); }
.dark { background: var(--night); color: var(--text-d); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-family: var(--f-body); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: #2a1d00; box-shadow: 0 10px 30px -10px rgba(255, 194, 51, 0.65); }
.btn-amber:hover { box-shadow: 0 16px 40px -12px rgba(255, 194, 51, 0.85); }
.btn-glass { background: rgba(255, 255, 255, 0.06); color: var(--text-d); border-color: var(--line-d); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.12); }
.btn-dark { background: var(--night); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(14, 16, 19, 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line-d); }
.nav-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 21px; color: #fff; }
.logo svg { width: 32px; height: 32px; }
.by { display: none; padding-left: 14px; border-left: 1px solid var(--line-d); font-size: 14px; color: var(--muted-d); text-decoration: none; }
.by:hover { color: #fff; }
.nav-links { display: none; margin-left: auto; gap: 26px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted-d); text-decoration: none; }
.nav-links a:hover { color: #fff; }
.nav .btn { margin-left: auto; }
@media (min-width: 640px) { .by { display: inline; } }
@media (min-width: 960px) { .nav-links { display: flex; } .nav .btn { margin-left: 0; } }

/* Hero */
.hero { position: relative; padding: 48px 0 88px; overflow: hidden; }
.hero-glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, rgba(255, 194, 51, 0.16), transparent 60%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero { padding: 72px 0 120px; } .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line-d); border-radius: 999px; font-size: 14px; color: #dbe3e0; background: rgba(255, 255, 255, 0.04); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 194, 51, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 194, 51, 0.06); } }
.hero h1 { margin-top: 22px; font-size: clamp(42px, 7vw, 82px); font-weight: 850; }
.grad { background: linear-gradient(90deg, var(--amber-2), var(--amber) 55%, #ff9a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 24px; max-width: 56ch; font-size: clamp(17px, 2vw, 20px); color: var(--muted-d); }
.lead b { color: #fff; font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted-d); }
.hero-checks li::before { content: '✓'; margin-right: 8px; color: var(--mint); font-weight: 700; }

/* Work order demo */
.order { position: relative; display: grid; gap: 18px; padding: 22px; border: 1px solid var(--line-d); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent), var(--night-2); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8); max-width: 520px; width: 100%; margin: 0 auto; }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-id { display: block; font-family: var(--f-mono); font-size: 15px; font-weight: 600; color: #fff; }
.order-bike { font-size: 14px; color: var(--muted-d); }
.plate { flex-shrink: 0; padding: 5px 12px; border-radius: 7px; background: var(--amber); color: #14171c; font-family: var(--f-mono); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25); }
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 5px 10px; border-radius: 999px; background: #232831; color: var(--muted-d); font-size: 13px; transition: background-color 0.4s, color 0.4s, box-shadow 0.4s; }
.steps li.done { background: rgba(43, 217, 174, 0.14); color: var(--mint); }
.steps li.now { background: rgba(255, 194, 51, 0.18); color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 194, 51, 0.08); }
.lines { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 12px; padding: 12px 14px; border-radius: 12px; background: #1f242c; font-size: 15px; transition: background-color 0.4s; }
.line span { color: #e6ecea; }
.line em { grid-row: 2; font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-d); }
.line b { grid-row: 1 / span 2; grid-column: 2; font-family: var(--f-mono); font-weight: 600; color: #fff; }
.tick { grid-row: 1 / span 2; grid-column: 3; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #3a414c; transition: background-color 0.35s, border-color 0.35s; position: relative; }
.line.ok { background: rgba(43, 217, 174, 0.08); }
.line.ok .tick { border-color: var(--mint); background: var(--mint); }
.line.ok .tick::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #062a20; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.order-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line-d); }
.wa { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mint); }
.wa svg { width: 18px; height: 18px; }
.total { font-size: 14px; color: var(--muted-d); }
.total b { margin-left: 6px; font-family: var(--f-mono); font-size: 18px; color: #fff; }
.order-note { position: absolute; right: 18px; bottom: -28px; font-size: 13px; color: var(--muted-d); }

/* Sections */
.section { padding: 88px 0; }
@media (min-width: 960px) { .section { padding: 120px 0; } }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
.eyebrow { font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.light .eyebrow { color: var(--amber-deep); }
.section-lead { margin-top: 18px; font-size: 18px; color: var(--muted); }
.dark .section-lead { color: var(--muted-d); }

/* Pains */
.pains { display: grid; gap: 16px; }
@media (min-width: 760px) { .pains { grid-template-columns: repeat(2, 1fr); } }
.pain { padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.pain-n { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--amber-deep); }
.pain h3 { margin: 12px 0 10px; font-size: 24px; font-weight: 800; }
.pain p { color: var(--muted); font-size: 16px; }

/* Flow */
.flow { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(5, 1fr); } }
.flow li { position: relative; padding: 26px 22px; border: 1px solid var(--line-d); border-radius: var(--r-lg); background: var(--night-2); }
.flow-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 194, 51, 0.14); color: var(--amber); font-family: var(--f-display); font-weight: 800; }
.flow h3 { margin: 18px 0 10px; font-size: 21px; font-weight: 800; }
.flow p { font-size: 15px; color: var(--muted-d); }

/* Bento */
.bento { display: grid; gap: 14px; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.tile { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.tile h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 16px; }
.tile-wide { background: radial-gradient(circle at 100% 0%, var(--amber-soft), transparent 60%), var(--surface); }
@media (min-width: 760px) { .tile-wide { grid-column: span 2; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { padding: 4px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.next { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 20px 24px; border: 1.5px dashed var(--line); border-radius: var(--r-md); color: var(--muted); }
.next b { color: var(--ink); }
.next-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 6px rgba(255, 194, 51, 0.2); }

/* App screenshots */
.shots { display: grid; gap: 20px; }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .shots { grid-template-columns: repeat(3, 1fr); } .shot-main { grid-column: span 2; } }
.shot { margin: 0; display: grid; gap: 14px; align-content: start; }
.shot figcaption { font-size: 15px; color: var(--muted); }
.shot figcaption b { color: var(--ink); }
.shot img { display: block; width: 100%; height: auto; }
.shot-link { display: block; cursor: zoom-in; }
.frame { overflow: hidden; border-radius: 16px; background: #111317; border: 1px solid #2a2f37; box-shadow: 0 30px 60px -30px rgba(18, 19, 21, 0.55); }
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; background: #1a1d22; border-bottom: 1px solid #2a2f37; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a404a; }
.frame-bar i:first-child { background: #ff6b5b; } .frame-bar i:nth-child(2) { background: var(--amber); } .frame-bar i:nth-child(3) { background: var(--mint); }
.shot-phone { justify-items: center; }
.shot-phone figcaption { max-width: 300px; }
.phone { width: min(100%, 290px); padding: 10px; border-radius: 38px; background: #0b0c0e; box-shadow: 0 0 0 2px #2a2f37, 0 30px 60px -30px rgba(18, 19, 21, 0.6); }
.phone img { border-radius: 28px; }
@media (min-width: 1040px) { .shot-phone { grid-row: span 1; align-self: center; } }

/* Law */
.law { background: radial-gradient(circle at 0% 100%, rgba(255, 194, 51, 0.1), transparent 50%), var(--night); }
.law-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .law-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.law h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.law-lead { margin-top: 18px; font-size: 18px; color: var(--muted-d); }
.law-note { margin-top: 18px; font-size: 14px; color: var(--muted-d); opacity: 0.8; }
.law-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.law-list li { padding: 20px 22px 20px 54px; border: 1px solid var(--line-d); border-radius: var(--r-md); background: var(--night-2); color: var(--muted-d); position: relative; }
.law-list li::before { content: '§'; position: absolute; left: 20px; top: 18px; font-family: var(--f-display); font-weight: 800; font-size: 20px; color: var(--amber); }
.law-list b { color: #fff; }

/* Pilot */
.pilot { display: grid; gap: 28px; padding: 40px 28px; border-radius: var(--r-lg); background: radial-gradient(circle at 90% 10%, rgba(255, 194, 51, 0.35), transparent 55%), var(--amber-soft); }
@media (min-width: 960px) { .pilot { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 56px; } .pilot .btn { grid-column: 1 / -1; justify-self: start; } }
.pilot h2 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 850; }
.pilot .section-lead { color: #4b4636; }
.pilot-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pilot-list li { padding: 14px 18px 14px 46px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.7); position: relative; font-weight: 500; }
.pilot-list li::before { content: '✓'; position: absolute; left: 18px; top: 13px; color: var(--amber-deep); font-weight: 800; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line-d); border-radius: var(--r-md); background: var(--night-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--amber); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--muted-d); }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line-d); color: var(--muted-d); font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer a { color: #fff; }
.footer .logo { font-size: 18px; }
.footer .logo svg { width: 26px; height: 26px; }

/* Propio de Torkly Cars */
.logo-cars { font-weight: 800; color: var(--amber); }
.scan { display: flex; flex-wrap: wrap; gap: 8px; }
.scan-light { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; border: 1px solid rgba(255, 194, 51, 0.55); background: rgba(255, 194, 51, 0.1); color: var(--amber); font-size: 13px; }
.scan-light svg { width: 18px; height: 18px; }
.obd { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 10px; background: #1f242c; color: var(--muted-d); font-size: 13px; }
.obd b { padding: 1px 6px; border-radius: 6px; border-left: 3px solid var(--amber); background: #2a3039; font-family: var(--f-mono); font-weight: 600; color: #fff; }
.frame-dark img { background: #16181c; }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
