:root {
	--main-color: #101f33;
	--main-back: #f1f5f9;
	--color-dark: #1D2231;
	--text-grey: #8390A2;
	--rojo: #E20D2A;
	--verde: #03C455;
	--naranja: #E2840D;
	--color-blue: #4d97ff;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

body {
	background: var(--main-back);
	color: var(--color-dark);
	overflow-x: hidden;
    background: var(--main-color);
}

main {
    position: relative;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 40px;
    color: white;
    overflow: hidden;
    background: radial-gradient(circle at 20% 30%, rgba(77,151,255,0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(226,13,42,0.1) 0%, transparent 40%),
                var(--main-color);
}

main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.05), transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
    animation: glow 15s infinite alternate;
}

@keyframes glow {
    0% { transform: translateX(-10%) translateY(-10%) scale(1); opacity: 0.6; }
    100% { transform: translateX(10%) translateY(10%) scale(1.1); opacity: 0.9; }
}

main > * {
    position: relative;
    z-index: 1;
}


/* ===== ENCABEZADO ===== */
.encabezado {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	min-height: 90vh;
}

.descripcion {
	flex: 1;
	text-align: left;
}

.descripcion h1 {
	font-size: 2.8rem;
	margin-bottom: 10px;
	color: #fff;
}

.descripcion h3 {
	font-weight: 400;
	color: #d0d0d0;
	margin-bottom: 20px;
}

.descripcion p {
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 25px;
	color: #e5e5e5;
}

.btn-comprar {
	background: var(--rojo);
	color: white;
	padding: 12px 25px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1.1rem;
	font-weight: 600;
	transition: 0.3s ease;
}

.btn-comprar:hover {
	background: #c10a23;
	transform: scale(1.05);
}


.img_desp img {
	max-height: 500px;
	width: auto;
	object-fit: contain;
}

/* ===== INFO EXTRA ===== */
.info-extra {
	text-align: center;
	color: white;
	padding: 60px 20px;
	background: #0d1a2a;
	border-radius: 20px;
}

.info-extra h2 {
	font-size: 2rem;
	margin-bottom: 20px;
	color: #fff;
}

.info-extra p {
	color: #e0e0e0;
	font-size: 1.1rem;
	margin-bottom: 40px;
}

.caracteristicas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 25px;
	width: 300px;
	backdrop-filter: blur(6px);
}

.card h3 {
	margin-bottom: 10px;
	color: #ffb6c1;
}

.card p {
	color: #ddd;
	font-size: 1.2rem;
	line-height: 1.5;
}

/* ===== CTA FINAL ===== */
.cta-final {
	text-align: center;
	padding: 60px 0;
}

.cta-final h2 {
	font-size: 2rem;
	margin-bottom: 20px;
	color: #fff;
}

.btn-comprar.grande {
	font-size: 1.3rem;
	padding: 15px 40px;
	border-radius: 10px;
}


#banner-oferta {
    position: sticky;
    top: 0;
    background: #E20D2A;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 1000;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#contador {
    font-weight: 700;
    margin-left: 5px;
}


/* ===== CARRUSEL ===== */
.img_desp {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    min-height: 500px;
}

.img_desp img {
    position: absolute;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.img_desp img.active {
    opacity: 1;
    z-index: 2;
}

/* ===== Indicadores ===== */
.indicadores {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.indicadores span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicadores span.activo {
    background: #fff;
    transform: scale(1.3);
}



/* ===== BOTONES ===== */
.botones {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-video {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* ✅ centra ícono y texto horizontalmente */
    gap: 10px;
    background: transparent;
    border: 2px solid var(--rojo);
    color: var(--rojo);
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center; /* ✅ adicional para textos multilinea */
    width: auto; /* por defecto, no ocupa todo */
}

.btn-video:hover {
    background: var(--rojo);
    color: white;
    transform: scale(1.05);
}

.btn-video svg,
.icon-youtube {
    width: 24px;
    height: 24px;
    flex-shrink: 0; /* ✅ evita que el ícono se deforme al achicarse */
    transition: transform 0.3s ease;
}

/* Efecto leve al pasar el mouse */
.btn-video:hover .icon-youtube {
    transform: scale(1.2);
}




/* ===== VIDEO + FICHA TÉCNICA ===== */
.video-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 60px;
    background: linear-gradient(180deg, rgba(16,31,51,0.9), rgba(10,15,25,1));
    border-radius: 20px;
    padding: 80px 40px;
    scroll-margin-top: 80px;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

/* ===== Columna del video ===== */
.video-col {
    flex: 1 1 300px;
    max-width: 400px; /* ancho fijo razonable para formato vertical */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-col h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

/* ===== Contenedor de video tipo short ===== */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    background: rgba(255,255,255,0.05);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Columna de ficha técnica ===== */
.info-col {
    flex: 1 1 400px;
    max-width: 600px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px 25px;
    color: #e5e5e5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.info-col h2 {
    color: #ffb6c1;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.info-col p {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 1rem;
}

.info-col ul {
    margin: 5px 0 15px 25px;
    list-style: none;
    padding-left: 0;
}

.info-col ul li::before {
    content: "• ";
    color: var(--rojo);
    font-weight: bold;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 950px) {
    .video-info {
        flex-direction: column;
        align-items: center;
        padding: 60px 20px;
        gap: 40px;
    }

    .video-col, .info-col {
        max-width: 100%;
    }

    .video-col h2, .info-col h2 {
        text-align: center;
    }

    .info-col {
        text-align: left;
    }
}




/* En móviles los puntos se hacen un poco más chicos */
@media (max-width: 480px) {
    .indicadores span {
        width: 8px;
        height: 8px;
    }
}





/* ===================== */
/* 🌐 DISEÑO RESPONSIVE */
/* ===================== */

/* Tablets y pantallas medianas (hasta 1024px) */
@media (max-width: 1024px) {
    main {
        padding: 30px 20px;
        gap: 60px;
    }

    .encabezado {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        gap: 50px;
    }

    .descripcion {
        text-align: center;
    }

    .descripcion h1 {
        font-size: 2.4rem;
    }

    .descripcion h3 {
        font-size: 1.2rem;
    }

    .descripcion p {
        font-size: 1rem;
    }



    .img_desp {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 420px;
        overflow: hidden;
    }

    .img_desp img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        height: auto;
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        opacity: 0;
        transition: opacity 0.6s ease-in-out;
    }

    .img_desp img.active {
        opacity: 1;
        z-index: 2;
    }



    .btn-comprar, .btn-video {
        width: 100%;
        justify-content: center; /* fuerza centrado total */
        text-align: center;
    }

}

/* Celulares grandes (hasta 768px) */
@media (max-width: 768px) {
    .img_desp {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 380px; /* un poco más alto para permitir centrado natural */
        overflow: hidden;
    }

    .img_desp img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 95%; /* evita que toque los bordes */
        max-height: 95%;
        height: auto;
        width: auto;
        object-fit: contain;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    .img_desp img.active {
        opacity: 1;
        z-index: 2;
    }


    .botones {
        flex-direction: column;
        align-items: center;
    }

    .btn-comprar, .btn-video {
        width: 100%;
        justify-content: center; /* fuerza centrado total */
        text-align: center;
    }

    .video-presentacion h2 {
        font-size: 1.5rem;
    }


    main {
        padding: 20px;
        gap: 50px;
    }

    .encabezado {
        flex-direction: column-reverse;
        align-items: center;
    }

    .descripcion h1 {
        font-size: 2rem;
    }

    .descripcion h3 {
        font-size: 1.1rem;
    }

    .descripcion p {
        font-size: 0.95rem;
    }

    .btn-comprar {
        width: 100%;
        font-size: 1rem;
    }

    .card {
        width: 100%;
        max-width: 350px;
    }

    .info-extra {
        padding: 40px 15px;
    }

    .info-extra h2 {
        font-size: 1.6rem;
    }

    .cta-final h2 {
        font-size: 1.6rem;
    }

    #banner-oferta {
        font-size: 0.95rem;
        padding: 8px;
        line-height: 1.4;
    }
}

/* Celulares pequeños (hasta 480px) */
@media (max-width: 480px) {
    .descripcion h1 {
        font-size: 1.7rem;
    }

    .descripcion h3 {
        font-size: 1rem;
    }

    .descripcion p {
        font-size: 0.9rem;
    }

    .btn-comprar.grande {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .img_desp img {
           transition: opacity 0.6s ease-in-out;

    }

    .card h3 {
        font-size: 1rem;
    }

    .card p {
        font-size: 1.2rem;
    }

    #banner-oferta {
        font-size: 0.9rem;
    }
}
