/* ==========================================================================
   Base: tokens, tipografía, layout, cabecera, pie y botones.
   El acento se inyecta desde inc/datos.php como --acento.
   ========================================================================== */

:root {
	--fondo: #0b0e13;
	--fondo-2: #11151c;
	--superficie: #161b24;
	--superficie-2: #1c222d;
	--borde: #262e3a;
	--borde-suave: #1e2530;
	--texto: #e8edf4;
	--texto-2: #9aa6b6;
	--texto-3: #6b7788;
	--verde: #25d366;
	--exito: #34d399;
	--radio: 14px;
	--radio-sm: 9px;
	--ancho: 1240px;
	--sombra: 0 18px 40px -20px rgba(0, 0, 0, 0.85);
	--fuente: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fuente-cifra: "Barlow Condensed", "Oswald", "Arial Narrow", var(--fuente);
	--acento: #ff7a18;
	--acento-claro: #ffa24d;
}

/* --- Reset suave sobre Astra ---------------------------------------------- */

html {
	scroll-behavior: smooth;
}

body,
body.wp-singular,
body.woocommerce,
body.woocommerce-page {
	background: var(--fondo);
	color: var(--texto);
	font-family: var(--fuente);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body #page,
body .site-content,
body .ast-container {
	background: transparent;
	max-width: none;
	padding: 0;
	margin: 0;
	display: block;
}

body #content,
body #primary,
body .site-main,
body .entry-content {
	margin: 0;
	padding: 0;
	max-width: none;
	width: 100%;
}

/* Astra imprime su propia cabecera y pie: usamos los nuestros. */
body .site-header,
body .site-footer,
body .ast-small-footer,
body .ast-above-header,
body .ast-below-header,
body .entry-header,
body .ast-single-post-order,
body .woocommerce-breadcrumb,
body .woocommerce-products-header {
	display: none !important;
}

h1, h2, h3, h4 {
	color: var(--texto);
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin: 0 0 0.5em;
	font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

p { margin: 0 0 1em; color: var(--texto-2); }

a { color: inherit; text-decoration: none; }

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

.auto-contenedor {
	width: min(100% - 2.5rem, var(--ancho));
	margin-inline: auto;
}

.auto-seccion { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.auto-seccion__titulo { text-align: center; margin-bottom: 2.5rem; }
.auto-seccion__titulo p { max-width: 58ch; margin-inline: auto; }

.auto-etiqueta {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--acento);
	margin-bottom: 0.6rem;
}

/* --- Botones -------------------------------------------------------------- */

.auto-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.85rem 1.5rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 650;
	font-size: 0.97rem;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.auto-btn:hover { transform: translateY(-2px); }
.auto-btn:focus-visible { outline: 2px solid var(--acento-claro); outline-offset: 3px; }

.auto-btn--acento {
	background: var(--acento);
	color: #14100c;
	box-shadow: 0 12px 26px -14px var(--acento);
}
.auto-btn--acento:hover { background: var(--acento-claro); }

.auto-btn--wa { background: var(--verde); color: #06240f; }
.auto-btn--wa:hover { background: #3ce07a; }

.auto-btn--linea {
	border-color: var(--borde);
	color: var(--texto);
	background: rgba(255, 255, 255, 0.02);
}
.auto-btn--linea:hover { border-color: var(--acento); color: var(--acento); }

.auto-btn--bloque { width: 100%; }

.auto-btn svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* --- Cabecera ------------------------------------------------------------- */

.auto-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(11, 14, 19, 0.88);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--borde-suave);
}

.auto-header__barra {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 72px;
}

.auto-logo {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-family: var(--fuente-cifra);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	flex: none;
}
.auto-logo img { max-height: 44px; width: auto; }
.auto-logo__marca { color: var(--texto); }
.auto-logo__punto { color: var(--acento); }

.auto-nav { margin-left: auto; }
.auto-nav ul {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.auto-nav a {
	font-size: 0.94rem;
	font-weight: 550;
	color: var(--texto-2);
	transition: color 0.15s ease;
}
.auto-nav a:hover,
.auto-nav .current-menu-item > a {
	color: var(--texto);
}

.auto-header__acciones { display: flex; align-items: center; gap: 0.7rem; flex: none; }

.auto-header__tel {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-family: var(--fuente-cifra);
	font-size: 1.15rem;
	letter-spacing: 0.02em;
	color: var(--texto);
}
.auto-header__tel svg { width: 1.05em; height: 1.05em; fill: var(--acento); }

.auto-menu-btn {
	display: none;
	background: none;
	border: 1px solid var(--borde);
	border-radius: var(--radio-sm);
	padding: 0.5rem 0.6rem;
	cursor: pointer;
}
.auto-menu-btn span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--texto);
	margin: 4px 0;
	border-radius: 2px;
}

/* --- Pie ------------------------------------------------------------------ */

.auto-footer {
	background: var(--fondo-2);
	border-top: 1px solid var(--borde-suave);
	padding: 3.5rem 0 0;
	margin-top: 3rem;
}

.auto-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2.5rem;
	padding-bottom: 2.5rem;
}

.auto-footer h4 {
	font-size: 0.8rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--texto-3);
	margin-bottom: 1rem;
}

.auto-footer ul { list-style: none; margin: 0; padding: 0; }
.auto-footer li { margin-bottom: 0.6rem; color: var(--texto-2); font-size: 0.95rem; }
.auto-footer a:hover { color: var(--acento); }

.auto-footer__legal {
	border-top: 1px solid var(--borde-suave);
	padding: 1.2rem 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
	justify-content: space-between;
	font-size: 0.85rem;
	color: var(--texto-3);
}

.auto-redes { display: flex; gap: 0.6rem; margin-top: 1rem; }
.auto-redes a {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 1px solid var(--borde);
	border-radius: 50%;
}
.auto-redes svg { width: 17px; height: 17px; fill: var(--texto-2); }
.auto-redes a:hover { border-color: var(--acento); }
.auto-redes a:hover svg { fill: var(--acento); }

/* --- Piezas compartidas --------------------------------------------------- */

.auto-precio {
	font-family: var(--fuente-cifra);
	font-weight: 700;
	letter-spacing: 0.005em;
	color: var(--texto);
	font-variant-numeric: tabular-nums;
}
.auto-precio--consultar {
	color: var(--acento);
	font-family: var(--fuente);
	font-size: 0.95em;
	font-weight: 650;
	letter-spacing: 0;
}

.auto-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.07);
	color: var(--texto-2);
	backdrop-filter: blur(6px);
}
.auto-badge--acento { background: var(--acento); color: #14100c; }
.auto-badge--vendido { background: #b91c1c; color: #fff; }

.auto-aviso {
	border: 1px solid var(--exito);
	background: rgba(52, 211, 153, 0.09);
	color: var(--texto);
	border-radius: var(--radio);
	padding: 1rem 1.2rem;
	margin-bottom: 1.5rem;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1024px) {
	.auto-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.auto-menu-btn { display: block; order: 3; }
	.auto-header__tel span { display: none; }

	.auto-nav {
		order: 4;
		width: 100%;
		margin-left: 0;
		display: none;
		padding-bottom: 1rem;
	}
	.auto-nav.auto-nav--abierto { display: block; }
	.auto-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.auto-nav li { border-top: 1px solid var(--borde-suave); }
	.auto-nav a { display: block; padding: 0.9rem 0.2rem; }

	.auto-header__barra { flex-wrap: wrap; gap: 0.8rem; }
}

@media (max-width: 640px) {
	.auto-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
	.auto-contenedor { width: min(100% - 1.8rem, var(--ancho)); }
}
