/* ==========================================================================
   Repuesteros — styles.css
   Mobile-first: base rules below target small phones (~320px+).
   Progressive enhancement at min-width:600px (large phone/small tablet)
   and min-width:768px (tablet/desktop) at the bottom of this file.
   ========================================================================== */

*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#f5f7fa;color:#1a1a2e;overflow-x:hidden;}
picture{display:block;}

.topbar{background:#1a2d6d;padding:6px 1rem;display:flex;justify-content:center;align-items:center;gap:.75rem;flex-wrap:wrap;}
.topbar-item{font-size:11px;color:rgba(255,255,255,.9);display:flex;align-items:center;gap:6px;font-weight:500;}
.topbar-item i{font-size:13px;color:#f4941a;}
.topbar-sep{display:none;width:1px;height:14px;background:rgba(255,255,255,.2);}

nav{background:#1a2748;padding:0 .85rem;display:flex;align-items:center;justify-content:space-between;height:70px;position:sticky;top:0;z-index:100;box-shadow:0 2px 16px rgba(0,0,0,.18);}
.nav-brand{display:flex;align-items:center;gap:8px;min-width:0;}
.nav-logo-img{height:36px;width:auto;flex-shrink:0;}
.nav-logo-text{display:flex;flex-direction:column;min-width:0;}
.nav-logo-name{font-size:15px;font-weight:900;color:#fff;letter-spacing:.5px;line-height:1;white-space:nowrap;}
.nav-logo-slogan{display:none;font-size:10px;color:rgba(255,255,255,.6);font-weight:400;letter-spacing:.3px;margin-top:2px;}
.nav-right{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.nav-badge{display:none;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);border-radius:6px;padding:5px 12px;font-size:11px;color:rgba(255,255,255,.8);align-items:center;gap:5px;}
.nav-badge i{color:#f4941a;}
.nav-cta{background:#25D366;color:#fff;font-size:12px;font-weight:700;padding:8px 12px;border-radius:8px;border:none;cursor:pointer;display:flex;align-items:center;gap:5px;text-decoration:none;transition:background .15s;white-space:nowrap;}
.nav-cta:hover{background:#1fba58;}
.nav-cta-full{display:none;}
.nav-cta-short{display:inline;}

.hero{position:relative;min-height:0;display:flex;align-items:center;overflow:hidden;}
.hero-bg{
  position:absolute;inset:0;
  background-image:url('../assets/hero-ford-parts-chile.jpg');
  background-image:image-set(url('../assets/hero-ford-parts-chile.webp') type('image/webp'), url('../assets/hero-ford-parts-chile.jpg') type('image/jpeg'));
  background-size:cover;background-position:center top;
}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,16,50,.95) 0%,rgba(8,16,50,.8) 45%,rgba(8,16,50,.3) 100%);}
.hero-inner{position:relative;z-index:1;max-width:1100px;margin:0 auto;width:100%;padding:2.25rem 1.1rem;display:grid;grid-template-columns:1fr;gap:1.5rem;align-items:center;}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:3px;color:#f4941a;text-transform:uppercase;margin-bottom:.8rem;display:flex;align-items:center;gap:8px;}
.eyebrow::before{content:'';width:20px;height:2px;background:#f4941a;display:inline-block;flex-shrink:0;}
.hero h1{font-size:26px;font-weight:900;line-height:1.15;letter-spacing:-1px;color:#fff;margin-bottom:.6rem;}
.hero h1 span{color:#f4941a;}
.hero-slogan{font-size:13px;color:rgba(255,255,255,.7);font-style:italic;margin-bottom:.8rem;}
.hero-badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:1.4rem;}
.hero-badge{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:20px;padding:4px 12px;font-size:11px;color:rgba(255,255,255,.85);display:flex;align-items:center;gap:5px;}
.hero-badge i{color:#f4941a;font-size:12px;}
.hero-desc{font-size:14px;color:rgba(255,255,255,.8);line-height:1.7;margin-bottom:1.8rem;max-width:440px;}
.hero-btns{display:flex;gap:10px;flex-wrap:wrap;}
.btn-wa{background:#25D366;color:#fff;font-size:14px;font-weight:700;padding:13px 22px;border-radius:8px;border:none;cursor:pointer;display:flex;align-items:center;gap:8px;text-decoration:none;transition:background .15s;}
.btn-wa:hover{background:#1fba58;}
.hero-img-box{display:none;align-items:center;justify-content:center;}
.hero-parts-img{width:100%;max-width:400px;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.5);}

.trust-bar{background:#fff;border-bottom:1px solid #e5e7eb;padding:14px 1.1rem;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;}
.trust-item{display:flex;align-items:center;gap:12px;padding:0 0 12px;border-bottom:1px solid #e5e7eb;width:100%;}
.trust-item:last-child{border-bottom:none;padding-bottom:0;}
.trust-icon-svg{width:44px;height:44px;background:#fff3e0;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.trust-icon-svg i{font-size:24px;color:#f4941a;}
.trust-text strong{font-size:13px;color:#1a1a2e;display:block;font-weight:700;}
.trust-text span{font-size:11px;color:#888;}

.cotizador-wrap{background:linear-gradient(135deg,#1a2d6d 0%,#0f1d4a 100%);padding:2.5rem 1.1rem;}
.cotizador-inner{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:2rem;}
.cotizador-text{color:#fff;max-width:520px;}
.cotizador-text .sec-label{color:#f4941a;}
.cotizador-text h2{font-size:22px;font-weight:900;line-height:1.15;margin-bottom:.8rem;}
.cotizador-text h2 span{color:#f4941a;}
.cotizador-text p{font-size:14px;color:rgba(255,255,255,.75);line-height:1.7;margin-bottom:1.4rem;}
.cotizador-features{display:flex;flex-direction:column;gap:10px;margin-bottom:2rem;}
.cot-feat{display:flex;align-items:center;gap:10px;font-size:13px;color:rgba(255,255,255,.85);}
.cot-feat i{color:#f4941a;font-size:16px;flex-shrink:0;}
.btn-cotizar{background:#f4941a;color:#fff;font-size:16px;font-weight:800;padding:16px 32px;border-radius:10px;border:none;cursor:pointer;display:inline-flex;align-items:center;gap:10px;text-decoration:none;transition:all .15s;box-shadow:0 6px 24px rgba(244,148,26,.4);}
.btn-cotizar:hover{background:#e07d0a;transform:translateY(-2px);box-shadow:0 10px 28px rgba(244,148,26,.5);}
.cotizador-right{display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;}
.cotizador-preview{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:1.5rem;display:flex;flex-direction:column;align-items:center;gap:1rem;text-align:center;width:100%;max-width:340px;}
.cotizador-preview-icon{width:72px;height:72px;background:#f4941a;border-radius:50%;display:flex;align-items:center;justify-content:center;}
.cotizador-preview-icon i{font-size:34px;color:#fff;}
.cotizador-preview-title{font-size:16px;font-weight:700;color:#fff;}
.cotizador-preview-sub{font-size:12px;color:rgba(255,255,255,.55);line-height:1.5;}
.cotizador-preview-tags{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;}
.cotizador-preview-tag{background:rgba(255,255,255,.1);border-radius:20px;padding:3px 10px;font-size:11px;color:rgba(255,255,255,.7);}

.modal-overlay{position:fixed;inset:0;background:rgba(8,16,50,.75);z-index:500;display:flex;align-items:center;justify-content:center;padding:1rem;opacity:0;pointer-events:none;transition:opacity .25s;}
.modal-overlay.open{opacity:1;pointer-events:all;}
.modal-box{background:#fff;border-radius:16px;overflow:hidden;width:100%;max-width:700px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 24px 80px rgba(0,0,0,.4);transform:translateY(20px);transition:transform .25s;}
.modal-overlay.open .modal-box{transform:translateY(0);}
.modal-header{background:#1a2d6d;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;}
.modal-header-left{display:flex;align-items:center;gap:10px;}
.modal-header-left i{font-size:20px;color:#f4941a;}
.modal-header-left span{color:#fff;font-size:14px;font-weight:700;}
.modal-header-sub{color:rgba(255,255,255,.6);font-size:11px;display:block;margin-top:1px;}
.modal-close{background:rgba(255,255,255,.1);border:none;border-radius:6px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;font-size:18px;transition:background .15s;}
.modal-close:hover{background:rgba(255,255,255,.2);}
.modal-iframe{flex:1;border:none;width:100%;min-height:75vh;}

.sec-label{font-size:11px;font-weight:700;letter-spacing:3px;color:#f4941a;text-transform:uppercase;margin-bottom:6px;}
.sec-title{font-size:22px;font-weight:900;color:#1a1a2e;letter-spacing:-.5px;margin-bottom:6px;}
.sec-sub{font-size:13px;color:#888;margin-bottom:2rem;}
.section-wrap{background:#fff;padding:2.25rem 1.1rem;}
.section-wrap-gray{background:#f5f7fa;padding:2.25rem 1.1rem;}
.section-inner{max-width:1100px;margin:0 auto;}

.carousel-wrap{position:relative;overflow:hidden;border-radius:12px;}
.carousel-track{display:flex;transition:transform .4s cubic-bezier(.4,0,.2,1);}
.carousel-slide{min-width:100%;position:relative;}
.carousel-slide img{width:100%;height:210px;object-fit:cover;display:block;}
.carousel-caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(8,16,50,.85));padding:1.5rem 1.1rem 1.1rem;color:#fff;}
.carousel-caption h3{font-size:17px;font-weight:800;margin-bottom:4px;}
.carousel-caption p{font-size:12px;color:rgba(255,255,255,.8);}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.9);border:none;border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;box-shadow:0 2px 8px rgba(0,0,0,.2);transition:background .15s;}
.carousel-btn:hover{background:#fff;}
.carousel-btn i{font-size:20px;color:#1a2d6d;}
.carousel-prev{left:10px;}
.carousel-next{right:10px;}
.carousel-dots{display:flex;justify-content:center;gap:6px;margin-top:12px;}
.carousel-dot{width:8px;height:8px;border-radius:50%;background:#ddd;border:none;cursor:pointer;transition:background .2s;padding:0;}
.carousel-dot.active{background:#f4941a;width:20px;border-radius:4px;}

.makes-strip{background:#1a2d6d;padding:1.75rem 1.1rem;}
.makes-inner{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:1.25rem;}
.makes-text{color:#fff;}
.makes-text h3{font-size:16px;font-weight:900;margin-bottom:4px;}
.makes-text p{font-size:12px;color:rgba(255,255,255,.6);}
.makes-logos{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.make-badge{background:rgba(255,255,255,.95);border-radius:8px;padding:8px 16px;display:flex;align-items:center;justify-content:center;height:52px;}
.make-badge img{max-height:32px;max-width:100px;object-fit:contain;}
.make-badge-kt{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:8px;overflow:hidden;height:52px;width:130px;}
.make-badge-kt img{width:100%;height:100%;object-fit:cover;}

.cats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px;}
.cat-card{background:#fff;border:1.5px solid #e5e7eb;border-radius:12px;overflow:hidden;cursor:pointer;transition:all .2s;}
.cat-card:hover{border-color:#f4941a;box-shadow:0 6px 20px rgba(244,148,26,.15);transform:translateY(-3px);}
.cat-img{width:100%;height:145px;object-fit:cover;display:block;}
.cat-body{padding:12px 14px 14px;}
.cat-name{font-size:14px;font-weight:700;color:#1a1a2e;margin-bottom:3px;}
.cat-desc{font-size:12px;color:#888;}
.cat-link{font-size:12px;color:#f4941a;font-weight:600;display:flex;align-items:center;gap:4px;margin-top:8px;text-decoration:none;}

.brands-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px;}
.brand-card{background:#fff;border:1.5px solid #e5e7eb;border-radius:10px;padding:12px;display:flex;align-items:center;justify-content:center;height:76px;cursor:pointer;transition:all .15s;}
.brand-card:hover{border-color:#1a2d6d;box-shadow:0 4px 12px rgba(26,45,109,.1);transform:translateY(-2px);}
.brand-card img{max-width:100%;max-height:44px;object-fit:contain;}

.steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;}
.step-card{background:#fff;border:1.5px solid #e5e7eb;border-radius:12px;overflow:hidden;}
.step-img{width:100%;height:130px;object-fit:cover;display:block;}
.step-body{padding:16px;}
.step-num{font-size:11px;font-weight:700;letter-spacing:2px;color:#f4941a;text-transform:uppercase;margin-bottom:6px;}
.step-title{font-size:15px;font-weight:700;color:#1a1a2e;margin-bottom:5px;}
.step-desc{font-size:13px;color:#666;line-height:1.6;}

.garantia-wrap{background:#fff3e0;border:1.5px solid #f4941a;border-radius:12px;padding:1.25rem 1.1rem;display:flex;align-items:flex-start;gap:1rem;margin-top:2rem;}
.garantia-icon{font-size:32px;color:#f4941a;flex-shrink:0;}
.garantia-text h4{font-size:15px;font-weight:700;color:#1a1a2e;margin-bottom:4px;}
.garantia-text p{font-size:13px;color:#666;line-height:1.6;}

.faq-list{display:flex;flex-direction:column;gap:10px;max-width:760px;}
.faq-item{background:#fff;border:1.5px solid #e5e7eb;border-radius:12px;padding:2px 16px;transition:border-color .15s;}
.faq-item[open]{border-color:#f4941a;}
.faq-item summary{list-style:none;padding:14px 0;font-size:14px;font-weight:700;color:#1a1a2e;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:'+';font-size:20px;font-weight:400;color:#f4941a;flex-shrink:0;transition:transform .2s;}
.faq-item[open] summary::after{transform:rotate(45deg);}
.faq-item p{font-size:13px;color:#666;line-height:1.7;padding-bottom:16px;}

.cta-strip{background:#f4941a;padding:2rem 1.1rem;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1.25rem;}
.cta-text h2{font-size:20px;font-weight:900;color:#fff;margin-bottom:6px;}
.cta-text p{font-size:13px;color:rgba(255,255,255,.85);display:flex;align-items:center;gap:6px;}
.cta-actions{display:flex;gap:10px;flex-wrap:wrap;}
.cta-btn-main{background:#fff;color:#f4941a;font-size:14px;font-weight:700;padding:13px 22px;border-radius:8px;border:none;cursor:pointer;display:flex;align-items:center;gap:8px;text-decoration:none;}
.cta-btn-main:hover{background:#fff9f2;}
.cta-btn-ghost{background:transparent;color:#fff;font-size:13px;font-weight:600;padding:13px 18px;border-radius:8px;border:2px solid rgba(255,255,255,.5);cursor:pointer;display:flex;align-items:center;gap:7px;text-decoration:none;}
.cta-btn-ghost:hover{border-color:#fff;}

footer{background:#1a2748;padding:2rem 1.1rem 1.25rem;}
.footer-inner{max-width:1100px;margin:0 auto;}
.footer-grid{display:grid;grid-template-columns:1fr;gap:2rem;margin-bottom:2rem;}
footer h4{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:2px;color:rgba(255,255,255,.35);margin-bottom:12px;}
footer a,.footer-p{font-size:13px;color:rgba(255,255,255,.55);display:block;margin-bottom:8px;text-decoration:none;}
footer a:hover{color:#f4941a;}
.footer-logo-img{height:42px;margin-bottom:12px;}
.footer-brand-name{font-size:18px;font-weight:900;color:#fff;margin-bottom:2px;}
.footer-brand-slogan{font-size:11px;color:rgba(255,255,255,.5);margin-bottom:14px;font-style:italic;}
.footer-contact{display:flex;align-items:center;gap:8px;font-size:13px;color:rgba(255,255,255,.55);margin-bottom:8px;}
.footer-contact i{color:#f4941a;font-size:14px;}
.footer-badge{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:6px;padding:5px 10px;font-size:11px;color:rgba(255,255,255,.5);display:inline-flex;align-items:center;gap:5px;margin-top:10px;}
.footer-badge i{color:#25D366;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding-top:1.2rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;}
.footer-bottom span{font-size:11px;color:rgba(255,255,255,.25);}
.powered{font-size:11px;color:rgba(255,255,255,.25);}
.powered a{color:rgba(255,255,255,.4);text-decoration:none;font-weight:600;}
.powered a:hover{color:#f4941a;}

.wa-float{position:fixed;bottom:18px;right:18px;background:#25D366;color:#fff;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 24px rgba(37,211,102,.45);cursor:pointer;z-index:200;text-decoration:none;transition:transform .15s;}
.wa-float:hover{transform:scale(1.08);}
.wa-float i{font-size:26px;}

/* ==========================================================================
   Enhancement — min-width:600px (large phone / small tablet)
   ========================================================================== */
@media(min-width:600px){
  .topbar{padding:7px 2rem;gap:2.5rem;}
  .topbar-item{font-size:12px;}
  .topbar-sep{display:block;}

  .hero h1{font-size:32px;}

  .sec-title{font-size:24px;}
  .section-wrap{padding:2.75rem 1.5rem;}
  .section-wrap-gray{padding:2.75rem 1.5rem;}

  .carousel-slide img{height:280px;}

  .brands-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));}
  .brand-card{padding:16px;height:80px;}

  .footer-grid{grid-template-columns:1fr 1fr;}

  .wa-float{bottom:24px;right:24px;width:62px;height:62px;}
  .wa-float i{font-size:30px;}
}

/* ==========================================================================
   Enhancement — min-width:768px (tablet / desktop)
   ========================================================================== */
@media(min-width:768px){
  nav{padding:0 2.5rem;height:76px;}
  .nav-brand{gap:12px;}
  .nav-logo-img{height:48px;}
  .nav-logo-name{font-size:20px;}
  .nav-logo-slogan{display:block;}
  .nav-right{gap:14px;}
  .nav-badge{display:flex;}
  .nav-cta{font-size:13px;padding:10px 18px;gap:7px;}
  .nav-cta-full{display:inline;}
  .nav-cta-short{display:none;}

  .hero{min-height:420px;}
  .hero-inner{padding:3.5rem 2rem;grid-template-columns:1fr 1fr;gap:3rem;}
  .hero h1{font-size:40px;}
  .hero-img-box{display:flex;}

  .trust-bar{flex-direction:row;align-items:center;justify-content:center;gap:0;padding:16px 2rem;}
  .trust-item{width:auto;padding:0 2.5rem;border-bottom:none;border-right:1px solid #e5e7eb;}
  .trust-item:last-child{border-right:none;}

  .cotizador-wrap{padding:4rem 2rem;}
  .cotizador-inner{flex-direction:row;align-items:center;gap:3rem;}
  .cotizador-text h2{font-size:30px;}
  .cotizador-right{width:auto;}
  .cotizador-preview{padding:2rem;min-width:260px;width:auto;}

  .modal-iframe{min-height:560px;}

  .sec-title{font-size:28px;}
  .sec-sub{font-size:14px;}
  .section-wrap{padding:3.5rem 2rem;}
  .section-wrap-gray{padding:3.5rem 2rem;}

  .carousel-slide img{height:340px;}
  .carousel-caption h3{font-size:20px;}
  .carousel-caption p{font-size:13px;}
  .carousel-btn{width:40px;height:40px;}
  .carousel-btn i{font-size:18px;}
  .carousel-prev{left:12px;}
  .carousel-next{right:12px;}

  .makes-strip{padding:2.5rem 2rem;}
  .makes-inner{flex-direction:row;align-items:center;gap:2rem;}
  .makes-text h3{font-size:18px;}
  .make-badge{height:56px;}
  .make-badge img{max-height:36px;max-width:110px;}
  .make-badge-kt{height:56px;width:140px;}

  .step-img{height:150px;}

  .garantia-wrap{padding:1.5rem 2rem;}
  .garantia-icon{font-size:36px;}

  .faq-item{padding:2px 20px;}
  .faq-item summary{font-size:15px;padding:16px 0;}

  .cta-strip{flex-direction:row;align-items:center;justify-content:space-between;gap:2rem;padding:3rem 2rem;}
  .cta-text h2{font-size:24px;}

  footer{padding:3rem 2rem 1.5rem;}
  .footer-grid{grid-template-columns:1.8fr repeat(3,1fr);gap:2.5rem;}
}
