/* =========================================================
   1️⃣ ELEMENTOS BASE
========================================================= */

html {
    scroll-behavior: smooth;
}

hr {
    height: 12px;
	padding-left: 13px;
	margin-left: 13px;
    /*margin: 13px 50% 0 0;*/
    background-color: #1F497D;
    border: none;
}


/* =========================================================
   2️⃣ HERO VEHÍCULO – CONTENEDOR GENERAL
========================================================= */

.vehiculo-hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
}


/* =========================================================
   3️⃣ IMAGEN PRINCIPAL DEL VEHÍCULO
========================================================= */

.vehiculo-hero-main {
    width: 100%;
    height: 800px; /* ajusta si necesitas */
    overflow: hidden;
    border-radius: 16px;
}

.vehiculo-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}


/* =========================================================
   4️⃣ TEXTO SOBRE LA IMAGEN (MARCA / MODELO / MENSAJE)
========================================================= */

.single-car-wrapper {
    position: absolute;
    left: 28px;
    top: 66%;
    line-height: 1.1;
	background: rgba(7, 0, 20, .2);
    border-radius: 16px;
	padding-right: 13px;
	padding-bottom: 13px;
}

.single-car-marca {
	padding-top: 13px;
	padding-left: 13px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.single-car-marca:hover {
    color: #1F497D;
}

.single-car-modelo {
	padding-left: 13px;
    color: #fff;
    font-size: 50px;
    font-weight: 700;
}

.single-car-mensaje {
	padding-top: 13px;
	padding-left: 13px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

/* ENLACE MARCA */
.vehiculo-marca-link {
    display: inline-block;
    font-weight: 600;
    color: white;
    text-decoration: none;
    cursor: pointer;

    transition: 
        color 0.2s ease,
        opacity 0.2s ease;
}

.vehiculo-marca-link:hover {
    color: #16345a;
    opacity: 0.85;
}


/* =========================================================
   5️⃣ CARRUSEL DE MINIATURAS – CONTENEDOR FLOTANTE
========================================================= */

.vehiculo-hero-thumbs-wrapper {
    position: absolute;
    right: 32px;
    bottom: 35px;
    z-index: 20;

    display: flex;
    flex-direction: column;
	overflow: visible;
    gap: 10px;
}


/* =========================================================
   6️⃣ VENTANA VISIBLE DEL CARRUSEL (3.5 MINIATURAS)
========================================================= */

.vehiculo-hero-thumbs-viewport {
    width: 415px;
    height: 90px;          /* ← CLAVE */
    overflow: hidden;
	padding-left: 5px;   /* ← CLAVE */
    padding-right: 10px;  /* ← opcional, recomendado */
}


/* =========================================================
   7️⃣ CARRUSEL REAL (SE MUEVE CON TRANSFORM)
========================================================= */

.vehiculo-hero-thumbs {
    display: flex;
    gap: 14px;

    align-items: center;   /* ← CLAVE */
    height: 100%;          /* ← CLAVE */

    transition: transform .6s cubic-bezier(.19,1,.22,1);
}

/* =========================================================
   8️⃣ MINIATURA INDIVIDUAL
========================================================= */

.vehiculo-hero-thumb {
	scroll-snap-align: start;    
    flex: 0 0 100px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;

    transition:
        opacity .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.vehiculo-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   9️⃣ ESTADOS DE MINIATURA (HOVER / ACTIVA)
========================================================= */

.vehiculo-hero-thumb:hover {
    outline: 2px solid white;
    outline-offset: -2px;
    opacity: 1;
    transform: scale(1.05);
}

.vehiculo-hero-thumb.active {
    opacity: 1;
    box-shadow: 0 0 0 2px #1F497D;
    outline: 2px solid #1F497D;
    outline-offset: 0px;
}


/* =========================================================
   🔟 BOTONES DE NAVEGACIÓN DEL CARRUSEL
========================================================= */
/* =========================================================
   BOTONES CARRUSEL — SVG PREMIUM
========================================================= */

.vehiculo-thumb-nav {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.vehiculo-thumb-nav .thumb-nav {
    width: 44px !important;
    height: 44px !important;

    min-width: 44px !important;
    min-height: 44px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;
    box-sizing: border-box !important;

    background: rgba(255,255,255,0.35);
    border: 2px solid rgba(200,200,200,0.9);
    color: #1F497D;

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .15s ease,
        box-shadow .25s ease;

    backdrop-filter: blur(6px);

    line-height: 1 !important;
    font-size: 0 !important; /* ← mata cualquier texto heredado */

    cursor: pointer;
}

/* SVG interior */
.vehiculo-thumb-nav .thumb-nav svg {
    width: 35px;
    height: 35px;
    fill: none;
	
    stroke-width: 3;
    stroke: #1F497D;
    transition: stroke .25s ease;
	
    display: block;
}

/* hover */
.vehiculo-thumb-nav .thumb-nav:hover {
    background: rgba(255,255,255,0.25) !important;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.vehiculo-thumb-nav .thumb-nav:hover svg {
    stroke: #1F497D;
}

.vehiculo-thumb-nav .thumb-nav::before,
.vehiculo-thumb-nav .thumb-nav::after {
    display: none !important;
    content: none !important;
}


/* =========================================================
   1️⃣1️⃣ COMPARADOR / FICHA TÉCNICA
========================================================= */

.comparador-versiones {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0rem;
    margin-top: 3rem;
	margin-right: 0 !important;
}

.comparador-selector li, ul {
    list-style: none;
    margin: 0;
    margin-left: 0 !important;
	margin-right: 0 !important;
    padding: 0;
}

.selector-btn {
    width: 80%;
    padding: 14px 18px;
    background: #f2f2f2;
    border: none;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 6px;
	margin-right: 0 !important;
    color: rgb(35,70,124);
}

.selector-btn.active {
    background: rgb(35,70,124);
    color: #fff;
}

.selector-btn:hover {
    background: #1F497D;
    color: #fff;
	
    transform: translateY(-3px);
}


/* =========================================================
   1️⃣3️⃣ LOGO EURONCAP SOBRE LA IMAGEN
========================================================= */

.vehiculo-imagen-wrapper {
    position: relative;
}

.vehiculo-euroncap {
    position: absolute;
    top: 30px;
    right: -20px;
    z-index: 10;
}

.vehiculo-euroncap img {
    width: 250px;
    height: 120px;
    object-fit: contain;
    filter:
        drop-shadow(0 4px 8px rgba(0,0,0,.35))
        drop-shadow(0 1px 2px rgba(0,0,0,.2));
}


/* =========================================================
   1️⃣4️⃣ FICHA RÁPIDA – LOGO + CARACTERÍSTICAS
========================================================= */

.vehiculo-ficha {
    margin-top: 20px;
    margin-bottom: 200px;

	max-width: 1200px;      /* ← mismo que .vehiculo-hero */
    min-width: 1200px;      /* ← mismo que .vehiculo-hero */
    margin: 0px auto;      /* ← centra horizontalmente */
    padding: 0px 0 50px;
}

.vehiculo-ficha-datos {
    max-width: 1200px;
    min-width: 1200px;
    margin: 0.0rem auto 0;
    /*padding-top: 0.5rem;*/
    border-bottom: 1px solid rgba(0,0,0,.08);

    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 2rem;
}

/* LOGO */
.vehiculo-ficha-logo img {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    align-items: center;
}

/* CARACTERÍSTICAS */
.vehiculo-ficha-caracteristicas {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.vehiculo-ficha-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.vehiculo-ficha-label {
    font-size: 17px;
    color: #6b7280;
    margin-bottom: 4px;
}

.vehiculo-ficha-item strong {
    font-size: 20px;
    font-weight: 700;
    color: #1F497D;
}

/* =========================================================
   BLOQUE TITULO CARACTERISTICAS (ANCHO HERO + CENTRADO)
========================================================= */

.vehiculo-seccion-caracteristicas {
    max-width: 1200px;      /* ← mismo que .vehiculo-hero */
    min-width: 1200px;      /* ← mismo que .vehiculo-hero */
    margin: 20px auto;      /* ← centra horizontalmente */
    padding: 14px 0;
    margin-top: 60px;

    border-bottom: 1px solid rgba(0,0,0,.08);

    color: rgb(35,70,124);
    font-size: 22px;
    font-weight: 700;
    text-align: center;     /* ← texto centrado */
}


/* =========================================================
   BOTÓN DESCUBRIR – SCROLL A CARACTERÍSTICAS
========================================================= */

.btn-descubrir {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 24px;
	padding: 13px 60px;           /* ← más largo (horizontal) */
    border-radius: 10px;          /* ← esquinas curvas pero poco */
	margin-left: 13px;

	background-color: #1F497D;
    color: #fff;

    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.4px;

    text-decoration: none;
    box-shadow: 
        0 10px 25px rgba(31,73,125,.25),
        0 4px 10px rgba(0,0,0,.15);

    transition:
        background-color .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.btn-descubrir:hover {
    background-color: #fff;
    color: #1F497D;

    transform: translateY(-3px);

    box-shadow: 
        0 18px 38px rgba(31,73,125,.35),
        0 8px 18px rgba(0,0,0,.18);
}


/* =========================================================
   PERSIANA
========================================================= */

.comparador-acordeon {
    max-width: 1200px;
    margin: 0 auto;
}

.acordeon-item {
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.acordeon-btn {
    width: 100%;
    padding: 18px 20px;
    background: #f2f2f2;
    border: none;
    text-align: left;
    font-weight: 600;
    color: rgb(35,70,124);
    cursor: pointer;
    position: relative;
    transition: background .25s ease;
}

.acordeon-btn:hover {
    background: #e6edf5;
}

.acordeon-btn {
    position: relative;
}

/* Flecha base (cerrado → abajo) */
.acordeon-btn::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;

	width: 10px;
	height: 10px;
	border-right: 3px solid currentColor;
	border-bottom: 3px solid currentColor;

    transform: translateY(-50%) rotate(45deg); /* ↓ */
    transition: transform .3s ease;
}

/* Estado abierto → arriba */
.acordeon-btn.active::after {
    transform: translateY(-50%) rotate(-135deg); /* ↑ */
}


/* Estado activo */
.acordeon-btn.active {
    background: #1F497D;
    color: #fff;
}

.acordeon-btn.active::after {
    content: "–";
}

/* Contenido oculto */
.acordeon-contenido {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
    background: #fff;
    padding: 0 20px;
}

/* Abierto */
.acordeon-contenido.activo {
    padding: 20px;
}

.antes-footer {
	padding-bottom: 50px;
}

/* =========================================================
   CARACTERISTICAS NUEVO ESTILO
========================================================= */
.comparador-grid {
    display: grid;
    gap: 0;
}

/* Grid dinámico según número de versiones */
.versiones-1 {
    grid-template-columns: 260px 1fr;
}

.versiones-2 {
    grid-template-columns: 260px repeat(2, 1fr);
}

.versiones-3 {
    grid-template-columns: 260px repeat(3, 1fr);
}

.versiones-4 {
    grid-template-columns: 260px repeat(4, 1fr);
}

.versiones-5 {
    grid-template-columns: 260px repeat(5, 1fr);
}

.versiones-6 {
    grid-template-columns: 260px repeat(6, 1fr);
}

.versiones-7 {
    grid-template-columns: 260px repeat(7, 1fr);
}

.versiones-8 {
    grid-template-columns: 260px repeat(8, 1fr);
}

.versiones-9 {
    grid-template-columns: 260px repeat(9, 1fr);
}

/* Fila completa */
.comparador-row {
    display: contents;
}

/* Celda */
.comparador-cell {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    font-size: 14px;
}

/* Primera columna */
.comparador-label {
    font-weight: 600;
    color: #1F497D;
}

/* Cabecera */
.comparador-header .comparador-cell {
    font-weight: 700;
    text-align: center;
}

/* Centrar valores */
.comparador-cell:not(.comparador-label) {
    text-align: center;
}


/* ===============================================================*/
/* ===============================================================*/
/* ===============================================================*/


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
    .vehiculo-modelo {
        font-size: 48px;
    }

    .vehiculo-hero__content {
        left: 40px;
        bottom: 120px;
    }
}

@media (max-width: 768px) {
    .vehiculo-hero {
        grid-template-columns: 1fr;
    }

    .vehiculo-hero__content {
        left: 20px;
        right: 20px;
        bottom: 30px;
        max-width: none;
    }

    .vehiculo-galeria-thumbs {
        left: 20px;
        right: auto;
        bottom: 40px;
        overflow-x: auto;
    }

    .vehiculo-thumb img {
        width: 90px;
        height: 110px;
    }
	   
	.vehiculo-hero-thumbs-wrapper {
        position: static;
        transform: none;
        margin-top: 12px;
        justify-content: center;
    }

    .vehiculo-hero-thumbs {
        flex-direction: row;
    }
	   
	.vehiculo-ficha-datos {
    	border-top: 1px solid rgba(0,0,0,.08);
        grid-template-columns: 1fr;
        text-align: left;
		padding-top: 20px;
		margin-top: 8px;
		margin-left: 20px;
    }

    .vehiculo-ficha-caracteristicas {
        grid-template-columns: repeat(1, 1fr);
		gap: 0px;
    }

    .vehiculo-ficha-logo {
        margin-bottom: 0;
        padding-bottom: 0;
    }
	
	.vehiculo-seccion-caracteristicas {
		margin-top: 40px;
		margin-left: 20px;
		text-align: left;
	}


/* =========================================================
   GRID → FORMATO LISTA EN MÓVIL
========================================================= */

    .comparador-grid {
        display: block;
    }

    /* Ocultamos la cabecera horizontal */
    .comparador-header {
        display: none;
    }

    /* Cada versión se convierte en bloque */
    .comparador-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* Creamos bloque por versión */
    .comparador-grid::before {
        content: "";
        display: none;
    }
	
	.comparador-mobile-bloque {
		margin-bottom: 28px;
		padding-bottom: 20px;
		border-bottom: 1px solid rgba(0,0,0,.1);
	}

	.comparador-mobile-titulo {
		font-weight: 700;
		font-size: 18px;
		color: #1F497D;
		margin-bottom: 12px;
	}

    .comparador-mobile-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px;
        align-items: center;
        padding: 8px 0;
        font-size: 14px;
        width: 25%;
    }

    .mobile-label {
        font-weight: 600;
        color: rgba(0,0,0,.65);
        min-width: 0;
    }

    .mobile-value {
        text-align: center;
        white-space: nowrap;
        font-weight: 500;
		color: #1F497D;
    }
	
	.single-car-modelo {
		padding-left: 13px;
		color: #fff;
		font-size: 30px;
		font-weight: 700;
	}
	
	.single-car-wrapper {
		position: absolute;
		left: 14px;
		top: 70%;
		line-height: 1.1;
		background: rgba(7, 0, 20, .2);
		border-radius: 16px;
		padding-right: 13px;
		padding-bottom: 13px;
	}
	
/* =========================================================
   IMAGEN PRINCIPAL DEL VEHÍCULO
========================================================= */
	
    .vehiculo-hero {
        max-width: 100%;
    }

    .vehiculo-hero-main {
        width: 100vw;
        height: 300px;
        border-radius: 0; /* opcional si quieres edge-to-edge real */
    }

    .vehiculo-hero-main img {
        width: 100%;
        border-radius: 0; /* opcional */
    }

	.single-car-modelo2 {
		padding-left: 8px;
		padding-top: 0px;
		padding-bottom: 0px;
		margin-top: 0px;
		margin-bottom: 0px;
		color: #1F497D;
		font-size: 30px;
		font-weight: 700;
	}
	
	.vehiculo-thumb-nav {
		display: flex;
		flex-direction: row;
		gap: 12px;
		padding-left: 30px;
	}
	
	.vehiculo-euroncap {
		position: absolute;
		top: 10px;
		right: -20px;
		z-index: 10;
	}

	.vehiculo-euroncap img {
		width: 185px;
		height: 90px;
		object-fit: contain;
		filter:
			drop-shadow(0 4px 8px rgba(0,0,0,.35))
			drop-shadow(0 1px 2px rgba(0,0,0,.2));
	}
}
