/* ===================================================
   Magic Motos · Estilos
   =================================================== */

:root {
  --bg:       #0a0c10;
  --bg-alt:   #0f1318;
  --card:     #141820;
  --card-2:   #181e2a;
  --line:     #252d3d;
  --text:     #e8edf8;
  --muted:    #7a8aa0;
  --accent:   #e01414;
  --accent-h: #ff2626;
  --wa:       #25d366;
  --wa-h:     #1fb855;
  --radius:   14px;
  --maxw:     1160px;
  --hdr:      68px;
  --shadow:   0 12px 48px rgba(0,0,0,.45);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
fieldset { border: none; min-width: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: visible;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4,
.brand-text {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  letter-spacing: .3px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.accent { color: var(--accent); }

/* ===================================================
   BOTONES
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(224,20,20,.3);
}
.btn-accent:hover { background: var(--accent-h); }

.btn-wa {
  background: var(--wa);
  color: #065518;
  font-weight: 700;
}
.btn-wa:hover { background: var(--wa-h); }
.btn-wa.is-locked { background: var(--card-2); color: var(--muted); cursor: not-allowed; }
.btn-wa.is-locked:hover { background: var(--card-2); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10,12,16,.08);
  padding-top: env(safe-area-inset-top);
}

/* Header en blanco: enlaces oscuros para mantener contraste sobre fondo claro */
.site-header .nav a { color: #4a5568; }
.site-header .nav a:hover { color: #11141a; }
.site-header .nav-toggle span { background: #11141a; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hdr);
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}
.brand-text {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text);
}
.brand-text strong { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: .94rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    url("https://images.unsplash.com/photo-1558981806-ec527fa84c39?auto=format&fit=crop&w=1920&q=80")
    center center / cover no-repeat,
    linear-gradient(135deg, #0a0c10 0%, #1a0f08 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10,12,16,.92) 0%,
    rgba(10,12,16,.75) 55%,
    rgba(10,12,16,.45) 100%
  );
}

.hero-inner { position: relative; z-index: 2; padding: 80px 24px; }

.hero-text { max-width: 640px; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.0;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}

.lead {
  font-size: 1.1rem;
  color: rgba(232,237,248,.8);
  max-width: 520px;
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ¿Ya eres cliente? */
.hero-client-check { margin-bottom: 22px; }
.hero-client-question {
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 10px;
}
.hero-client-options { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-client-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 10px;
  background: rgba(10,12,16,.45);
  backdrop-filter: blur(6px);
  cursor: pointer;
  font-size: .88rem;
  color: rgba(232,237,248,.9);
  transition: border-color .2s, background .2s;
}
.hero-client-option input { accent-color: var(--accent); cursor: pointer; width: 16px; height: 16px; flex-shrink: 0; }
.hero-client-option:hover { border-color: rgba(224,20,20,.6); }
.hero-client-option.is-selected { border-color: var(--accent); background: rgba(224,20,20,.18); color: #fff; }

/* botones bloqueados hasta responder */
.btn.is-locked { opacity: .45; cursor: not-allowed; }
.btn-accent.is-locked { background: var(--card-2); color: var(--muted); box-shadow: none; }

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.35);
  animation: bounceDown 2s infinite;
}
.hero-scroll-hint svg { width: 28px; height: 28px; }
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%        { transform: translateX(-50%) translateY(8px); }
}

/* ===================================================
   STATS STRIP
   =================================================== */
.stats-strip {
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 0 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 40px;
  text-align: center;
}
.stat strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat span {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
  flex-shrink: 0;
}

/* ===================================================
   SECCIONES
   =================================================== */
.section { padding: 80px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
}
.section-head p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 1rem;
}

/* ===================================================
   SERVICIOS
   =================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.svc-card {
  background: linear-gradient(145deg, rgba(22,28,40,.88) 0%, rgba(14,18,26,.93) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.svc-card:hover {
  border-color: rgba(224,20,20,.5);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(224,20,20,.1);
  background: linear-gradient(145deg, rgba(30,22,22,.92) 0%, rgba(18,14,14,.96) 100%);
}
.svc-ico {
  width: 48px;
  height: 48px;
  background: rgba(224,20,20,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background .2s;
}
.svc-card:hover .svc-ico { background: rgba(224,20,20,.18); }
.svc-ico svg { width: 24px; height: 24px; color: var(--accent); }
.svc-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: "Inter", sans-serif;
}
.svc-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ===================================================
   PRESUPUESTO
   =================================================== */
.quote-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.quote-form { display: flex; flex-direction: column; gap: 20px; }

.quote-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.quote-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
}
.q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; }
.field label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.lbl-opt { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .9em; }
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: .94rem;
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8aa0' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.field select option { background: #141820; color: var(--text); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 80px; }

/* campo de moto + tick de confirmación */
.field-confirm { display: flex; align-items: center; gap: 10px; }
.field-confirm input[type="text"] { flex: 1; }
.confirm-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
  opacity: .5;
  transition: all .2s ease;
}
.confirm-tick input[type="checkbox"] { display: none; }
.confirm-tick svg { width: 20px; height: 20px; }
.confirm-tick.is-enabled { cursor: pointer; opacity: 1; border-color: var(--accent); color: var(--accent); }
.confirm-tick.is-enabled:hover { background: rgba(224,20,20,.08); }
.confirm-tick.is-checked { background: var(--accent); border-color: var(--accent); color: #fff; }

.field-hint { font-size: .8rem; color: var(--muted); margin-top: 7px; }
.field-hint.is-ok { color: var(--accent); }

/* bloques bloqueados hasta confirmar marca/modelo/año */
.quote-lockable { position: relative; }
.quote-lock-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(10,12,16,.82);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: .88rem;
}
.quote-lock-overlay svg { width: 30px; height: 30px; color: var(--accent); opacity: .8; }
.quote-lockable.locked .quote-lock-overlay { display: flex; }
.quote-lockable.locked .chk-grid,
.quote-lockable.locked textarea { opacity: .25; pointer-events: none; }

/* checkboxes de servicios */
.chk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.chk-item {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.chk-item:hover { border-color: rgba(224,20,20,.5); }
.chk-item.is-checked {
  border-color: var(--accent);
  background: rgba(224,20,20,.07);
}
.chk-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 4px;
}
.chk-body { flex: 1; min-width: 0; }
.chk-name { display: block; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.chk-note { display: block; font-size: .75rem; color: var(--accent); margin-top: 2px; line-height: 1.3; }
.chk-price { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* resumen */
.quote-summary {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: calc(var(--hdr) + 16px);
  box-shadow: var(--shadow);
}
.summary-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 44px;
}
.summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}
.summary-list li:last-child { border-bottom: none; padding-bottom: 0; }
.summary-list li span:last-child { color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.summary-empty { color: var(--muted); font-style: italic; font-size: .88rem; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.summary-total span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.summary-total strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.summary-disclaimer { font-size: .76rem; color: var(--muted); margin-bottom: 18px; }
.quote-summary .btn + .btn { margin-top: 10px; }

/* ===================================================
   SOBRE EL TALLER
   =================================================== */
.about-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 52px;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.about-text p { color: var(--muted); margin-bottom: 14px; font-size: .98rem; }
.about-text strong { color: var(--text); }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .96rem;
  color: var(--text);
}
.feature-list li svg {
  width: 18px;
  height: 18px;
  color: var(--wa);
  flex-shrink: 0;
  margin-top: 3px;
}

.about-card-wrap { position: relative; }

.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}
.review-stars svg {
  width: 18px;
  height: 18px;
  color: #fbbf24;
}
.review-card blockquote {
  font-style: italic;
  color: var(--text);
  font-size: .97rem;
  line-height: 1.65;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.review-meta strong { display: block; font-size: .88rem; }
.review-meta span { font-size: .82rem; color: var(--muted); }

.review-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  position: absolute;
  top: -18px;
  right: -14px;
  box-shadow: 0 8px 24px rgba(224,20,20,.4);
}
.badge-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.badge-label { font-size: .72rem; font-weight: 600; text-align: center; margin-top: 3px; opacity: .9; }

/* ===================================================
   CONTACTO
   =================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-ico {
  width: 44px;
  height: 44px;
  background: rgba(224,20,20,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-ico svg { width: 22px; height: 22px; color: var(--accent); }
.contact-item h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 4px;
  font-family: "Inter", sans-serif;
}
.contact-item p { font-size: .96rem; line-height: 1.65; color: var(--text); }
.schedule-note { font-size: .82rem; color: var(--muted); font-style: italic; margin-top: 6px; line-height: 1.5; }
.contact-link { color: var(--accent); }

.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: grayscale(.25) contrast(1.05);
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: #060810;
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.footer-brand .brand-text { font-size: 1.25rem; }
.footer-brand p { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: .83rem; width: 100%; text-align: center; padding-top: 14px; border-top: 1px solid var(--line); }
.footer-copy a { color: var(--accent); }

/* ===================================================
   WHATSAPP FLOTANTE
   =================================================== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wa);
  color: #065518;
  font-weight: 700;
  font-size: .9rem;
  padding: 13px 18px 13px 16px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(37,211,102,.4);
  z-index: 200;
  transition: transform .2s, box-shadow .2s;
  animation: waPulse 2.8s infinite;
}
.wa-float:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(37,211,102,.5); }
.wa-float svg { width: 22px; height: 22px; flex-shrink: 0; }
.wa-float-label { white-space: nowrap; }

@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===================================================
   COOKIE BAR
   =================================================== */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: #1a1f2e;
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  transform: translateY(100%);
  transition: transform .35s ease;
  box-shadow: 0 -8px 32px rgba(0,0,0,.4);
}
.cookie-bar.visible { transform: translateY(0); }
.cookie-bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--muted);
  flex: 1;
  min-width: 220px;
}
.cookie-text svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: var(--accent-h); }

/* ===================================================
   MODAL AVISO LEGAL / PRIVACIDAD
   =================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  transform: translateY(20px);
  transition: transform .25s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--line);
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: var(--accent); }

.modal-content h2 { font-size: 1.5rem; margin-bottom: 16px; text-transform: uppercase; }
.modal-content h3 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--accent); }
.modal-content p  { font-size: .92rem; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.modal-content a  { color: var(--accent); }
.modal-content strong { color: var(--text); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-wrap { grid-template-columns: 1fr; }
  .quote-summary { position: static; }
  .about-wrap { grid-template-columns: 1fr; gap: 32px; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Header en 2 filas: logo arriba, nav abajo */
  .header-inner {
    flex-direction: column;
    height: auto;
    min-height: var(--hdr);
    padding: 10px 20px 8px;
    align-items: flex-start;
    gap: 4px;
  }

  /* Nav siempre visible en fila horizontal */
  .nav {
    position: static;
    transform: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    gap: 0;
    transition: none;
  }
  .nav.open { transform: none; }
  .nav a {
    font-size: 0.78rem;
    padding: 0;
    border: none;
    color: var(--muted);
  }
  .nav a:hover { color: var(--text); }
  .nav-toggle { display: none; }

  .hero { min-height: 88vh; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }

  .stats-inner { flex-direction: row; }
  .stat { padding: 16px 20px; }
  .stat-divider { height: 28px; }

  .field-row { grid-template-columns: 1fr; }
  .chk-grid { grid-template-columns: 1fr; }

  .review-badge { top: -12px; right: -8px; }

  .wa-float-label { display: none; }
  .wa-float { padding: 14px; border-radius: 50%; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-direction: column; }
  .stat-divider { width: 40px; height: 1px; }
  .hero-actions .btn { width: 100%; }
  .contact-btns .btn { flex: 1; min-width: 120px; }
}

/* ===================================================
   ANIMACIONES PREMIUM · Linear / Stripe style
   =================================================== */

/* ---- Scroll reveal base ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1),
              transform .65s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Stagger reveal para grids ---- */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1),
              transform .5s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal-stagger.visible > *:nth-child(1)  { transition-delay: .04s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2)  { transition-delay: .10s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3)  { transition-delay: .16s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4)  { transition-delay: .22s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5)  { transition-delay: .28s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(6)  { transition-delay: .34s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(7)  { transition-delay: .40s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(8)  { transition-delay: .46s; opacity: 1; transform: none; }

/* ---- Float animation — review card ---- */
@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.about-card-wrap {
  animation: floatCard 5s ease-in-out infinite;
}

/* ---- Hero text glow ---- */
.hero h1 .accent {
  text-shadow: 0 0 48px rgba(224,20,20,.4);
}

/* ---- Header mejorado ---- */
.site-header {
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.98);
  border-bottom-color: rgba(10,12,16,.1);
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}

/* ---- Nav links underline animado ---- */
.nav > a:not(.btn) {
  position: relative;
  transition: color .3s ease;
}
.nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .3s cubic-bezier(.16,1,.3,1);
}
.nav > a:not(.btn):hover::after { width: 100%; }

/* ---- Botones premium ---- */
.btn-accent {
  box-shadow: 0 4px 20px rgba(224,20,20,.28);
}
.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(224,20,20,.48);
}
.btn-outline { transition: border-color .3s ease, color .3s ease, transform .3s ease; }
.btn-outline:hover { transform: translateY(-2px); }

/* ---- Glassmorphism: stats strip ---- */
.stats-strip {
  background: linear-gradient(90deg, rgba(12,16,22,.98) 0%, rgba(18,24,34,.95) 50%, rgba(12,16,22,.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ---- Stat hover ---- */
.stat { transition: transform .3s ease; cursor: default; }
.stat:hover { transform: translateY(-4px); }
.stat strong { transition: color .3s ease; }
.stat:hover strong { color: var(--accent-h); }

/* ---- Service icon enhanced ---- */
.svc-ico {
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.svc-card:hover .svc-ico {
  transform: scale(1.1) rotate(-2deg);
  box-shadow: 0 4px 16px rgba(224,20,20,.18);
}

/* ---- Glassmorphism: review card ---- */
.review-card {
  background: linear-gradient(145deg, rgba(22,28,40,.9) 0%, rgba(14,18,26,.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---- Glassmorphism: quote summary ---- */
.quote-summary {
  background: linear-gradient(145deg, rgba(20,26,38,.88) 0%, rgba(14,18,26,.93) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---- Contact ico hover ---- */
.contact-ico { transition: background .3s ease, transform .3s ease; }
.contact-item:hover .contact-ico {
  background: rgba(224,20,20,.2);
  transform: scale(1.07);
}

/* ---- Gradient text en headings ---- */
.section-head h2,
.about-text h2 {
  background: linear-gradient(135deg, var(--text) 0%, rgba(232,237,248,.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Scrollbar premium ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---- Focus rings ---- */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== GALERÍA DEL TALLER ===== */
.galeria-section {
  background: #0a0a0a;
  padding: 80px 0 0;
  overflow: hidden;
}

.galeria-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.galeria-titulo {
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 48px;
  line-height: 1.1;
}

.galeria-wrap {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 380px;
  max-height: 680px;
  overflow: hidden;
}

.galeria-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.galeria-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.galeria-slide.active { opacity: 1; }

.galeria-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.galeria-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 55%);
  pointer-events: none;
}

/* Flechas */
.galeria-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s;
}

.galeria-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.galeria-arrow svg {
  width: 20px;
  height: 20px;
}

.galeria-prev { left: 20px; }
.galeria-next { right: 20px; }

/* Puntos */
.galeria-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.galeria-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.galeria-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

@media (max-width: 768px) {
  .galeria-section { padding: 60px 0 0; }
  .galeria-wrap { height: 58vw; min-height: 240px; max-height: 420px; }
  .galeria-arrow { width: 36px; height: 36px; }
  .galeria-arrow svg { width: 16px; height: 16px; }
  .galeria-titulo { margin-bottom: 32px; }
}
