
:root{--navy:#062746;--navy2:#031b31;--blue:#0877dc;--blue2:#0562bd;--yellow:#f5c21b;--green:#24b75a;--ink:#0c2948;--muted:#6b7d91;--line:#dce5ee;--bg:#f3f6f9;--white:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--bg)}a{text-decoration:none;color:inherit}button,input{font:inherit}.wrap{max-width:1500px;margin:auto;padding:0 28px}
.top{background:#fff;border-top:3px solid var(--blue);box-shadow:0 1px 8px #00152b18}.toprow{min-height:158px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;min-width:570px;height:154px;overflow:hidden}.brand img{display:block;width:min(610px,42vw);height:150px;object-fit:contain;object-position:left center}.contacts{margin-left:auto;display:flex;align-items:center;gap:30px}.contactbox{display:flex;gap:10px;align-items:center;font-weight:800}.contactbox .round{width:39px;height:39px;border-radius:50%;display:grid;place-items:center;background:#eaf4ff;color:var(--blue);font-size:21px}.contactbox small{display:block;color:var(--muted);font-weight:500;margin-top:3px}.budget{background:var(--blue);color:#fff;border-radius:9px;padding:17px 24px;font-weight:900;display:flex;gap:10px;align-items:center}
.navbar{background:linear-gradient(90deg,#052642,#073558);color:white}.navrow{display:flex;align-items:stretch}.navitem{padding:20px 14px;font-size:13px;font-weight:900;border-right:1px solid #ffffff12;cursor:pointer;white-space:nowrap}.navitem:hover,.navitem.active{background:var(--blue)}.navitem.drop:after{content:"⌄";margin-left:8px}.navspacer{flex:1}
.hero{position:relative;background:radial-gradient(circle at 62% 40%,#18344c 0,#071a2a 28%,#020b13 70%);color:#fff;overflow:hidden}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#02080ecc 0,#02080e77 40%,#02080e22 72%,#02080ebb 100%);pointer-events:none}.hero .wrap{position:relative;z-index:1;padding-top:40px;padding-bottom:0}.heroGrid{display:grid;grid-template-columns:420px 1fr 170px;gap:34px;align-items:center}.hero h1{font-size:44px;line-height:.98;margin:0 0 16px;color:white}.hero h1 span{color:var(--blue)}.hero p{font-size:18px;line-height:1.45;color:#e7eef5}.tagline{text-align:center;font-family:cursive;font-size:27px;transform:rotate(-3deg);line-height:1.2}.tagline:after{content:"";display:block;width:95px;height:6px;background:var(--blue);margin:15px auto 0;transform:skewX(-30deg)}
.searchbox{background:#f8fafc;border-radius:12px;padding:15px;box-shadow:0 12px 30px #0006}.searchline{display:flex;background:#fff;border:1px solid #d4dee8;border-radius:8px;overflow:hidden}.searchline input{flex:1;border:0;outline:0;padding:17px 18px;font-size:17px;min-width:0}.searchline button{border:0;background:var(--blue);color:white;font-weight:900;padding:0 52px;cursor:pointer}.examples{color:#62758a;font-size:13px;margin:10px 3px 0}
.cards{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:32px;transform:translateY(1px)}.catcard{background:#fff;color:var(--ink);border-radius:10px 10px 0 0;overflow:hidden;cursor:pointer;box-shadow:0 -4px 16px #0002}.catvisual{height:160px;background:linear-gradient(145deg,#edf1f4,#fff);display:grid;place-items:center;position:relative}.particon{font-size:72px;filter:grayscale(1);opacity:.78}.catfoot{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;font-weight:900;font-size:17px}.go{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--blue);color:#fff;font-size:22px}
.benefits{background:#fff;border-bottom:1px solid var(--line)}.benefitgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:18px 0}.benefit{display:flex;gap:14px;align-items:center}.benefit .ico{font-size:30px;color:var(--blue)}.benefit b{display:block}.benefit small{color:var(--muted)}
.section{padding:38px 0}.why{display:flex;gap:18px;flex-wrap:wrap}.whybox{background:white;border:1px solid var(--line);border-radius:9px;padding:15px 20px;min-width:155px;display:flex;gap:10px;align-items:center}.whybox span{font-size:25px;color:var(--blue)}
.results{display:grid;gap:12px}.result{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;display:grid;grid-template-columns:1fr auto;gap:15px}.result h3{margin:0 0 6px}.meta{color:var(--muted);font-size:14px}.btn{border:0;border-radius:8px;padding:12px 16px;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.primary{background:var(--blue);color:#fff}.green{background:var(--green);color:#fff}.ghost{background:#fff;border:1px solid var(--line)}
.overlay{display:none;position:fixed;inset:0;background:#00152ba8;z-index:80;padding:20px}.overlay.open{display:grid;place-items:center}.modal{background:#fff;border-radius:14px;max-width:650px;width:100%;padding:25px;box-shadow:0 30px 70px #0007}.modaltop{display:flex;justify-content:space-between;gap:15px;align-items:center}.close{border:0;background:#eef3f7;width:38px;height:38px;border-radius:50%;font-size:22px;cursor:pointer}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:grid;gap:5px}.field.full{grid-column:1/-1}.field input,.field textarea,.field select{border:1px solid #ccd8e3;border-radius:8px;padding:12px}.field textarea{min-height:90px}.note{background:#fff7d6;border-left:4px solid var(--yellow);padding:12px;border-radius:7px;margin:15px 0;font-size:14px}
.footer{background:var(--navy2);color:#dbe7f2;padding:28px 0}.footer a{color:#dbe7f2;margin-right:15px;font-size:13px}
@media(max-width:1180px){.brand{min-width:410px;height:128px}.brand img{width:min(455px,39vw);height:124px}.contacts{gap:12px}.contactbox.hours{display:none}.navitem{padding:18px 13px;font-size:12px}.heroGrid{grid-template-columns:340px 1fr}.tagline{display:none}.cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.wrap{padding:0 16px}.toprow{min-height:104px}.brand{min-width:0;height:100px}.brand img{width:330px;height:98px}.contacts .contactbox{display:none}.budget{padding:12px 14px;font-size:12px}.navrow{overflow-x:auto}.navitem{flex:0 0 auto}.heroGrid{grid-template-columns:1fr}.hero h1{font-size:35px}.cards{grid-template-columns:repeat(2,1fr)}.benefitgrid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.toprow{gap:8px;min-height:92px}.brand{height:88px}.brand img{width:270px;height:86px}.budget{display:none}.hero .wrap{padding-top:27px}.hero h1{font-size:31px}.searchline{display:block}.searchline button{width:100%;padding:14px}.cards{grid-template-columns:1fr}.catvisual{height:125px}.benefitgrid{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}.field.full{grid-column:auto}}

/* REVISION 5 — logo aportado por Joaquín, fondo blanco */
.top{background:#fff}
.brand{background:#fff}
.brand img{background:#fff}

/* REVISION 6 — logo un punto más grande */
.toprow{min-height:166px}
.brand{min-width:610px;height:162px}
.brand img{width:min(650px,44vw);height:158px}
@media(max-width:1180px){
  .brand{min-width:430px;height:132px}
  .brand img{width:min(480px,41vw);height:128px}
}
@media(max-width:820px){
  .toprow{min-height:108px}
  .brand{min-width:0;height:104px}
  .brand img{width:345px;height:102px}
}
@media(max-width:520px){
  .toprow{min-height:94px}
  .brand{height:90px}
  .brand img{width:280px;height:88px}
}

/* REVISION 8 — base REVISION 6: logo y barra sin cambios.
   Ajuste de contactos y botón presupuesto para teléfonos en una sola línea. */
.contacts{
  gap:16px;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.contactbox{
  gap:7px;
  flex:0 0 auto;
  white-space:nowrap;
  font-size:15px;
}
.contactbox .round{
  width:34px;
  height:34px;
  font-size:18px;
  flex:0 0 34px;
}
.contactbox small{
  white-space:nowrap;
  font-size:12px;
}
.budget{
  padding:12px 15px;
  min-width:142px;
  font-size:13px;
  line-height:1.15;
  white-space:nowrap;
}
@media(max-width:1300px){
  .contacts{gap:10px}
  .contactbox{font-size:14px}
  .budget{min-width:130px;padding:11px 12px;font-size:12px}
}

/* REVISION 9 — horario viernes igual que lunes-jueves */
.contactbox.hours small{
  display:block;
  margin-top:3px;
  color:var(--ink);
  font-size:inherit;
  font-weight:800;
  line-height:inherit;
  white-space:nowrap;
}

/* REVISION 11 — mensaje principal Auto Recambios Esplá */
.hero-side-tagline{
  display:block;
  margin-top:18px;
  font-size:16px;
  line-height:1.3;
  font-weight:700;
  letter-spacing:0;
  text-transform:none;
}

/* REVISION 12 — categorías escalables y dibujos de piezas en azul corporativo */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:16px;
}
.catcard{min-width:0}
.catvisual{
  position:relative;
  min-height:132px;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(25,111,199,.14), transparent 52%),
    linear-gradient(145deg,#ffffff,#edf5fd);
}
.catvisual::before,.catvisual::after{
  content:"";
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  box-sizing:border-box;
}
/* Motor: bloque + cilindros */
.part-engine::before{
  width:92px;height:66px;border:7px solid #0867b9;border-radius:12px;
  box-shadow:0 0 0 7px rgba(8,103,185,.12);
}
.part-engine::after{
  width:66px;height:24px;border:7px solid #0867b9;border-bottom:0;
  border-radius:9px 9px 0 0;top:31%;
}
/* Caja: carcasa estilizada */
.part-gearbox::before{
  width:94px;height:68px;border:7px solid #0867b9;border-radius:42% 18% 18% 42%;
}
.part-gearbox::after{
  width:42px;height:14px;background:#0867b9;border-radius:8px;left:73%;
  box-shadow:-78px 0 0 -3px #0867b9;
}
/* Transfer */
.part-transfer::before{
  width:80px;height:80px;border:8px solid #0867b9;border-radius:50%;
  box-shadow:inset 0 0 0 14px white,inset 0 0 0 22px #0867b9;
}
.part-transfer::after{
  width:104px;height:8px;background:#0867b9;border-radius:8px;transform:translate(-50%,-50%) rotate(-25deg);
}
/* Diferencial */
.part-diff::before{
  width:78px;height:66px;border:8px solid #0867b9;border-radius:48%;
}
.part-diff::after{
  width:126px;height:12px;background:#0867b9;border-radius:10px;
}
/* Turbo */
.part-turbo::before{
  width:86px;height:86px;border:10px solid #0867b9;border-radius:50%;
  box-shadow:inset 0 0 0 15px white,inset 0 0 0 23px #0867b9;
}
.part-turbo::after{
  width:52px;height:24px;border:9px solid #0867b9;border-left:0;border-radius:0 18px 18px 0;left:75%;
}
/* Centralita */
.part-ecu::before{
  width:104px;height:72px;border:7px solid #0867b9;border-radius:9px;
  background:repeating-linear-gradient(90deg,transparent 0 9px,rgba(8,103,185,.15) 9px 12px);
}
.part-ecu::after{
  width:72px;height:11px;background:#0867b9;top:79%;border-radius:3px;
}
/* Faro */
.part-headlight::before{
  width:112px;height:64px;border:7px solid #0867b9;
  border-radius:58% 18% 48% 24% / 62% 28% 54% 32%;
  transform:translate(-50%,-50%) skewX(-8deg);
}
.part-headlight::after{
  width:38px;height:38px;border:7px solid #0867b9;border-radius:50%;
  box-shadow:32px 7px 0 -8px white,32px 7px 0 -2px #0867b9;
}
@media(max-width:700px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.catvisual{min-height:110px}}

/* REVISION 13 — imagen aprobada para la categoría MOTORES */
.catvisual.catphoto{
  padding:0;
  background:#fff;
}
.catvisual.catphoto img{
  display:block;
  width:100%;
  height:100%;
  min-height:132px;
  object-fit:cover;
  object-position:center;
}
@media(max-width:700px){
  .catvisual.catphoto img{min-height:110px}
}

/* REVISION 14 — tarjetas de categorías convertidas en enlaces reales */
a.catcard{display:block;text-decoration:none;color:inherit;cursor:pointer}

/* REVISION 21 — cierre de la página principal */
.howwork{padding:58px 0;background:#f5f8fb}
.sectiontitle{text-align:center;max-width:760px;margin:0 auto 32px}
.sectiontitle>span,.eyebrow{font-size:12px;font-weight:900;letter-spacing:1.5px;color:var(--blue)}
.sectiontitle h2{margin:7px 0 8px;font-size:32px;color:var(--navy)}
.sectiontitle p{margin:0;color:#617487;line-height:1.55}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.step{background:#fff;border:1px solid var(--line);border-radius:14px;padding:25px 21px;box-shadow:0 8px 24px rgba(12,45,75,.05)}
.step b{display:flex;width:38px;height:38px;border-radius:50%;align-items:center;justify-content:center;background:var(--blue);color:#fff;font-size:18px;margin-bottom:15px}
.step h3{margin:0 0 8px;color:var(--navy);font-size:17px}
.step p{margin:0;color:#66798a;font-size:14px;line-height:1.5}
.truststrip{background:#062c4b;padding:28px 0}
.trustgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.trustgrid div{padding:3px 20px;border-right:1px solid rgba(255,255,255,.16)}
.trustgrid div:last-child{border-right:0}
.trustgrid strong,.trustgrid span{display:block}
.trustgrid strong{color:#fff;font-size:16px;margin-bottom:4px}
.trustgrid span{color:#c7d8e7;font-size:13px}
.finalcta{padding:52px 0;background:#fff}
.finalctabox{display:flex;align-items:center;justify-content:space-between;gap:35px;background:#eef6fd;border:1px solid #d5e8f8;border-radius:16px;padding:34px 38px}
.finalctabox h2{font-size:30px;color:var(--navy);margin:6px 0 8px}
.finalctabox p{margin:0;color:#5e7284;font-size:16px}
.finalactions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.cta-whatsapp,.cta-budget{border:0;border-radius:8px;padding:15px 18px;font-weight:900;font-size:13px;text-decoration:none;cursor:pointer;white-space:nowrap}
.cta-whatsapp{background:#20b75a;color:#fff}
.cta-budget{background:var(--blue);color:#fff}
@media(max-width:900px){
 .steps,.trustgrid{grid-template-columns:repeat(2,1fr)}
 .trustgrid div{border-right:0}
 .finalctabox{display:block}
 .finalactions{justify-content:flex-start;margin-top:22px}
}
@media(max-width:560px){
 .steps,.trustgrid{grid-template-columns:1fr}
 .howwork{padding:40px 0}
 .sectiontitle h2,.finalctabox h2{font-size:25px}
 .finalctabox{padding:25px 20px}
 .finalactions{display:grid}
}

/* Rev. publicación: nombre de categoría visible (antes blanco sobre blanco) */
.catcard .catfoot{color:#062c4b}
.rcard a.photo{text-decoration:none}
