/*
Theme Name:   Campacars Child
Theme URI:    https://campacars.es
Description:  Tema hijo de GeneratePress para Campacars — compraventa de vehículos de ocasión. Paleta oficial validada por cliente, Custom Post Type "Coches" y campos ACF gestionados por código. Para usar Astra como padre, cambia "Template: generatepress" por "Template: astra".
Author:       Campacars / Kiwiigo Servicios S.L.
Template:     generatepress
Version:      1.0.0
Text Domain:  campacars-child
*/

/* ===========================================================
   PALETA OFICIAL CAMPACARS (validada por cliente)
   Variables solicitadas (tokens canónicos):
     --primary: #336633   Verde oscuro · color principal / énfasis
     --accent:  #66cc66   Verde claro · acento secundario / highlights
     --gold:    #ffcc66   Amarillo/Oro · acento cálido / CTA
     --dark:    #333333   Carbón · fondos oscuros / texto principal
     --neutral: #999999   Gris medio · neutro / textos secundarios
   El resto de la paleta del diseño original se alias a estos tokens.
   =========================================================== */
:root {
  /* --- Tokens canónicos solicitados --- */
  --primary:     #336633;
  --accent:      #66cc66;
  --gold:        #ffcc66;
  --dark:        #333333;
  --neutral:     #999999;

  /* --- Alias retro-compatibles con el diseño original --- */
  --green:       var(--primary);
  --green-dark:  #254d25;
  --green-light: var(--accent);
  --green-pale:  #d4edda;
  --gold-dark:   #e6b030;
  --gold-light:  #ffe08a;
  --charcoal:    var(--dark);
  --charcoal-mid:#444444;
  --gray-mid:    #666666;
  --gray-warm:   var(--neutral);
  --gray-light:  #cccccc;
  --gray-bg:     #efefef;
  --off-white:   #f7f7f5;
  --white:       #ffffff;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --shadow-sm:  0 2px 12px rgba(26,26,26,0.08);
  --shadow-md:  0 6px 28px rgba(26,26,26,0.12);
  --shadow-lg:  0 16px 48px rgba(26,26,26,0.16);
  --radius:     10px;
  --t:          0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ===========================  BASE  =========================== */
body.campacars {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}
.campacars img { display: block; max-width: 100%; }
.campacars a { text-decoration: none; color: inherit; }

/* ===========================  UTILITY  =========================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--green); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: var(--green); border-radius: 1px;
}
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: var(--white);
  font-family: var(--font-display); font-weight: 800;
  font-size: 15px; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 14px 28px; border-radius: 6px; border: none;
  cursor: pointer; transition: all var(--t);
}
.btn-gold:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(51,102,51,0.40);
}
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--charcoal); color: var(--white);
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 13px 28px; border-radius: 6px;
  border: 2px solid var(--charcoal); cursor: pointer; transition: all var(--t);
}
.btn-dark:hover {
  background: transparent; color: var(--charcoal);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 13px 28px; border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.35); cursor: pointer; transition: all var(--t);
}
.btn-outline:hover {
  border-color: var(--green-light); color: var(--green-light);
  transform: translateY(-2px);
}

/* ===========================  HEADER  =========================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--charcoal);
  border-bottom: 3px solid var(--green);
}
.site-header nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; min-height: 66px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--green); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 20px; height: 20px; fill: var(--white); }
.logo-wordmark {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 900;
  color: var(--white); letter-spacing: -0.5px;
}
.logo-wordmark span { color: var(--green-light); }
.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  font-family: var(--font-display); font-size: 14px;
  font-weight: 600; letter-spacing: 1px;
  color: rgba(255,255,255,0.65); text-transform: uppercase;
  transition: color var(--t); padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a { color: var(--green-light); border-bottom-color: var(--green-light); }
.nav-phone {
  font-family: var(--font-display); font-size: 15px;
  font-weight: 700; color: var(--white);
  display: flex; align-items: center; gap: 6px;
}
.nav-phone svg { width: 13px; height: 13px; fill: var(--green-light); }
.nav-extra { display: flex; align-items: center; gap: 14px; }
.site-main { min-height: 40vh; }

/* Botón hamburguesa (oculto en escritorio) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 28px; height: 28px; fill: var(--white); }

/* Menú responsive */
@media (max-width: 880px) {
  .site-header nav { flex-wrap: wrap; }
  .nav-toggle { display: flex; order: 2; margin-left: auto; }
  .nav-extra { order: 3; }
  .nav-menu {
    display: none; order: 4; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px;
  }
  .site-header.nav-open .nav-menu { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-phone { display: none; }
}

/* ===========================  HERO  =========================== */
.hero {
  background: var(--charcoal);
  position: relative; overflow: hidden;
  min-height: 580px; display: flex; align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 75% 50%, rgba(51,102,51,0.07) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(240,168,32,0.04) 0%, transparent 40%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--green); }
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-live {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(51,102,51,0.12);
  border: 1px solid rgba(51,102,51,0.28);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; font-weight: 700;
  color: var(--green-light); margin-bottom: 22px;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.hero-live::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green-light);
  animation: blink 1.4s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(54px,6vw,82px);
  font-weight: 900; line-height: 0.9;
  color: var(--white);
  letter-spacing: -1.5px; margin-bottom: 22px;
  text-transform: uppercase;
}
.hero h1 em { font-style: normal; color: var(--green-light); display: block; }
.hero-desc {
  font-size: 17px; font-weight: 300;
  color: rgba(255,255,255,0.62);
  line-height: 1.7; margin-bottom: 36px;
  max-width: 420px;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; }
.stat { padding-left: 14px; border-left: 3px solid var(--green-light); }
.stat-n {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 900;
  color: var(--white); line-height: 1; margin-bottom: 2px;
}
.stat-l {
  font-size: 11px; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}

/* HERO VISUAL */
.hero-visual { display: flex; flex-direction: column; gap: 14px; }
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; overflow: hidden;
  animation: float 4.5s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hero-card-img {
  height: 196px;
  background: linear-gradient(145deg, var(--charcoal-mid) 0%, #111110 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.hero-card-img::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 48px;
  background: linear-gradient(transparent, rgba(0,0,0,0.4));
}
.car-svg { width: 300px; filter: drop-shadow(0 8px 24px rgba(51,102,51,0.18)); }
.hero-card-body { padding: 20px; }
.hc-brand {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2.5px; color: var(--green); margin-bottom: 4px;
  font-family: var(--font-display);
}
.hc-model {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--white); text-transform: uppercase;
  letter-spacing: -0.3px; margin-bottom: 12px;
}
.hc-price {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 900;
  color: var(--green); line-height: 1; margin-bottom: 14px;
}
.hc-specs { display: flex; gap: 16px; flex-wrap: wrap; }
.hc-spec {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 500;
}
.hc-spec svg { width: 12px; height: 12px; fill: var(--green); opacity: 0.7; }
.hero-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 14px;
  transition: background var(--t);
}
.mini-card:hover { background: rgba(51,102,51,0.08); border-color: rgba(240,168,32,0.2); }
.mc-brand { font-size: 10px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 3px; }
.mc-model { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--white); margin-bottom: 2px; text-transform: uppercase; }
.mc-price { font-family: var(--font-display); font-size: 19px; font-weight: 900; color: var(--green); }

/* ===========================  SEARCH / FILTROS  =========================== */
.search-wrap { background: var(--white); }
.search-lift { max-width: 1200px; margin: 0 auto; padding: 0 24px; transform: translateY(-50%); }
.search-box {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(26,26,26,0.18);
  border: 2px solid var(--gray-light);
  padding: 26px 32px;
}
.search-label {
  font-family: var(--font-display); font-size: 12px;
  font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--charcoal-mid);
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.search-label::before { content:''; width:4px; height:16px; background:var(--green); border-radius:2px; }
.search-filters { display: grid; grid-template-columns: repeat(4,1fr) auto; gap: 12px; align-items: end; }
.fg label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gray-warm); margin-bottom: 7px; }
.fg select {
  width: 100%; height: 44px;
  border: 1.5px solid var(--gray-light);
  border-radius: 7px; padding: 0 36px 0 14px;
  font-family: var(--font-body); font-size: 14px;
  font-weight: 500; color: var(--charcoal);
  background: var(--off-white); cursor: pointer;
  transition: border-color var(--t); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%231A1A1A' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.fg select:focus { outline: none; border-color: var(--green); }
.search-btn {
  height: 44px; padding: 0 26px;
  background: var(--charcoal); color: var(--white);
  border: none; border-radius: 7px;
  font-family: var(--font-display); font-size: 14px;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  cursor: pointer; display: flex; align-items: center; gap: 7px;
  transition: all var(--t); white-space: nowrap;
}
.search-btn:hover { background: var(--green); color: var(--white); }
.search-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ===========================  CATÁLOGO (archive-coches)  =========================== */
.catalog { padding: 24px 0 80px; background: var(--off-white); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px,4.5vw,56px);
  font-weight: 900; line-height: 1;
  letter-spacing: -0.5px; text-transform: uppercase;
  color: var(--charcoal);
}
.section-title span { color: var(--green); }
.link-all {
  font-family: var(--font-display); font-size: 13px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--charcoal-mid); display: flex; align-items: center; gap: 5px;
  transition: color var(--t);
}
.link-all:hover { color: var(--green); }
.link-all svg { width: 14px; height: 14px; fill: currentColor; transition: transform var(--t); }
.link-all:hover svg { transform: translateX(4px); }
.cars-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; transition: opacity var(--t); }
.cars-grid.is-loading { opacity: 0.45; pointer-events: none; }
.no-coches { grid-column: 1 / -1; font-size: 16px; color: var(--gray-mid); padding: 32px 0; }
.no-coches a { color: var(--green); font-weight: 600; }

/* Paginación */
.pagination { margin-top: 40px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 7px;
  background: var(--white); border: 1.5px solid var(--gray-light);
  color: var(--charcoal); transition: all var(--t);
}
.pagination .page-numbers:hover { border-color: var(--green); color: var(--green); }
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: var(--white); }

/* CAR CARD */
.car-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
}
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.car-card.featured { border: 2px solid var(--green); }
.car-img-area { position: relative; height: 198px; background: var(--gray-bg); overflow: hidden; }
.car-img-area img { width: 100%; height: 100%; object-fit: cover; }
.car-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gray-bg) 0%, var(--gray-light) 100%);
}
.car-placeholder svg { width: 110px; opacity: 0.18; fill: var(--charcoal); }
.car-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-display); font-size: 11px;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.tag-featured { background: var(--green); color: var(--white); }
.tag-new { background: var(--green-light); color: var(--charcoal); }
.tag-sold { background: var(--gray-warm); color: var(--white); }
.fav-btn {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: transform var(--t);
}
.fav-btn:hover { transform: scale(1.12); }
.fav-btn svg { width: 15px; height: 15px; fill: var(--gray-light); }
/* Estado VENDIDO — filtro grayscale + sello (regla de negocio) */
.car-card.is-sold .car-img-area img,
.car-card.is-sold .car-placeholder { filter: grayscale(1) opacity(0.55); }
.sold-veil {
  position: absolute; inset: 0;
  background: rgba(26,26,26,0.52);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
}
.sold-stamp {
  font-family: var(--font-display); font-size: 38px;
  font-weight: 900; color: var(--white); letter-spacing: 4px;
  text-transform: uppercase;
  border: 4px solid rgba(255,255,255,0.65);
  padding: 5px 18px; border-radius: 4px;
  transform: rotate(-14deg); opacity: 0.92;
}
.car-body { padding: 18px 20px 20px; }
.car-brand {
  font-family: var(--font-display); font-size: 11px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 2.5px; color: var(--green); margin-bottom: 4px;
}
.car-model {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 800; color: var(--charcoal); text-transform: uppercase;
  letter-spacing: -0.3px; line-height: 1.1; margin-bottom: 10px;
}
.specs-row { display: flex; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.spec {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--gray-mid); font-weight: 500;
}
.spec svg { width: 13px; height: 13px; fill: var(--gray-warm); }
.car-divider { height: 1px; background: var(--gray-bg); margin-bottom: 14px; }
.car-footer { display: flex; align-items: center; justify-content: space-between; }
.price-main {
  font-family: var(--font-display); font-size: 28px;
  font-weight: 900; color: var(--charcoal); line-height: 1;
}
.price-main.sold { color: var(--gray-warm); }
.price-sub { font-size: 11px; color: var(--gray-warm); font-weight: 500; margin-top: 2px; }
.card-cta { display: flex; gap: 8px; }
.btn-wa {
  display: flex; align-items: center; gap: 6px;
  background: #25D366; color: var(--white);
  font-family: var(--font-display); font-size: 12px;
  font-weight: 700; padding: 9px 14px; border-radius: 6px;
  border: none; cursor: pointer; transition: all var(--t);
  text-transform: uppercase; letter-spacing: 0.3px;
}
.btn-wa svg { width: 14px; height: 14px; fill: var(--white); }
.btn-wa:hover { background: #1ebe5a; transform: translateY(-1px); }
.btn-detail {
  display: flex; align-items: center; gap: 5px;
  background: var(--gray-bg); color: var(--charcoal);
  font-family: var(--font-display); font-size: 12px;
  font-weight: 700; padding: 9px 14px; border-radius: 6px;
  border: none; cursor: pointer; transition: all var(--t);
  text-transform: uppercase;
}
.btn-detail:hover { background: var(--charcoal); color: var(--white); }

/* ===========================  WHY US  =========================== */
.why { padding: 80px 0; background: var(--charcoal); position: relative; overflow: hidden; }
.why::after {
  content: ''; position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: rgba(51,102,51,0.05);
}
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-title {
  font-family: var(--font-display);
  font-size: clamp(40px,4.5vw,58px); font-weight: 900;
  color: var(--white); text-transform: uppercase;
  letter-spacing: -0.5px; line-height: 0.92;
  margin-bottom: 20px;
}
.why-title span { color: var(--green-light); }
.why-desc { font-size: 16px; color: rgba(255,255,255,0.55); line-height: 1.72; font-weight: 300; margin-bottom: 36px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 22px;
  transition: all var(--t);
}
.feat:hover { background: rgba(51,102,51,0.07); border-color: rgba(51,102,51,0.18); }
.feat-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(51,102,51,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.feat-icon svg { width: 20px; height: 20px; fill: var(--green); }
.feat-title {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: var(--white); text-transform: uppercase;
  letter-spacing: 0.3px; margin-bottom: 6px;
}
.feat-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.55; }
.why-right { display: flex; flex-direction: column; gap: 18px; }
.testimonial {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px; padding: 26px;
}
.stars { display: flex; gap: 3px; margin-bottom: 12px; }
.stars svg { width: 15px; height: 15px; fill: var(--green); }
.testi-text {
  font-size: 15px; color: rgba(255,255,255,0.75);
  line-height: 1.65; font-style: italic; font-weight: 300;
  margin-bottom: 16px;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--white);
}
.author-name { font-weight: 600; color: var(--white); font-size: 14px; line-height: 1.2; }
.author-loc { font-size: 12px; color: rgba(255,255,255,0.35); }
.trust-nums {
  display: grid; grid-template-columns: repeat(3,1fr);
  background: rgba(51,102,51,0.08);
  border: 1px solid rgba(51,102,51,0.14);
  border-radius: 14px; overflow: hidden;
}
.tnum { padding: 22px 14px; text-align: center; background: rgba(255,255,255,0.03); }
.tnum-val { font-family: var(--font-display); font-size: 36px; font-weight: 900; color: var(--green-light); line-height: 1; margin-bottom: 4px; }
.tnum-label { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }

/* ===========================  FINANCIACIÓN  =========================== */
.finance { padding: 80px 0; background: var(--off-white); }
.finance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.finance-title {
  font-family: var(--font-display);
  font-size: clamp(38px,4.5vw,54px); font-weight: 900;
  color: var(--charcoal); text-transform: uppercase;
  letter-spacing: -0.5px; line-height: 0.92; margin-bottom: 20px;
}
.finance-title span { color: var(--green); }
.finance-desc { font-size: 16px; color: var(--gray-mid); line-height: 1.72; font-weight: 300; margin-bottom: 28px; }
.fin-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.fin-item { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--charcoal); }
.fin-item::before {
  content: ''; width: 20px; height: 20px; min-width: 20px;
  border-radius: 50%; background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.calc {
  background: var(--white); border-radius: 14px;
  padding: 32px; box-shadow: var(--shadow-md);
  border: 2px solid var(--gray-light);
}
.calc-head {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 800; color: var(--charcoal); text-transform: uppercase;
  letter-spacing: 0.3px; margin-bottom: 26px;
  display: flex; align-items: center; gap: 10px;
}
.calc-head svg { width: 20px; height: 20px; fill: var(--green); }
.calc-row { margin-bottom: 22px; }
.calc-lbl {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--gray-warm); margin-bottom: 8px;
  display: flex; justify-content: space-between;
}
.calc-lbl span { color: var(--charcoal); font-size: 13px; font-weight: 700; }
input[type=range] {
  width: 100%; height: 4px; border-radius: 2px;
  background: var(--gray-light); outline: none;
  cursor: pointer; appearance: none;
}
input[type=range]::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--green);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(51,102,51,0.3);
  cursor: pointer; transition: transform var(--t);
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-result {
  background: var(--charcoal); border-radius: 10px;
  padding: 20px 24px; margin-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.cr-label { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 4px; }
.cr-amount { font-family: var(--font-display); font-size: 38px; font-weight: 900; color: var(--green-light); line-height: 1; }
.cr-sub { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 2px; }

/* ===========================  CTA  =========================== */
.cta-band { background: var(--green); padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.cta-band::after {
  content: ''; position: absolute; left: -40px; bottom: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(0,0,0,0.05);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; z-index: 2; }
.cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px,4vw,48px); font-weight: 900;
  color: var(--white); text-transform: uppercase;
  letter-spacing: -0.5px; line-height: 1; margin-bottom: 8px;
}
.cta-text p { font-size: 16px; color: rgba(255,255,255,0.80); font-weight: 400; }
.cta-btns { display: flex; gap: 14px; flex-shrink: 0; }
.btn-cta-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--charcoal); color: var(--white);
  font-family: var(--font-display); font-weight: 800;
  font-size: 15px; padding: 14px 28px; border-radius: 6px;
  border: none; cursor: pointer; transition: all var(--t);
  text-transform: uppercase;
}
.btn-cta-dark svg { width: 16px; height: 16px; fill: currentColor; }
.btn-cta-dark:hover { background: #333230; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-cta-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: var(--white);
  font-family: var(--font-display); font-weight: 800;
  font-size: 15px; padding: 14px 28px; border-radius: 6px;
  border: none; cursor: pointer; transition: all var(--t);
  text-transform: uppercase;
}
.btn-cta-wa svg { width: 17px; height: 17px; fill: var(--white); }
.btn-cta-wa:hover { background: #1aad4d; transform: translateY(-2px); }

/* ===========================  FOOTER  =========================== */
.campacars-footer {
  background: var(--charcoal-mid);
  padding: 60px 0 24px;
  border-top: 3px solid var(--green);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.7; font-weight: 300; margin-top: 14px; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--white); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.4); transition: color var(--t); }
.footer-col a:hover { color: var(--green-light); }
.contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.4); margin-bottom: 12px; font-weight: 400; }
.contact-item svg { width: 14px; height: 14px; fill: var(--green); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.28); }
.footer-bottom span { color: var(--green-light); }
.footer-bottom a { color: rgba(255,255,255,0.28); transition: color var(--t); }
.footer-bottom a:hover { color: var(--green-light); }

/* ===========================  FLOAT WHATSAPP (CRO)  =========================== */
.float-wa {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  animation: wa-bounce 3.5s ease infinite;
  transition: transform var(--t), box-shadow var(--t);
}
.float-wa:hover { transform: scale(1.1) !important; animation: none; box-shadow: 0 10px 32px rgba(37,211,102,0.5); }
.float-wa svg { width: 28px; height: 28px; fill: var(--white); }
@keyframes wa-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

/* ===========================  SINGLE COCHE (ficha)  =========================== */
.single-coche { padding: 40px 0 80px; background: var(--off-white); }
.coche-gallery { display: grid; grid-template-columns: 3fr 1fr; gap: 14px; margin-bottom: 32px; }
.coche-gallery .main-img { border-radius: var(--radius); overflow: hidden; background: var(--gray-bg); }
.coche-gallery .main-img img { width: 100%; height: 460px; object-fit: cover; }
.coche-thumbs { display: flex; flex-direction: column; gap: 14px; }
.coche-thumbs img { width: 100%; height: 145px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.coche-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.coche-specs-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin: 24px 0; }
.coche-spec-box {
  background: var(--white); border: 1px solid var(--gray-light);
  border-radius: 10px; padding: 16px 18px;
}
.coche-spec-box .label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-warm); font-weight: 700; margin-bottom: 4px; }
.coche-spec-box .value { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--charcoal); }
.coche-sidebar {
  background: var(--white); border-radius: 14px;
  box-shadow: var(--shadow-md); border: 2px solid var(--gray-light);
  padding: 28px; position: sticky; top: 90px;
}
.coche-sidebar .price-main { font-size: 38px; margin-bottom: 4px; }
.coche-sidebar .btn-cta-wa,
.coche-sidebar .btn-gold { width: 100%; justify-content: center; margin-top: 12px; }

/* ===========================  BLOG (SEO)  =========================== */
.blog-narrow { max-width: 760px; }

/* --- Single --- */
.blog-single { background: var(--white); padding-bottom: 40px; }
.blog-hero { padding: 48px 0 28px; }
.blog-breadcrumb {
  font-size: 12px; font-weight: 600; color: var(--gray-warm);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.blog-breadcrumb a { color: var(--gray-mid); transition: color var(--t); }
.blog-breadcrumb a:hover { color: var(--green); }
.blog-eyebrow {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 12px;
}
.blog-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px,4.5vw,52px); line-height: 1.05;
  letter-spacing: -0.5px; color: var(--charcoal); margin-bottom: 24px;
}
.blog-meta { display: flex; align-items: center; gap: 12px; }
.blog-author { font-weight: 700; color: var(--charcoal); font-size: 14px; display: block; line-height: 1.3; }
.blog-meta-sub { font-size: 13px; color: var(--gray-warm); }
.blog-featured { margin: 8px 0 36px; border-radius: var(--radius); overflow: hidden; }
.blog-featured img { width: 100%; height: auto; }

/* Tipografía de lectura (SEO + legibilidad) */
.blog-content { font-size: 18px; line-height: 1.8; color: #2c2c2c; }
.blog-content > p { margin-bottom: 24px; }
.blog-content h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 30px; color: var(--charcoal); line-height: 1.2;
  margin: 40px 0 16px; letter-spacing: -0.3px;
}
.blog-content h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 23px; color: var(--charcoal); margin: 32px 0 12px;
}
.blog-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.blog-content a:hover { color: var(--green-dark); }
.blog-content img { border-radius: var(--radius); margin: 16px 0; }
.blog-content ul, .blog-content ol { margin: 0 0 24px 24px; }
.blog-content li { margin-bottom: 10px; }
.blog-content blockquote {
  border-left: 4px solid var(--green); background: var(--off-white);
  padding: 18px 24px; margin: 28px 0; border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--gray-mid);
}
.blog-tags { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.blog-tags a {
  font-size: 12px; font-weight: 600; background: var(--gray-bg);
  color: var(--gray-mid); padding: 6px 12px; border-radius: 20px; transition: all var(--t);
}
.blog-tags a:hover { background: var(--green); color: var(--white); }

/* CTA inline dentro del artículo */
.cta-inline { margin: 44px 0; border-radius: var(--radius); }
.blog-content + .cta-inline,
.blog-single .cta-inline { margin: 44px auto; }

/* --- Listado / relacionados --- */
.blog-archive { background: var(--off-white); }
.blog-related { background: var(--off-white); padding: 64px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 8px; }
.blog-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-img { position: relative; display: block; height: 200px; background: var(--gray-bg); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-noimg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; color: var(--gray-light);
  background: linear-gradient(135deg, var(--gray-bg), var(--gray-light));
}
.blog-card-cat {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--green); color: var(--white); padding: 4px 10px; border-radius: 4px;
}
.blog-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.blog-card-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
.blog-card-title a { color: var(--charcoal); transition: color var(--t); }
.blog-card-title a:hover { color: var(--green); }
.blog-card-excerpt { font-size: 14px; color: var(--gray-mid); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.blog-card-meta { font-size: 12px; color: var(--gray-warm); font-weight: 600; }

/* ===========================  RESPONSIVE  =========================== */
@media (max-width: 1024px) {
  .cars-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .search-filters { grid-template-columns: repeat(2,1fr); }
  .search-btn { grid-column: span 2; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .coche-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .why-grid, .finance-grid { grid-template-columns: 1fr; gap: 40px; }
  .cars-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-content { font-size: 17px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-btns { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .features { grid-template-columns: 1fr; }
  .coche-gallery { grid-template-columns: 1fr; }
}
