/*
Theme Name: La Esquina del Utilitario
Theme URI: https://laesquinadelutilitario.com
Author: La Esquina del Utilitario
Description: Tema a medida para la concesionaria La Esquina del Utilitario. Catálogo de vehículos administrable con Custom Post Types y páginas simples editables con Gutenberg.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: esquina-utilitario
*/

/* ============================================
   Variables y reset
   ============================================ */

:root {
  --dark: #0c0c0d;
  --dark-2: #1a1a1c;
  --red: #e0030a;
  --red-dark: #b8020a;
  --white: #ffffff;
  --bg-light: #f7f6f5;
  --border: #e8e5e2;
  --steel: #4a4a4a;
  --steel-light: #7a7a7a;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Noto Sans', 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.55; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-family: var(--font-display); }
p { margin: 0; }
button { font-family: var(--font); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 940px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; cursor: pointer; border: none;
  transition: all .15s ease;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-2); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.badge-usado { background: #eef1f4; color: var(--steel); }
.badge-0km { background: #fdeceb; color: var(--red-dark); }
.badge-certificado { background: #eef0f4; color: #4c5566; display: inline-flex; align-items: center; gap: 5px; }
.badge-certificado.is-bronce { background: #f6ece0; color: #a3672f; }
.badge-certificado.is-plata { background: #eef0f2; color: #75797f; }
.badge-certificado.is-oro { background: #fbf1d6; color: #a3811a; }
.eu-estrellas { display: inline-flex; align-items: center; gap: 1px; }
.eu-estrellas svg { display: block; }

.cert-box { background: #eef0f4; border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.cert-box.is-bronce { background: #f6ece0; }
.cert-box.is-plata { background: #eef0f2; }
.cert-box.is-oro { background: #fbf1d6; }
.cert-box-title { display: flex; align-items: center; gap: 7px; font-size: 14px; margin-bottom: 10px; color: #4c5566; }
.cert-box.is-bronce .cert-box-title { color: #a3672f; }
.cert-box.is-plata .cert-box-title { color: #75797f; }
.cert-box.is-oro .cert-box-title { color: #a3811a; }
.cert-box-puntaje { font-size: 12.5px; color: var(--steel-light); margin: -4px 0 10px; }

.eu-card { background: #fff; border-radius: 10px; }
.eu-video { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.eu-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.hero-slide-badge { position: absolute; top: 22px; left: 22px; z-index: 3; box-shadow: 0 4px 14px rgba(10,10,10,.18); }

.section { padding: 112px 0; }
.section-tight { padding: 40px 0; }
.section-title { font-size: 37px; font-weight: 700; margin-bottom: 14px; letter-spacing: -.7px; }
.section-title em { font-style: normal; font-weight: 700; color: var(--red); }
.section-eyebrow { display: inline-block; color: var(--red-dark); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; }
.section-sub { color: var(--steel-light); font-size: 16.5px; margin-bottom: 44px; max-width: 560px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; gap: 20px; flex-wrap: wrap; }

/* ---------- Watermark decorativo (letra gigante de fondo) ---------- */
.section-watermark { position: relative; overflow: hidden; }
.section-watermark > .container { position: relative; z-index: 1; }
.section-watermark-letter {
	position: absolute; top: -.22em; left: max(4px, calc((100% - 1180px) / 2 - 10px));
	font-family: var(--font-display); font-weight: 800; font-style: normal;
	font-size: clamp(160px, 20vw, 260px); line-height: 1; color: var(--dark);
	opacity: .04; pointer-events: none; user-select: none; z-index: 0; white-space: nowrap;
}

/* ---------- Separación entre secciones ----------
   Sin diagonales: el ritmo visual se logra alternando fondo blanco / gris
   muy claro (--bg-light) entre secciones y con padding vertical generoso. */

/* ---------- Filtros tipo pill (accesos rápidos) ---------- */
.pill-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.pill-filter { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 30px; border: 1.5px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--steel); transition: all .18s ease; }
.pill-filter:hover { border-color: #c9c6c2; box-shadow: 0 6px 14px rgba(10,10,10,.05); }
.pill-filter.is-active { border-color: var(--red); color: var(--red-dark); background: #fdeceb; }

/* ---------- Header ---------- */
.header { background: var(--dark); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 20px rgba(0,0,0,.18); }
.header .container { max-width: 1360px; display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img, .custom-logo { max-height: 64px; width: auto; }
.custom-logo-link { display: flex; align-items: center; }
.logo-text { font-weight: 800; font-size: 20px; letter-spacing: -.3px; color: var(--white); }

.nav-wrap { display: contents; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-weight: 600; font-size: 14.5px; color: #e6e6e6; text-transform: uppercase; letter-spacing: .3px; }
.nav a.active, .nav a:hover { color: var(--red); }
.menu-toggle { color: var(--white); }

/* En desktop, los iconos sociales y el buscador dentro del nav-wrap solo se
   usan en mobile (adentro del menú hamburguesa); en desktop se muestran
   aparte, en .header-actions. */
.nav-social, .nav-search-form { display: none; }

/* ---------- Redes sociales e buscador del header (desktop) ---------- */
.header-social { display: flex; align-items: center; gap: 14px; }
.header-social a { display: inline-flex; color: var(--white); opacity: .8; transition: opacity .18s ease, color .18s ease; }
.header-social a:hover { opacity: 1; color: var(--red); }

.header-search { position: relative; display: flex; align-items: center; }
.header-search-toggle { display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--white); cursor: pointer; padding: 4px; }
.header-search-toggle:hover { color: var(--red); }
.header-search-form {
	position: absolute;
	top: calc(100% + 16px);
	right: 0;
	width: 280px;
	background: var(--white);
	border-radius: 10px;
	box-shadow: 0 16px 32px rgba(10,10,10,.2);
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.header-search.is-open .header-search-form { opacity: 1; visibility: visible; transform: translateY(0); }
.header-search-form input { width: 100%; border: 1.5px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: 14px; color: var(--dark); }

/* ---------- Submenús desplegables (Nuevos / Usados, etc.) ---------- */
.nav li { position: relative; }
.nav .menu-item-has-children > a { display: flex; align-items: center; gap: 5px; }
.nav .menu-item-has-children > a::after { content: "▾"; font-size: 10px; margin-top: 1px; }
.nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--dark);
	border: 1px solid #2a2a2c;
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(10,10,10,.28);
	min-width: 220px;
	padding: 8px;
	margin: 0;
	z-index: 60;
}
/* Puente invisible que cubre el padding del header para que el mouse no
   pierda el hover del <li> al bajar desde el link hasta el submenú. */
.nav .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 18px;
}
.nav .sub-menu li { width: 100%; }
.nav .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 6px;
	font-weight: 500;
	white-space: nowrap;
	color: #e6e6e6;
}
.nav .sub-menu a:hover { background: rgba(255,255,255,.08); color: var(--red); }
.nav li.menu-item-has-children:hover > .sub-menu,
.nav li.menu-item-has-children.is-open > .sub-menu { display: block; }
.submenu-toggle { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ---------- Hero carousel (fotos de destacados) ---------- */
.hero-carousel { position: relative; height: 640px; max-height: 80vh; overflow: hidden; background: var(--bg-light); isolation: isolate; }
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
	position: absolute; inset: 0; display: flex;
	opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .9s ease;
	z-index: 1;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; }

/* La foto ocupa la mayor parte del hero para que el auto sea el protagonista. */
.hero-slide-photo { order: 2; position: relative; width: 62%; height: 100%; flex-shrink: 0; overflow: hidden; display: block; background: var(--bg-light); }
.hero-slide-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transform: scale(1); transition: transform 7s ease; }
.hero-slide.is-active .hero-slide-photo img { transform: scale(1.08); }

/* Panel de texto claro: marca, año, specs, precio y CTA sobre blanco. */
.hero-slide-copy { order: 1; width: 38%; flex-shrink: 0; background: var(--white); color: var(--dark); display: flex; align-items: center; border-right: 1px solid var(--border); }
.hero-slide-copy-inner { width: 100%; max-width: 420px; margin: 0 auto; padding: 40px 52px; display: flex; flex-direction: column; gap: 16px; }
.hero-slide-eyebrow {
	display: inline-flex; align-self: flex-start;
	background: var(--red); color: var(--white); font-weight: 700; font-size: 12px;
	text-transform: uppercase; letter-spacing: 1px; padding: 5px 12px; border-radius: 20px;
}
.hero-slide-title { font-size: 32px; font-weight: 700; letter-spacing: -.6px; line-height: 1.15; color: var(--dark); }
.hero-slide-title a:hover { color: var(--red); }
.hero-slide-meta { font-size: 15px; color: var(--steel-light); }
.hero-slide-specs { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--steel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 0; }
.hero-slide-specs span { display: inline-flex; align-items: center; gap: 6px; }
.hero-slide-specs .eu-icon { color: var(--red); flex-shrink: 0; }
.hero-slide-price { font-size: 28px; font-weight: 700; color: var(--red-dark); }
.hero-slide-cta { align-self: flex-start; margin-top: 4px; }

.hero-arrow {
	position: absolute; top: 50%; translate: 0 -50%; z-index: 5;
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); cursor: pointer;
	background: var(--white); color: var(--dark); font-size: 20px;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 16px rgba(10,10,10,.1);
	transition: background .15s ease;
}
.hero-arrow:hover { background: var(--bg-light); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

.hero-dots { position: absolute; right: 32px; bottom: 26px; z-index: 5; display: flex; gap: 8px; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: all .2s ease; }
.hero-dot.is-active { width: 26px; border-radius: 5px; background: var(--red); }

/* ---------- Franja de valor debajo del carrusel ---------- */
.hero-strip { background: var(--dark-2); color: var(--white); padding: 26px 0; }
.hero-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.hero-strip-copy { display: flex; flex-direction: column; gap: 4px; }
.hero-strip-copy strong { font-size: 19px; font-weight: 800; }
.hero-strip-copy strong em { color: var(--red); font-style: normal; }
.hero-strip-copy span { color: #c9c9c9; font-size: 14px; }
.hero-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 21px; font-weight: 800; color: var(--white); }
.hero-stats div span { font-size: 12.5px; color: #b5aca6; }

/* ---------- Categorías rápidas ---------- */
.cat-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-strip-item {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 13px 20px; border-radius: 30px; border: 1.5px solid var(--border);
	background: var(--white); transition: all .18s ease;
}
.cat-strip-item strong { font-size: 14.5px; font-weight: 700; color: var(--dark); }
.cat-strip-item span {
	font-size: 12px; font-weight: 700; color: var(--steel-light);
	background: var(--bg-light); padding: 3px 9px; border-radius: 20px;
	transition: all .18s ease;
}
.cat-strip-item:hover { border-color: var(--red); box-shadow: 0 8px 18px rgba(10,10,10,.06); }
.cat-strip-item:hover strong { color: var(--red-dark); }
.cat-strip-item:hover span { background: #fdeceb; color: var(--red-dark); }

/* ---------- Vehicle cards (panel flotante sobre la foto) ---------- */
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.vehicle-card { background: transparent; border: none; overflow: visible; transition: transform .3s ease; }
.vehicle-card:hover { transform: translateY(-6px); }
.vehicle-card-media { position: relative; overflow: hidden; border-radius: 18px; display: block; border: 1px solid var(--border); }
.vehicle-card-media img { height: 240px; width: 100%; object-fit: cover; background: var(--bg-light); transition: transform .7s ease; }
.vehicle-card:hover .vehicle-card-media img { transform: scale(1.06); }
.vehicle-card-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 2; }
.vehicle-card-badges .badge { box-shadow: 0 2px 8px rgba(10,10,10,.1); }
.vehicle-card-body { position: relative; margin: -36px 18px 0; background: var(--white); border-radius: 16px; box-shadow: 0 14px 30px rgba(10,10,10,.07); padding: 20px 22px 22px; z-index: 2; transition: box-shadow .3s ease; }
.vehicle-card:hover .vehicle-card-body { box-shadow: 0 22px 40px rgba(10,10,10,.13); }
.vehicle-card-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; font-family: var(--font-display); letter-spacing: -.2px; }
.vehicle-card-body h3 a:hover { color: var(--red); }
.vehicle-card-meta { color: var(--steel-light); font-size: 13px; margin-bottom: 14px; }
.vehicle-card-specs { display: flex; gap: 14px; font-size: 12.5px; color: var(--steel); border-top: 1px solid var(--border); padding-top: 13px; margin-bottom: 14px; flex-wrap: wrap; }
.vehicle-card-specs span { display: inline-flex; align-items: center; gap: 5px; }
.vehicle-card-specs .eu-icon { color: var(--red-dark); flex-shrink: 0; }
.vehicle-card-price { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.vehicle-card-price strong { font-size: 18px; font-weight: 800; color: var(--dark); font-family: var(--font-display); }

/* ---------- About Us (fotos superpuestas + badge flotante) ---------- */
.about-split { background: var(--bg-light); padding: 112px 0; overflow: hidden; }
.about-split-inner { display: flex; align-items: center; gap: 80px; }
.about-split-media { position: relative; width: 42%; flex-shrink: 0; min-height: 440px; }
.about-split-photo { position: absolute; border-radius: 14px; overflow: hidden; box-shadow: 0 22px 42px rgba(10,10,10,.16); }
.about-split-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-split-photo-1 { width: 56%; height: 270px; top: 0; left: 0; z-index: 1; }
.about-split-photo-2 { width: 64%; height: 320px; bottom: 0; right: 0; z-index: 2; }
.about-split-badge { position: absolute; left: 0; bottom: 26px; z-index: 3; background: var(--white); border-radius: 12px; padding: 20px 26px; box-shadow: 0 18px 34px rgba(10,10,10,.16); }
.about-split-badge strong { display: block; font-size: 32px; font-weight: 800; color: var(--red); font-family: var(--font-display); line-height: 1; }
.about-split-badge span { font-size: 12.5px; color: var(--steel-light); }
.about-split-copy { flex: 1; }
.about-split-copy .section-title { margin-bottom: 16px; }
.about-split-copy p { color: var(--steel); font-size: 15.5px; line-height: 1.75; max-width: 480px; margin-bottom: 26px; }

/* ---------- Por qué elegirnos ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card .icon { width: 50px; height: 50px; border-radius: 10px; background: #fdeceb; color: var(--red-dark); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.why-card h3 { font-size: 16px; margin-bottom: 6px; }
.why-card p { color: var(--steel-light); font-size: 14px; }

/* ---------- Por qué elegirnos: panel dividido foto + contenido claro ---------- */
.why-split { position: relative; display: flex; min-height: 540px; }
.why-split-media { width: 46%; flex-shrink: 0; position: relative; overflow: hidden; }
.why-split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.why-split-panel { width: 54%; flex-shrink: 0; background: var(--white); color: var(--dark); display: flex; align-items: center; }
.why-split-inner { padding: 72px max(40px, calc((100% - 1180px) / 2 * .6)) 72px 72px; max-width: 620px; }
.why-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 28px; margin-top: 34px; }
.why-split-grid .icon { width: 46px; height: 46px; border-radius: 50%; background: #fdeceb; color: var(--red-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.why-split-grid h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 5px; color: var(--dark); }
.why-split-grid p { font-size: 13.5px; color: var(--steel-light); line-height: 1.6; }

/* ---------- Testimonios (destacado, un solo cliente) ---------- */
.section-alt { background: var(--bg-light); }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testi-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.testi-stars { color: var(--red); margin-bottom: 12px; font-size: 14px; }
.testi-card p { color: var(--steel); font-size: 14.5px; margin-bottom: 18px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--dark); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }

.testi-feature { position: relative; background: var(--bg-light); padding: 110px 0; overflow: hidden; }
.testi-feature::before, .testi-feature::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--border); pointer-events: none; }
.testi-feature::before { width: 150px; height: 150px; top: 30px; right: 9%; }
.testi-feature::after { width: 74px; height: 74px; bottom: 34px; right: 16%; }
.testi-feature-inner { max-width: 660px; margin: 0 auto; position: relative; z-index: 1; text-align: center; }
.testi-feature-inner .section-eyebrow { display: block; margin-bottom: 4px; }
.testi-feature-quotemark { font-family: Georgia, 'Times New Roman', serif; font-size: 110px; line-height: 1; color: var(--border); margin-bottom: -46px; }
.testi-feature-stars { color: var(--red); font-size: 16px; letter-spacing: 3px; margin-bottom: 18px; }
.testi-feature-quote { font-family: var(--font-display); font-weight: 600; font-size: 25px; line-height: 1.45; color: var(--dark); margin-bottom: 26px; }
.testi-feature-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi-feature-person strong { display: block; font-size: 15px; }
.testi-feature-person span { color: var(--steel-light); font-size: 13px; }
.testi-person strong { display: block; font-size: 14px; }
.testi-person span { font-size: 12.5px; color: var(--steel-light); }

/* ---------- CTA final (tarjeta roja flotante) ---------- */
.cta-banner { background: var(--bg-light); padding: 90px 0; position: relative; z-index: 5; }
.cta-banner-card { position: relative; overflow: hidden; background: var(--red); color: var(--white); border-radius: 28px; padding: 58px 64px; box-shadow: 0 30px 60px rgba(10,10,10,.22); }
.cta-banner-card::before { content: ""; position: absolute; width: 220px; height: 220px; border: 1.5px dashed rgba(255,255,255,.22); border-radius: 50%; top: -100px; right: -50px; pointer-events: none; }
.cta-banner-card::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.55); bottom: 40px; right: 130px; pointer-events: none; }
.cta-banner-arrow { position: absolute; top: 34px; right: 190px; width: 90px; height: 60px; opacity: .5; pointer-events: none; }
.cta-banner-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-banner-copy h2 { font-size: 30px; font-weight: 800; margin-bottom: 8px; font-family: var(--font-display); }
.cta-banner-copy p { color: #ffdedb; font-size: 15px; max-width: 420px; }
.cta-banner-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-banner-contact { display: flex; align-items: center; gap: 12px; color: var(--white); }
.cta-banner-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--white); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.cta-banner-contact small { display: block; font-size: 12px; color: #ffd6d2; font-weight: 500; }
.cta-banner-contact strong { display: block; font-size: 16px; font-weight: 700; }
.cta-banner .btn-dark { background: var(--dark); }
.cta-banner .btn-dark:hover { background: #000; }

/* ---------- Pre-footer (certificaciones/afiliaciones) ---------- */
.pre-footer { background: var(--bg-light); border-top: 1px solid var(--border); padding: 40px 0; }
.pre-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pre-footer-item { display: flex; align-items: center; gap: 22px; }
.pre-footer-plate { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 14px rgba(10,10,10,.05); }
.pre-footer-logo { height: 68px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.pre-footer-item p { font-size: 13.5px; line-height: 1.6; color: var(--steel); margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #c9c9c9; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid #2a2a2c; }
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer p { font-size: 13.5px; line-height: 1.7; }
.footer ul li { margin-bottom: 10px; font-size: 13.5px; }
.footer ul li a:hover { color: var(--red); }
.footer-contact { display: flex; flex-direction: column; gap: 16px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact-item .icon { width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-contact-item strong { display: block; font-size: 13.5px; color: var(--white); margin-bottom: 2px; }
.footer-contact-item span { font-size: 13px; color: #c9c9c9; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; font-size: 12.5px; color: #9a9a9a; flex-wrap: wrap; gap: 8px; }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social-label { font-size: 12.5px; color: #9a9a9a; margin-right: 2px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; background: var(--dark-2); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--red); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--bg-light); border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 13.5px; color: var(--steel-light); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Catálogo ---------- */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.filters { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: 110px; }
.filters-toggle { display: none; width: 100%; align-items: center; justify-content: space-between; background: none; border: none; padding: 0; font-weight: 700; font-size: 15px; color: var(--dark); cursor: pointer; }
.filters-toggle-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 6px; border-radius: 20px; background: var(--red); color: var(--white); font-size: 11.5px; font-weight: 700; }
.filters-toggle-chevron { transition: transform .2s ease; color: var(--steel-light); }
.filters-body { display: block; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.filters-head h3 { font-size: 16px; }
.filters-head a { font-size: 12.5px; color: var(--red-dark); font-weight: 600; }
.filter-group { border-top: 1px solid var(--border); padding: 14px 0; }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-group summary { font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "▾"; color: var(--steel-light); }
.filter-option { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-top: 10px; color: var(--steel); }
.filter-range { display: flex; gap: 8px; margin-top: 10px; }
.filter-range input { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }

.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.catalog-toolbar .count { font-size: 14px; color: var(--steel-light); }
.catalog-toolbar select { padding: 9px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 13.5px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fdeceb; color: var(--red-dark); padding: 6px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; }
.pagination .current { background: var(--dark); color: var(--white); border-color: var(--dark); }

.sin-resultados { text-align: center; padding: 60px 20px; color: var(--steel-light); }

/* ---------- Ficha de vehículo ---------- */
.vehicle-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 380px; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; }
.gallery-thumbs img { height: 68px; object-fit: cover; }
.gallery-thumbs button.active { border-color: var(--red); }

.detail-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.detail-meta { color: var(--steel-light); font-size: 14px; margin-bottom: 18px; }
.detail-price { font-size: 28px; font-weight: 800; color: var(--red-dark); margin-bottom: 4px; }
.detail-price-note { font-size: 12.5px; color: var(--steel-light); margin-bottom: 22px; }

.specs-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.specs-table td { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.specs-table td:first-child { color: var(--steel-light); width: 45%; }
.specs-table td:last-child { font-weight: 600; }

.detail-desc { font-size: 14.5px; color: var(--steel); line-height: 1.8; margin: 20px 0; }

.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 110px; }
.contact-card input, .contact-card textarea, .contact-card select { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 13.5px; margin-bottom: 12px; font-family: var(--font); }
.contact-card textarea { resize: vertical; min-height: 80px; }

/* ---------- Página de contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item .icon { width: 42px; height: 42px; border-radius: 10px; background: #fdeceb; color: var(--red-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item .icon .eu-icon { display: block; width: 19px; height: 19px; }
.contact-info-item strong { display: block; margin-bottom: 3px; font-size: 15px; }
.contact-info-item span { color: var(--steel-light); font-size: 13.5px; }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 22px; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

/* ---------- Mapa grande, ancho completo (página de contacto) ---------- */
.contact-map-full { width: 100%; height: 450px; background: var(--bg-light); }
.contact-map-full iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Página Nosotros ---------- */
.nosotros-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; }
.nosotros-step { border-top: 2px solid var(--dark); padding-top: 20px; }
.nosotros-step-num { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--red); margin-bottom: 14px; }
.nosotros-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.nosotros-step p { font-size: 13.5px; color: var(--steel-light); line-height: 1.6; }

.nosotros-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nosotros-value-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 32px 28px; }
.nosotros-value-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.nosotros-value-card h3::before { content: ""; display: block; width: 34px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 16px; }
.nosotros-value-card p { font-size: 14px; color: var(--steel-light); line-height: 1.7; }

.mision-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.valores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }

.proceso-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 20px; }
.proceso-step { border-top: 2px solid var(--dark); padding-top: 14px; }
.proceso-step-num { display: block; font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: 22px; margin-bottom: 6px; }
.proceso-step span:last-child { font-size: 13.5px; font-weight: 600; color: var(--dark); }

.mandamientos-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; list-style: none; padding: 0; margin: 0 0 30px; }
.mandamiento-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mandamiento-num { font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: 17px; flex-shrink: 0; width: 24px; }
.mandamiento-item p { margin: 0; font-size: 14.5px; color: var(--steel); line-height: 1.5; }
.mandamientos-closing { font-size: 15.5px; font-weight: 600; color: var(--dark); line-height: 1.6; max-width: 680px; }

.nosotros-historia { max-width: 760px; margin: 0 auto; }
.nosotros-historia p { font-size: 15.5px; color: var(--steel); line-height: 1.8; margin-bottom: 18px; }
.nosotros-historia p:last-child { margin-bottom: 0; font-weight: 600; color: var(--dark); }

.nosotros-cta { text-align: center; }
.nosotros-cta-inner { max-width: 620px; }
.nosotros-cta .section-title { margin-bottom: 12px; }
.nosotros-cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.form-field { margin-bottom: 16px; }
.form-card input, .form-card textarea, .form-card select { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-family: var(--font); }
.form-card textarea { min-height: 110px; resize: vertical; }
.eu-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.eu-aviso { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 24px; }
.eu-aviso-ok { background: #e9f7ee; color: #1f7a3f; border: 1px solid #bfe7cc; }
.eu-aviso-error { background: #fdeceb; color: var(--red-dark); border: 1px solid #f3c8c5; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; bottom: 22px; right: 22px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 25px; box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 60; }
.wa-float .eu-icon-whatsapp { width: 28px; height: 28px; }
.topbar-social .eu-icon, .footer-social .eu-icon { display: block; }
.topbar-social a, .footer-social a { display: inline-flex; align-items: center; justify-content: center; }
.footer-contact-item .icon .eu-icon { display: block; width: 17px; height: 17px; }

/* ---------- Contenido de páginas simples (Gutenberg) ---------- */
.entry-content { max-width: 780px; margin: 0 auto; font-size: 16px; color: var(--steel); }
.entry-content h2 { font-size: 26px; margin: 32px 0 14px; color: var(--dark); }
.entry-content h3 { font-size: 20px; margin: 24px 0 10px; color: var(--dark); }
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 20px; }
.entry-content img { border-radius: var(--radius); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 90px 20px; }
.error-404 h1 { font-size: 72px; color: var(--red); font-weight: 800; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .vehicle-detail, .contact-grid { grid-template-columns: 1fr; }
  .why-grid, .testi-grid, .vehicle-grid { grid-template-columns: repeat(2,1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pre-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .pre-footer-logo { height: 54px; max-width: 150px; }
  .pre-footer-plate { padding: 10px 14px; }
  .hero-carousel { height: 620px; max-height: none; }
  .hero-slide { flex-direction: column; }
  .hero-slide-photo { order: 1; width: 100%; height: 54%; }
  .hero-slide-copy { order: 2; width: 100%; height: 46%; border-right: none; border-top: 1px solid var(--border); }
  .hero-slide-copy-inner { max-width: 100%; padding: 22px 24px; gap: 10px; }
  .hero-slide-title { font-size: 26px; }
  .hero-slide-specs { padding: 10px 0; gap: 12px; font-size: 12.5px; }
  .hero-slide-price { font-size: 22px; }
  .hero-arrow { display: none; }
  .hero-strip .container { flex-direction: column; align-items: flex-start; }
  .nav-wrap { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 16px 24px 20px; border-top: 1px solid #2a2a2c; max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav-wrap.is-open { display: flex; }
  .nav { display: flex; flex-direction: column; gap: 14px; width: 100%; }
  .nav li { width: 100%; display: flex; flex-wrap: wrap; align-items: center; }
  .nav li > a { flex: 1; }
  .nav .menu-item-has-children > a::after { display: none; }
  .nav .sub-menu { display: none; position: static; box-shadow: none; border: none; background: var(--dark-2); border-radius: 8px; margin: 8px 0 0; width: 100%; }
  .nav .sub-menu a { color: #e6e6e6; }
  .nav .sub-menu a:hover { background: rgba(255,255,255,.06); color: var(--red); }
  .nav li.menu-item-has-children.is-open > .sub-menu { display: block; }
  .submenu-toggle { display: block; background: none; border: none; font-size: 16px; padding: 6px 10px; cursor: pointer; color: #c9c9c9; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-actions { display: none; }

  /* Iconos sociales y buscador: en mobile viven adentro del menú hamburguesa,
     después de los ítems de navegación. */
  .nav-social { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #2a2a2c; }
  .nav-social a { display: inline-flex; color: #e6e6e6; }
  .nav-social a:hover { color: var(--red); }
  .nav-search-form { display: flex; gap: 8px; margin-top: 14px; }
  .nav-search-form input { flex: 1; min-width: 0; background: var(--dark-2); border: 1px solid #2a2a2c; border-radius: 8px; padding: 11px 12px; color: var(--white); font-size: 14px; }
  .nav-search-form input::placeholder { color: #8a8a8a; }
  .nav-search-form button { display: flex; align-items: center; justify-content: center; background: var(--red); border: none; border-radius: 8px; padding: 0 14px; color: var(--white); cursor: pointer; }
  .nav-search-form button:hover { background: var(--red-dark); }
  .filters { position: static; padding: 16px 18px; }
  .filters-toggle { display: flex; }
  .filters-body { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
  .filters.is-open .filters-body { display: block; }
  .filters.is-open .filters-toggle-chevron { transform: rotate(180deg); }
  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .section-watermark-letter { font-size: clamp(110px, 32vw, 180px); }
  .cta-banner { padding: 60px 0; }
  .cta-banner-card { padding: 40px 26px; border-radius: 22px; }
  .cta-banner-card::before, .cta-banner-card::after, .cta-banner-arrow { display: none; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
  .footer { padding-top: 48px; }
  .about-split { padding: 56px 0; }
  .about-split-inner { flex-direction: column; gap: 40px; }
  .about-split-media { width: 100%; min-height: 320px; }
  .about-split-photo-1 { width: 54%; height: 190px; }
  .about-split-photo-2 { width: 62%; height: 220px; }
  .nosotros-steps { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .nosotros-values-grid { grid-template-columns: 1fr; }
  .mision-vision-grid { grid-template-columns: 1fr; }
  .valores-grid { grid-template-columns: 1fr 1fr; }
  .mandamientos-list { grid-template-columns: 1fr; gap: 0; }
  .proceso-grid { grid-template-columns: repeat(3, 1fr); }
  .about-split-badge { padding: 14px 18px; }
  .about-split-badge strong { font-size: 24px; }
  .why-split { flex-direction: column; min-height: 0; }
  .why-split-media, .why-split-panel { width: 100%; }
  .why-split-media { height: 380px; }
  .why-split-inner { padding: 40px 24px; max-width: 100%; }
  .why-split-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .testi-feature { padding: 64px 0; }
  .testi-feature-quote { font-size: 20px; }
  .testi-feature::before, .testi-feature::after { display: none; }
}

@media (max-width: 640px) {
  .why-grid, .testi-grid, .vehicle-grid { grid-template-columns: 1fr; }
  .cat-strip-item { flex: 1 1 calc(50% - 10px); justify-content: space-between; padding: 12px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4,1fr); }
  .hero-carousel { height: 560px; }
  .hero-slide-photo { height: 48%; }
  .hero-slide-copy { height: 52%; }
  .hero-slide-copy-inner { padding: 18px 18px; gap: 8px; }
  .hero-slide-title { font-size: 22px; }
  .hero-slide-price { font-size: 20px; }
  .hero-dots { right: 20px; bottom: 18px; }
  .hero-stats { gap: 20px; }
  .vehicle-card-body { margin: -32px 10px 0; padding: 16px 16px 18px; }
  .contact-map-full { height: 300px; }
  .why-split-media { height: 320px; }
}
