/* =========================================================================
   White Hat Motors — hoja de estilos principal (theme.css)
   =========================================================================
   Está organizada de arriba abajo así:
     1. Variables (los "tokens" de diseño: colores, fuentes, medidas)
     2. Base (reinicio suave, tipografía, enlaces, botones)
     3. Utilidades (contenedor, accesibilidad)
     4. Cabecera y navegación
     5. Portada (hero, secciones, carrusel, tarjetas, acerca de, CTA)
     6. Páginas, blog, entrada y comentarios
     7. Pie
     8. Responsive (ajustes para tablet y móvil)

   Todos los colores salen de las variables de :root, para poder cambiar el
   aspecto entero tocando un solo sitio. Comentado para principiantes.
   ========================================================================= */

/* ============================ 1. VARIABLES ============================== */
:root {
	/* Paleta (misma que el diseño original, en modo oscuro). */
	--whm-primary:        #0085FF; /* azul de acción: botones y acentos */
	--whm-primary-hover:  #0177E3; /* azul al pasar el ratón */
	--whm-text:           #E7F6FF; /* texto y títulos (casi blanco azulado) */
	--whm-white:          #FFFFFF; /* enlaces y título del sitio */
	--whm-bg:             #212A37; /* fondo general de la página */
	--whm-dark:           #0F172A; /* fondo del pie y de los submenús */
	--whm-overlay:        #070614; /* velo oscuro sobre las imágenes de fondo */
	--whm-muted:          #4F5B62; /* grises suaves y bordes */

	/* Tipografías. Si la fuente web no carga, se usan las del sistema. */
	--whm-font-body:    'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--whm-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--whm-font-button:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	/* Medidas. */
	--whm-container:        1200px; /* ancho máximo del contenido normal */
	--whm-container-narrow:  750px; /* ancho para leer entradas del blog */
	--whm-radius:            4px;   /* redondeo de botones e inputs */
	--whm-section-gap:       100px; /* aire vertical entre secciones */
}

/* ============================== 2. BASE ================================= */

/* Reinicio suave: el modelo de caja "border-box" facilita medir anchos. */
*,
*::before,
*::after { box-sizing: border-box; }

/* 106.25% => 1rem = 17px, igual que el sitio original. */
html {
	font-size: 106.25%;
	scroll-behavior: smooth; /* desplazamiento suave al pulsar anclas */
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden; /* refuerzo: nada de scroll horizontal en ningún caso */
}

body {
	margin: 0;
	background-color: var(--whm-bg);
	color: var(--whm-text);
	font-family: var(--whm-font-body);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden; /* nunca scroll horizontal */
}

/* Títulos: fuente Poppins, peso 600, sin margen superior de más. */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--whm-font-heading);
	font-weight: 600;
	color: var(--whm-text);
	line-height: 1.2;
	margin: 0 0 .6em;
	overflow-wrap: break-word; /* un título muy largo se parte en vez de desbordar */
	word-wrap: break-word;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 2.35rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.29rem; }
h5 { font-size: 1.06rem; }
h6 { font-size: .88rem; font-weight: 700; }

p { margin: 0 0 1.2em; }

/* Enlaces: blancos, y azul de "hover" al pasar por encima o enfocar. */
a {
	color: var(--whm-white);
	text-decoration: none;
	transition: color .2s ease;
}
a:hover,
a:focus { color: var(--whm-primary-hover); }

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Foco visible para quien navega con teclado (accesibilidad). */
:focus-visible {
	outline: 2px solid var(--whm-primary);
	outline-offset: 2px;
}

/* --- Botones (mismo estilo global que el diseño original) --- */
.whm-button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-block;
	background-color: var(--whm-primary);
	color: var(--whm-white);
	border: 2px solid var(--whm-primary);
	padding: 15px 24px;
	font-family: var(--whm-font-button);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1;
	text-transform: uppercase;
	text-align: center;
	border-radius: var(--whm-radius);
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease;
}
.whm-button:hover,
.whm-button:focus,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	background-color: var(--whm-primary-hover);
	border-color: var(--whm-primary-hover);
	color: var(--whm-white);
}
.whm-button--large { padding: 18px 34px; font-size: 1.05rem; }

/* --- Campos de formulario --- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	background: rgba(255, 255, 255, .04);
	color: var(--whm-text);
	border: 1px solid var(--whm-muted);
	border-radius: var(--whm-radius);
	font-family: inherit;
	font-size: 1rem;
}
input:focus,
textarea:focus,
select:focus {
	border-color: var(--whm-white);
	outline: none;
}
::placeholder { color: rgba(231, 246, 255, .5); }

/* =========================== 3. UTILIDADES ============================= */

/* Contenedor centrado con un ancho máximo cómodo. */
.whm-container {
	width: 100%;
	max-width: var(--whm-container);
	margin-inline: auto;
	padding-inline: 20px;
}
.whm-container--narrow { max-width: var(--whm-container-narrow); }

/* Texto solo para lectores de pantalla (no se ve, pero se "oye"). */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

/* Enlace "saltar al contenido": aparece al enfocarlo con el teclado. */
.whm-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--whm-primary);
	color: #fff;
	padding: 10px 16px;
	border-radius: 0 0 var(--whm-radius) 0;
}
.whm-skip-link:focus { left: 0; }

/* ======================= 4. CABECERA Y NAVEGACIÓN ===================== */
.whm-header {
	background: var(--whm-bg);
	position: relative;
	z-index: 100;
}
.whm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-block: 14px;
	flex-wrap: nowrap;
}
.whm-header__branding {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0; /* permite que el bloque encoja y no empuje al menú fuera de pantalla */
}
.whm-nav-toggle { flex: 0 0 auto; } /* la hamburguesa nunca se comprime ni se sale */
/* El elemento flex de la cabecera es el ENLACE que envuelve el logo
   (.custom-logo-link, lo pone WordPress), no la imagen. Si ese enlace se encoge
   cuando el menú va justo, arrastra al <img> (que hereda max-width:100% del
   enlace) y el escudo salía estrecho/estirado a 52px en vez de 60. Por eso el
   "no encoger" va AQUÍ, en el enlace. flex:0 0 auto = ni crece ni se encoge. */
.whm-header__branding .custom-logo-link {
	flex: 0 0 auto;
	line-height: 0; /* el enlace no añade alto de línea extra alrededor del logo */
}
.whm-header__branding .custom-logo {
	width: 60px;
	height: 60px;
	/* Si por lo que sea la caja no fuera perfectamente cuadrada, la imagen se
	   ajusta sin deformarse en vez de estirarse. */
	object-fit: contain;
	border-radius: 6px;
}
.whm-site-title {
	font-family: var(--whm-font-heading);
	font-weight: 700;
	font-size: 1.47rem; /* ~25px */
	margin: 0;
	line-height: 1.1;
}
.whm-site-title a { color: var(--whm-white); }
.whm-site-description {
	margin: 0;
	font-size: .8rem;
	color: rgba(231, 246, 255, .7);
}

/* Menú principal (escritorio). */
.whm-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}
.whm-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.whm-nav__list li { position: relative; }
.whm-nav__list a {
	display: block;
	padding: 10px 18px;
	color: var(--whm-white);
	font-size: 1rem;
}
.whm-nav__list a:hover { color: var(--whm-primary-hover); }

/* Submenú desplegable. */
.whm-nav__list ul.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--whm-dark);
	border: 1px solid rgba(255, 255, 255, .06);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
	list-style: none;
	margin: 0;
	padding: 6px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 20;
}
.whm-nav__list li:hover > ul.sub-menu,
.whm-nav__list li:focus-within > ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.whm-nav__list ul.sub-menu a { padding: 10px 25px; }

.whm-header__cta { margin-left: 10px; }

/* Botón hamburguesa (oculto en escritorio). */
.whm-nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 10px;
	cursor: pointer;
}
.whm-nav-toggle__box { display: block; width: 26px; height: 18px; position: relative; }
.whm-nav-toggle__bar,
.whm-nav-toggle__bar::before,
.whm-nav-toggle__bar::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--whm-white);
	border-radius: 2px;
	transition: transform .25s ease, opacity .25s ease;
}
.whm-nav-toggle__bar { top: 50%; transform: translateY(-50%); }
.whm-nav-toggle__bar::before { top: -8px; }
.whm-nav-toggle__bar::after  { top: 8px; }
/* Aspecto de "X" cuando el menú está abierto. */
.whm-nav-toggle[aria-expanded="true"] .whm-nav-toggle__bar { background: transparent; }
.whm-nav-toggle[aria-expanded="true"] .whm-nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.whm-nav-toggle[aria-expanded="true"] .whm-nav-toggle__bar::after  { top: 0; transform: rotate(-45deg); }

/* ============================ 5. PORTADA ============================== */

/* Espaciado estándar de sección. */
.whm-section { padding-block: var(--whm-section-gap); }
.whm-section__title {
	text-align: center;
	margin-bottom: .4em;
}
.whm-section__title--left { text-align: left; }
.whm-section__lead {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 2.5em;
	color: rgba(231, 246, 255, .85);
}

/* --- Hero (gran reclamo) --- */
.whm-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 60vh;
	padding-block: 120px;
	overflow: hidden;
	text-align: center;
}
.whm-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 25%;
	z-index: 0;
}
.whm-hero__overlay {
	position: absolute;
	inset: 0;
	background: var(--whm-overlay);
	opacity: .68; /* velo oscuro para que el texto se lea */
	z-index: 1;
}
.whm-hero__inner { position: relative; z-index: 2; }
.whm-hero__title { color: #fff; }
.whm-hero__text {
	max-width: 720px;
	margin: 0 auto 1.8em;
	font-size: 1.1rem;
	color: rgba(255, 255, 255, .92);
}

/* --- Carrusel de portafolio --- */
/* La portada abre con el carrusel: lo subimos (menos aire arriba) para que se
   vea nada más entrar, y reducimos el aire de abajo para que fluya al resto. */
.whm-portfolio { padding-top: clamp(20px, 3.5vw, 40px); padding-bottom: clamp(28px, 4vw, 52px); }

/* El carrusel es la pieza central: acotado y centrado, como un escaparate. */
.whm-slider {
	position: relative;
	margin: 1.4em auto 0;
	max-width: 1060px;
}
.whm-slider__viewport {
	overflow: hidden;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
	border: 1px solid rgba(255, 255, 255, .08);
}
.whm-slider__track {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.whm-slider__slide {
	flex: 0 0 100%;
	min-width: 100%;
}
.whm-slider__slide img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #333;
}
/* Sin JavaScript el track no se puede deslizar: mostramos las imágenes en
   vertical para que igualmente se vean todas. */
.whm-slider:not(.is-ready) .whm-slider__track { flex-direction: column; gap: 14px; }
.whm-slider:not(.is-ready) .whm-slider__arrow,
.whm-slider:not(.is-ready) .whm-slider__dots { display: none; }

.whm-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 52px; height: 52px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient( 135deg, rgba(0,0,0,.55), rgba(0,0,0,.35) );
	backdrop-filter: blur(3px);
	border: 1px solid rgba(255, 255, 255, .18);
	color: #fff;
	font-size: 1.9rem;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
	text-transform: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
	transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.whm-slider__arrow:hover {
	background: linear-gradient( 135deg, var(--whm-primary), var(--whm-primary) );
	transform: translateY(-50%) scale(1.08);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}
.whm-slider__arrow:focus-visible { outline: 3px solid rgba(255,255,255,.6); outline-offset: 2px; }
.whm-slider__arrow--prev { left: 16px; }
.whm-slider__arrow--next { right: 16px; }
.whm-slider__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 9px;
	margin-top: 18px;
}
.whm-slider__dot {
	width: 10px; height: 10px;
	padding: 0;
	border-radius: 50px;
	background: rgba(255, 255, 255, .28);
	border: 0;
	cursor: pointer;
	transition: background .18s ease, width .18s ease;
}
.whm-slider__dot:hover { background: rgba(255, 255, 255, .5); }
/* El punto activo se alarga (estilo "pastilla") para que se note cuál es. */
.whm-slider__dot.is-active { background: var(--whm-primary); width: 26px; }

/* En móvil, flechas un poco más pequeñas y pegadas al borde. */
@media ( max-width: 600px ) {
	.whm-slider__arrow { width: 42px; height: 42px; font-size: 1.5rem; }
	.whm-slider__arrow--prev { left: 8px; }
	.whm-slider__arrow--next { right: 8px; }
	.whm-slider__viewport { border-radius: 14px; }
}

/* --- Rejilla de tarjetas --- */
.whm-cards {
	display: grid;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.whm-cards--3 { grid-template-columns: repeat(3, 1fr); }
.whm-card {
	background: rgba(255, 255, 255, .03);
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, border-color .25s ease;
}
.whm-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 255, 255, .25);
}
.whm-card__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.whm-card__body { padding: 22px; }
.whm-card__title { margin-bottom: .5em; }
.whm-card__title a { color: var(--whm-text); }
.whm-card__title a:hover { color: var(--whm-primary-hover); }
.whm-card__text { color: rgba(231, 246, 255, .82); margin: 0; }
.whm-card__more {
	display: inline-block;
	margin-top: 1em;
	color: var(--whm-primary);
	font-weight: 600;
}

/* --- Acerca de --- */
.whm-about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}
.whm-about__media img { border-radius: 10px; width: 100%; }
.whm-checklist { list-style: none; margin: 1.5em 0 0; padding: 0; }
.whm-checklist__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	font-weight: 600;
}
.whm-checklist__icon { color: var(--whm-primary); flex: 0 0 auto; }

/* --- CTA final --- */
.whm-cta {
	position: relative;
	padding-block: var(--whm-section-gap);
	background-size: cover;
	background-position: center;
	text-align: center;
	overflow: hidden;
}
.whm-cta__overlay {
	position: absolute;
	inset: 0;
	background: var(--whm-overlay);
	opacity: .72;
}
.whm-cta__inner { position: relative; z-index: 2; }
.whm-cta__title { color: #fff; }
.whm-cta__text {
	max-width: 620px;
	margin: 0 auto 1.6em;
	color: rgba(255, 255, 255, .92);
}

/* --- Botón "fantasma" (borde, sin relleno) --- */
.whm-button--ghost {
	background: transparent;
	color: var(--whm-text);
	border-color: var(--whm-muted);
}
.whm-button--ghost:hover { background: rgba(255,255,255,.06); border-color: var(--whm-primary); color: var(--whm-text); }

/* --- Enlace bajo las tarjetas de servicios de la portada --- */
.whm-services__more { text-align: center; margin-top: 34px; }

/* ====================== CONTACTO ====================== */
.whm-contact { padding-block: 60px; }
.whm-contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.whm-contact__form-wrap h2, .whm-contact__info h2 { margin-bottom: .8em; }

/* Avisos de resultado del formulario. */
.whm-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; line-height: 1.5; }
.whm-notice--ok { background: rgba(46, 204, 113, .14); border: 1px solid rgba(46,204,113,.55); color: #c9f7dd; display: flex; align-items: flex-start; gap: 12px; }
.whm-notice--err { background: rgba(255, 107, 107, .12); border: 1px solid rgba(255,107,107,.5); color: #ffc9c9; }
.whm-notice__icon {
	flex: 0 0 auto;
	width: 28px; height: 28px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: #2ecc71; color: #06371d;
	font-weight: 800; font-size: 1rem;
}
/* Captcha: el número de la suma se ve claro, campo estrecho. */
.whm-captcha label { font-weight: 600; }

/* Formulario. */
.whm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.whm-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.whm-field label { font-weight: 600; font-size: .92rem; color: rgba(231,246,255,.85); }
/* La trampa anti-robots no se ve. */
.whm-hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }

/* Columna de datos del negocio. */
.whm-contact__list { list-style: none; margin: 0 0 22px; padding: 0; }
.whm-contact__list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.whm-contact__list strong { color: var(--whm-text); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.whm-contact__list a { color: var(--whm-primary); }
.whm-contact__map { margin: 4px 0 18px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.whm-contact__map iframe { display: block; filter: grayscale(.2); }

/* ====================== PÁGINA DE SERVICIOS ====================== */
.whm-services-page { padding-block: 60px; }
.whm-services-page__intro { max-width: 820px; font-size: 1.08rem; color: rgba(231,246,255,.9); margin-bottom: 40px; }
.whm-services-list { display: grid; gap: 26px; }
.whm-service { display: flex; gap: 20px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 24px; transition: border-color .25s ease; }
.whm-service:hover { border-color: rgba(255,255,255,.22); }
.whm-service__icon-wrap { flex: 0 0 auto; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; background: rgba(0,133,255,.12); color: var(--whm-primary); border-radius: 12px; }
.whm-service__title { font-size: 1.3rem; margin-bottom: .3em; }
.whm-service__lead { font-weight: 600; color: var(--whm-text); margin-bottom: .5em; }
.whm-service__body { color: rgba(231,246,255,.82); margin: 0 0 .6em; }
/* Título de servicio enlazado + enlace "Ver más". */
.whm-service__title a { color: inherit; text-decoration: none; }
.whm-service__title a:hover { color: var(--whm-primary); }
.whm-service--link:hover { border-color: rgba(255,255,255,.28); }
.whm-service__more, .whm-card__more {
	display: inline-flex; align-items: center; gap: 4px;
	color: var(--whm-primary); font-weight: 700; text-decoration: none; font-size: .95rem;
}
.whm-service__more:hover span, .whm-card__more:hover span { transform: translateX(3px); }
.whm-service__more span, .whm-card__more span { transition: transform .18s ease; }
/* Tarjetas de la portada enlazadas: título clicable + "Ver más". */
.whm-card__title a { color: inherit; text-decoration: none; }
.whm-card__title a:hover { color: var(--whm-primary); }
.whm-card--link:hover { transform: translateY(-3px); }
.whm-card__more { margin-top: 8px; }
.whm-services-page__foot { text-align: center; margin-top: 44px; }
.whm-services-page__foot p { margin-bottom: 1em; color: rgba(231,246,255,.85); }

/* ====================== PÁGINA NOSOTROS ====================== */
.whm-about-page { padding-block: 60px; }
.whm-about-page section { margin-bottom: 46px; max-width: 900px; }
.whm-about-page h2 { margin-bottom: .6em; }
.whm-about-page p { color: rgba(231,246,255,.9); }
.whm-checklist--about { margin-top: 1em; }
.whm-checklist--about .whm-checklist__item { align-items: flex-start; }
.whm-footer__nap a { color: rgba(231,246,255,.82); }

/* ====================== PÁGINAS DE ATERRIZAJE (SEO) ====================== */
.whm-landing { padding-block: 50px; max-width: 900px; }
.whm-landing__hero-img { margin-bottom: 28px; border-radius: 12px; overflow: hidden; }
.whm-landing__hero-img img { width: 100%; height: auto; display: block; }
.whm-landing__intro { font-size: 1.12rem; color: var(--whm-text); margin-bottom: 22px; }
.whm-landing__intro p { margin-bottom: .8em; }
.whm-landing__cta-top { margin-bottom: 40px; }
.whm-landing__section { margin-bottom: 34px; }
.whm-landing__section h2 { margin-bottom: .5em; }
.whm-landing__section p { color: rgba(231,246,255,.88); }
.whm-landing__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.whm-landing__list li { position: relative; padding-left: 26px; color: rgba(231,246,255,.9); }
.whm-landing__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--whm-primary); font-weight: 700; }

/* Preguntas frecuentes desplegables. */
.whm-landing__faq { margin-top: 40px; }
.whm-faq { border: 1px solid rgba(255,255,255,.09); border-radius: 10px; margin-bottom: 12px; background: rgba(255,255,255,.03); overflow: hidden; }
.whm-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-family: var(--whm-font-heading); list-style: none; position: relative; }
.whm-faq summary::-webkit-details-marker { display: none; }
.whm-faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 1.4rem; color: var(--whm-primary); }
.whm-faq[open] summary::after { content: "–"; }
.whm-faq__a { padding: 0 20px 16px; color: rgba(231,246,255,.85); }
.whm-landing__links { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(231,246,255,.85); }
.whm-landing__links a { color: var(--whm-primary); }

@media (max-width: 640px) {
	.whm-landing__list { grid-template-columns: 1fr; }
}

/* ================= 6. PÁGINAS, BLOG, ENTRADA, COMENTARIOS ============= */

/* Hero de título para páginas y archivos. */
.whm-page-hero {
	background: var(--whm-dark);
	padding-block: 70px;
	text-align: center;
}
.whm-page-hero__title { margin: 0; }
.whm-page-hero__subtitle { margin: .6em 0 0; color: rgba(231, 246, 255, .8); }

.whm-page__content,
.whm-single__content { padding-block: 50px; }
.whm-page__content { max-width: var(--whm-container); }

.whm-featured-image { margin-bottom: 30px; }
.whm-featured-image img { border-radius: 10px; width: 100%; }

/* Firma de la entrada. */
.whm-meta {
	font-size: .9rem;
	color: rgba(231, 246, 255, .7);
	margin-bottom: 1em;
}
.whm-meta a { color: rgba(231, 246, 255, .85); }
.whm-meta__sep { margin-inline: 6px; }

/* Blog / listados. */
.whm-blog { padding-block: 60px; }
.whm-empty { text-align: center; padding: 40px 0; }

/* Entrada individual. */
.whm-single__header { padding-block: 40px 0; text-align: center; }
.whm-single__footer {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: .9rem;
}
.whm-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-block: 30px;
}
.whm-post-nav a { color: var(--whm-primary); }

/* Paginación numerada. */
.pagination, .navigation.pagination { padding-block: 30px; }
.nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--whm-muted);
	border-radius: var(--whm-radius);
	color: var(--whm-text);
}
.page-numbers.current,
.page-numbers:hover {
	background: var(--whm-primary);
	border-color: var(--whm-primary);
	color: #fff;
}

/* Comentarios. */
.whm-comments { padding-block: 40px; }
.whm-comments__list { list-style: none; margin: 0 0 30px; padding: 0; }
.whm-comments__list .children { list-style: none; padding-left: 24px; }
.whm-comments__list li { margin-bottom: 20px; }
.whm-comments .comment-body {
	background: rgba(255, 255, 255, .03);
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: 8px;
	padding: 18px;
}
.whm-search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.whm-search-form__field { flex: 1 1 220px; }

/* 404. */
.whm-404 { padding-block: 60px; text-align: center; max-width: 640px; }
.whm-404__links { margin-top: 24px; }

/* ============================== 7. PIE =============================== */
.whm-footer { background: var(--whm-dark); }
.whm-footer__widgets { padding-block: 45px; }
.whm-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}
.whm-footer-widget__title {
	font-size: 1.2rem;
	margin-bottom: .8em;
}
.whm-footer-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.whm-footer-widget li { margin-bottom: 8px; }
.whm-footer-widget a { color: rgba(231, 246, 255, .82); }
.whm-footer-widget a:hover { color: var(--whm-primary-hover); }
.whm-footer__bottom {
	border-top: 1px solid var(--whm-bg);
	padding-block: 20px;
	font-size: .9rem;
	color: rgba(231, 246, 255, .75);
	text-align: center;
}

/* Botón "volver arriba". */
.whm-scroll-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 44px; height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--whm-white);
	color: var(--whm-dark);
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
	z-index: 90;
}
.whm-scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.whm-scroll-top:hover { color: var(--whm-primary); }

/* ============================ 8. RESPONSIVE ========================== */

/* Tablet y móvil: el menú pasa a hamburguesa. */
@media (max-width: 921px) {
	:root { --whm-section-gap: 64px; }

	.whm-nav-toggle { display: block; }

	/* En móvil, el título y el logo se hacen algo más pequeños para que quepan
	   junto a la hamburguesa sin desbordar. */
	.whm-site-title { font-size: 1.2rem; }
	.whm-header__branding .custom-logo { width: 48px; height: 48px; }

	/* El menú se despliega debajo de la cabecera (tipo "dropdown"). */
	.whm-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--whm-dark);
		padding: 10px 0;
		border-top: 1px solid rgba(255, 255, 255, .06);
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		transition: max-height .3s ease, opacity .3s ease, visibility .3s;
	}
	.whm-nav.is-open {
		max-height: 80vh;
		overflow-y: auto;
		opacity: 1;
		visibility: visible;
	}
	.whm-nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.whm-nav__list a { padding: 12px 20px; }

	/* En móvil, los submenús se muestran siempre desplegados (acordeón simple). */
	.whm-nav__list ul.sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		background: rgba(0, 0, 0, .25);
		padding-left: 10px;
	}
	.whm-header__cta { margin: 10px 20px; }

	.whm-about__grid { grid-template-columns: 1fr; gap: 30px; }
	.whm-contact__grid { grid-template-columns: 1fr; gap: 30px; }
	.whm-cards--3 { grid-template-columns: repeat(2, 1fr); }
	.whm-footer__grid { grid-template-columns: repeat(2, 1fr); }
	html { font-size: 100%; } /* cuerpo 16px en pantallas medianas/pequeñas */
}

/* Móvil pequeño: todo a una columna. */
@media (max-width: 544px) {
	.whm-cards--3 { grid-template-columns: 1fr; }
	.whm-footer__grid { grid-template-columns: 1fr; }
	.whm-hero { min-height: 50vh; padding-block: 80px; }
	.whm-post-nav { flex-direction: column; }
	.whm-form__row { grid-template-columns: 1fr; }
	.whm-service { flex-direction: column; gap: 12px; }
}

/* ================================================================== */
/*  MODERNIZACIÓN: animaciones, efectos y toque tecnológico            */
/* ================================================================== */

/* --- Revelado al hacer scroll (lo activa el JS con .whm-js) --- */
.whm-js .whm-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
.whm-js .whm-reveal.is-visible { opacity: 1; transform: none; }

/* --- Títulos con degradado (look tecnológico) --- */
.whm-section__title, .whm-page-hero__title {
	background: linear-gradient(100deg, var(--whm-text) 30%, var(--whm-primary) 130%);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
}

/* --- Botones: sombra neutra y elevación al pasar el cursor (sin brillo azul) --- */
.whm-button { box-shadow: 0 4px 12px rgba(0, 0, 0, .18); transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.whm-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .28); }

/* --- Tarjetas y servicios: borde que se ilumina al pasar el cursor --- */
.whm-card, .whm-service { position: relative; }
.whm-card::after, .whm-service::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0); transition: box-shadow .3s ease; pointer-events: none; }
/* Al pasar el cursor, solo un borde claro y sutil; sin brillo azul detrás. */
.whm-card:hover::after, .whm-service:hover::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.whm-service__icon-wrap { transition: transform .3s ease, background-color .3s ease; }
.whm-service:hover .whm-service__icon-wrap { transform: translateY(-3px) scale(1.06); }

/* --- Rejilla tecnológica muy sutil sobre el hero y el CTA --- */
.whm-hero .whm-hero__inner, .whm-cta__inner { position: relative; z-index: 2; }
.whm-hero::after, .whm-cta::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background-image: linear-gradient( rgba(255, 255, 255, .04) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, .04) 1px, transparent 1px );
	background-size: 46px 46px;
	-webkit-mask-image: radial-gradient( circle at 50% 45%, #000, transparent 72% );
	mask-image: radial-gradient( circle at 50% 45%, #000, transparent 72% );
}

/* --- Barra de estadísticas (números que suben) --- */
.whm-stats { background: linear-gradient(120deg, #16233f, #0f172a); padding-block: 58px; position: relative; overflow: hidden; }
.whm-stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .05), transparent 40%), radial-gradient(circle at 85% 70%, rgba(255, 255, 255, .04), transparent 45%); }
.whm-stats__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.whm-stats__num { font-family: var(--whm-font-heading); font-weight: 700; font-size: 2.8rem; line-height: 1; background: linear-gradient(120deg, #fff, var(--whm-primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.whm-stats__label { color: rgba(231, 246, 255, .8); margin-top: 8px; font-size: .95rem; }

/* --- Subrayado animado en el menú --- */
@media (min-width: 922px) {
	.whm-nav__list > li > a { position: relative; }
	.whm-nav__list > li > a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; background: var(--whm-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
	.whm-nav__list > li > a:hover::after { transform: scaleX(1); }
}

/* --- Banner "vendemos vehículos" (destacado) --- */
.whm-sell-banner { position: relative; overflow: hidden; margin: 0 0 40px; padding: 30px 34px; border-radius: 14px; background: linear-gradient(120deg, var(--whm-primary), var(--whm-primary-2)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.whm-sell-banner::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 30px 30px; -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); }
.whm-sell-banner__text { position: relative; }
.whm-sell-banner__text strong { display: block; font-family: var(--whm-font-heading); font-size: 1.5rem; }
.whm-sell-banner .whm-button { position: relative; background: #fff; color: var(--whm-primary); border-color: #fff; }
.whm-sell-banner .whm-button:hover { background: rgba(255,255,255,.9); }

@media (max-width: 640px) { .whm-stats__grid { grid-template-columns: 1fr; gap: 22px; } }

/* Respeto por quien prefiere menos animaciones (accesibilidad). */
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.whm-js .whm-reveal { opacity: 1 !important; transform: none !important; }
}
