/* =============================================================
   modelo.css — estilos compartidos por las páginas de /camiones/
   (Actros, New Actros, Atego, Axor, Arocs y el índice).
   Mismo sistema de diseño que el resto del sitio nuevo (ad-blue, etc.).
   Para una página nueva: copiar cualquier index.html de /camiones/ y
   cambiar textos; el diseño vive todo acá.
   ============================================================= */

:root{
  --bg:#0A0A0B;
  --surface:#151516;
  --surface-alt:#1D1D1F;
  --text:#F5F4F1;
  --text-muted:#A7A6A2;
  --border:#2B2B2D;
  --line:#333335;
  --accent:#E3241C;
  --accent-hover:#FF3B2E;
  --accent-ink:#F5F4F1;
  --focus:#FF7A6E;
  --glow-sm:0 6px 20px -8px rgba(227,36,28,0.55);
  --glow-md:0 16px 36px -20px rgba(227,36,28,0.45);
  --glow-lg:0 24px 54px -28px rgba(227,36,28,0.5);
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img,svg{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3{
  font-family:"Oswald", "Arial Narrow", sans-serif;
  text-transform:uppercase;
  letter-spacing:0.01em;
  text-wrap:balance;
  margin:0;
  font-weight:600;
}
.wrap{ max-width:1180px; margin:0 auto; padding:0 28px; }
a:focus-visible, button:focus-visible{ outline:3px solid var(--focus); outline-offset:2px; }

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--accent); color:#fff; padding:10px 18px;
  border-radius:0 0 4px 0; font-weight:600; text-decoration:none;
}
.skip-link:focus{ left:0; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- botones ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:"IBM Plex Sans",sans-serif; font-weight:600; font-size:14.5px;
  text-decoration:none; padding:12px 22px; border-radius:4px;
  border:1.5px solid transparent; cursor:pointer; white-space:nowrap;
  transition:background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active{ transform:translateY(1px); }
.btn-accent{ background:var(--accent); color:var(--accent-ink); box-shadow:var(--glow-sm); }
.btn-accent:hover{ background:var(--accent-hover); box-shadow:0 8px 26px -8px rgba(255,59,46,0.65); }
.btn-ghost{ background:transparent; color:var(--text); border-color:var(--border); }
.btn-ghost:hover{ border-color:var(--text); }

/* ---------- etiquetas ---------- */
.section-eyebrow{
  font-family:"IBM Plex Mono", monospace; font-size:12px;
  letter-spacing:0.14em; text-transform:uppercase; color:var(--accent);
  margin-bottom:10px; display:block;
}
.kicker{
  display:inline-flex; align-items:center; gap:9px;
  font-family:"IBM Plex Mono", monospace; font-size:12.5px; font-weight:500;
  letter-spacing:0.14em; text-transform:uppercase; color:var(--accent);
  border:1.5px solid var(--accent); border-radius:3px; padding:6px 12px;
  margin-bottom:22px; box-shadow:0 0 22px -6px rgba(227,36,28,0.7);
}
.kicker::before{ content:"●"; font-size:8px; }

/* ---------- hero ---------- */
.modelo-hero{
  padding:60px 0 44px;
  border-bottom:1px solid var(--border);
}
.modelo-hero .wrap{ max-width:860px; }
.back-link{
  display:flex; width:fit-content; align-items:center; gap:7px;
  font-family:"IBM Plex Mono", monospace; font-size:12px;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--text-muted);
  text-decoration:none; margin-bottom:26px; transition:color .15s ease;
}
.back-link:hover{ color:var(--accent); }
.modelo-title{ font-size:clamp(30px, 4.6vw, 48px); line-height:1.06; }
.modelo-lead{
  margin:20px 0 0; max-width:60ch;
  font-size:18px; line-height:1.6; color:var(--text-muted);
}
.modelo-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }

/* franja de datos rápidos */
.spec-strip{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1px; background:var(--border);
  border:1px solid var(--border); border-radius:8px; overflow:hidden;
  margin-top:34px;
}
.spec-strip div{ background:var(--surface); padding:16px 18px; }
.spec-strip dt{
  font-family:"IBM Plex Mono", monospace; font-size:11px;
  letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted);
}
.spec-strip dd{
  margin:6px 0 0; font-family:"Oswald", sans-serif; font-size:17px;
  text-transform:uppercase; letter-spacing:0.01em;
}
@media (max-width:620px){ .spec-strip{ grid-template-columns:1fr; } }

/* ---------- cuerpo ---------- */
.modelo-body{ max-width:720px; margin:0 auto; padding:48px 28px 24px; }
.modelo-body > p, .modelo-body > ul, .modelo-body > ol{
  color:var(--text-muted); margin:0 0 22px; font-size:16.5px; line-height:1.7;
}
.modelo-body h2{
  font-size:clamp(20px, 2.6vw, 26px); line-height:1.2; margin:44px 0 14px;
}
.modelo-body h2::before{
  content:""; display:block; width:34px; height:3px;
  background:var(--accent); margin-bottom:16px;
}
.modelo-body ul, .modelo-body ol{ padding-left:22px; }
.modelo-body li{ margin-bottom:8px; color:var(--text-muted); font-size:16.5px; line-height:1.7; }
.modelo-body strong{ color:var(--text); font-weight:600; }
.modelo-body a{
  color:var(--text); text-decoration:underline;
  text-decoration-color:var(--accent); text-underline-offset:3px;
}
.modelo-body a:hover{ color:var(--accent); }

/* lista de fallas frecuentes */
.fallas{ list-style:none; padding:0 !important; margin:0 0 22px !important; display:flex; flex-direction:column; gap:10px; }
.fallas li{
  margin:0; color:var(--text-muted); font-size:15.5px; line-height:1.6;
  background:var(--surface); border:1px solid var(--border);
  border-left:3px solid var(--accent); border-radius:6px; padding:14px 16px;
}
.fallas li strong{ display:block; margin-bottom:3px; color:var(--text); }

/* ---------- FAQ ---------- */
.modelo-faq{ max-width:720px; margin:0 auto; padding:8px 28px 8px; }
.modelo-faq h2{ font-size:clamp(20px,2.6vw,26px); margin:0 0 18px; }
.faq-item{ border-top:1px solid var(--border); padding:16px 0; }
.faq-item:last-child{ border-bottom:1px solid var(--border); }
.faq-item summary{
  cursor:pointer; font-family:"Oswald", sans-serif; text-transform:uppercase;
  letter-spacing:0.01em; font-size:16px; color:var(--text); list-style:none;
  display:flex; justify-content:space-between; align-items:center; gap:12px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+"; font-family:"IBM Plex Mono",monospace; color:var(--accent);
  font-size:18px; flex-shrink:0;
}
.faq-item[open] summary::after{ content:"–"; }
.faq-item p{ margin:12px 0 0; color:var(--text-muted); font-size:15.5px; line-height:1.65; }

/* ---------- otros modelos / cross-links ---------- */
.modelo-cross{ border-top:1px solid var(--border); margin-top:56px; }
.modelo-cross .wrap{ padding-top:48px; padding-bottom:48px; }
.modelo-cross h2{ font-size:clamp(19px,2.4vw,24px); margin-bottom:22px; }
.cross-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr)); gap:12px; }
.cross-grid a{
  display:block; text-decoration:none; padding:16px 16px;
  background:var(--surface); border:1px solid var(--border); border-radius:8px;
  font-family:"Oswald", sans-serif; text-transform:uppercase; letter-spacing:0.02em;
  color:var(--text-muted); font-size:14.5px;
  transition:border-color .15s ease, color .15s ease;
}
.cross-grid a:hover{ border-color:var(--accent); color:var(--text); }

/* ---------- CTA final ---------- */
.modelo-cta{ background:var(--surface-alt); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.modelo-cta .wrap{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:28px; padding:52px 28px; max-width:900px;
}
.modelo-cta h2{ font-size:clamp(21px,2.8vw,28px); margin:0 0 8px; }
.modelo-cta p{ margin:0; color:var(--text-muted); font-size:15px; max-width:44ch; }

/* ---------- footer (igual que el resto del sitio) ---------- */
footer{ padding:40px 0 48px; border-top:1px solid var(--border); }
.footer-row{
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  flex-wrap:wrap; font-size:13.5px; color:var(--text-muted);
}
.footer-brand{ display:flex; align-items:center; gap:12px; }
.footer-links{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-links a{ text-decoration:none; color:var(--text-muted); }
.footer-links a:hover{ color:var(--accent); }
.footer-social{ display:flex; gap:10px; }
.footer-social a{
  width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--border); border-radius:4px; color:var(--text-muted);
  transition:border-color .15s ease, color .15s ease;
}
.footer-social a:hover{ border-color:var(--accent); color:var(--accent); }
.footer-social svg{ width:16px; height:16px; }

/* ---------- índice /camiones/ ---------- */
.modelos-index{ max-width:1080px; margin:0 auto; padding:8px 28px 20px; }
.modelos-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:16px; margin-top:8px; }
.modelo-card{
  display:flex; flex-direction:column; text-decoration:none;
  background:var(--surface); border:1px solid var(--border);
  border-left:3px solid var(--accent); border-radius:10px; padding:22px 22px 24px;
  transition:border-color .15s ease, transform .12s ease;
}
.modelo-card:hover{ border-color:var(--accent); transform:translateY(-2px); }
.modelo-card h2{ font-size:22px; margin:0 0 8px; color:var(--text); }
.modelo-card p{ margin:0; color:var(--text-muted); font-size:14.5px; line-height:1.6; }
.modelo-card .go{
  margin-top:16px; font-family:"IBM Plex Mono", monospace; font-size:12px;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--accent);
}

@media (max-width:560px){
  .wrap{ padding:0 20px; }
  .modelo-hero{ padding:44px 0 34px; }
  .modelo-body, .modelo-faq{ padding-left:20px; padding-right:20px; }
}
