/*
Theme Name: L.L. Autopartes
Theme URI: https://llautopartes.com
Description: Tema hijo de Astra con el diseño de L.L. Autopartes: catálogo claro, portada con foto, líneas de repuestos, cotizador por WhatsApp y artículos de Educación.
Author: L.L. Autopartes
Template: astra
Version: 1.0.0
Text Domain: llautopartes
*/

/* =========================================================
   Tokens y base
   ========================================================= */
:root{
  --bg:#F6F8F8;
  --surface:#FFFFFF;
  --ink:#13191B;
  --muted:#56626A;
  --line:#DDE3E5;
  --yellow:#F2B203;
  --yellow-deep:#C98F00;
  --teal:#0C6B70;
  --teal-soft:#E3F1F1;
  --photo:#E6ECED;
  --display:"Barlow Condensed","Arial Narrow",Arial,sans-serif;
  --body:"Barlow","Segoe UI",Arial,sans-serif;
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth;scroll-padding-top:90px}

body.ll-site{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--body);
  font-size:17px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.ll-header,.ll-footer{flex:none}
.ll-main,.ll-blog,.ll-article,.ll-page{flex:1 0 auto}

body.ll-site img{max-width:100%;height:auto;display:block}
body.ll-site a{color:inherit}
body.ll-site p{margin:0}

.ll-site h1,.ll-site h2,.ll-site h3,.ll-site h4{
  font-family:var(--display);
  line-height:1.02;
  letter-spacing:.005em;
  margin:0;
  text-wrap:balance;
  color:var(--ink);
  overflow-wrap:break-word;
}
.ll-site h1{font-size:clamp(2.6rem,6.4vw,4.6rem);font-weight:700}
.ll-site h2{font-size:clamp(2rem,4.2vw,2.9rem);font-weight:700}
.ll-site h3{font-size:1.55rem;font-weight:600}
.ll-site h4{font-size:1.25rem;font-weight:600}

.ll-wrap{max-width:1180px;margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px}

.eyebrow{
  font-family:var(--display);
  font-weight:600;
  font-size:1rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--teal);
  margin:0;
}

:focus-visible{outline:3px solid var(--teal);outline-offset:3px}

.screen-reader-text{
  border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);
  height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important;
}
.skip-link:focus{
  background:var(--surface);color:var(--ink);display:block;font-weight:600;
  left:16px;padding:12px 18px;position:fixed;top:16px;z-index:9999;clip:auto;clip-path:none;height:auto;width:auto;
}

/* =========================================================
   Botones
   ========================================================= */
.ll-btn,
.ll-site .wp-block-button__link{
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  min-height:50px;padding:0 1.5rem;border-radius:6px;
  font-family:var(--display);font-size:1.2rem;font-weight:600;letter-spacing:.04em;
  text-transform:uppercase;text-decoration:none;border:2px solid transparent;cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;
  background:var(--yellow);color:var(--ink);
}
.ll-btn:hover,
.ll-site .wp-block-button__link:hover{background:var(--yellow-deep);color:var(--ink)}
.ll-btn svg{width:20px;height:20px;flex:none}

.ll-btn-ghost,
.ll-btn-ghost:hover{
  background:transparent;border-color:var(--ink);color:var(--ink);
}
.ll-btn-ghost:hover{background:var(--ink);color:#fff}

.ll-site .wp-block-button{margin:0}
.ll-site .wp-block-buttons{display:flex;flex-wrap:wrap;gap:.8rem;margin:0}
.ll-site .wp-block-button.ll-btn-primary .wp-block-button__link{background:var(--yellow);color:var(--ink)}
.ll-site .wp-block-button.ll-btn-ghost .wp-block-button__link{background:transparent;border-color:var(--ink);color:var(--ink)}
.ll-site .wp-block-button.ll-btn-ghost .wp-block-button__link:hover{background:var(--ink);color:#fff}
.ll-site .wp-block-button.is-style-outline .wp-block-button__link{background:transparent;border-color:var(--line);color:var(--ink)}

/* =========================================================
   Cabecera
   ========================================================= */
.ll-header{
  position:sticky;top:0;z-index:60;
  background:var(--surface);
  border-bottom:1px solid var(--line);
}
body.admin-bar .ll-header{top:32px}

.ll-bar{
  max-width:1180px;margin:0 auto;padding:0 16px;
  display:flex;align-items:center;gap:1.5rem;min-height:68px;
}
.ll-logo{display:inline-flex;align-items:center;flex:none}
.ll-logo img{height:34px;width:165px;max-width:none}

.ll-nav{margin-left:auto}
.ll-menu{
  display:flex;align-items:center;gap:1.6rem;
  list-style:none;margin:0;padding:0;
}
.ll-menu li{margin:0;padding:0;position:relative}
.ll-menu a{
  display:block;font-family:var(--display);font-size:1.15rem;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;text-decoration:none;
  color:var(--muted);padding:.3rem 0;border-bottom:2px solid transparent;
}
.ll-menu a:hover,
.ll-menu .current-menu-item > a,
.ll-menu .current_page_item > a{color:var(--ink);border-color:var(--yellow)}

.ll-header-cta{min-height:42px;padding:0 1.1rem;font-size:1.05rem}
.ll-header-cta svg{width:18px;height:18px}

/* submenús */
.ll-menu .sub-menu{
  position:absolute;left:0;top:100%;min-width:220px;display:none;
  background:var(--surface);border:1px solid var(--line);border-radius:8px;
  padding:.6rem;margin:0;list-style:none;box-shadow:0 12px 30px rgba(19,25,27,.12);z-index:70;
}
.ll-menu li:hover > .sub-menu,
.ll-menu li:focus-within > .sub-menu{display:block}
.ll-menu .sub-menu a{font-size:1rem;text-transform:none;letter-spacing:0;padding:.45rem .6rem;border:0;border-radius:4px}
.ll-menu .sub-menu a:hover{background:var(--bg)}

@media screen and (max-width:860px){
  .ll-nav{display:none}
  .ll-header-cta{margin-left:auto}
  .ll-bar{min-height:62px}
}
@media screen and (max-width:480px){
  .ll-logo img{height:28px;width:136px}
  .ll-header-cta{padding:0 .9rem;font-size:.98rem}
}

/* =========================================================
   Portada / inicio
   ========================================================= */
.ll-main{display:block}

.ll-section{padding:3.5rem 0}

.ll-hero{
  display:grid;grid-template-columns:1.05fr 1fr;gap:3rem;align-items:center;
  padding:4rem 0 3.5rem;
}
.ll-hero-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.ll-hero h1{margin-top:.9rem}
.ll-hero h1 em{font-style:normal;box-shadow:inset 0 -.28em 0 var(--yellow)}
.ll-hero .ll-lead{
  font-size:1.2rem;color:var(--muted);max-width:34rem;margin-top:1.3rem;
}
.ll-hero .ll-actions{margin-top:2rem}
.ll-hero .wp-block-buttons{margin-top:2rem}
.ll-facts{
  display:flex;flex-wrap:wrap;gap:.6rem 1.6rem;
  margin:2rem 0 0;padding:0;list-style:none;
  font-weight:500;font-size:.98rem;color:var(--muted);
}
.ll-facts li{display:flex;align-items:flex-start;gap:.55rem;margin:0}
.ll-facts li::before{
  content:"";display:inline-block;width:9px;height:9px;margin-top:.5rem;
  background:var(--yellow);border-radius:2px;flex:none;
}

.ll-photo{margin:0}
.ll-photo img{
  width:100%;aspect-ratio:5/4;object-fit:cover;border-radius:8px;
  background:var(--photo);
}

.ll-head{display:flex;flex-direction:column;gap:.7rem;max-width:40rem;margin-bottom:2.2rem}
.ll-head p{color:var(--muted)}
.ll-head h2{margin:0}

/* líneas de repuestos */
.ll-lines{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.4rem}
.ll-line{
  display:flex;flex-direction:column;gap:.9rem;
  background:var(--surface);border:1px solid var(--line);border-radius:10px;
  padding:.8rem .8rem 1.3rem;margin:0;
}
.ll-line .wp-block-image{margin:0}
.ll-line .wp-block-image img{
  width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;background:var(--photo);
}
.ll-line h3{padding:0 .5rem;margin-top:.2rem;font-size:1.55rem}
.ll-line p{color:var(--muted);font-size:.98rem;padding:0 .5rem}
.ll-line .ll-more{margin-top:auto;padding-top:.5rem}
.ll-more a,
a.ll-more{
  font-family:var(--display);font-weight:600;font-size:1.1rem;letter-spacing:.06em;
  text-transform:uppercase;color:var(--teal);text-decoration:none;
}
.ll-more a:hover,
a.ll-more:hover{text-decoration:underline;text-underline-offset:4px}

/* cotizador */
.ll-quote-card{
  background:var(--surface);border:1px solid var(--line);border-radius:12px;
  display:grid;grid-template-columns:1fr 1.1fr;gap:3rem;padding:2.6rem;margin:0;
}
.ll-quote-card h2{margin-top:.7rem}
.ll-quote-copy{display:flex;flex-direction:column;align-items:flex-start}
.ll-quote-list{
  list-style:none;padding:0;margin:1.4rem 0 0;
  display:flex;flex-direction:column;gap:.7rem;color:var(--muted);
}
.ll-quote-list li{display:flex;gap:.7rem;margin:0}
.ll-quote-list li::before{
  content:"";flex:none;width:9px;height:9px;margin-top:.55rem;background:var(--teal);border-radius:2px;
}

.ll-form{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.ll-form .full{grid-column:1/-1}
.ll-form label{display:flex;flex-direction:column;gap:.35rem;font-weight:600;font-size:.92rem;color:var(--ink)}
.ll-form input,.ll-form select{
  font:inherit;font-weight:400;min-height:48px;padding:0 .9rem;
  border:1.5px solid var(--line);border-radius:6px;background:var(--bg);
  color:var(--ink);min-width:0;width:100%;
}
.ll-form input:focus,.ll-form select:focus{border-color:var(--teal);outline:none;box-shadow:0 0 0 3px var(--teal-soft)}
.ll-form .ll-btn{width:100%}
.ll-form small{grid-column:1/-1;color:var(--muted);font-size:.86rem}

/* taller */
.ll-shop{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;margin:0}
.ll-shop .ll-photo img{aspect-ratio:4/3}
.ll-shop-copy{display:flex;flex-direction:column;gap:1.1rem;align-items:flex-start}
.ll-shop-copy p{color:var(--muted)}
.ll-pill{
  display:inline-block;align-self:flex-start;background:var(--teal-soft);color:var(--teal);
  font-family:var(--display);font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  font-size:1rem;padding:.35rem .8rem;border-radius:4px;
}

/* educación / tarjetas */
.ll-tips{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.4rem}
.tip{
  background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden;
  display:flex;flex-direction:column;margin:0;
}
.tip .tip-photo{display:block;overflow:hidden}
.tip .tip-photo img{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--photo);transition:transform .3s}
.tip:hover .tip-photo img{transform:scale(1.03)}
.tip .body{padding:1.1rem 1.2rem 1.4rem;display:flex;flex-direction:column;gap:.55rem;flex:1}
.tip .soon{
  font-size:.8rem;font-family:var(--display);letter-spacing:.12em;text-transform:uppercase;
  color:var(--teal);font-weight:600;
}
.tip h3{font-size:1.4rem;line-height:1.1}
.tip h3 a{text-decoration:none}
.tip h3 a:hover{color:var(--teal)}
.tip p{color:var(--muted);font-size:.98rem}
.tip .more{margin-top:auto;padding-top:.4rem}

/* contacto */
.ll-contact{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.ll-num{
  display:flex;flex-direction:column;gap:.15rem;
  background:var(--surface);border:1px solid var(--line);border-radius:10px;
  padding:1.1rem 1.3rem;text-decoration:none;margin:0;
}
.ll-num .ll-num-label{font-size:.85rem;color:var(--muted);margin:0}
.ll-num h3{font-family:var(--display);font-size:2rem;letter-spacing:.04em;font-weight:600;margin:0;line-height:1.1}
.ll-num h3 a{text-decoration:none;user-select:all}
.ll-num:hover{border-color:var(--yellow-deep)}

.ll-info{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;
  margin-top:1.2rem;
}
.ll-info > *{
  background:var(--surface);border:1px solid var(--line);border-radius:10px;
  padding:1.1rem 1.3rem;margin:0;
}
.ll-info h3{font-size:1.15rem;margin-bottom:.35rem;letter-spacing:.04em;text-transform:uppercase;color:var(--teal)}
.ll-info p{color:var(--muted);font-size:.96rem}
.ll-info a{color:var(--teal)}

/* =========================================================
   Pie de página
   ========================================================= */
.ll-footer{background:var(--ink);color:#C9D2D5;margin-top:3rem}
.ll-footer-in{
  max-width:1180px;margin:0 auto;padding:3rem 16px;
  display:grid;grid-template-columns:auto 1fr;gap:3rem;align-items:center;
}
.ll-footer img{height:150px;width:166px;max-width:none;filter:invert(1)}
.ll-footer p{max-width:36rem;margin:0}
.ll-footer small{display:block;margin-top:1rem;color:#8E9CA1}
.ll-footer a{color:#C9D2D5}
.ll-footer-links{margin-top:.8rem!important;font-size:.9rem;color:#8E9CA1}
.ll-footer-links a{color:#8E9CA1;text-decoration:none;margin-right:.3rem}
.ll-footer-links a:hover{color:#fff;text-decoration:underline}

@media screen and (max-width:860px){
  .ll-footer-in{grid-template-columns:1fr;gap:1.5rem}
  .ll-footer img{height:110px;width:122px}
}

/* =========================================================
   Páginas internas
   ========================================================= */
.ll-page{padding:3rem 0 4rem}
.ll-page-inner{max-width:820px}
.ll-page-head{margin-bottom:2rem}
.ll-page-head h1{font-size:clamp(2.2rem,4.5vw,3.2rem)}
.ll-page .entry-content{color:var(--ink)}
.ll-page .entry-content h2{margin-top:2.4rem;font-size:clamp(1.6rem,3vw,2.1rem)}
.ll-page .entry-content h3{margin-top:1.8rem}
.ll-page .entry-content p{margin-top:1rem;color:var(--muted)}
.ll-page .entry-content ul,
.ll-page .entry-content ol{margin:1rem 0 0;padding-left:1.3rem;color:var(--muted);display:flex;flex-direction:column;gap:.35rem}
.ll-page .entry-content a{color:var(--teal)}

/* =========================================================
   Artículo
   ========================================================= */
.ll-article{
  max-width:760px;margin:0 auto;padding:2.5rem 16px 3rem;
}
.ll-back{
  display:inline-block;font-family:var(--display);font-weight:600;font-size:1.05rem;
  letter-spacing:.06em;text-transform:uppercase;text-decoration:none;color:var(--muted);
  margin-bottom:1.4rem;
}
.ll-back:hover{color:var(--ink)}
.ll-article h1{margin-top:.8rem;font-size:clamp(2.4rem,6vw,3.8rem);line-height:1.04}
.ll-article .ll-meta{color:var(--muted);font-size:.95rem;margin-top:1rem}
.ll-article .entry-content{font-size:18px;line-height:1.65;margin-top:.4rem}
.ll-article .entry-content p{margin:1rem 0 0}
.ll-article .entry-content p.ll-lead{font-size:1.28rem;color:var(--muted);margin-top:1.3rem}
.ll-article .entry-content h2{
  margin:3rem 0 0;font-size:clamp(1.8rem,3.6vw,2.3rem);line-height:1.04;
}
.ll-article .entry-content h3{margin:2rem 0 0;font-size:1.4rem}
.ll-article .entry-content a{color:var(--teal)}
.ll-article .entry-content img{border-radius:8px;width:100%}
.ll-article .entry-content figure{margin:2rem 0 0}
.ll-article .entry-content figcaption{font-size:.85rem;color:var(--muted);margin-top:.5rem;text-align:center}

.ll-article .entry-content ul,
.ll-article .entry-content ol{margin:1rem 0 0;padding-left:1.3rem}
.ll-article .entry-content li{margin:.35rem 0}

/* foto del artículo */
.ll-article .ll-photo{margin:2rem 0 0}
.ll-article .ll-photo img{aspect-ratio:16/9;object-fit:cover}

/* lista de síntomas */
.ll-signs{display:flex;flex-direction:column;gap:.9rem;margin:1.6rem 0 0;padding:0;list-style:none}
.ll-signs li{
  background:var(--surface);border:1px solid var(--line);border-radius:10px;
  padding:1rem 1.2rem;margin:0;
}
.ll-signs strong{display:block;font-family:var(--display);font-size:1.3rem;font-weight:600;line-height:1.15}
.ll-signs span{display:block;color:var(--muted);font-size:1rem;margin-top:.35rem;line-height:1.5}
.ll-signs em{font-style:normal;color:var(--teal);font-weight:600}

/* revisión numerada */
ol.ll-check{
  margin:1.6rem 0 0;padding:0;list-style:none;counter-reset:s;
  display:flex;flex-direction:column;gap:1rem;
}
ol.ll-check li{
  counter-increment:s;display:grid;grid-template-columns:2.4rem 1fr;gap:.9rem;margin:0;
}
ol.ll-check li::before{
  content:counter(s);display:grid;place-items:center;width:2.4rem;height:2.4rem;
  background:var(--yellow);border-radius:6px;font-family:var(--display);
  font-weight:700;font-size:1.3rem;color:var(--ink);
}
ol.ll-check b,ol.ll-check strong{font-weight:600}

/* aviso */
.ll-warn{
  margin-top:1.6rem;background:var(--surface);border:1px solid var(--line);
  border-left:6px solid var(--yellow);border-radius:8px;padding:1.1rem 1.3rem;
}
.ll-warn p{margin:0}
.ll-warn p + p{margin-top:.6rem}

/* CTA del artículo */
.ll-cta{
  margin-top:3rem;background:var(--ink);color:#E6ECEE;border-radius:12px;
  padding:2rem 1.8rem;display:flex;flex-direction:column;gap:1rem;align-items:flex-start;
}
.ll-cta h2{margin:0;color:#fff;font-size:2rem}
.ll-cta p{margin:0;color:#C9D2D5}
.ll-cta .wp-block-buttons{margin-top:.2rem}
.ll-cta .wp-block-button__link{background:var(--yellow);color:var(--ink)}

.ll-note{margin-top:2.2rem;color:var(--muted);font-size:.92rem}

/* =========================================================
   Blog / Educación
   ========================================================= */
.ll-blog{padding:2.8rem 0 4rem}
.ll-blog .ll-head{margin-bottom:2.4rem}
.ll-blog .ll-head h1{font-size:clamp(2.4rem,5vw,3.6rem)}
.ll-blog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}
.ll-pagination{display:flex;justify-content:center;gap:.5rem;margin-top:2.5rem}
.ll-pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;
  padding:0 .8rem;border:1px solid var(--line);border-radius:6px;background:var(--surface);
  text-decoration:none;font-weight:600;color:var(--ink);
}
.ll-pagination .page-numbers.current{background:var(--ink);color:#fff;border-color:var(--ink)}
.ll-pagination .page-numbers:hover{border-color:var(--yellow-deep)}

.ll-empty{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:2rem;color:var(--muted)}

/* =========================================================
   Ajustes de bloques de WordPress
   ========================================================= */
.ll-site .wp-block-group{margin:0}
.ll-site .wp-block-group > *:first-child{margin-top:0}
.ll-site .wp-block-image{margin:0}
.ll-site .wp-block-heading{margin:0}
.ll-site .wp-block-buttons{margin:0}
.ll-site .wp-block-list{margin:0;padding:0;list-style:none}

/* =========================================================
   Responsive
   ========================================================= */
@media screen and (max-width:860px){
  .ll-hero,.ll-shop,.ll-quote-card{grid-template-columns:1fr;gap:2rem}
  .ll-hero{padding:2.5rem 0 2rem}
  .ll-quote-card{padding:1.5rem}
  .ll-section{padding:2.75rem 0}
  .ll-hero h1{font-size:clamp(2.3rem,8vw,3.4rem)}
}

@media screen and (max-width:620px){
  .ll-site .wp-block-buttons{flex-direction:column;align-items:stretch;gap:.7rem}
  .ll-site .wp-block-button{width:100%}
  .ll-site .wp-block-button__link{width:100%;white-space:normal;text-align:center}
  .ll-hero .wp-block-buttons{width:100%}
}

@media screen and (max-width:480px){
  .ll-form{grid-template-columns:1fr}
  .ll-site h1{font-size:clamp(2.1rem,9vw,2.8rem)}
  .ll-article{padding-top:1.8rem}
  .ll-article .entry-content{font-size:17px}
  .ll-quote-card{padding:1.2rem}
  .ll-num h3{font-size:1.8rem}
}

@media screen and (max-width:782px){
  body.admin-bar .ll-header{top:46px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}
