@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

:root{
  --bg:#EEF0F0;
  --panel:#FFFFFF;
  --ink:#15181C;
  --ink-soft:#4A5157;
  --line:#D6DADC;
  --amber:#D6A419;
  --teal:#28685A;
  --danger:#B3411F;
  --radius:4px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Source Sans 3',system-ui,sans-serif;
  font-size:17px;
  line-height:1.55;
}
h1,h2,h3,.brand,.tag{
  font-family:'Barlow Condensed',system-ui,sans-serif;
  letter-spacing:.2px;
}
a{color:var(--teal);text-decoration:none;}
a:hover{text-decoration:underline;}
img{max-width:100%;display:block;}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px;}

/* Header */
header.site{
  background:var(--ink);
  border-bottom:3px solid var(--amber);
}
header.site .wrap{
  display:flex;
  align-items:center;
  padding:14px 20px;
}
.brand{
  color:#fff;font-size:26px;font-weight:700;
  display:flex;align-items:center;gap:8px;
}
.brand span{color:var(--amber);}
nav.main a{
  color:#DADEE0;font-size:15px;margin-left:22px;font-weight:500;
}
nav.main a:hover{color:#fff;text-decoration:none;}
nav.main a.active{color:var(--amber);}
/* HERO PRINCIPAL: recuperar imagen y distribución */

.hero {
  background-image:
    linear-gradient(
      90deg,
      rgba(7, 17, 25, 0.88) 0%,
      rgba(7, 17, 25, 0.58) 42%,
      rgba(7, 17, 25, 0.08) 100%
    ),
    url("/IMG/coches-lujo.png");

  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  padding: 140px;
}


/* Degradado oscuro independiente de la imagen */
.hero .kicker {
  color: #ffb900;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 700;
  max-width: 26ch;
}

.hero p {
  color: #fff;
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 22px;
}

@media (max-width: 700px) {
  .hero {
    padding: 55px 0 65px;
    background-position: 58% center;
  }

  .hero h1 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .hero p {
    font-size: 16px;
  }
}
.searchbox{
  display:flex;max-width:520px;border:2px solid var(--amber);border-radius:var(--radius);overflow:hidden;
}
/* Móvil (por defecto): tamaño compacto */
.searchbox input{
  flex:1;border:0;padding:9px 11px;font-size:13.5px;font-family:inherit ;     width: 270px;

}
.searchbox button{
  border:0;background:var(--amber);color:var(--ink);font-weight:600;padding:0 13px;cursor:pointer;font-size:13px;
}
/* Portátil / tablet */
@media (min-width:600px){
  .searchbox input{padding:11px 13px;font-size:15px;  width: 266px;
}
  .searchbox button{padding:0 16px;font-size:14px;}
}
/* Escritorio / PC */
@media (min-width:1024px){
  .searchbox input{padding:14px 16px;font-size:16px; width: 400px;
}
  .searchbox button{padding:0 22px;font-size:15.5px;}
  
}

@media (min-width:515px){
  .searchbox input{padding:11px 13px;font-size:15px;     width: 400px;
}
  .searchbox button{padding:0 16px;font-size:14px;}
}



.searchbox button{
  border:0;background:var(--amber);color:var(--ink);font-weight:600;padding:0 18px;cursor:pointer;font-size:15px;
}

/* Category grid */
.section{}
.section h2{font-size:28px;margin: 15px 0 6px;}
.section .lede{color:var(--ink-soft);margin:0 0 24px;max-width:60ch;}

.cat-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:18px;
}
.cat-card{
  background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;
}
.cat-card h3{margin:0 0 4px;font-size:24px;}
.cat-card p{color:var(--ink-soft);margin:0 0 14px;font-size:15px;}
.cat-card ul{margin:0;padding-left:0;list-style:none;}
.cat-card li{border-top:1px solid var(--line);}
.cat-card li:first-child{border-top:0;}
.cat-card li a{display:block;padding:9px 0;font-size:15.5px;color:var(--ink);}
.cat-card li a:hover{color:var(--teal);text-decoration:none;}
.cat-card li a::after{content:" →";color:var(--amber);}
.cat-card .more{display:inline-block;margin-top:14px;font-weight:600;font-size:14.5px;}

/* Article list */
.article-list{display:grid;gap:14px;}
.article-row{
  background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
  padding:18px 20px;display:flex;justify-content:space-between;gap:16px;align-items:baseline;
}
.article-row a{color:var(--ink);font-size:17px;font-weight:600;}
.article-row a:hover{color:var(--teal);}
.article-row .meta{color:var(--ink-soft);font-size:13.5px;white-space:nowrap;}

/* Ad slot */
.ad-slot{
  background:#E4E7E8;
  border:1px dashed #B7BEC1;
  border-radius:var(--radius);
  padding:15px;
  text-align:center;
  color:#7C8489;
  font-size:13px;
  margin:10px 0;
}

/* Article page */
article.post{
  background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
  padding:34px 38px;margin:32px 0;
}
article.post .kicker{color:var(--teal);font-weight:600;font-size:14px;text-transform:uppercase;letter-spacing:.5px;}
article.post h1{font-size:34px;margin:6px 0 6px;max-width:22ch;}
article.post .updated{color:var(--ink-soft);font-size:13.5px;margin-bottom:24px;}
article.post h2{font-size:23px;margin:30px 0 10px;border-top:1px solid var(--line);padding-top:22px;}
article.post p{margin:0 0 14px;max-width:70ch;}
article.post ul,article.post ol{max-width:70ch;padding-left:20px;}
article.post li{margin-bottom:6px;}
table.spec{width:100%;border-collapse:collapse;margin:14px 0 20px;font-size:15px;}
table.spec th,table.spec td{border:1px solid var(--line);padding:9px 12px;text-align:left;}
table.spec th{background:#F4F5F5;font-weight:600;}
.callout{
  background:#F6F0DC;border-left:4px solid var(--amber);padding:14px 18px;margin:18px 0;max-width:70ch;font-size:15.5px;
}
.callout.warn{background:#F7E4DB;border-left-color:var(--danger);}
.breadcrumb{font-size:13.5px;color:var(--ink-soft);margin:18px 0 0;}
.breadcrumb a{color:var(--ink-soft);}

/* Footer */
footer.site{
  background:var(--ink);color:#9BA3A7;padding:30px 0;margin-top:40px;font-size:13.5px;
}
footer.site a{color:#C7CDD0;}

@media (max-width:720px){
  .hero h1{font-size:32px;}
  .cat-grid{grid-template-columns:1fr;}
  article.post{padding:24px 20px;}
  nav.main a{margin-left:14px;font-size:14px;}
}

/* --- Animaciones y microinteracciones --- */
.reveal{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  transition:opacity .5s ease, transform .5s ease;
}
.reveal.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  margin:8px;
}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none;transition:none;}
}

header.site{transition:box-shadow .25s ease;}
header.site.scrolled{box-shadow:0 6px 18px rgba(0,0,0,.28);}

.cat-card{transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;}
.cat-card:hover{transform:translateY(-4px);box-shadow:0 12px 26px rgba(20,23,26,.12);border-color:var(--teal);}
.cat-card li a{transition:color .15s ease, padding-left .15s ease;}
.cat-card li a:hover{padding-left:3px;}

.article-row{transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;}
.article-row:hover{transform:translateX(4px);box-shadow:0 8px 20px rgba(20,23,26,.10);border-color:var(--teal);}

table.spec td,table.spec th{font-variant-numeric:tabular-nums;}
.hero h1{letter-spacing:-.3px;}

/* Cuentakilómetros decorativo de la portada */
.hero-inner{
  display:flex;
  align-items:center;
  gap:40px;flex-wrap:wrap;
  justify-content: center;
  flex-direction: column;
}
.hero-text{
    max-width: 60ch;
    color: white;

}


.gauge{display:none;flex-shrink:0;}
.gauge-needle{transform-origin:60px 60px;transform:rotate(-95deg);transition:transform 1.2s cubic-bezier(.22,1,.36,1);}
@media (min-width:760px){.gauge{display:block;width:130px;height:130px;}}

/* Botón volver arriba */
.to-top{
  position:fixed;right:20px;bottom:20px;width:46px;height:46px;border-radius:50%;
  background:var(--amber);color:var(--ink);border:0;font-size:20px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  opacity:0;pointer-events:none;transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease;
  box-shadow:0 8px 18px rgba(0,0,0,.28);
  z-index:40;
}
.to-top.show{opacity:1;pointer-events:auto;transform:translateY(0);}
.to-top:hover{filter:brightness(1.08);}

/* --- Aviso legal, privacidad y cookies --- */
footer.site .legal-links{margin-top:10px;font-size:12.5px;}
footer.site .legal-links a{margin-right:2px;}

#cookie-banner{
  position:fixed;left:0;right:0;bottom:0;z-index:100;
  background:var(--ink);color:#DADEE0;
  border-top:3px solid var(--amber);
  padding:16px 20px;
  display:none;
}
#cookie-banner.show{display:block;}
#cookie-banner .cb-wrap{max-width:1080px;margin:0 auto;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;}
#cookie-banner p{margin:0;font-size:13.5px;max-width:60ch;color:#C4CACD;}
#cookie-banner p a{color:#fff;text-decoration:underline;}
.cb-buttons{display:flex;gap:10px;flex-wrap:wrap;}
.cb-buttons button{border:1px solid transparent;border-radius:4px;padding:9px 16px;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;}
#cb-accept{background:var(--amber);color:var(--ink);}
#cb-reject{background:transparent;color:#DADEE0;border-color:#5A6166;}
#cb-config{background:transparent;color:#DADEE0;border-color:#5A6166;}
.cb-buttons button:hover{filter:brightness(1.1);}

#cookie-panel{
  position:fixed;inset:0;background:rgba(10,11,13,.55);z-index:101;
  display:none;align-items:center;justify-content:center;padding:20px;
}
#cookie-panel.show{display:flex;}
#cookie-panel .panel-box{background:#fff;color:var(--ink);border-radius:6px;max-width:460px;width:100%;padding:26px 28px;}
#cookie-panel h3{margin:0 0 8px;font-size:22px;}
.cp-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:12px 0;gap:16px;}
.cp-row:first-of-type{border-top:0;}
.cp-row strong{display:block;font-size:15px;}
.cp-row span{display:block;font-size:13px;color:var(--ink-soft);margin-top:2px;}
.switch{position:relative;width:42px;height:24px;flex-shrink:0;display:block;}
.switch input{opacity:0;width:0;height:0;position:absolute;}
.switch .slider{position:absolute;inset:0;background:#C7CCCE;border-radius:24px;cursor:pointer;transition:.2s;}
.switch .slider::before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s;}
.switch input:checked + .slider{background:var(--teal);}
.switch input:checked + .slider::before{transform:translateX(18px);}
.switch input:disabled + .slider{opacity:.6;cursor:not-allowed;}
.cp-actions{display:flex;gap:10px;margin-top:20px;justify-content:flex-end;}
.cp-actions button{border-radius:4px;padding:9px 16px;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;border:1px solid transparent;}
#cp-save{background:var(--amber);color:var(--ink);}
#cp-close{background:transparent;color:var(--ink-soft);border-color:var(--line);}

@media (max-width:640px){
  #cookie-banner .cb-wrap{flex-direction:column;align-items:stretch;}
  .cb-buttons{justify-content:stretch;}
  .cb-buttons button{flex:1;}
}

/* --- Buscador --- */
.searchbox{position:relative;}
.search-results{
  position:absolute;top:calc(100% + 6px);left:0;right:0;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:0 14px 30px rgba(0,0,0,.18);
  max-height:360px;overflow-y:auto;
  display:none;z-index:50;
}
.search-results.show{display:block;}
.search-result{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:11px 14px;border-top:1px solid var(--line);color:var(--ink);
}
.search-result:first-child{border-top:0;}
.search-result:hover{background:#F4F5F5;text-decoration:none;}
.sr-title{font-size:14.5px;}
.sr-cat{font-size:11.5px;color:var(--ink-soft);background:#EEF0F0;padding:2px 7px;border-radius:12px;white-space:nowrap;}
.search-empty{padding:14px;font-size:14px;color:var(--ink-soft);margin:0;}
.section-rails{position:relative;}
.ad-rail{
  position:absolute;
  top:0;
  width:160px;
  min-height:800px;
  background:#E4E7E8;border:1px dashed #B7BEC1;border-radius:var(--radius);
  display:none;
  align-items:center;justify-content:center;
  color:#7C8489;font-size:13px;text-align:center;
  z-index:10;
}
.ad-rail.left{left:-190px;}
.ad-rail.right{right:-190px;}
@media (min-width:1420px){
  .ad-rail{display:flex;}
}
.titulo{
  margin-top: -110px;
  color: #FFFFFF;
}




/* =================================
   MOTOR AL DÍA — TIPOGRAFÍA
   ================================= */

:root {
  --font-titulos: "Oswald", sans-serif;
  --font-texto: "Inter", sans-serif;

  --color-acento: #d92828;
  --color-texto: #202124;

  --tamano-texto: 17px;
}

/* Base */
body {
  font-family: var(--font-texto);
  font-size: var(--tamano-texto);
  line-height: 1.7;
  color: var(--color-texto);
}

/* Titulares */
h1, h2, h3, h4,
.article-title,
.section-title {
  font-family: var(--font-titulos);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.25px;
}

/* Titular principal */
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
}

/* Secciones */
h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
}

/* Subsecciones */
h3 {
  font-size: 1.4rem;
}

/* Navegación */
nav, nav a {
  font-family: var(--font-titulos);
  font-size: 1rem;
  font-weight: 500;
}

/* Categorías y etiquetas */
.category-label {
  font-family: var(--font-titulos);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enlaces */
a {
  text-decoration: none;
}

a:hover {
  color: var(--color-acento);
}

/* Móvil */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(1.8rem, 7vw, 2.3rem);
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}


/* CABECERA */
.header-motor {
  width: 100%;
  background: #101010;
  color: #fff;
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid #393939;
  font-family: Arial, sans-serif;
}

.barra-superior {
  height: 80px;
  padding: 0 3.4%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* BOTÓN MENÚ */
.boton-menu {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.hamburguesa {
  width: 19px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburguesa span {
  display: block;
  height: 1px;
  width: 19px;
  background: #fff;
  transition: transform .25s, opacity .25s;
}

/* ANIMACIÓN A UNA X */
.boton-menu[aria-expanded="true"]
.hamburguesa span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.boton-menu[aria-expanded="true"]
.hamburguesa span:nth-child(2) {
  opacity: 0;
}

.boton-menu[aria-expanded="true"]
.hamburguesa span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

/* LOGOTIPO CENTRAL */
.logo-central {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #fff;
  text-decoration: none;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -1px;
  white-space: nowrap;
}

.logo-al {
  color: #e7b51a;
}

/* ICONOS DERECHA */
.acciones-header {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 25px;
}

.icono-header {
  display: grid;
  place-items: center;
  width: 23px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #ddd;
  cursor: pointer;
  transition: color .2s;
}

.icono-header svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icono-header:hover,
.boton-menu:hover {
  color: #e7b51a;
}

/* PANEL DESPLEGABLE */
.panel-menu {
  padding: 5px 1% 20px;
  border-top: 1px solid #292929;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.panel-menu[hidden],
.buscador-header[hidden] {
  display: none;
}

.panel-menu a {
  padding: 18px 10px;
  border-bottom: 1px solid #292929;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  transition: color .2s, padding-left .2s;
}

.panel-menu a:hover {
  color: #e7b51a;
  padding-left: 16px;
}

/* BUSCADOR DESPLEGABLE */
.buscador-header {
  padding: 20px 3.4%;
  display: flex;
  gap: 10px;
  border-top: 1px solid #292929;
}

.buscador-header input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  background: #202020;
  color: #fff;
  border: 1px solid #444;
  border-radius: 2px;
  font-size: 15px;
}

.buscador-header input:focus {
  outline: 1px solid #e7b51a;
}

.buscador-header button {
  padding: 0 22px;
  background: #e7b51a;
  color: #111;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

/* MÓVILES */
@media (max-width: 600px) {
  .barra-superior {
    height: 68px;
    padding: 0 16px;
  }

  .logo-central {
    font-size: 18px;
    gap: 2px;
  }

  .boton-menu {
    gap: 7px;
    font-size: 11px;
  }

  .hamburguesa,
  .hamburguesa span {
    width: 17px;
  }

  .acciones-header {
    gap: 12px;
  }

  .icono-header,
  .icono-header svg {
    width: 19px;
  }

  .panel-menu {
    grid-template-columns: 1fr;
    padding: 12px 20px 20px;
  }

  .panel-menu a {
    padding: 15px 5px;
  }

  .buscador-header {
    padding: 15px;
  }

  .buscador-header button {
    padding: 0 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.resultados-busqueda {
  width: min(900px, 100%);
  margin: 20px auto;
  padding: 20px;
  box-sizing: border-box;
  background: #151515;
  color: #fff;
  border-radius: 8px;
}

.resultados-busqueda[hidden],
.panel-menu[hidden],
.buscador-header[hidden] {
  display: none !important;
}

.resultados-busqueda h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.resultado-busqueda {
  padding: 14px 0;
  border-bottom: 1px solid #383838;
}

.resultado-busqueda:last-child {
  border-bottom: 0;
}

.resultado-busqueda a {
  color: #e7b51a;
  font-weight: 700;
  text-decoration: none;
}

.resultado-busqueda a:hover {
  text-decoration: underline;
}

.resultado-busqueda p {
  margin: 8px 0 0;
  color: #ddd;
  line-height: 1.6;
}

.resultado-busqueda mark {
  background: #e7b51a;
  color: #111;
}

@media (max-width: 600px) {
  .resultados-busqueda {
    padding: 14px;
  }
}


[hidden] {
  display: none !important;
}

.panel-menu:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #fff;
  position: relative;
  z-index: 1000;
}

.panel-menu a {
  display: block;
  color: #222;
  text-decoration: none;
  padding: 8px;
}

/* --- Correcciones de visibilidad y menús --- */
[hidden] {
  display: none !important;
}

.cat-grid .reveal,
.cat-grid .reveal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.panel-menu[hidden],
.buscador-header[hidden],
.resultados-busqueda[hidden] {
  display: none !important;
}

.panel-menu:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
  z-index: 1000;
  background: #15181c;
}

.panel-menu:not([hidden]) a {
  display: block;
  color: #fff;
}

@media (max-width: 600px) {
  .panel-menu:not([hidden]) {
    grid-template-columns: 1fr;
  }
}

/* --- Ajustes finales de recuperación visual de Motor Al Día --- */

.hero > * {
  position: relative;
  z-index: 1;
}

.cat-grid .reveal,
.cat-grid .reveal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

[hidden] {
  display: none !important;
}

.panel-menu:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
  z-index: 1000;
  background: #15181c;
}

.panel-menu:not([hidden]) a {
  display: block;
  color: #fff;
}

@media (max-width: 700px) {
  .hero {
    padding: 55px 0 65px;
    background-position: 58% center;
  }
  .panel-menu:not([hidden]) {
    grid-template-columns: 1fr;
  }
}





/* MOTOR AL DÍA — CATEGORÍAS PREMIUM */
:root {
  --mad-charcoal: #20252b;
  --mad-gold: #c99a22;
  --mad-gold-hover: #aa7e12;
  --mad-border: #dce0e3;
  --mad-muted: #626b73;
}

.cat-grid {
  gap: 24px;
}

.cat-grid .cat-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: #fff;
  color: var(--mad-charcoal);
  border: 1px solid var(--mad-border);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 5px 18px rgba(24, 31, 38, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease,
              border-color 180ms ease;
}

.cat-grid .cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 4px;
  background: var(--mad-gold);
}

.cat-grid .cat-card:hover {
  transform: translateY(-3px);
  border-color: #c9b274;
  box-shadow: 0 12px 28px rgba(24, 31, 38, 0.12);
}

.cat-grid .cat-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--mad-charcoal);
  font-size: clamp(23px, 2vw, 29px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cat-grid .cat-card p {
  color: var(--mad-muted);
  line-height: 1.6;
}

.cat-grid .cat-card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 18px;
}

.cat-grid .cat-card li {
  padding: 12px 0;
  border-bottom: 1px solid #e7e9eb;
}

.cat-grid .cat-card li:last-child {
  border-bottom: 0;
}

.cat-grid .cat-card li a {
  color: #28313a;
  text-decoration: none;
  transition: color 160ms ease;
}

.cat-grid .cat-card li a:hover {
  color: var(--mad-gold-hover);
}

.cat-grid .cat-card li a::after {
  content: " →";
  color: var(--mad-gold);
  font-weight: 700;
}

.cat-grid .cat-card a.more {
  display: inline-block;
  margin-top: 12px;
  color: #80600f;
  font-weight: 700;
  text-decoration: none;
}

.cat-grid .cat-card a.more:hover {
  color: var(--mad-gold-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* FOTOS DE CATEGORÍAS */
.cat-grid .cat-card--coches,
.cat-grid .cat-card--motos,
.cat-grid .cat-card--patinetes {
  padding-top: 190px;
}

.cat-grid .cat-card--coches::after,
.cat-grid .cat-card--motos::after,
.cat-grid .cat-card--patinetes::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 164px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--mad-border);
}

.cat-grid .cat-card--coches::after {
  background-image: url("/IMG/coches-lujo.png");
}

.cat-grid .cat-card--motos::after {
  background-image: url("/IMG/motos-premium.png");
}

.cat-grid .cat-card--patinetes::after {
  background-image: url("/IMG/patinetes-premium.png");
}

.cat-grid .cat-card a:focus-visible {
  outline: 2px solid var(--mad-gold);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .cat-grid {
    gap: 16px;
  }

  .cat-grid .cat-card {
    padding: 22px;
  }

  .cat-grid .cat-card--coches,
  .cat-grid .cat-card--motos,
  .cat-grid .cat-card--patinetes {
    padding-top: 172px;
  }

  .cat-grid .cat-card--coches::after,
  .cat-grid .cat-card--motos::after,
  .cat-grid .cat-card--patinetes::after {
    height: 146px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cat-grid .cat-card {
    transition: none;
  }
}


/* Fondo general Premium */
body {
  background-color: #f3f4f5;
  color: #252a30;
}

/* Separación elegante de las secciones */
.cat-grid {
  background: transparent;
}

/* Títulos de sección */
.cat-grid > h2,
section > h2 {
  color: #20252b;
}

/* Texto secundario */
.lede {
  color: #606971;
}



/* Migas de pan: Inicio > Coches */
.breadcrumb,
.breadcrumbs,
.migas-pan {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 30px;
  font-size: 14px;
  color: #737b83;
  margin: 25px;
}

.breadcrumb a,
.breadcrumbs a,
.migas-pan a {
  color: #80600f;
  text-decoration: none;
  font-weight: 600;
  transition: color 160ms ease;
}

.breadcrumb a:hover,
.breadcrumbs a:hover,
.migas-pan a:hover {
  color: #20252b;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Título de la categoría */
.page-title,
.category-title {
  color: #20252b;
  letter-spacing: -0.025em;
}



/* =====================================================
   MOTOR AL DÍA — AJUSTES PREMIUM INTEGRADOS
   Reglas finales para armonizar los estilos anteriores.
   ===================================================== */
:root {
  --bg: #f3f4f5;
  --panel: #ffffff;
  --ink: #20252b;
  --ink-soft: #606971;
  --line: #dce0e3;
  --amber: #d5a51d;
  --teal: #80600f;
}

body {
  background: #f3f4f5;
  color: #252a30;
}

/* Cabecera negra limpia, sin alterar los ID ni el comportamiento */
.header-motor {
  background: #101010;
  border-bottom: 1px solid #353535;
}
.barra-superior {
  min-height: 80px;
}
.logo-central {
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.5px;
}
.logo-central .logo-dia,
.logo-central .logo-motor {
  color: #fff;
}
.boton-menu,
.icono-header {
  transition: color .18s ease;
}
.boton-menu:hover,
.icono-header:hover,
.boton-menu:focus-visible,
.icono-header:focus-visible {
  color: var(--amber);
}

/* Hero: imagen actual, degradado y altura controlada */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 390px;
  padding: 78px 0 86px;
  margin: 0 0 34px;
  color: #fff;
  background-color: #111820;
  background-image:
    linear-gradient(90deg, rgba(5, 13, 20, .86) 0%, rgba(5, 13, 20, .56) 43%, rgba(5, 13, 20, .12) 100%),
    url('/IMG/coches-lujo.png');
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
}
.hero-inner {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
.hero h1 {
  max-width: 900px;
  margin: 0 auto 14px;
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0,0,0,.22);
}
.hero .titulo-acento {
  color: #e7b51a;
}
.hero .hero-subtitulo {
  max-width: 620px;
  margin: 0 auto 26px;
  color: #f4f5f6;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  text-wrap: balance;
}
.hero .hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .searchbox {
  display: flex;
  width: min(100%, 610px);
  max-width: 610px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d5a51d;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.hero .searchbox input[type='search'] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0px;
  min-height: 52px;
  padding: 13px 16px;
  border: 0;
  border-radius: 0;
  outline-offset: -3px;
  background: #fff;
  color: #20252b;
  font: inherit;
  font-size: 16px;
}
.hero .searchbox input[type='search']:focus-visible {
  outline: 2px solid #d5a51d;
}
.hero .searchbox button {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: #d5a51d;
  color: #171717;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease;
}
.hero .searchbox button:hover {
  background: #efc64f;
}


/* ========================================
   MOTOR AL DÍA — FOTOS DE LAS CATEGORÍAS
   ======================================== */

.cat-grid .cat-card--coches,
.cat-grid .cat-card--motos,
.cat-grid .cat-card--patinetes {
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

/* Zona de fotografía */
.cat-grid .cat-card--coches::before,
.cat-grid .cat-card--motos::before,
.cat-grid .cat-card--patinetes::before {
  content: "";
  display: block;
  width: 100%;
  height: 145px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Fotografía de coches */
.cat-grid .cat-card--coches::before {
  background-image: url("/IMG/coches-premium.jpg");
  background-position: center 55%;
}

/* Fotografía de motos */
.cat-grid .cat-card--motos::before {
  background-image: url("/IMG/motos-premium.jpg");
  background-position: center 50%;
}

/* Fotografía de patinetes */

.cat-grid .cat-card--patinetes::before {
  background-image: url("/IMG/patinetes-premium.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 35%;
}


/* Espacio entre la foto y el título */
.cat-grid .cat-card--coches h3,
.cat-grid .cat-card--motos h3,
.cat-grid .cat-card--patinetes h3 {
  margin-top: 20px;
}

/* Bordes y acabado premium */
.cat-grid .cat-card {
  border-radius: 9px;
  border: 1px solid #d9dde1;
  background-color: #fff;
  box-shadow: 0 5px 18px rgba(16, 24, 32, 0.06);
  transition: transform 180ms ease,
              box-shadow 180ms ease;
}

.cat-grid .cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(16, 24, 32, 0.11);
}

/* Detalle dorado */
.cat-grid .cat-card--coches::after,
.cat-grid .cat-card--motos::after,
.cat-grid .cat-card--patinetes::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 62px;
  height: 4px;
  background: #d5a51d;
  pointer-events: none;
}

/* Móviles */
@media (max-width: 700px) {
  .cat-grid .cat-card--coches::before,
  .cat-grid .cat-card--motos::before,
  .cat-grid .cat-card--patinetes::before {
    height: 160px;
  }
}

/* Ajuste de la fotografía de patinetes */
.cat-grid .cat-card--patinetes .category-image {
  object-position: center 78% !important;
}
.cat-grid .category-image {
  height: 176px !important;
  object-fit: cover;
  object-position: center;
}
