/* ==========================================================
   Talleres Hermanos Ruiz · Web demo (CercanIA · Web Escaparate)
   Mobile-first · vanilla CSS
   ========================================================== */

/* Tipografías alojadas en la propia web (sin conexión a Google) */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/inter-400-700.woff2") format("woff2"); }

:root {
  --bg: #121417;
  --bg-2: #181b1f;
  --bg-3: #20242a;
  --line: #2c3138;
  --text: #ecebe8;
  --muted: #a7acb3;
  --accent: #ff6a1a;
  --accent-2: #ff8a45;
  --accent-ink: #16181b;
  --wa: #25d366;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --ff-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.05; margin: 0 0 .5em; font-weight: 700; letter-spacing: .005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.ico--xl { width: 42px; height: 42px; color: var(--accent); }
.accent { color: var(--accent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em; border-radius: var(--radius-sm); border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; text-decoration: none; line-height: 1.1;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(255, 106, 26, .7); }
.btn--primary:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--text); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); background: rgba(255, 255, 255, .1); }
.btn--whatsapp { background: var(--wa); color: #0b2b17; }
.btn--whatsapp:hover { background: #3ee07a; color: #0b2b17; }
.btn--sm { padding: .6em 1em; font-size: .9rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--accent); }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled, .header--solid { background: rgba(18, 20, 23, .92); backdrop-filter: blur(12px); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo__mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-family: var(--ff-head); font-weight: 800; font-size: 1.35rem;
  transform: skewX(-8deg);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font-family: var(--ff-head); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .03em; }
.logo__text small { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }

.burger { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; margin-right: -10px; }
.burger span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 0; background: var(--bg);
  display: flex; flex-direction: column; gap: 24px; padding: 32px 24px;
  transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
}
.nav.is-open { transform: none; visibility: visible; }
.nav__list { display: flex; flex-direction: column; }
.nav__list a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-family: var(--ff-head); font-size: 1.8rem; font-weight: 600; text-transform: uppercase;
}
.nav__list a:hover { color: var(--accent); }
body.menu-open { overflow: hidden; }

@media (min-width: 1100px) {
  .burger { display: none; }
  .nav { position: static; transform: none; visibility: visible; flex-direction: row; align-items: center; padding: 0; background: none; gap: 28px; }
  .nav__list { flex-direction: row; gap: 26px; }
  .nav__list a { border: 0; padding: 6px 0; font-family: var(--ff-body); font-size: .93rem; font-weight: 500; text-transform: none; position: relative; }
  .nav__list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
  .nav__list a.is-active { color: var(--text); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--header-h) + 40px); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0d0f11; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 20, 23, .55) 0%, rgba(18, 20, 23, .35) 35%, rgba(18, 20, 23, .92) 82%, var(--bg) 100%),
    linear-gradient(90deg, rgba(18, 20, 23, .85) 0%, rgba(18, 20, 23, .2) 70%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content { padding-bottom: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 26, .25); }
.hero__title { font-size: clamp(2.7rem, 10vw, 5.6rem); text-transform: uppercase; font-weight: 800; max-width: 14ch; margin-bottom: 20px; letter-spacing: -.005em; }
.hero__sub { font-size: clamp(1.02rem, 2.6vw, 1.22rem); color: #d3d5d8; max-width: 56ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__actions .btn { flex: 1 1 200px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: #cfd2d6; }
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks .ico { color: var(--accent); }
@media (min-width: 640px) { .hero__actions .btn { flex: 0 0 auto; } }

.trust { border-top: 1px solid var(--line); background: rgba(18, 20, 23, .85); backdrop-filter: blur(10px); }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.trust__item { padding: 20px 8px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); }
.trust__item:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 16px; }
.trust__item:nth-child(even) { padding-left: 16px; }
.trust__item strong { font-family: var(--ff-head); font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 700; color: var(--text); line-height: 1; display: inline-flex; align-items: center; gap: 6px; }
.trust__item > span { font-size: .85rem; color: var(--muted); }
.ico--star { color: #fbbc04; width: .8em; height: .8em; }
@media (min-width: 860px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .trust__item { border-bottom: 0; padding: 26px 24px !important; border-right: 1px solid var(--line); }
  .trust__item:first-child { padding-left: 0 !important; }
  .trust__item:last-child { border-right: 0; }
}

/* ---------- Secciones ---------- */
.section { padding: 84px 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: 44px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.title { font-size: clamp(2.1rem, 6vw, 3.5rem); text-transform: uppercase; font-weight: 800; }
.lead { color: var(--muted); font-size: 1.06rem; }
@media (min-width: 960px) { .section { padding: 120px 0; } }

/* ---------- Sobre nosotros ---------- */
.about__grid { display: grid; gap: 44px; align-items: center; }
.about__media { position: relative; border-radius: var(--radius); overflow: visible; }
.about__media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about__badge { position: absolute; right: 12px; bottom: -22px; background: var(--accent); color: var(--accent-ink); padding: 16px 22px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1; transform: rotate(-3deg); }
.about__badge strong { font-family: var(--ff-head); font-size: 2.6rem; font-weight: 800; }
.about__badge span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.about__text > p { color: #cfd2d6; }
.values { display: grid; gap: 18px; margin-top: 30px; }
.values li { display: flex; gap: 16px; padding: 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.values__n { font-family: var(--ff-head); font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.values h3 { font-size: 1.35rem; text-transform: uppercase; margin-bottom: 4px; }
.values p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 5fr 7fr; gap: 72px; }
  .about__media img { aspect-ratio: 4 / 5.2; }
}

.team { margin-top: 90px; }
.team__title { font-size: clamp(1.6rem, 4vw, 2.2rem); text-transform: uppercase; margin-bottom: 26px; }
.team__grid { display: grid; gap: 18px; }
.member { background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .3s var(--ease), border-color .3s; }
.member:hover { transform: translateY(-4px); border-color: rgba(255, 106, 26, .5); }
.member__avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 106, 26, .12); border: 2px solid var(--accent); color: var(--accent); font-family: var(--ff-head); font-weight: 800; font-size: 1.5rem; margin-bottom: 18px; }
.member h4 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: 2px; }
.member__role { color: var(--accent-2); font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.member p:last-child { color: var(--muted); font-size: .94rem; margin: 0; }
@media (min-width: 760px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Servicios ---------- */
.services { background: var(--bg-2); border-block: 1px solid var(--line); }
.services::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; mask-image: linear-gradient(180deg, #000, transparent 60%); }
.services__grid { display: grid; gap: 16px; position: relative; }
.card {
  position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-5px); border-color: rgba(255, 106, 26, .45); box-shadow: var(--shadow); }
.card:hover::after { transform: scaleX(1); }
.card__icon { width: 46px; height: 46px; color: var(--accent); margin-bottom: 18px; padding: 10px; background: rgba(255, 106, 26, .1); border-radius: 12px; box-sizing: content-box; }
.card h3 { font-size: 1.5rem; text-transform: uppercase; }
.card p { color: var(--muted); font-size: .94rem; }
.card__price { margin: auto 0 0 !important; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .88rem !important; }
.card__price strong { font-family: var(--ff-head); font-size: 1.9rem; color: var(--text); margin-left: 4px; }
.services__cta { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); position: relative; }
.services__cta p { margin: 0; color: #cfd2d6; }
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); }
  .services__cta { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Galería ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; grid-auto-rows: 160px; grid-auto-flow: dense; }
.gallery__grid li:has(.gallery__item--wide) { grid-column: span 2; }
.gallery__grid li:has(.gallery__item--tall) { grid-row: span 2; }
.gallery__item { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-3); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: saturate(.9); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .75)); opacity: .7; transition: opacity .3s; }
.gallery__cap { position: absolute; left: 14px; bottom: 12px; right: 14px; z-index: 1; text-align: left; color: #fff; font-family: var(--ff-head); font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; transform: translateY(4px); transition: transform .3s var(--ease); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.07); filter: saturate(1.05); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item:hover .gallery__cap { transform: none; }
@media (min-width: 760px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
}

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8, 9, 10, .94); display: flex; align-items: center; justify-content: center; padding: 60px 12px; animation: fade .25s ease; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox__figure img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lightbox__figure figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); color: var(--accent-ink); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
@media (max-width: 640px) { .lightbox__nav { top: auto; bottom: 14px; transform: none; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Reseñas ---------- */
.reviews { background: var(--bg-2); border-block: 1px solid var(--line); }
.reviews__head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.rating-box { display: inline-flex; align-items: center; gap: 16px; padding: 16px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); align-self: flex-start; }
.rating-box__g { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 800 1.6rem/1 Arial, sans-serif; }
.rating-box__score { margin: 0; font-family: var(--ff-head); font-size: 2rem; font-weight: 700; line-height: 1; }
.rating-box__count { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.stars { color: #fbbc04; letter-spacing: 2px; font-size: 1.05rem; margin: 0 0 10px; }
.rating-box .stars { font-size: 1.1rem; margin: 0; vertical-align: 4px; }
.stars__off { color: #4a4f57; }
.reviews__grid { display: grid; gap: 16px; }
.review { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .3s, transform .3s var(--ease); }
.review:hover { border-color: #3d434b; transform: translateY(-3px); }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; }
.review__head h3 { font-family: var(--ff-body); font-size: .98rem; font-weight: 600; margin: 0; }
.review__head p { margin: 0; color: var(--muted); font-size: .8rem; }
.review > p:last-child { margin: 0; color: #cfd2d6; font-size: .95rem; }
.reviews__cta { margin-top: 36px; text-align: center; }
@media (min-width: 760px) {
  .reviews__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .rating-box { align-self: auto; }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; gap: 28px; }
.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form__row { display: grid; gap: 0 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field label span { color: var(--accent); }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid #3a4048; background: var(--bg);
  color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7acb3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #737982; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 26, .25); }
.field.has-error input, .field.has-error select { border-color: #f87171; }
.field__error { color: #fca5a5; font-size: .82rem; margin: 6px 0 0; min-height: 0; }
.field__error:empty { display: none; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.field--check label { font-weight: 400; color: #cfd2d6; margin: 0; }
.field--check .field__error { grid-column: 2; }
.form__legal { font-size: .76rem; color: var(--muted); line-height: 1.5; margin-bottom: 18px; }
.form__status { margin: 14px 0 0; font-size: .92rem; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #86efac; }
.form__status.is-error { color: #fca5a5; }
@media (min-width: 640px) { .form { padding: 34px; } .form__row { grid-template-columns: 1fr 1fr; } }

.contact__info { display: flex; flex-direction: column; gap: 20px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }
.map__placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px; background: repeating-linear-gradient(45deg, var(--bg-3) 0 14px, #1d2126 14px 28px); }
.map__placeholder p { margin: 0; color: var(--muted); font-size: .9rem; max-width: 34ch; }
.map__placeholder a { font-size: .85rem; }
.info-list { display: grid; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { color: var(--accent); margin-top: 3px; width: 20px; height: 20px; }
.info-list div { display: flex; flex-direction: column; font-size: .94rem; }
.info-list strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 2px; }
.info-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.info-list a:hover { color: var(--accent); }
.open-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; font-size: .85rem; }
.open-status:empty { display: none; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.is-open { color: #4ade80; }
.open-status.is-closed { color: #f87171; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 7fr 5fr; gap: 36px; } }

/* ---------- Footer ---------- */
.footer { background: #0d0f11; border-top: 1px solid var(--line); padding: 64px 0 0; font-size: .92rem; }
.footer__grid { display: grid; gap: 36px; padding-bottom: 44px; }
.footer__brand p { color: var(--muted); margin: 16px 0 18px; max-width: 34ch; }
.footer__title { font-family: var(--ff-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text); font-weight: 700; margin-bottom: 14px; }
.footer__links { display: grid; gap: 10px; color: var(--muted); }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--accent); }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text); transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.social svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid var(--line); padding: 20px 16px 96px; display: flex; flex-direction: column; gap: 6px; color: #858b93; font-size: .82rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: #858b93; }
.demo-tag { opacity: .85; }
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; padding-bottom: 24px; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .25s var(--ease); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
body.cookies-pending .wa-float { bottom: var(--cookie-h, 16px); }

/* ---------- Cookies ---------- */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 250; max-width: 980px; margin: 0 auto;
  background: var(--bg-3); border: 1px solid #3a4048; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  padding: 20px; display: grid; gap: 16px; animation: slideUp .4s var(--ease);
}
.cookie-banner[hidden], .cookie-modal[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.4rem; text-transform: uppercase; margin-bottom: 6px; }
.cookie-banner p { margin: 0; color: #cfd2d6; font-size: .88rem; line-height: 1.55; }
.cookie-banner__actions, .cookie-modal__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
/* Mismo peso visual para las tres opciones (criterio AEPD) */
.btn--cookie { background: var(--text); color: var(--accent-ink); border: 2px solid var(--text); padding: .8em .6em; font-size: .9rem; }
.btn--cookie:hover { background: #fff; color: var(--accent-ink); border-color: #fff; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } }
/* Móvil: banner compacto para no tapar media pantalla */
@media (max-width: 859px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px; gap: 12px; }
  .cookie-banner h2 { display: none; }
  .cookie-banner p { font-size: .8rem; line-height: 1.45; }
  .cookie-banner .btn--cookie { padding: .7em .4em; font-size: .85rem; }
}
@media (min-width: 860px) {
  .cookie-banner { grid-template-columns: 1fr auto; align-items: center; padding: 22px 26px; gap: 28px; }
  .cookie-banner__actions { grid-template-columns: repeat(3, auto); }
  .btn--cookie { padding: .8em 1.3em; }
}
.cookie-modal { position: fixed; inset: 0; z-index: 310; background: rgba(8, 9, 10, .75); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s ease; }
.cookie-modal__box { background: var(--bg-2); border: 1px solid #3a4048; border-radius: var(--radius); max-width: 560px; width: 100%; padding: 26px; max-height: 90vh; overflow-y: auto; }
.cookie-modal__box > h2 { font-size: 1.8rem; text-transform: uppercase; }
.cookie-opt { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cookie-opt h3 { font-family: var(--ff-body); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.cookie-opt p { margin: 0; color: var(--muted); font-size: .86rem; }
.cookie-modal__actions { margin-top: 22px; }
.cookie-modal__actions .btn--cookie { font-size: .82rem; }
.switch { position: relative; flex-shrink: 0; width: 50px; height: 28px; margin-top: 2px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch__ui { position: absolute; inset: 0; border-radius: 999px; background: #3a4048; transition: background .2s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + .switch__ui { background: var(--accent); }
.switch input:checked + .switch__ui::after { transform: translateX(22px); }
.switch input:disabled + .switch__ui { opacity: .6; }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Animaciones de scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Páginas legales ---------- */
.legal { padding: calc(var(--header-h) + 56px) 0 80px; }
.legal__wrap { max-width: 820px; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 26px; text-decoration: none; }
.legal__back .ico { transform: rotate(180deg); }
.legal h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); text-transform: uppercase; font-weight: 800; }
.legal__updated { color: var(--muted); font-size: .9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.7rem; text-transform: uppercase; margin-top: 2.2em; padding-top: .6em; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.3rem; margin-top: 1.6em; }
.legal p, .legal li { color: #cfd2d6; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin-bottom: .4em; }
.legal__box { background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 1.4em; }
.legal__box p { margin: 0 0 .35em; }
.legal__box p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 620px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-3); font-weight: 700; color: var(--text); }
.legal td { color: #cfd2d6; }
.legal tr:last-child td { border-bottom: 0; }

/* ---------- Movimiento reducido: solo quitamos lo intrusivo ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img { animation: none; transform: none; }
  .wa-float::before { animation: none; display: none; }
}

/* ==========================================================
   Web Hecha para Ti: páginas de servicio, FAQ, carta, idiomas
   ========================================================== */

/* ---------- Menú: servicios e idioma ---------- */
.nav { overflow-y: auto; }
.sub { display: grid; padding: 4px 0 10px 14px; border-bottom: 1px solid var(--line); }
.nav__list .sub a { font-family: var(--ff-body); font-size: .95rem; font-weight: 500; text-transform: none; padding: 7px 0; border: 0; color: var(--muted); }
.lang { display: inline-grid; place-items: center; align-self: flex-start; min-width: 44px; height: 38px; padding: 0 10px; border: 1px solid #3a4048; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 700; font-size: .85rem; letter-spacing: .04em; transition: border-color .2s, color .2s; }
.lang:hover { border-color: var(--accent); color: var(--accent); }
@media (min-width: 1100px) {
  .nav { overflow: visible; gap: 18px; }
  .has-sub { position: relative; }
  .sub { position: absolute; top: 100%; left: -16px; width: 270px; padding: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
  .nav__list .sub a { padding: 8px 10px; border-radius: 6px; color: var(--text); font-size: .9rem; }
  .nav__list .sub a::after { display: none; }
  .nav__list .sub a:hover { background: var(--bg-3); color: var(--accent); }
  .lang { align-self: center; }
}

/* ---------- Tarjetas de servicio enlazadas ---------- */
.card__link { color: inherit; text-decoration: none; }
.card__link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__link { color: var(--accent); }
.services__cta h3 { font-size: clamp(1.5rem, 4vw, 2rem); text-transform: uppercase; margin-bottom: 6px; }
.services__cta .kicker { color: var(--accent); margin-bottom: 8px; font-size: .75rem; }
.services__btns { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

/* ---------- Banda de llamada a la acción ---------- */
.cta-band { background: var(--accent); color: var(--accent-ink); padding: 52px 0; }
.cta-band__inner { display: flex; flex-direction: column; gap: 22px; }
.cta-band h2 { font-size: clamp(1.9rem, 5vw, 3rem); text-transform: uppercase; font-weight: 800; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 56ch; font-weight: 500; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--dark { background: var(--accent-ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--outline-dark { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn--outline-dark:hover { background: var(--accent-ink); color: #fff; }
@media (min-width: 960px) { .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; } .cta-band__btns { flex-shrink: 0; } }

/* ---------- Cabeceras de páginas interiores ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); }
.subhead { padding: calc(var(--header-h) + 44px) 0 40px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.subhead h1 { font-size: clamp(2.5rem, 8vw, 4.4rem); text-transform: uppercase; font-weight: 800; }
.subhead .lead { max-width: 62ch; margin: 0; }
.pagehero { position: relative; isolation: isolate; padding: calc(var(--header-h) + 44px) 0 56px; }
.pagehero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0d0f11; }
.pagehero__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 20, 23, .95) 0%, rgba(18, 20, 23, .78) 55%, rgba(18, 20, 23, .5) 100%), linear-gradient(180deg, transparent 60%, var(--bg) 100%); }
.pagehero h1 { font-size: clamp(2.5rem, 8vw, 4.6rem); text-transform: uppercase; font-weight: 800; max-width: 18ch; }
.pagehero .crumbs a, .pagehero .crumbs ol { color: #cfd2d6; }
.pagehero__price { color: #cfd2d6; font-size: 1rem; margin-bottom: 22px; }
.pagehero__price strong { font-family: var(--ff-head); font-size: 2.4rem; color: var(--accent); margin-left: 4px; }
.pagehero__price small { color: var(--muted); margin-left: 6px; }

/* ---------- Página de servicio ---------- */
.section--tight { padding: 56px 0 72px; }
.narrow { max-width: 860px; }
.center { text-align: center; margin-top: 28px; }
.note { color: var(--muted); font-size: .88rem; }
.svc { display: grid; gap: 36px; }
.svc__main { min-width: 0; }
.svc__main > h2, .faqpage > h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); text-transform: uppercase; margin: 1.5em 0 .6em; }
.svc__main > h2:first-child, .faqpage > h2:first-child { margin-top: 0; }
.svc__main > p { color: #cfd2d6; }
.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: #cfd2d6; }
.checklist .ico { color: var(--accent); margin-top: 4px; }
.bullets { display: grid; gap: 8px; }
.bullets li { position: relative; padding-left: 20px; color: #cfd2d6; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.sidecard { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.sidecard h2 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 8px; }
.sidecard > p { color: var(--muted); font-size: .92rem; }
.sidecard .btn { margin-bottom: 10px; }
.sidecard__hours { display: flex; gap: 10px; margin: 6px 0 0; font-size: .85rem !important; }
.sidecard__hours .ico { color: var(--accent); margin-top: 3px; }
.sidelinks a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .93rem; }
.sidelinks li:last-child a { border-bottom: 0; }
.sidelinks a:hover { color: var(--accent); }
.sidelinks .ico { color: var(--accent); }
@media (min-width: 960px) {
  .svc { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
  .svc__side { position: sticky; top: calc(var(--header-h) + 18px); }
}

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s; }
.faq details[open] { border-color: rgba(255, 106, 26, .5); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: #cfd2d6; }

/* ---------- Carta de precios ---------- */
.price-tools { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.price-search { margin: 0; flex: 1; max-width: 420px; }
.price-search input { width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid #3a4048; background: var(--bg); color: var(--text); font: inherit; }
.price-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 26, .25); }
.subhead .note { margin: 14px 0 0; }
@media (min-width: 720px) { .price-tools { flex-direction: row; align-items: flex-end; } .price-tools .btn { order: 2; } }
.pricegroup { margin-bottom: 32px; }
.pricegroup h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.7rem; text-transform: uppercase; margin-bottom: 10px; }
.pricegroup h2 a { font-family: var(--ff-body); font-size: .8rem; font-weight: 600; text-transform: none; }
.ptable { margin: 0 0 12px; }
.ptable table { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .95rem; }
.ptable th { font-weight: 500; color: var(--text); }
.ptable th small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.ptable td { text-align: right; font-weight: 700; white-space: nowrap; }
.ptable tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Formulario ---------- */
.choices { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .9rem; }
.choice { flex: 1 1 150px; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; text-align: center; padding: 11px 10px; border: 1px solid #3a4048; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.field input[type="email"] { width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid #3a4048; background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; }
.hp { position: absolute; left: -9999px; }
.reviews__note { color: var(--muted); font-size: .82rem; margin-top: 14px; }
#form-send:disabled { opacity: .6; cursor: wait; transform: none; }
#form-wa { margin-top: 12px; }

/* ---------- Pie con cinco columnas ---------- */
@media (min-width: 760px) { .footer__grid--5 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid--5 { grid-template-columns: 1.5fr 1.1fr .9fr 1.2fr 1fr; gap: 28px; } }

/* Galería sin huecos: el último bloque completa la cuadrícula */
.gallery__grid li:has(.gallery__item--xwide), .gallery__grid li:last-child { grid-column: span 2; }
@media (min-width: 760px) {
  .gallery__grid li:has(.gallery__item--xwide) { grid-column: span 3; }
  .gallery__grid li:last-child { grid-column: auto; }
}

/* ==========================================================
   Movimiento: piezas flotando, barras, diagnóstico y pasos
   ========================================================== */
.progress { position: fixed; left: 0; top: 0; z-index: 120; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- Escena de la portada ---------- */
.scene { position: absolute; z-index: -1; pointer-events: none; right: -96px; top: 74px; width: 310px; height: 310px; opacity: .5; }
.scene__glow { position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 26, .34), transparent 66%); animation: latido 5s ease-in-out infinite; }
.scene__wheel { position: absolute; inset: 7%; animation: entra-rueda 1.3s var(--ease) both; }
.wheel { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .65)); }
.fly { position: absolute; width: var(--t, 80px); height: var(--t, 80px); will-change: transform; display: none; }
.fly__i { width: 100%; height: 100%; display: block; animation: flotar var(--d, 7s) ease-in-out infinite; animation-delay: var(--r, 0s); }
.fly--1 { --t: 118px; --d: 8s; left: -3%; top: 62%; }
.fly--2 { --t: 112px; --d: 6.5s; --r: -2s; left: 76%; top: -5%; }
.fly--3 { --t: 112px; --d: 9s; --r: -4s; left: 80%; top: 68%; }
.fly--4 { --t: 124px; --d: 7.5s; --r: -1s; left: 2%; top: 1%; }
.fly--5 { --t: 100px; --d: 8.5s; --r: -3s; left: 36%; top: 88%; }
.fly--6 { --t: 86px; --d: 10s; --r: -5s; left: 41%; top: -11%; }
.fly--7 { --t: 44px; --d: 5.5s; --r: -2s; left: 90%; top: 40%; }
.fly--8 { --t: 42px; --d: 5s; --r: -1s; left: -9%; top: 34%; }
.fly--6 .fly__i { animation: girar 16s linear infinite; }
.fly--7 .fly__i { animation: girar 10s linear infinite reverse; }
@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-20px) rotate(6deg); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes latido { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes entra-rueda { from { opacity: 0; transform: translateX(120px) rotate(70deg); } }
@media (min-width: 960px) {
  .scene { right: max(3vw, calc((100vw - 1200px) / 2 - 30px)); top: 50%; margin-top: -305px; width: min(41vw, 540px); height: min(41vw, 540px); opacity: 1; }
  .fly { display: block; }
}
@media (min-width: 960px) and (max-height: 760px) { .scene { width: 430px; height: 430px; margin-top: -270px; } }

/* ---------- Barras en movimiento ---------- */
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: desliza 52s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex-shrink: 0; }
.marquee a, .marquee__item { display: inline-flex; align-items: center; gap: 12px; padding: 0 26px; font-family: var(--ff-head); font-weight: 800; font-size: clamp(1.25rem, 3.4vw, 1.85rem); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; text-decoration: none; line-height: 1; }
.marquee__ico { width: 1.65em; height: 1.65em; flex-shrink: 0; }
.marquee--naranja { background: var(--accent); }
.marquee--naranja a { color: var(--accent-ink); padding-block: 13px; transition: color .2s; }
.marquee--naranja a:hover { color: #fff; }
.marquee--grafito { background: #0d0f11; border-block: 1px solid #2c3138; }
.marquee--grafito .marquee__item { color: #d9dbde; padding-block: 11px; }
.marquee--grafito .marquee__ico { width: .85em; height: .85em; }
@keyframes desliza { to { transform: translateX(-50%); } }
.cruce { position: relative; height: 150px; overflow: hidden; background: var(--bg); }
.cruce .marquee { position: absolute; left: -4%; width: 108%; top: 50%; }
.cruce .marquee--grafito { transform: translateY(-50%) rotate(2.2deg); }
.cruce .marquee--naranja { transform: translateY(-50%) rotate(-2.2deg); box-shadow: 0 14px 40px -14px rgba(0, 0, 0, .8); }
@media (min-width: 960px) { .cruce { height: 170px; } }

/* ---------- Piezas junto a los títulos ---------- */
.has-deco { position: relative; }
.deco { display: none; position: absolute; pointer-events: none; will-change: transform; }
.deco__i { width: 100%; height: 100%; display: block; animation: flotar 8s ease-in-out infinite; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .55)); }
.deco--a { width: 132px; height: 132px; right: 16px; top: -12px; }
.deco--b { width: 104px; height: 104px; right: 170px; top: 54px; }
.deco--b .deco__i { animation-delay: -3s; animation-duration: 6.5s; }
@media (min-width: 960px) { .deco { display: block; } }

/* ---------- ¿Qué le pasa a tu coche? ---------- */
.diag__box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.diag__chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.diag__chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 11px 15px; border: 1px solid #3a4048; border-radius: 999px; background: var(--bg); color: var(--text); font-weight: 600; font-size: .9rem; text-align: left; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.diag__view { min-height: 250px; padding: 24px; display: grid; }
.diag__panel { display: grid; gap: 20px; align-content: center; animation: aparece .45s var(--ease); }
.diag__panel h3 { font-size: clamp(1.7rem, 4vw, 2.3rem); text-transform: uppercase; }
.diag__panel p { color: #cfd2d6; }
.diag__panel .card__price { border: 0; padding: 0; margin: 0 0 16px !important; font-size: .9rem !important; }
.diag__panel .card__price small { color: var(--muted); margin-left: 6px; }
.diag__piece { width: 130px; height: 130px; justify-self: center; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 26, .25), transparent 68%); }
.diag__i { width: 100%; height: 100%; animation: flotar 6s ease-in-out infinite; }
.diag__piece.is-spin .diag__i { animation: girar 14s linear infinite; }
.diag__btns { display: flex; flex-wrap: wrap; gap: 10px; }
@keyframes aparece { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 860px) {
  .diag__box { display: grid; grid-template-columns: 290px 1fr; }
  .diag__chips { flex-direction: column; overflow: visible; border-bottom: 0; border-right: 1px solid var(--line); padding: 20px; }
  .chip { border-radius: var(--radius-sm); width: 100%; }
  .diag__view { padding: 36px 44px; min-height: 410px; }
  .diag__panel { grid-template-columns: 210px 1fr; gap: 40px; align-items: center; }
  .diag__piece { width: 210px; height: 210px; }
}

/* ---------- Así trabajamos ---------- */
.steps-sec { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { --p: 0; position: relative; padding-left: 74px; }
.steps__line { position: absolute; left: 27px; top: 0; bottom: 0; width: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.steps__fill { position: absolute; inset: 0; background: var(--accent); transform: scaleY(var(--p)); transform-origin: top; }
.steps__wheel { position: absolute; left: 1px; top: calc(var(--p) * (100% - 56px)); width: 56px; height: 56px; transform: rotate(var(--giro, 0deg)); will-change: top, transform; }
.steps__i { width: 100%; height: 100%; display: block; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.step { opacity: .45; transition: opacity .4s; }
.step.is-on { opacity: 1; }
.step__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid #3a4048; font-family: var(--ff-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 10px; transition: background .3s, color .3s, border-color .3s; }
.step.is-on .step__n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step h3 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (min-width: 900px) {
  .steps { padding: 84px 0 0; }
  .steps__line { left: 0; right: 0; top: 26px; bottom: auto; width: auto; height: 4px; }
  .steps__fill { transform: scaleX(var(--p)); transform-origin: left; }
  .steps__wheel { left: calc(var(--p) * (100% - 56px)); top: 0; will-change: left, transform; }
  .steps__list { grid-template-columns: repeat(5, 1fr); gap: 26px; }
}

/* ---------- Pieza de cada servicio ---------- */
.pagepiece { position: absolute; z-index: -1; right: -56px; top: 72px; width: 200px; height: 200px; opacity: .55; pointer-events: none; will-change: transform; }
.pagepiece::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 26, .3), transparent 68%); }
.pagepiece__i { position: relative; width: 100%; height: 100%; display: block; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .6)); }
.pagepiece:not(.is-spin) .pagepiece__i { animation: flotar 7s ease-in-out infinite; }
@media (min-width: 960px) {
  .pagepiece { right: max(5vw, calc((100vw - 1200px) / 2 + 20px)); top: 50%; margin-top: -170px; width: 340px; height: 340px; opacity: 1; }
}

/* ---------- Tarjetas con luz que sigue al ratón ---------- */
.card, .member, .review { position: relative; transform-style: preserve-3d; }
.card::before, .member::before, .review::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 106, 26, .13), transparent 70%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.card:hover::before, .member:hover::before, .review:hover::before { opacity: 1; }

/* ---------- Windows suele activar "menos movimiento" sin que nadie lo pida:
   las barras siguen (más lentas) y solo se quita lo que da vueltas sin parar ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation-duration: 110s; }
  .fly__i, .deco__i, .diag__i, .pagepiece__i, .scene__glow, .scene__wheel { animation: none !important; }
}

/* Ajustes de la escena */
.hero, .pagehero { overflow: hidden; }
.has-deco .section__head { position: relative; z-index: 1; }
@media (min-width: 960px) { .hero__sub { max-width: 44ch; } .pagehero .hero__sub { max-width: 52ch; } .fly--1 { left: 1%; top: 70%; } }
