/* ============================================================
   SEMINUEVOS ARCHIVE + DETALLE — réplica exacta del diseño React
   (Seminuevos.tsx + DetalleSeminuevo.tsx)
   ============================================================ */

.ae-page-seminuevos,
.ae-page-detalle-seminuevo {
	--sn-red: #B81F2E;
	--sn-red-hover: #B91C1C;
	--sn-black: #1C1C1C;
	--sn-charcoal: #2A2A2A;
	--sn-ivory: #F8F6F3;
	--sn-gray-50: #f9fafb;
	--sn-gray-100: #f3f4f6;
	--sn-gray-200: #e5e7eb;
	--sn-gray-300: #d1d5db;
	--sn-gray-400: #9ca3af;
	--sn-gray-500: #6b7280;
	--sn-gray-600: #4b5563;
	--sn-gray-700: #374151;
	background: #f8f9fa;
	color: var(--sn-black);
	font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

.ae-page-seminuevos h1,
.ae-page-seminuevos h2,
.ae-page-seminuevos h3,
.ae-page-seminuevos h4,
.ae-page-detalle-seminuevo h1,
.ae-page-detalle-seminuevo h2,
.ae-page-detalle-seminuevo h3,
.ae-page-detalle-seminuevo h4 {
	font-family: "Oswald", "Helvetica Neue", Arial, sans-serif;
	letter-spacing: -0.02em;
	margin: 0;
}

/* Contenedor principal del archive: 1220px (match React max-w) */
.ae-page-seminuevos .ae-section-inner {
	max-width: 1220px;
}

/* ============================================================
   ARCHIVE — HERO
   ============================================================ */

.ae-sn-hero {
	position: relative;
	height: 400px;
	display: flex;
	align-items: center;
	overflow: hidden;
}

@media (min-width: 768px) {
	.ae-sn-hero { height: 650px; }
}

.ae-sn-hero-bg,
.ae-sn-hero-bg img,
.ae-sn-hero-overlay,
.ae-sn-hero-gradient {
	position: absolute;
	inset: 0;
}

.ae-sn-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* bg-gradient-to-b md:bg-gradient-to-r from-charcoal-dark/90 via-charcoal-dark/60 to-transparent */
.ae-sn-hero-overlay {
	background: linear-gradient(to bottom, rgba(42,42,42,0.9), rgba(42,42,42,0.6), transparent);
}

@media (min-width: 768px) {
	.ae-sn-hero-overlay {
		background: linear-gradient(to right, rgba(42,42,42,0.9), rgba(42,42,42,0.6), transparent);
	}
}

/* Gradiente inferior solo móvil: h-1/3 bg-gradient-to-t from-charcoal-dark/40 */
.ae-sn-hero-gradient {
	display: block;
	height: 33.333%;
	top: auto;
	background: linear-gradient(to top, rgba(42,42,42,0.4), transparent);
	pointer-events: none;
}

@media (min-width: 768px) {
	.ae-sn-hero-gradient { display: none; }
}

.ae-sn-hero-inner {
	position: relative;
	z-index: 10;
	max-width: 1220px;
}

/* Kicker: h-px w-12 bg-toyota-red + text-[10px] tracking-[0.3em] text-white/60 */
.ae-sn-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.ae-sn-kicker-line {
	display: block;
	width: 48px;
	height: 1px;
	background: var(--sn-red);
	flex-shrink: 0;
}

.ae-sn-kicker-text {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.6);
}

/* text-5xl md:text-7xl lg:text-[5.5rem] !leading-[1.15] */
.ae-sn-hero-title {
	font-size: 48px;
	font-weight: 900;
	line-height: 1.15;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 24px;
}

@media (min-width: 768px) {
	.ae-sn-hero-title { font-size: 72px; }
}

@media (min-width: 1024px) {
	.ae-sn-hero-title { font-size: 88px; }
}

/* text-lg md:text-xl text-gray-300 max-w-2xl font-light */
.ae-sn-hero-subtitle {
	font-size: 18px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--sn-gray-300);
	max-width: 672px;
	margin: 0;
}

@media (min-width: 768px) {
	.ae-sn-hero-subtitle { font-size: 20px; }
}

/* ============================================================
   ARCHIVE — BREADCRUMB
   (React: max-w-[1400px] px-4 pt-6 md:pt-8 mb-8)
   ============================================================ */

.ae-sn-breadcrumbs {
	max-width: 1220px;
	margin: 0 auto;
	padding: 24px 16px 0;
}

@media (min-width: 768px) {
	.ae-sn-breadcrumbs { padding-top: 32px; }
}

.ae-sn-breadcrumbs .ae-sn-breadcrumbs-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--sn-gray-400);
	padding-bottom: 32px;
}

.ae-sn-breadcrumbs a {
	color: var(--sn-gray-400);
	text-decoration: none;
	transition: color 0.3s ease;
}

.ae-sn-breadcrumbs a:hover { color: var(--sn-red); }

.ae-sn-breadcrumbs span { color: var(--sn-black); }

/* ============================================================
   ARCHIVE — GRID + FILTERS
   ============================================================ */

.ae-sn-grid-section {
	padding-bottom: 96px;
}

/* Layout: flex flex-col lg:flex-row gap-8 lg:gap-12 */
.ae-sn-layout {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

@media (min-width: 1024px) {
	.ae-sn-layout {
		flex-direction: row;
		gap: 48px;
		align-items: flex-start;
	}
}

/* Sidebar: lg:w-[280px] sticky top-24 */
.ae-sn-sidebar {
	width: 100%;
}

@media (min-width: 1024px) {
	.ae-sn-sidebar {
		width: 280px;
		flex-shrink: 0;
		position: sticky;
		top: 96px;
	}
}

.ae-sn-filter-card {
	background: #fff;
	border: 1px solid var(--sn-gray-200);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ae-sn-filter-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid var(--sn-gray-200);
	background: rgba(249,250,251,0.5);
}

.ae-sn-filter-title {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--sn-red);
}

.ae-sn-filter-title span {
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--sn-black);
}

.ae-sn-filter-clear {
	appearance: none;
	border: none;
	background: transparent;
	color: var(--sn-red);
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	cursor: pointer;
}

/* Sin borde ni padding del reset.css del theme (especificidad 0,2,0 > 0,1,1) */
.ae-sn-filter-card .ae-sn-filter-clear {
	border: none;
	border-radius: 0;
	background: transparent;
	color: var(--sn-red);
	padding: 0;
}

.ae-sn-filter-clear:hover { text-decoration: underline; }

.ae-sn-filter-body {
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.ae-sn-filter-group h4 {
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--sn-black);
	margin-bottom: 16px;
}

.ae-sn-filter-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ae-sn-filter-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
}

.ae-sn-filter-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* Checkbox 20px: rounded border-gray-300, checked bg-toyota-black */
.ae-sn-checkbox {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 1px;
	border-radius: 5px;
	border: 1px solid var(--sn-gray-300);
	background: #fff;
	position: relative;
	transition: all 0.2s ease;
}

.ae-sn-filter-option input:checked + .ae-sn-checkbox {
	background: var(--sn-black);
	border-color: var(--sn-black);
}

.ae-sn-filter-option input:checked + .ae-sn-checkbox::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Color dot 20px circle border-gray-200 */
.ae-sn-color-dot {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 1px;
	border-radius: 50%;
	border: 1px solid var(--sn-gray-200);
}

/* text-sm font-bold uppercase tracking-tight */
.ae-sn-option-label {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: var(--sn-gray-500);
	transition: color 0.2s ease;
	line-height: 1.4;
}

.ae-sn-filter-option:hover .ae-sn-option-label,
.ae-sn-filter-option input:checked ~ .ae-sn-option-label {
	color: var(--sn-black);
}

.ae-sn-option-label em {
	font-style: normal;
	font-weight: 500;
	color: var(--sn-gray-400);
	text-transform: none;
	letter-spacing: 0;
	margin-left: 4px;
}

/* Content */
.ae-sn-content {
	flex: 1;
	min-width: 0;
}

/* Toolbar: bg-white p-2 pl-6 rounded-2xl border-gray-200 */
.ae-sn-toolbar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	background: #fff;
	border: 1px solid var(--sn-gray-200);
	border-radius: 16px;
	padding: 8px 8px 8px 24px;
	margin-bottom: 32px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

@media (min-width: 640px) {
	.ae-sn-toolbar {
		flex-direction: row;
	}
}

.ae-sn-count-badge {
	background: var(--sn-black);
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0;
	padding: 12px 24px;
	border-radius: 12px;
	box-shadow: 0 4px 10px -2px rgba(0,0,0,0.15);
	white-space: nowrap;
}

.ae-sn-sort {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}

@media (min-width: 640px) {
	.ae-sn-sort { width: auto; }
}

.ae-sn-sort-label {
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--sn-gray-500);
	white-space: nowrap;
	display: none;
}

@media (min-width: 640px) {
	.ae-sn-sort-label { display: block; }
}

/* select: bg-gray-50 border-gray-200 rounded-xl px-5 py-3 pr-10 text-[11px] tracking-[0.1em] */
.ae-sn-sort select {
	width: 100%;
	background: var(--sn-gray-50);
	border: 1px solid var(--sn-gray-200);
	border-radius: 12px;
	padding: 12px 40px 12px 20px;
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--sn-black);
	appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}

/* Grid: grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 lg:gap-8 min-h-[400px] */
.ae-sn-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	min-height: 400px;
}

@media (min-width: 768px) {
	.ae-sn-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 1280px) {
	.ae-sn-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* Card: bg-white rounded-[2rem] border-gray-200 hover:shadow + hover:-translate-y-1 */
.ae-sn-card {
	background: #fff;
	border: 1px solid var(--sn-gray-200);
	border-radius: 32px;
	overflow: hidden;
	transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.ae-sn-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
}

.ae-sn-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* Imagen: aspect-[4/3] bg-gradient-to-b from-gray-100 to-[#e5e5e5] p-6 */
.ae-sn-card-image {
	position: relative;
	aspect-ratio: 4 / 3;
	background: linear-gradient(to bottom, var(--sn-gray-100), #e5e5e5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	border-bottom: 1px solid var(--sn-gray-100);
	overflow: hidden;
}

.ae-sn-card-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform 0.7s ease;
	filter: drop-shadow(0 12px 16px rgba(0,0,0,0.1));
}

.ae-sn-card:hover .ae-sn-card-image img {
	transform: scale(1.05);
}

/* Badges: absolute inset-x-4 bottom-4 flex justify-between items-end */
.ae-sn-card-badges {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 8px;
}

/* km: bg-black/90 backdrop-blur text-[10px] tracking-widest rounded-lg shadow-xl border-white/10 */
.ae-sn-card-km,
.ae-sn-card-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(0,0,0,0.9);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	border: 1px solid rgba(255,255,255,0.1);
}

.ae-sn-card-tag {
	background: var(--sn-red);
	border: none;
}

/* Body: p-6 md:p-8 flex-col items-center text-center */
.ae-sn-card-body {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

@media (min-width: 768px) {
	.ae-sn-card-body { padding: 32px; }
}

.ae-sn-card-brand {
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--sn-gray-500);
	margin-bottom: 6px;
}

/* text-xl md:text-2xl font-black uppercase tracking-tight */
.ae-sn-card-title {
	font-size: 20px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: var(--sn-black);
	margin-bottom: 6px;
}

@media (min-width: 768px) {
	.ae-sn-card-title { font-size: 24px; }
}

/* text-[10px] font-bold text-gray-400 uppercase tracking-wider */
.ae-sn-card-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 10px;
	font-weight: 700;
	color: var(--sn-gray-400);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
}

.ae-sn-card-footer {
	margin-top: auto;
	width: 100%;
	padding-top: 24px;
}

/* text-3xl font-black tracking-tighter */
.ae-sn-card-price {
	font-size: 30px;
	font-weight: 900;
	letter-spacing: -0.05em;
	color: var(--sn-black);
	margin-bottom: 24px;
}

/* CTA: bg-white border-2 border-toyota-black rounded-xl text-[11px] tracking-widest, hover invert */
.ae-sn-card-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: #fff;
	border: 2px solid var(--sn-black);
	color: var(--sn-black);
	padding: 14px 20px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	transition: all 0.3s ease;
	gap: 8px;
}

.ae-sn-card:hover .ae-sn-card-btn {
	background: var(--sn-black);
	color: #fff;
}

/* Empty state */
.ae-sn-empty {
	grid-column: 1 / -1;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 0;
	text-align: center;
}

.ae-sn-empty-icon {
	width: 80px;
	height: 80px;
	background: var(--sn-gray-100);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sn-gray-300);
	margin-bottom: 16px;
}

.ae-sn-empty h3 {
	font-size: 20px;
	font-weight: 900;
	text-transform: uppercase;
	color: var(--sn-gray-400);
}

.ae-sn-empty button {
	appearance: none;
	border: none;
	background: transparent;
	color: var(--sn-red);
	font-weight: 900;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.15em;
	margin-top: 16px;
	cursor: pointer;
}

.ae-sn-empty button:hover { text-decoration: underline; }

/* Count: mt-12 pt-8 border-t border-gray-200 text-sm text-gray-500 */
.ae-sn-count {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--sn-gray-200);
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	color: var(--sn-gray-500);
}

/* ============================================================
   DETALLE — BREADCRUMBS
   (bg-gray-50 border-b border-gray-200 py-3 text-[10px] tracking-widest text-gray-500)
   ============================================================ */

.ae-sd-breadcrumbs {
	background: var(--sn-gray-50);
	border-bottom: 1px solid var(--sn-gray-200);
	padding: 12px 0;
}

.ae-sd-breadcrumbs .ae-section-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--sn-gray-500);
}

.ae-sd-breadcrumbs a {
	color: var(--sn-gray-500);
	text-decoration: none;
	transition: color 0.3s ease;
}

.ae-sd-breadcrumbs a:hover { color: var(--sn-red); }

.ae-sd-breadcrumbs span { color: var(--sn-black); }

/* ============================================================
   DETALLE — HERO
   ============================================================ */

.ae-sd-hero {
	position: relative;
	min-height: 400px;
	display: flex;
	align-items: center;
	overflow: hidden;
}

@media (min-width: 768px) {
	.ae-sd-hero { min-height: 650px; }
}

.ae-sd-hero-bg,
.ae-sd-hero-bg img,
.ae-sd-hero-overlay,
.ae-sd-hero-gradient {
	position: absolute;
	inset: 0;
}

.ae-sd-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.ae-sd-hero-overlay {
	background: linear-gradient(to bottom, rgba(42,42,42,0.9), rgba(42,42,42,0.6), transparent);
}

@media (min-width: 768px) {
	.ae-sd-hero-overlay {
		background: linear-gradient(to right, rgba(42,42,42,0.9), rgba(42,42,42,0.6), transparent);
	}
}

.ae-sd-hero-gradient {
	background: linear-gradient(to top, rgba(42,42,42,0.4), transparent);
	pointer-events: none;
}

@media (min-width: 768px) {
	.ae-sd-hero-gradient { display: none; }
}

.ae-sd-hero-inner {
	position: relative;
	z-index: 10;
	max-width: 1220px;
	padding-top: 80px;
	padding-bottom: 80px;
}

.ae-sd-hero-content { max-width: 640px; }

.ae-sd-hero-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.ae-sd-hero-kicker span:last-child {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.6);
}

/* text-5xl md:text-7xl lg:text-8xl !leading-[0.9] */
.ae-sd-hero-title {
	font-size: 48px;
	font-weight: 900;
	line-height: 0.9;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 24px;
}

@media (min-width: 768px) { .ae-sd-hero-title { font-size: 72px; } }
@media (min-width: 1024px) { .ae-sd-hero-title { font-size: 96px; } }

/* text-xl md:text-2xl text-gray-300 font-light max-w-lg */
.ae-sd-hero-tagline {
	font-size: 20px;
	font-weight: 300;
	color: var(--sn-gray-300);
	max-width: 512px;
	margin-bottom: 32px;
}

@media (min-width: 768px) { .ae-sd-hero-tagline { font-size: 24px; } }

/* Precio: label text-[10px] tracking-widest text-white/60; main text-5xl */
.ae-sd-hero-price { margin-bottom: 40px; }

.ae-sd-hero-price-label {
	display: block;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.6);
	margin-bottom: 12px;
}

.ae-sd-hero-price-row {
	display: flex;
	align-items: baseline;
	gap: 16px;
}

.ae-sd-hero-price-main {
	font-size: 48px;
	font-weight: 900;
	color: #fff;
	letter-spacing: -0.05em;
}

.ae-sd-hero-price-divider {
	font-size: 24px;
	font-weight: 700;
	color: rgba(255,255,255,0.4);
}

.ae-sd-hero-price-usd {
	font-size: 24px;
	font-weight: 900;
	color: rgba(255,255,255,0.6);
}

/* CTA buttons */
.ae-sd-hero-actions {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (min-width: 768px) {
	.ae-sd-hero-actions { flex-direction: row; }
}

.ae-sd-hero-actions .ae-vn-btn {
	padding-left: 40px;
	padding-right: 40px;
	padding-top: 20px;
	padding-bottom: 20px;
	font-size: 11px;
	border-radius: 12px;
}

.ae-sd-hero-actions .ae-vn-btn--primary {
	box-shadow: 0 20px 25px -5px rgba(184,31,46,0.2);
}

/* ============================================================
   DETALLE — ESTADO DEL VEHÍCULO (bg-warm-ivory)
   ============================================================ */

.ae-sd-estado {
	background: var(--sn-ivory);
	padding: 64px 0;
}

@media (min-width: 768px) { .ae-sd-estado { padding: 80px 0; } }

.ae-sd-estado-head {
	text-align: center;
	margin-bottom: 48px;
}

.ae-sd-estado-head .ae-vn-kicker-line {
	margin: 0 auto 24px;
	width: 48px;
	height: 1px;
	background: var(--sn-red);
}

.ae-sd-section-title {
	font-size: 32px;
	font-weight: 900;
	text-transform: uppercase;
	color: var(--sn-black);
	margin-bottom: 16px;
}

@media (min-width: 768px) { .ae-sd-section-title { font-size: 40px; } }

.ae-sd-section-subtitle {
	font-size: 18px;
	font-weight: 300;
	color: var(--sn-gray-500);
	max-width: 576px;
	margin: 0 auto;
}

/* Cards: grid-cols-2 md:grid-cols-4, bg-white rounded-2xl p-6 md:p-8 border-gray-100 shadow-sm */
.ae-sd-estado-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

@media (min-width: 768px) {
	.ae-sd-estado-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.ae-sd-estado-card {
	background: #fff;
	border: 1px solid var(--sn-gray-100);
	border-radius: 16px;
	padding: 24px;
	text-align: center;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
	transition: box-shadow 0.3s ease;
}

@media (min-width: 768px) { .ae-sd-estado-card { padding: 32px; } }

.ae-sd-estado-card:hover { box-shadow: 0 6px 14px -4px rgba(0,0,0,0.1); }

.ae-sd-estado-icon {
	color: var(--sn-red);
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}

.ae-sd-estado-label {
	display: block;
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--sn-gray-400);
	margin-bottom: 8px;
}

.ae-sd-estado-value {
	display: block;
	font-size: 18px;
	font-weight: 900;
	color: var(--sn-black);
}

@media (min-width: 768px) { .ae-sd-estado-value { font-size: 20px; } }

/* ============================================================
   DETALLE — TABS
   ============================================================ */

.ae-sd-tabs-section {
	background: #fff;
	padding: 50px 0 96px;
	position: relative;
	z-index: 1;
}

/* Tabs: bg-white rounded-2xl shadow-[0_20px_40px_-15px_rgba(0,0,0,0.1)] p-2 md:p-3 max-w-2xl mb-16 md:mb-24 */
.ae-sd-tabs {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
	border: 1px solid var(--sn-gray-100);
	padding: 8px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-width: 672px;
	margin: 0 auto 64px;
	position: relative;
	z-index: 2;
}

@media (min-width: 768px) {
	.ae-sd-tabs { padding: 12px; margin-bottom: 96px; }
}

.ae-sd-tab {
	appearance: none;
	border: none;
	background: transparent;
	color: var(--sn-gray-500);
	font-family: "DM Sans", sans-serif;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 12px 24px;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
}

@media (min-width: 768px) {
	.ae-sd-tab { padding: 12px 32px; }
}

.ae-sd-tab:hover {
	color: var(--sn-black);
	background: var(--sn-gray-50);
}

.ae-sd-tab.is-active {
	background: var(--sn-black);
	color: #fff;
	box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
}

.ae-sd-tab-panel { display: none; }

.ae-sd-tab-panel.is-active { display: block; }

/* Gallery head */
.ae-sd-gallery-head {
	display: flex;
	flex-direction: column;
	gap: 24px;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 32px;
}

@media (min-width: 1024px) {
	.ae-sd-gallery-head { flex-direction: row; align-items: flex-end; }
}

.ae-sd-gallery-title {
	font-size: 24px;
	font-weight: 900;
	text-transform: uppercase;
	color: var(--sn-black);
	margin-bottom: 8px;
}

.ae-sd-gallery-subtitle {
	font-size: 14px;
	font-weight: 500;
	color: var(--sn-gray-500);
	margin: 0;
}

.ae-sd-gallery-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ae-sd-gallery-filter {
	appearance: none;
	border: none;
	background: var(--sn-gray-50);
	color: var(--sn-gray-500);
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 12px 16px;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.ae-sd-gallery-filter:hover { color: var(--sn-black); background: var(--sn-gray-100); }

.ae-sd-gallery-filter.is-active {
	background: var(--sn-black);
	color: #fff;
	box-shadow: 0 8px 16px -4px rgba(0,0,0,0.3);
}

/* Gallery grid: grid-cols-1 md:grid-cols-4 md:grid-rows-2 gap-2 rounded-[2rem] md:h-[600px] */
.ae-sd-gallery-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	border-radius: 32px;
	overflow: hidden;
}

@media (min-width: 768px) {
	.ae-sd-gallery-grid {
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: repeat(2, 1fr);
		height: 600px;
	}
}

.ae-sd-gallery-item {
	position: relative;
	appearance: none;
	border: none;
	padding: 0;
	cursor: pointer;
	overflow: hidden;
	background: var(--sn-gray-100);
	min-height: 200px;
}

.ae-sd-gallery-item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0);
	transition: background 0.5s ease;
}

.ae-sd-gallery-item:hover::after { background: rgba(0,0,0,0.1); }

@media (min-width: 768px) {
	.ae-sd-gallery-item { height: auto; }
	.ae-sd-gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
	.ae-sd-gallery-item:nth-child(2) { grid-column: 3; grid-row: 1; }
	.ae-sd-gallery-item:nth-child(3) { grid-column: 4; grid-row: 1; }
	.ae-sd-gallery-item:nth-child(4) { grid-column: 3; grid-row: 2; }
	.ae-sd-gallery-item:nth-child(5) { grid-column: 4; grid-row: 2; }
}

.ae-sd-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s ease;
}

.ae-sd-gallery-item:hover img { transform: scale(1.05); }

/* Summary: !bg-[#1a1a1a] hover:!bg-black */
.ae-sd-gallery-summary {
	background: #1a1a1a;
	color: #fff;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 24px;
	transition: background 0.3s ease;
}

.ae-sd-gallery-summary:hover { background: #000; }

.ae-sd-gallery-summary span {
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
}

/* Detalles: 3 cards bg-gray-50 rounded-3xl */
.ae-sd-detalles-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	padding-bottom: 48px;
}

@media (min-width: 768px) {
	.ae-sd-detalles-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

.ae-sd-detalle-card {
	background: var(--sn-gray-50);
	border: 1px solid var(--sn-gray-100);
	border-radius: 24px;
	padding: 32px;
	transition: all 0.5s ease;
}

.ae-sd-detalle-card:hover {
	box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
	transform: translateY(-8px);
}

.ae-sd-detalle-icon {
	width: 56px;
	height: 56px;
	background: #fff;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sn-red);
	margin-bottom: 32px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	transition: all 0.5s ease;
}

.ae-sd-detalle-card:hover .ae-sd-detalle-icon {
	background: var(--sn-red);
	color: #fff;
}

.ae-sd-detalle-title {
	font-size: 20px;
	font-weight: 900;
	text-transform: uppercase;
	color: var(--sn-black);
	margin-bottom: 16px;
}

.ae-sd-detalle-text {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7;
	color: var(--sn-gray-600);
	margin: 0;
}

.ae-sd-detalle-text strong { color: var(--sn-black); }

/* Ficha técnica: max-w-4xl bg-gray-50 rounded-[3rem] p-8 md:p-12 */
.ae-sd-specs {
	max-width: 896px;
	margin: 0 auto;
	background: var(--sn-gray-50);
	border-radius: 48px;
	border: 1px solid var(--sn-gray-100);
	padding: 32px;
	padding-bottom: 64px;
}

@media (min-width: 768px) { .ae-sd-specs { padding: 48px; } }

.ae-sd-specs-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 40px;
}

.ae-sd-specs-head .ae-vn-kicker-line {
	width: 48px;
	height: 1px;
	background: var(--sn-black);
}

.ae-sd-specs-title {
	font-size: 24px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--sn-black);
}

.ae-sd-specs-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Rows: p-6 bg-white rounded-2xl shadow-sm, label sm:w-1/3 text-toyota-red tracking-widest */
.ae-sd-specs-row {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	transition: box-shadow 0.3s ease;
}

.ae-sd-specs-row:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

@media (min-width: 640px) {
	.ae-sd-specs-row {
		flex-direction: row;
		align-items: center;
	}
}

.ae-sd-specs-label {
	width: 100%;
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--sn-red);
	margin-bottom: 8px;
}

@media (min-width: 640px) { .ae-sd-specs-label { width: 33%; margin-bottom: 0; } }

.ae-sd-specs-value {
	width: 100%;
	font-size: 14px;
	font-weight: 500;
	color: var(--sn-gray-700);
}

@media (min-width: 640px) { .ae-sd-specs-value { width: 67%; } }

/* ============================================================
   DETALLE — MODAL MEDIA
   ============================================================ */

.ae-sd-modal,
.ae-sd-popup {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
}

.ae-sd-modal-backdrop,
.ae-sd-popup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.95);
}

.ae-sd-modal-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1100px;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 20px;
	box-sizing: border-box;
}

.ae-sd-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px;
}

.ae-sd-modal-counter {
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	background: rgba(255,255,255,0.1);
	color: #fff;
	padding: 8px 16px;
	border-radius: 999px;
}

.ae-sd-modal-close,
.ae-sd-popup-close {
	appearance: none;
	border: none;
	background: rgba(255,255,255,0.1);
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.3s ease;
}

.ae-sd-modal-close:hover,
.ae-sd-popup-close:hover { background: rgba(255,255,255,0.25); }

.ae-sd-modal-stage {
	flex: 1;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
}

/* max-w-[80vw] max-h-[70vh] object-contain drop-shadow-2xl */
.ae-sd-modal-img {
	max-width: 80vw;
	max-height: 70vh;
	object-fit: contain;
	filter: drop-shadow(0 25px 25px rgba(0,0,0,0.15));
	transition: opacity 0.2s ease;
}

.ae-sd-modal-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255,255,255,0.06);
	border: none;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.3s ease;
	z-index: 2;
}

.ae-sd-modal-nav:hover { background: rgba(255,255,255,0.2); }

.ae-sd-modal-prev { left: 8px; }
.ae-sd-modal-next { right: 8px; }

@media (min-width: 768px) {
	.ae-sd-modal-prev { left: 32px; }
	.ae-sd-modal-next { right: 32px; }
}

.ae-sd-modal-thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 16px 0 8px;
	justify-content: center;
	height: 128px;
	align-items: stretch;
}

.ae-sd-modal-thumb {
	flex-shrink: 0;
	width: 110px;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	opacity: 0.4;
	transition: all 0.3s ease;
}

.ae-sd-modal-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ae-sd-modal-thumb:hover { opacity: 1; }

.ae-sd-modal-thumb.is-active {
	border-color: var(--sn-red);
	opacity: 1;
	transform: scale(1.05);
	box-shadow: 0 10px 20px -6px rgba(0,0,0,0.5);
}

/* ============================================================
   DETALLE — COTIZAR (bg-charcoal-dark)
   ============================================================ */

.ae-sd-cotizar {
	position: relative;
	background: var(--sn-charcoal);
	color: #fff;
	padding: 96px 0;
	overflow: hidden;
}

.ae-sd-cotizar-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 64px;
}

@media (min-width: 1024px) {
	.ae-sd-cotizar-inner {
		flex-direction: row;
		gap: 80px;
	}
}

.ae-sd-cotizar-info { width: 100%; }

@media (min-width: 1024px) { .ae-sd-cotizar-info { width: 42%; } }

.ae-sd-cotizar-title {
	font-size: 40px;
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 24px;
}

@media (min-width: 768px) { .ae-sd-cotizar-title { font-size: 48px; } }

.ae-sd-cotizar-text {
	font-size: 18px;
	font-weight: 300;
	line-height: 1.7;
	color: var(--sn-gray-400);
	margin-bottom: 40px;
}

.ae-sd-cotizar-contact {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ae-sd-cotizar-contact-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--sn-red);
}

.ae-sd-cotizar-contact-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--sn-gray-400);
	margin-bottom: 4px;
}

.ae-sd-cotizar-form { width: 100%; }

@media (min-width: 1024px) { .ae-sd-cotizar-form { width: 58%; } }

/* Card form: bg-white rounded-2xl p-8 md:p-12 shadow-2xl */
.ae-sd-cotizar-card {
	background: #fff;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
}

@media (min-width: 768px) { .ae-sd-cotizar-card { padding: 48px; } }

.ae-sd-cotizar-card .wpcf7-form label,
.ae-sd-popup-content .wpcf7-form label {
	display: block;
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--sn-gray-500);
	margin-bottom: 4px;
}

.ae-sd-cotizar-card .wpcf7-form input[type="text"],
.ae-sd-cotizar-card .wpcf7-form input[type="email"],
.ae-sd-cotizar-card .wpcf7-form input[type="tel"],
.ae-sd-cotizar-card .wpcf7-form select,
.ae-sd-cotizar-card .wpcf7-form textarea,
.ae-sd-popup-content .wpcf7-form input[type="text"],
.ae-sd-popup-content .wpcf7-form input[type="email"],
.ae-sd-popup-content .wpcf7-form input[type="tel"],
.ae-sd-popup-content .wpcf7-form select {
	width: 100%;
	background: var(--sn-gray-50);
	border: 1px solid var(--sn-gray-200);
	border-radius: 12px;
	padding: 16px;
	font-size: 14px;
	font-weight: 700;
	color: var(--sn-black);
	margin-bottom: 16px;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.3s ease, background 0.3s ease;
}

.ae-sd-cotizar-card .wpcf7-form input:focus,
.ae-sd-cotizar-card .wpcf7-form select:focus,
.ae-sd-popup-content .wpcf7-form input:focus,
.ae-sd-popup-content .wpcf7-form select:focus {
	border-color: rgba(184,31,46,0.5);
	background: #fff;
}

.ae-sd-cotizar-card .wpcf7-form .wpcf7-submit,
.ae-sd-popup-content .wpcf7-form .wpcf7-submit {
	width: 100%;
	background: var(--sn-red);
	color: #fff;
	border: none;
	border-bottom: 4px solid rgba(0,0,0,0.2);
	border-radius: 12px;
	padding: 20px;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	cursor: pointer;
	box-shadow: 0 20px 25px -5px rgba(184,31,46,0.2);
	transition: background 0.3s ease, transform 0.1s ease;
}

.ae-sd-cotizar-card .wpcf7-form .wpcf7-submit:hover,
.ae-sd-popup-content .wpcf7-form .wpcf7-submit:hover { background: var(--sn-red-hover); }

.ae-sd-cotizar-card .wpcf7-form .wpcf7-submit:active,
.ae-sd-popup-content .wpcf7-form .wpcf7-submit:active {
	border-bottom-width: 0;
	transform: translateY(1px);
}

/* ============================================================
   DETALLE — STICKY CTA + POPUP
   ============================================================ */

/* Sticky: fixed right-0 top-1/2 rounded-l-xl, hidden en móvil (React hidden md:flex) */
.ae-sd-sticky-cta {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 50;
	background: var(--sn-red);
	color: #fff;
	border: none;
	border-radius: 12px 0 0 12px;
	padding: 24px 20px;
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	box-shadow: 0 20px 25px -5px rgba(184,31,46,0.3);
	transition: all 0.3s ease;
}

@media (min-width: 768px) {
	.ae-sd-sticky-cta.is-visible { display: flex; }
}

.ae-sd-sticky-cta:hover { background: var(--sn-red-hover); }

.ae-sd-sticky-cta-text {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	line-height: 1.2;
	text-align: center;
}

/* Popup */
.ae-sd-popup {
	align-items: center;
}

.ae-sd-popup-backdrop { background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); }

.ae-sd-popup-content {
	position: relative;
	z-index: 2;
	background: #fff;
	border-radius: 24px;
	padding: 24px;
	max-width: 672px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	margin: 16px;
	box-sizing: border-box;
}

@media (min-width: 768px) { .ae-sd-popup-content { padding: 40px; } }

.ae-sd-popup-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: var(--sn-gray-100);
	color: var(--sn-gray-700);
}

.ae-sd-popup-close:hover { background: var(--sn-gray-200); color: var(--sn-black); }

/* text-2xl md:text-3xl */
.ae-sd-popup-title {
	font-size: 24px;
	font-weight: 900;
	text-transform: uppercase;
	color: var(--sn-black);
	margin-bottom: 8px;
	padding-right: 40px;
}

@media (min-width: 768px) { .ae-sd-popup-title { font-size: 30px; } }

.ae-sd-popup-subtitle {
	font-size: 14px;
	color: var(--sn-gray-500);
	margin-bottom: 24px;
}

/* Fix: botones no pierden el rojo en hover/focus (regla global button:hover/:focus del theme lo pisaba) */
.ae-sn-filter-card .ae-sn-filter-clear:hover,
.ae-sn-filter-card .ae-sn-filter-clear:focus,
.ae-sn-empty button:hover,
.ae-sn-empty button:focus {
    color: var(--sn-red);
    background-color: transparent;
    outline: none;
}
/* ============================================================
   SEMINUEVOS - Ajustes UX
   ============================================================ */
/* Breadcrumb alineado con el grid (1220px, sin padding lateral en desktop) */
@media (min-width: 1024px) {
    .ae-sn-breadcrumbs {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Icono de "Filtrar por" en rojo Toyota */
.ae-sn-filter-title svg {
    color: var(--sn-red);
}

/* Boton "Limpiar" oculto por defecto, visible solo con filtros activos */
.ae-sn-filter-card .ae-sn-filter-clear {
    display: none;
}
.ae-sn-filter-card .ae-sn-filter-clear.is-visible {
    display: inline-block;
}

/* Ancla de scroll al inicio del grid (debajo del header fijo) */
.ae-sn-grid {
    scroll-margin-top: 96px;
}
/* Ancla de scroll: debajo del hero (breadcrumb) despejando el header fijo */
.ae-sn-breadcrumbs {
    scroll-margin-top: 72px;
}
/* ============================================================
   SEMINUEVOS - Mobile: filtros colapsables + toolbar 2 cols
   ============================================================ */
/* Toggle de filtros: visible solo en mobile */
.ae-sn-layout .ae-sn-filter-toggle {
    display: none;
}
@media (max-width: 767px) {
    .ae-sn-layout .ae-sn-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 16px;
        padding: 14px 16px;
        background: var(--sn-black);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-family: "DM Sans", sans-serif;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        cursor: pointer;
        transition: background 0.3s ease;
    }
    .ae-sn-filter-toggle:active,
    .ae-sn-layout .ae-sn-filter-toggle:focus { background: var(--sn-black); color: #fff; outline: none; }
    .ae-sn-filter-toggle.is-open,
    .ae-sn-filter-toggle.is-open:active,
    .ae-sn-layout .ae-sn-filter-toggle.is-open:focus { background: var(--sn-red); color: #fff; outline: none; }

    /* Sidebar oculto por defecto */
    .ae-sn-sidebar {
        display: none;
        position: static;
        width: 100%;
    }
    .ae-sn-sidebar.is-open {
        display: block;
    }

    /* Toolbar: contador + select en 2 columnas */
    .ae-sn-toolbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        align-items: center;
        padding: 8px;
    }
    .ae-sn-count-badge {
        width: 100%;
        text-align: center;
        padding: 10px 8px;
        font-size: 12px;
        white-space: normal;
    }
    .ae-sn-sort {
        width: 100%;
        gap: 0;
    }
    .ae-sn-sort select {
        padding: 10px 30px 10px 12px;
        font-size: 10px;
    }
    .ae-sn-sort-label {
        display: none;
    }
}
/* ============================================================
   DETALLE SEMINUEVO - Fixes (match FI/React)
   ============================================================ */
/* Hero title: line-height suficiente para acentos (React leading-[0.9] colisiona) */
.ae-sd-hero .ae-sd-hero-title {
    line-height: 1.1;
    padding-bottom: 0.04em;
    margin-bottom: 32px;
}

/* Tabs: hover/focus sin flash blanco (regla global button:focus) */
.ae-sd-tabs .ae-sd-tab:focus { outline: none; }
.ae-sd-tabs .ae-sd-tab:hover { background-color: #f9fafb; color: var(--sn-black); }
.ae-sd-tabs .ae-sd-tab:focus,
.ae-sd-tabs .ae-sd-tab:active { background-color: transparent; color: var(--sn-gray-500); }
.ae-sd-tabs .ae-sd-tab.is-active,
.ae-sd-tabs .ae-sd-tab.is-active:hover,
.ae-sd-tabs .ae-sd-tab.is-active:focus,
.ae-sd-tabs .ae-sd-tab.is-active:active { background-color: var(--sn-black); color: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

/* Filtros de galeria: hover/focus */
.ae-sd-gallery-filters .ae-sd-gallery-filter:focus { outline: none; }
.ae-sd-gallery-filters .ae-sd-gallery-filter:hover { background-color: #f3f4f6; color: var(--sn-black); }
.ae-sd-gallery-filters .ae-sd-gallery-filter:focus,
.ae-sd-gallery-filters .ae-sd-gallery-filter:active { background-color: #f9fafb; color: var(--sn-gray-500); }
.ae-sd-gallery-filters .ae-sd-gallery-filter.is-active,
.ae-sd-gallery-filters .ae-sd-gallery-filter.is-active:hover,
.ae-sd-gallery-filters .ae-sd-gallery-filter.is-active:focus,
.ae-sd-gallery-filters .ae-sd-gallery-filter.is-active:active { background-color: var(--sn-black); color: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

/* Modal + popup: z-index sobre el header fijo (9999) */
.ae-sd-modal,
.ae-sd-popup { z-index: 10000; }
.ae-sd-modal { display: flex; }

/* Figure: header alineado al ancho exacto de la imagen */
.ae-sd-modal-figure {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}
.ae-sd-modal-figure .ae-sd-modal-header {
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    width: auto;
    z-index: 10;
    padding: 8px 0;
}

/* Desktop/tablet: contenido como caja centrada, imagen con flechas centradas (igual FI) */
@media (min-width: 768px) {
    .ae-sd-modal-content {
        flex: none;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: 92vh;
        margin: auto;
        gap: 20px;
        padding: 0;
    }
    .ae-sd-modal .ae-sd-modal-stage {
        flex: none;
        align-items: center;
        justify-content: center;
        padding: 88px 60px 0;
    }
    .ae-sd-modal-figure .ae-sd-modal-header { top: -88px; }
    .ae-sd-modal .ae-sd-modal-nav { top: calc(50% + 44px); }
}

/* Mobile: caja reducida + flechas debajo de la imagen */
@media (max-width: 767px) {
    .ae-sd-modal-content {
        width: calc(100% - 24px);
        max-width: 480px;
        height: auto;
        max-height: 92vh;
        margin: auto;
        border-radius: 20px;
        overflow: hidden;
        background: #141414;
        padding: 0;
    }
    .ae-sd-modal .ae-sd-modal-stage {
        flex: none;
        flex-wrap: wrap;
        align-content: center;
        gap: 10px;
        padding: 48px 12px 4px;
    }
    .ae-sd-modal-img {
        order: 1;
        flex: 0 0 100%;
        max-width: 100%;
        max-height: 44vh;
    }
    .ae-sd-modal-nav {
        position: static;
        transform: none;
        order: 2;
        width: 40px;
        height: 40px;
    }
    .ae-sd-modal-thumbs {
        height: 72px;
        padding: 8px;
        gap: 8px;
    }
    .ae-sd-modal-thumb { width: 96px; }
    .ae-sd-modal-figure .ae-sd-modal-header { top: -44px; padding: 6px; }
    .ae-sd-modal-figure .ae-sd-modal-close { width: 32px; height: 32px; }
}

/* Flechas del modal: no transparentes al focus */
.ae-sd-modal .ae-sd-modal-nav:focus {
    outline: none;
    background-color: rgba(255,255,255,0.06);
    color: #fff;
}
.ae-sd-modal .ae-sd-modal-nav:hover:focus { background-color: rgba(255,255,255,0.2); }

/* Galeria mobile: 2 columnas + summary a lo ancho */
@media (max-width: 767px) {
    .ae-sd-gallery-grid { grid-template-columns: 1fr 1fr; }
    .ae-sd-gallery-summary { grid-column: 1 / -1; }
}

/* Tabs mobile: scroll horizontal */
@media (max-width: 767px) {
    .ae-sd-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ae-sd-tabs::-webkit-scrollbar { display: none; }
    .ae-sd-tab { flex-shrink: 0; white-space: nowrap; }
}

/* Form cotizar: estilos de contacto (vencen a los viejos .ae-sd-cotizar-card .wpcf7-form) */
.ae-sd-cotizar-card .ae-cta-form-col input[type="text"],
.ae-sd-cotizar-card .ae-cta-form-col input[type="tel"],
.ae-sd-cotizar-card .ae-cta-form-col input[type="email"],
.ae-sd-cotizar-card .ae-cta-form-col select,
.ae-sd-popup-content .ae-cta-form-col input[type="text"],
.ae-sd-popup-content .ae-cta-form-col input[type="tel"],
.ae-sd-popup-content .ae-cta-form-col input[type="email"],
.ae-sd-popup-content .ae-cta-form-col select {
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(248, 246, 243, 0.5);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #1c1c1c;
    font-family: "DM Sans", sans-serif;
    outline: none;
    transition: border-color 300ms ease, background-color 300ms ease;
}
.ae-sd-cotizar-card .ae-cta-form-col input:focus,
.ae-sd-cotizar-card .ae-cta-form-col select:focus,
.ae-sd-popup-content .ae-cta-form-col input:focus,
.ae-sd-popup-content .ae-cta-form-col select:focus { border-color: #b81f2e; background-color: #ffffff; }
.ae-sd-cotizar-card .ae-cta-form-col select,
.ae-sd-popup-content .ae-cta-form-col select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}
.ae-sd-cotizar-card .wpcf7-form .ae-cta-form-label,
.ae-sd-popup-content .wpcf7-form .ae-cta-form-label { color: #9ca3af; margin: 0 0 15px 4px; }
.ae-sd-cotizar-card .ae-cta-form-row,
.ae-sd-popup-content .ae-cta-form-row { margin-bottom: 0; gap: 24px; }
.ae-sd-cotizar-card .ae-cta-form-legal,
.ae-sd-popup-content .ae-cta-form-legal { margin-top: 0; }
.ae-sd-cotizar-card .ae-cta-form-submit,
.ae-sd-popup-content .ae-cta-form-submit { margin-top: 24px; }
/* ============================================================
   DETALLE SEMINUEVO - Botones y match React (round 2)
   ============================================================ */
/* Hero content: 576px como React max-w-xl */
.ae-sd-hero-content { max-width: 576px; }

/* Hero CTA primario: ROJO (React bg-toyota-red), no negro */
.ae-sd-hero-actions .ae-vn-btn--primary {
    background: var(--sn-red);
    color: #fff;
}
.ae-sd-hero-actions .ae-vn-btn--primary:hover,
.ae-sd-hero-actions .ae-vn-btn--primary:focus,
.ae-sd-hero-actions .ae-vn-btn--primary:active {
    background: var(--sn-red-hover);
    color: #fff;
    outline: none;
}

/* Hero CTA outline: blanco, hover verde WhatsApp */
.ae-sd-hero-actions .ae-vn-btn--outline-white {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.ae-sd-hero-actions .ae-vn-btn--outline-white:hover,
.ae-sd-hero-actions .ae-vn-btn--outline-white:focus,
.ae-sd-hero-actions .ae-vn-btn--outline-white:active {
    background: transparent;
    border-color: #25d366;
    color: #25d366;
    outline: none;
}

/* Tabs: font/padding/letter-spacing correctos (reset.css los pisaba) */
.ae-sd-tabs .ae-sd-tab {
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 12px 24px;
}
@media (min-width: 768px) {
    .ae-sd-tabs .ae-sd-tab { padding: 12px 32px; }
}

/* Gallery filters: font/padding correctos */
.ae-sd-gallery-filters .ae-sd-gallery-filter {
    font-size: 10px;
    padding: 12px 16px;
}

/* Sticky CTA: base + hover/focus/active protegidos (reset lo hacia rosa/transparente) */
.ae-page-detalle-seminuevo .ae-sd-sticky-cta {
    display: none;
    background: var(--sn-red);
    color: #fff;
    border: none;
    border-radius: 12px 0 0 12px;
    padding: 24px 20px;
}
.ae-page-detalle-seminuevo .ae-sd-sticky-cta:hover,
.ae-page-detalle-seminuevo .ae-sd-sticky-cta:focus,
.ae-page-detalle-seminuevo .ae-sd-sticky-cta:active {
    background: var(--sn-red-hover);
    color: #fff;
    outline: none;
}

/* Modal/popup: nav + close protegidos (bg/border/display correctos) */
.ae-sd-modal .ae-sd-modal-nav {
    display: flex;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #fff;
}
.ae-sd-modal .ae-sd-modal-close {
    display: flex;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 0;
}
.ae-sd-modal-figure .ae-sd-modal-close svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.ae-sd-popup .ae-sd-popup-close {
    display: flex;
    background: #f3f4f6;
    border: none;
    color: var(--sn-black);
}

/* Cotizar inner gap desktop: 64px como React gap-16 */
@media (min-width: 768px) {
    .ae-sd-cotizar-inner { gap: 64px; }
}
/* Sticky CTA visible: el is-visible debe vencer al display:none scoped */
.ae-page-detalle-seminuevo .ae-sd-sticky-cta.is-visible {
    display: flex;
}
/* ============================================================
   DETALLE SEMINUEVO - Galeria match FI (bordes pink del reset.css)
   ============================================================ */
/* Tabs: sin borde rosa del reset.css */
.ae-sd-tabs .ae-sd-tab {
    border: none;
    border-radius: 12px;
}

/* Filtros de galeria: sin borde rosa */
.ae-sd-gallery-filters .ae-sd-gallery-filter {
    border: none;
    border-radius: 12px;
}

/* Items de galeria + summary: sin borde rosa */
.ae-sd-gallery-grid .ae-sd-gallery-item {
    border: none;
    border-radius: 0;
    padding: 0;
}
.ae-sd-gallery-grid .ae-sd-gallery-summary {
    border: none;
    border-radius: 0;
    padding: 24px;
}

/* Tabs + galeria: font-weight y padding pisados por el reset [type=button] */
.ae-sd-tabs .ae-sd-tab {
    font-weight: 900;
}

/* ============================================================
   DETALLE SEMINUEVO - Hero + Cotizar match FI mobile
   ============================================================ */
/* Hero: botones en fila (2 columnas) en mobile como FI */
@media (max-width: 767px) {
    .ae-sd-hero-actions {
        flex-direction: row;
        gap: 8px;
    }
    .ae-sd-hero-actions .ae-vn-btn {
        flex: 1;
        width: auto;
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 16px;
        padding-bottom: 16px;
        font-size: 10px;
        gap: 6px;
        white-space: nowrap;
    }
}

/* Hero: precios mas chicos en mobile como FI */
@media (max-width: 767px) {
    .ae-sd-hero-price-main { font-size: 34px; }
    .ae-sd-hero-price-usd { font-size: 18px; }
    .ae-sd-hero-price-row { gap: 10px; }
}

/* Cotizar: contactos en columna con gap 24px como FI */
.ae-sd-cotizar-contacts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.ae-sd-cotizar-contact a,
.ae-sd-cotizar-contact span {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.ae-sd-cotizar-contact a:hover { color: var(--sn-red); }

/* Cotizar: badge del card como FI */
.ae-sd-cotizar-card { position: relative; }
.ae-sd-cotizar-tag {
    position: absolute;
    top: -16px;
    right: -16px;
    background: var(--sn-red);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: rotate(3deg);
}

/* Cotizar: shadow del card como FI */
.ae-sd-cotizar-card {
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* Cotizar: submit como FI (11px, 0.2em, padding 16px 40px, radius 16px) */
.ae-sd-cotizar-card .wpcf7-form .wpcf7-submit,
.ae-sd-popup-content .wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--sn-red);
    color: #fff;
    padding: 16px 40px;
    border: none;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    box-shadow: 0 16px 32px -8px rgba(184,31,46,0.35);
    transition: background-color 300ms ease, transform 150ms ease;
}
.ae-sd-cotizar-card .wpcf7-form .wpcf7-submit:hover,
.ae-sd-popup-content .wpcf7-form .wpcf7-submit:hover { background-color: var(--sn-black); }
.ae-sd-cotizar-card .wpcf7-form .wpcf7-submit:active,
.ae-sd-popup-content .wpcf7-form .wpcf7-submit:active { transform: scale(0.98); }

/* Cotizar: divider + boton WhatsApp como FI */
.ae-sd-cotizar-card .ae-sd-form-wa-divider,
.ae-sd-popup-content .ae-sd-form-wa-divider {
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sn-gray-400);
    margin: 20px 0 12px;
}
.ae-sd-cotizar-card .ae-sd-form-wa-btn,
.ae-sd-popup-content .ae-sd-form-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #25d366;
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(37,211,102,0.2);
    border-bottom: 4px solid rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}
.ae-sd-cotizar-card .ae-sd-form-wa-btn:hover,
.ae-sd-popup-content .ae-sd-form-wa-btn:hover { background: #20be5c; color: #fff; }
.ae-sd-cotizar-card .ae-sd-form-wa-btn:active,
.ae-sd-popup-content .ae-sd-form-wa-btn:active { border-bottom-width: 0; transform: translateY(4px); }

/* Cotizar: filas de inputs en mobile sin gap doble (el margin-bottom 16px de los inputs da el espaciado) */
@media (max-width: 640px) {
    .ae-sd-cotizar-card .ae-cta-form-row,
    .ae-sd-popup-content .ae-cta-form-row {
        gap: 0;
    }
}

/* Hero: rayita del kicker en rojo (--vn-red no existe en la pagina SD) */
.ae-sd-hero-kicker .ae-vn-kicker-line {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--sn-red);
    flex-shrink: 0;
}