/* ============================================================
   El Taller de Lucho — sistema de diseño
   Navy dominante (estructura/confianza), naranja solo para acción,
   blanco cálido en vez de blanco puro, mono para "datos/evidencia".
   ============================================================ */

:root {
  --ink: #12233A;
  --navy: #16324F;
  --navy-deep: #0F2436;
  --orange: #C98A2B;
  --orange-deep: #A8721E;
  --gray: #4A4A47;
  --paper: #FAFAF7;
  --white: #FFFFFF;
  --line: #E4DED0;
  --line-dark: rgba(255,255,255,0.14);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 10px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--gray); }

a { color: inherit; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-block;
  margin-bottom: 12px;
}

.section {
  padding: 88px 0;
}

.section--tight { padding: 56px 0; }

.section--dark {
  background: var(--navy-deep);
  color: var(--paper);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(250,248,244,0.72); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--orange);
  color: var(--navy-deep);
}
.btn--primary:hover { background: var(--orange-deep); }

.btn--ghost {
  background: rgba(15,36,54,0.35);
  backdrop-filter: blur(6px);
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--orange); background: rgba(15,36,54,0.55); }

.btn--ghost-light {
  background: transparent;
  border-color: rgba(26,62,102,0.25);
  color: var(--navy-deep);
}
.btn--ghost-light:hover { border-color: var(--navy); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-deep);
  text-decoration: none;
}
.nav__brand img { height: 40px; width: auto; display: block; }

.nav__links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav__links a:hover { border-color: var(--orange); color: var(--navy-deep); }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-deep);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .nav__cta .btn { padding: 10px 14px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .nav__cta .btn--ghost-light { display: none; } /* "Iniciar sesión" pasa al menú desplegable en pantallas muy angostas */
  .nav__login-mobile-item { display: list-item !important; }
}
.nav__login-mobile-item { display: none; }

@media (max-width: 1060px) {
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 0.82rem; }
}

/* ---------- Hero con foto real ---------- */

.hero-photo {
  position: relative;
  background: url('hero-taller.jpg') center 30% / cover no-repeat;
  overflow: hidden;
}
.hero-photo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,36,54,0.92) 0%, rgba(15,36,54,0.82) 40%, rgba(15,36,54,0.35) 100%);
}

.hero {
  position: relative;
  z-index: 1;
  padding-top: 76px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-photo__overlay { background: linear-gradient(180deg, rgba(15,36,54,0.88) 0%, rgba(15,36,54,0.92) 60%, rgba(15,36,54,0.96) 100%); }
}

.eyebrow--light { color: #E8C077; }
.hero__title--light { color: var(--white); font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
.hero__sub--light { font-size: 1.08rem; color: rgba(255,255,255,0.82); max-width: 520px; }
.hero__note--light { color: rgba(255,255,255,0.75); }
.hero__note--light strong { color: var(--white); }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero__note {
  margin-top: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Franja de eslogan ---------- */

.slogan-band {
  background: var(--orange);
  padding: 18px 24px;
  text-align: center;
}
.slogan-band p {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
}

/* Tarjeta de la cadena diagnóstica — elemento de firma */

.diag-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 20px 50px -20px rgba(18,35,58,0.25);
}

.diag-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.diag-card__head .vehicle {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-deep);
}
.diag-card__head .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange);
  background: rgba(243,90,43,0.1);
  padding: 4px 8px;
  border-radius: 5px;
}

.diag-step {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-left: 2px solid var(--line);
  padding-left: 18px;
  margin-left: 6px;
  position: relative;
}
.diag-step::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}
.diag-step:last-child { border-left-color: transparent; }

.diag-step__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray);
  padding-top: 2px;
}
.diag-step__value { font-size: 0.95rem; color: var(--ink); }
.diag-step__value strong { color: var(--navy-deep); }

/* ---------- Problema (contraste antes/después) ---------- */

.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { .contrast { grid-template-columns: 1fr; } }

.contrast__col {
  padding: 28px;
  border-radius: 14px;
}
.contrast__col--before { background: rgba(92,92,92,0.06); border: 1px dashed var(--line); }
.contrast__col--after { background: rgba(26,62,102,0.06); border: 1px solid rgba(26,62,102,0.15); }

.contrast__col h3 { margin-bottom: 14px; }
.contrast__col ul { margin: 0; padding-left: 20px; color: var(--gray); }
.contrast__col li { margin-bottom: 10px; }

/* ---------- Cards genéricas ---------- */

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}
.card--dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
}

.card__icon {
  width: 42px; height: 42px;
  margin-bottom: 16px;
}

/* ---------- Marcas ---------- */

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.brand-pill {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-deep);
}

.spec-strip {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.spec-strip__item { min-width: 120px; }
.spec-strip__item .num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--navy-deep);
  display: block;
}
.spec-strip__item .label {
  font-size: 0.82rem;
  color: var(--gray);
}

/* ---------- Cómo trabajamos (timeline) ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .timeline { grid-template-columns: 1fr; } }

.timeline__step {
  border-top: 3px solid var(--orange);
  padding-top: 16px;
}
.timeline__step .idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--orange);
  display: block;
  margin-bottom: 8px;
}
.timeline__step h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--navy-deep);
  margin: 0 0 6px;
}
.timeline__step p { font-size: 0.88rem; margin: 0; }

/* ---------- Testimonios ---------- */

.testi {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.testi p.quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-deep);
  margin-bottom: 16px;
}
.testi .who {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gray);
}

/* ---------- Aprende ---------- */

.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.article-card .cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.article-card h3 { font-size: 1.05rem; }
.article-card p { flex: 1; font-size: 0.9rem; }
.article-card .read {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

/* ---------- Nosotros ---------- */

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about__mascot {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}
.about__mascot img { width: 160px; }

.principles { list-style: none; padding: 0; margin: 20px 0 0; }
.principles li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--gray);
}
.principles li strong { color: var(--navy-deep); }

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 26px;
}
.contact-card dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 18px;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd {
  margin: 4px 0 0;
  font-size: 0.98rem;
}

/* ---------- Formulario de contacto ---------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
  max-width: 480px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(250,248,244,0.75);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.contact-form .btn { align-self: flex-start; }
.form-note {
  font-size: 0.78rem;
  color: rgba(250,248,244,0.55);
  margin: 0;
}

/* ---------- Footer ---------- */

.footer {
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: rgba(250,248,244,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Utilidades / accesibilidad ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.reveal {
  opacity: 1;
  transform: none;
}
.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.placeholder-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange);
  background: rgba(243,90,43,0.08);
  border: 1px dashed rgba(243,90,43,0.35);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 6px;
}
