/* ==========================================================
   Frenos Los Norteños — landing OnePage
   Palette: taller mecánico (rojo brake / negro carbón / blanco)
   ========================================================== */

:root {
  --brand: #d81f26;
  --brand-dark: #a3161c;
  --ink: #0f1113;
  --ink-2: #1c1f22;
  --ink-3: #2a2e33;
  --paper: #ffffff;
  --paper-2: #f5f5f6;
  --muted: #6a7078;
  --line: #e4e6e9;
  --wa: #25D366;
  --wa-dark: #128C7E;

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(15,17,19,0.08);
  --shadow-lg: 0 20px 60px rgba(15,17,19,0.15);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0.02em; line-height: 1.05; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-primary {
  background: var(--wa);
  color: white;
  box-shadow: 0 8px 20px rgba(37,211,102,0.35);
}
.btn-primary:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,211,102,0.4); }
.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.08); }
.btn-wa-icon {
  width: 22px; height: 22px;
  display: block;
  border-radius: 50%;
  background: white;
  padding: 1px;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 17, 19, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 52px; width: auto; display: block; }
.nav { display: flex; gap: 28px; }
.nav a {
  font-weight: 500; font-size: 15px; color: rgba(255,255,255,0.85);
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--brand);
  transition: width .25s;
}
.nav a:hover { color: white; }
.nav a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: white;
  padding: 130px 0 110px;
  overflow: hidden;
  isolation: isolate;
  background: #0f1113;
}
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
}
.hero-media img {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%) scale(1.05);
  height: 130%;
  width: auto;
  max-width: none;
  object-fit: cover;
  opacity: 0.55;
  filter: contrast(1.1) saturate(1.1);
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15,17,19,0.98) 0%, rgba(15,17,19,0.85) 45%, rgba(15,17,19,0.3) 80%, transparent 100%),
    radial-gradient(800px 400px at 90% 40%, rgba(216,31,38,0.25), transparent 60%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 30% center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% center, black 30%, transparent 70%);
}
.hero-inner { max-width: 720px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 16px;
  padding: 6px 12px;
  border: 1px solid rgba(216,31,38,0.4);
  border-radius: 999px;
  background: rgba(216,31,38,0.08);
}
.eyebrow.center { display: block; text-align: center; width: fit-content; margin-left: auto; margin-right: auto; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 110px);
  margin: 0 0 20px;
  line-height: .95;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.tagline {
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-bottom: 28px;
}
.verse {
  border-left: 3px solid var(--brand);
  padding: 6px 0 6px 20px;
  margin: 0 0 36px;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats {
  background: var(--ink);
  color: white;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 40px 24px;
  text-align: center;
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 12px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  color: var(--brand);
  line-height: 1;
  display: inline;
}
.stat-plus {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--brand);
  vertical-align: super;
  margin-left: 4px;
}
.stat-label {
  margin-top: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
  background: var(--paper);
}
.section-dark {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: white;
}
.section-dark .check-list li::before { color: var(--brand); }
.section-quote { background: var(--paper-2); }
.section-alt { background: var(--paper-2); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  text-transform: uppercase;
  margin: 12px 0 16px;
  text-align: center;
}
.section-dark .section-title,
.section-dark .eyebrow { text-align: left; }
.section-dark .eyebrow.center { text-align: center; }
.section-lead {
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Cards (Services) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.card-num {
  position: absolute;
  top: 16px; left: 20px;
  font-family: var(--font-display);
  font-size: 44px;
  color: white;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  z-index: 1;
}
.card-body { padding: 28px 32px 36px; }
.card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Two-column (Taller / Historia) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse > *:first-child { order: 2; }
.two-col.reverse > *:last-child { order: 1; }
.two-col p { font-size: 17px; }
.section-dark .two-col p { color: rgba(255,255,255,0.8); }
.section-dark .two-col strong { color: white; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 18px;
}

/* Taller visual (fotos reales del taller) */
.taller-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 480px;
}
.taller-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  background: var(--ink-3);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.taller-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.taller-photo:hover img { transform: scale(1.05); }
.taller-photo--big { grid-row: span 2; }

/* Historia visual */
.story-visual {
  position: relative;
  min-height: 420px;
}
.story-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.year-badge {
  position: absolute;
  right: -20px; bottom: -30px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  color: white;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 20px 40px rgba(216,31,38,0.4), inset 0 -8px 20px rgba(0,0,0,0.15);
}
.year-badge::before {
  content: '';
  position: absolute; inset: 10px;
  border: 2px dashed rgba(255,255,255,0.35);
  border-radius: 50%;
}
.year-num {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
}
.year-label {
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .2em;
  margin-top: 2px;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  background: var(--ink-3);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s, filter .3s;
}
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.08); filter: brightness(1.05); }
.gallery-item:hover::after { opacity: 1; }

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}
.quote-mark { color: var(--brand); margin: 0 auto 20px; opacity: .8; }
.testimonial blockquote {
  margin: 0 0 20px;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}
.testimonial figcaption {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-top: 40px;
}
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.info-block {
  padding: 24px;
  background: var(--paper-2);
  border-radius: var(--radius);
  border-left: 3px solid var(--brand);
}
.info-block h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.info-block p { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); }
.info-block a { color: var(--brand); font-weight: 500; }
.info-block a:hover { text-decoration: underline; }
.social-row { display: flex; gap: 12px; margin-top: 4px; }
.social-row a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  transition: background .2s, transform .2s;
}
.social-row a:hover { background: var(--brand-dark); transform: translateY(-2px); }
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 460px;
}
.contact-map iframe {
  width: 100%; height: 100%; min-height: 460px; border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer h4 {
  font-family: var(--font-display);
  color: white;
  font-size: 18px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.site-footer a:hover { color: var(--brand); }
.muted { color: rgba(255,255,255,0.5); font-size: 14px; margin-top: 16px; }
.legal {
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.25));
  z-index: 200;
  transition: transform .2s, filter .2s;
}
.whatsapp-float img { width: 100%; height: 100%; display: block; }
.whatsapp-float:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.3));
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 80px 0 100px;
  max-width: 860px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  text-transform: uppercase;
  margin: 12px 0 8px;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 30px);
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  letter-spacing: .04em;
}
.legal-page h3 {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--brand);
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}
.legal-page p, .legal-page li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.legal-page ul { padding-left: 22px; margin: 0 0 16px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--brand); font-weight: 500; }
.legal-page a:hover { text-decoration: underline; }
.legal-page .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 30px;
  font-style: italic;
}
.legal-page .back {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
  background: var(--paper-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.cookie-table th, .cookie-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.cookie-table th {
  background: var(--ink);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 12px;
}
.cookie-table tr:last-child td { border-bottom: none; }

/* ---------- Error page ---------- */
.error-page {
  padding: 120px 0 140px;
  text-align: center;
  min-height: 60vh;
  display: flex; align-items: center;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 300;
  background: var(--ink);
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  animation: cookie-in .35s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-inner {
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
.cookie-text h3 {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: white;
  letter-spacing: .05em;
}
.cookie-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
}
.cookie-text a { color: var(--brand); text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn { padding: 11px 22px; font-size: 14px; }
.cookie-btn.btn-ghost { color: white; border-color: rgba(255,255,255,0.3); }
.cookie-btn.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: white; }

@media (max-width: 720px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .cookie-inner {
    grid-template-columns: 1fr;
    padding: 18px 20px;
    gap: 16px;
  }
  .cookie-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; justify-content: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero { padding: 80px 0 70px; }
  .hero-media img { opacity: 0.35; right: -30%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .section { padding: 70px 0; }
  .cards { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse > *:first-child { order: 1; }
  .two-col.reverse > *:last-child { order: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .check-list { grid-template-columns: 1fr; }
  .taller-visual { min-height: 400px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .year-badge { width: 140px; height: 140px; right: -10px; bottom: -20px; }
  .year-num { font-size: 48px; }
  .year-label { font-size: 16px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 12px 16px; gap: 10px; }
  .brand img { height: 36px; }
  .container { padding: 0 16px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .taller-visual { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .taller-photo { aspect-ratio: 4 / 3; }
  .taller-photo--big { grid-row: auto; aspect-ratio: 16 / 10; }
}
