/* TURBOLAB — colores tomados del logo */
:root {
  --ink: #1d1d1b;
  --ink-2: #4a4a46;
  --red: #bd1b33;
  --red-dark: #96122a;
  --steel: #b9b5ac;
  --paper: #ffffff;
  --cream: #f4f2ed;
  --bg: #f7f5f0;      /* fondo general tenue (crema) */
  --alt: #efebe3;     /* secciones alternas */
  --dark: #1d1d1b;    /* secciones oscuras */
  --dark-2: #262624;
  --card: #ffffff;
  --line: #e3e0d8;
  --radius: 14px;
  --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--red); margin-bottom: .6em; }
.muted { color: var(--ink-2); font-weight: 600; }
.hl { color: var(--red); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 700;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--red);
  transition: background .2s, transform .2s, color .2s; cursor: pointer; font: inherit; font-weight: 700;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.btn-sm { padding: .5em 1.1em; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--cream); border-color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Header (el logo va siempre sobre blanco) */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* Hero */
.hero { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 6vw, 80px); background:
  radial-gradient(circle at 85% 20%, rgba(189,27,51,.07), transparent 45%), var(--bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 34em; }
.hero-media { position: relative; isolation: isolate; }
.hero-media .mascot { position: absolute; left: -48px; bottom: -36px; width: 150px; height: auto; background: #fff; border-radius: 50%; padding: 18px; box-shadow: 0 14px 30px -12px rgba(29,29,27,.4); animation: bob 3.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.hero-media img:first-child { border-radius: 22px; aspect-ratio: 5/6; object-fit: cover; width: 100%; max-height: 520px; box-shadow: 0 30px 60px -25px rgba(29,29,27,.45); }
.hero-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--red); border-radius: 22px; z-index: -1; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-2); font-size: .95rem; }
.badges strong { color: var(--ink); }

/* Secciones */
.section { padding: clamp(52px, 6.5vw, 84px) 0; }
.section-alt { background: var(--alt); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section + .section:not(.section-alt) { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-top { align-items: start; }
.split-media { margin: 0; }
.split-media img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: 0 24px 50px -30px rgba(29,29,27,.5); }
.checks { list-style: none; padding: 0; margin: 1.2em 0 0; }
.checks li { padding-left: 32px; position: relative; margin-bottom: .55em; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--red)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Tarjetas de servicio */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(29,29,27,.35); border-color: var(--steel); }
.card p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.num { display: inline-block; font-weight: 800; font-size: 2rem; color: transparent; -webkit-text-stroke: 1.5px var(--red); margin-bottom: 12px; line-height: 1; }

/* CTA */
.cta { background: var(--red); color: #fff; padding: 56px 0; background-image: linear-gradient(115deg, var(--red) 55%, var(--red-dark) 55.1%); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .25em; }
.cta p { margin: 0; color: #f6d9de; }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 64px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; font-size: 1.1rem; }
.steps li::after { content: ""; position: absolute; top: 23px; left: 58px; right: -16px; height: 2px; background: repeating-linear-gradient(90deg, var(--steel) 0 6px, transparent 6px 12px); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--ink-2); font-size: .97rem; }

/* Secciones oscuras (servicios, proceso) */
.section-dark { background: var(--dark); color: #fff; }
.section + .section-dark, .section-dark + .section { border-top: 0 !important; }
.section-dark .eyebrow { color: #e8566b; }
.section-dark .card { background: var(--dark-2); border-color: #3a3a36; }
.section-dark .card:hover { border-color: #5a5a54; box-shadow: none; }
.section-dark .card p, .section-dark .steps p, .section-dark .vehicles p { color: #c9c6bd; }
.section-dark .steps li::after { background: repeating-linear-gradient(90deg, #55554f 0 6px, transparent 6px 12px); }

/* Vehículos */
.vehicles { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.vehicles p { margin: 0; }
.vehicles strong { color: #fff; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid #4a4a45; border-radius: 999px; padding: .3em .9em; font-size: .9rem; font-weight: 600; color: #e9e6de; }

/* Fallas comunes (acordeón sin JS) */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--red); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 18px; font-size: .97rem; }

/* Garantía */
.guarantee { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 30px 60px -40px rgba(29,29,27,.45); }
.guarantee-intro { max-width: 680px; }
.guarantee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.g-col { border-radius: 14px; padding: 22px 24px; }
.g-col h3 { margin-bottom: .6em; }
.g-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.g-col li { padding-left: 30px; position: relative; }
.g-col li::before { position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; }
.g-yes { background: #eef6f0; }
.g-yes li::before { content: "✓"; background: #1f7a3a; }
.g-no { background: var(--bg); }
.g-no li::before { content: "✕"; background: #8a877f; }
.g-note { margin: 20px 0 0; color: var(--ink-2); font-size: .95rem; }

/* Mapa */
.map { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 50px -30px rgba(29,29,27,.4); }
.map img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .4s; }
.map:hover img { transform: scale(1.03); }

/* Contacto */
.contact-list { list-style: none; padding: 0; margin: 1.5em 0 0; display: grid; gap: 16px; }
.contact-list li { display: grid; font-weight: 600; }
.contact-list span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); font-weight: 700; }
.contact-list a { color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.contact-list a:hover { color: var(--red); }
.form { background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px -34px rgba(29,29,27,.45); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
.form input, .form textarea { font: inherit; padding: .75em .9em; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--red); border-color: transparent; }
.form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1f7a3a; }
.form-status.err { color: var(--red); }
.hp { position: absolute !important; left: -9999px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; background: #fff; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-row img { height: 52px; width: auto; }
.footer-row p { margin: 0; color: var(--ink-2); }
.footer-row a { color: inherit; }
.small { font-size: .9rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.4); z-index: 60; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Aparición suave al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; margin: 0 18px 0 auto; }
  .hero-media .mascot { left: 8px; bottom: -28px; width: 110px; padding: 14px; }
  .hero-media img:first-child { aspect-ratio: 4/3; }
  .split-media { order: -1; }
  .guarantee-grid { grid-template-columns: 1fr; }
  .cta { background-image: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { height: 46px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}
