/* ==========================
   FUENTES
========================== */
@import url('https://fonts.googleapis.com/css?family=Raleway:600,700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

/* ==========================
   TITULO PRINCIPAL VENTAS
========================== */
.titulo-ventas-principal{
    font-family: 'Raleway', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;

    color: #fad201;
    letter-spacing: 4px;
    text-transform: uppercase;

    text-shadow:
        3px 3px 0 #000,
        6px 6px 10px rgba(0, 0, 0, 0.45);

    text-align: center;
    margin-bottom: 30px;

    opacity: 0;
    transform: translateY(-20px);
}


/* ==========================
   TEXTO DESCRIPTIVO VENTAS
========================== */
.texto-ventas{
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: #000;
    line-height: 1.7;
    text-align: justify;
    max-width: 900px;
    margin: auto;

    opacity: 0;
    transform: translateY(20px);
}

/* ==========================
   ANIMACIONES
========================== */
.show-ventas{
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* espacio visual limpio */
.ventas-section{
    margin-bottom: 60px;
}

/* ==========================
   CARD GENERADOR
========================== */


/* Botón PDF */
.pdf-btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fad201;
    color: #000;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.pdf-btn i{
    font-size: 1.1rem;
}

.pdf-btn:hover{
    background: #000;
    color: #fad201;
    transform: translateY(-2px);
}


/* ==========================
   LAYOUT GENERADOR DETALLE
========================== */

.generador-detalle-section{
    margin-top: 60px;
    margin-bottom: 90px;
}



.generador-img-box{
    flex:0 0 260px;
}

.generador-img-box img{
    width: 100%;
    max-width: 520px;
    height: 350px; /* tamaño consistente */
    object-fit: cover; /* mejor para fotos reales */
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    transition: transform 0.4s ease;
    display: block;
}


.generador-info-box{
    flex:1;
}


/* Títulos */
.generador-titulo{
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e6c200; /* amarillo suave */
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 15px;
}

.generador-subtitulo{
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e6c200; /* amarillo suave */
    margin-top: 25px;
    margin-bottom: 12px;
}

/* Texto */
.generador-descripcion{
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Specs */
.generador-specs{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 25px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
}

.generador-specs span{
    font-weight: 700;
    color: #000;
}

/* Botones */
.generador-botones{
    margin-top: 25px;
    display: flex;
    gap: 18px;
}

/* Botón PDF */
.btn-pdf{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 30px;
    background: #f2e27a;   /* amarillo suave */
    color: #000;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.btn-pdf:hover{
    background: #000;
    color: #f2e27a;
    transform: translateY(-2px);
}

/* Botón contacto */
.btn-contacto{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 30px;
    background: #000;
    color: #f2e27a;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.btn-contacto:hover{
    background: #f2e27a;
    color: #000;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px){
    .generador-layout{
        grid-template-columns: 1fr;
        text-align: center;
    }

    .generador-specs{
        grid-template-columns: 1fr;
    }

    .generador-botones{
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ==========================
   CONTENEDOR GENERAL
========================== */

.catalogo-generadores{
    display: flex;
    flex-direction: column;
    gap: 110px;   /* separación entre cuadros */
    margin-bottom: 150px;
}

/* ==========================
   CUADRO UNICO GENERADOR
========================== */
.titulo-ventas-principal,
.texto-ventas,
.generador-box{
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.hidden-box{
    opacity: 0;
    transform: translateY(80px);
}

.generador-box > *{
    position: relative;
    z-index: 1;
}




.generador-box{
    position: relative;
    border-radius: 22px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: visible;
    z-index: 1;
    isolation: isolate;
}


.generador-box::before{
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 32px;
    pointer-events: none;
    z-index: -1;

    background: transparent;
    box-shadow:
        0 0 0 2px rgba(250,210,1,0.8),
        0 0 25px rgba(250,210,1,0.9),
        0 0 60px rgba(250,210,1,0.7),
        0 0 120px rgba(250,210,1,0.35);

    opacity: 0;
}


.generador-box.foco-on::before{
    animation: focoOn 0.8s forwards;
}

.generador-box.foco-idle::before{
    animation: focoIdle 3s infinite;
}

.generador-box.foco-off::before{
    animation: focoOff 0.5s forwards;
}

@keyframes focoOn {
    0% { opacity: 0; }
    10% { opacity: 0.8; }
    20% { opacity: 0.3; }
    30% { opacity: 1; }
    45% { opacity: 0.6; }
    60% { opacity: 1; }
    75% { opacity: 0.85; }
    100% { opacity: 1; }
}

@keyframes focoIdle {
    0%,100% { opacity: 1; }
    48% { opacity: 0.9; }
    50% { opacity: 0.7; }
    52% { opacity: 0.95; }
}

@keyframes focoOff {
    0% { opacity: 1; }
    20% { opacity: 0.4; }
    40% { opacity: 0.9; }
    60% { opacity: 0.3; }
    80% { opacity: 0.6; }
    100% { opacity: 0; }
}

.generador-box.foco-on .generador-titulo,
.generador-box.foco-idle .generador-titulo,
.generador-box.foco-on .generador-subtitulo,
.generador-box.foco-idle .generador-subtitulo{

    text-shadow:
        0 0 5px rgba(250,210,1,0.8),
        0 0 15px rgba(250,210,1,0.6),
        2px 2px 0 #000;

    transition: text-shadow 0.3s ease;
}

.generador-box.foco-off .generador-titulo,
.generador-box.foco-off .generador-subtitulo{
    text-shadow:
        2px 2px 0 #000;
}

/* Hover general */
.generador-box:hover{
    transform: translateY(0) scale(1.02);
    box-shadow: 0 35px 80px rgba(0,0,0,0.35);
}


/* Layout interno */
.generador-layout{
    display: grid;
    grid-template-columns: 420px 1fr; /* imagen más grande */
    gap: 60px; /* ← separa imagen y texto */
    align-items: center;
}

@keyframes flicker-on {
    0% { opacity: 0; }
    10% { opacity: 0.8; }
    20% { opacity: 0.2; }
    30% { opacity: 1; }
    40% { opacity: 0.4; }
    50% { opacity: 1; }
    70% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes flicker-mini {
    0% { opacity: 1; }
    45% { opacity: 0.85; }
    50% { opacity: 0.6; }
    55% { opacity: 0.9; }
    100% { opacity: 1; }
}

@keyframes flicker-off {
    0%   { opacity: 1; transform: scale(1); }
    20%  { opacity: 0.3; transform: scale(1.02); }
    40%  { opacity: 0.9; transform: scale(0.98); }
    60%  { opacity: 0.2; transform: scale(1.03); }
    80%  { opacity: 0.6; }
    100% { opacity: 0; transform: scale(1); }
}



/* ==========================
   IMAGEN
========================== */

.generador-img-box{
    position: relative;
    z-index: 2;
}



.generador-box:hover .generador-img-box img{
    transform: scale(1.03);
}

/* ==========================
   VARIANTE AZUL – DIALIZADOR
========================== */

.generador-azul::before{
    box-shadow:
        0 0 0 2px rgba(0,140,255,0.8),
        0 0 25px rgba(0,140,255,0.9),
        0 0 60px rgba(0,140,255,0.7),
        0 0 120px rgba(0,140,255,0.35);
}

/* Títulos azules */
.generador-azul .generador-titulo,
.generador-azul .generador-subtitulo{
    color: #1da1f2;
    text-shadow:
        0 0 6px rgba(0,140,255,0.8),
        2px 2px 0 #000;
}

/* Botón azul */
.btn-contacto-azul{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 30px;
    background: #0b3c5d;
    color: #e6f4ff;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.btn-contacto-azul:hover{
    background: #1da1f2;
    color: #000;
    transform: translateY(-2px);
}

.btn-pdf-azul{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 30px;
    background: #0a2a43;
    color: #cfe9ff;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.btn-pdf-azul:hover{
    background: #1da1f2;
    color: #000;
}

.generador-img-box{
    width: 100%;
    max-width: 532px;
    height: 452px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff; /* fondo blanco del contenedor */
}

.generador-img-box img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent; /* 🔥 elimina las líneas negras */
}

.hover-rotar{
    position: relative;
    width: 100%;
    max-width: 532px;
    height: 452px;
    perspective: 1000px;
}

.hover-rotar img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 
        transform 0.8s ease,
        opacity 0.6s ease;
    backface-visibility: hidden;
}

/* Imagen principal */
.hover-rotar .img-principal{
    opacity: 1;
    transform: rotateY(0deg);
}

/* Imagen secundaria */
.hover-rotar .img-hover{
    opacity: 0;
    transform: rotateY(180deg);
}

/* Hover */
.hover-rotar:hover .img-principal{
    opacity: 0;
    transform: rotateY(-180deg);
}

.hover-rotar:hover .img-hover{
    opacity: 1;
    transform: rotateY(0deg);
}

/* ==========================
   CATEGORÍAS VENTAS
========================== */

.categoria-box{
    margin-bottom: 140px;
}

.categoria-titulo{
    font-family: 'Raleway', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    color: #fad201;
    text-shadow: 2px 2px 0 #000;
}

.categoria-line{
    width: 180px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #fad201, transparent);
    margin: 18px auto 60px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(250,210,1,0.8);
}

/* Azul para dializador */
.categoria-titulo.azul{
    color:#1da1f2;
    text-shadow: 0 0 8px rgba(0,140,255,.8), 2px 2px 0 #000;
}

.categoria-line.azul{
    background: linear-gradient(90deg, transparent, #1da1f2, transparent);
    box-shadow: 0 0 15px rgba(0,140,255,.8);
}

/* Contenido */
.categoria-contenido{
    display:flex;
    flex-direction:column;
    gap:110px;
}

/* Categoría vacía */
.categoria-vacia{
    text-align:center;
    font-family:'Raleway',sans-serif;
    font-size:1.2rem;
    letter-spacing:2px;
    opacity:.6;
}

/* ==========================
   PANEL DE CATEGORÍAS
========================== */

.category-toggle{
    position:fixed;
    right:25px;
    bottom:25px;
    background:#FFD200;
    color:#000;
    padding:14px 22px;
    border-radius:50px;
    font-weight:800;
    cursor:pointer;
    z-index:9999;
    display:flex;
    align-items:center;
    gap:10px;
    box-shadow:0 0 20px rgba(255,210,0,.6);
    transition:.3s;
}

.category-toggle:hover{
    transform:scale(1.05);
}

.category-panel{
    position:fixed;
    right:25px;
    bottom:90px;
    background:#0c0c0c;
    border-radius:18px;
    padding:20px;
    width:220px;
    box-shadow:0 0 40px rgba(255,210,0,.35);
    transform:scale(0);
    transform-origin:bottom right;
    transition:.35s ease;
    z-index:9998;
}

.category-panel.active{
    transform:scale(1);
}

.category-panel h4{
    color:#FFD200;
    text-align:center;
    font-weight:800;
    margin-bottom:15px;
    letter-spacing:2px;
}

.category-panel button{
    width:100%;
    background:transparent;
    border:1px solid #FFD200;
    color:#FFD200;
    padding:10px;
    border-radius:10px;
    margin-bottom:10px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.category-panel button:hover{
    background:#FFD200;
    color:#000;
    box-shadow:0 0 15px rgba(255,210,0,.8);
}

/* =========================
   SLIDER VENTAS ACTIVAS
========================= */

.ventas-slider{
    margin:100px 0 140px;
    position:relative;
}

.slider-container{
    position:relative;
    overflow:hidden;
    border-radius:25px;
    box-shadow:0 30px 80px rgba(0,0,0,.35);
}

.slider-track{
    display:flex;
    transition:transform .8s ease;
}

/* CONTENEDOR DEL SLIDE */
.slide{
    height:420px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#0b0b0b; /* fondo negro elegante */
    border-radius:18px;
}


/* IMAGEN PERFECTAMENTE ADAPTADA */
.slide img{
    width:100%;
    height:100%;
    object-fit:contain;   /* ⭐ LA CLAVE */
}

.slide-info{
    position:absolute;
    bottom:40px;
    left:60px;
    color:#fff;
    background:rgba(0,0,0,.6);
    padding:25px 35px;
    border-radius:15px;
    backdrop-filter:blur(8px);
}

.slide-info h3{
    font-family:'Raleway',sans-serif;
    font-weight:800;
    letter-spacing:3px;
    color:#FFD200;
}

.slide-info p{
    font-family:'Open Sans',sans-serif;
}

/* BOTONES */
.slider-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,.6);
    border:none;
    color:#FFD200;
    font-size:1.5rem;
    padding:15px;
    cursor:pointer;
    border-radius:50%;
    z-index:5;
    transition:.3s;
}

.slider-btn:hover{
    background:#FFD200;
    color:#000;
}

.prev{ left:25px; }
.next{ right:25px; }

/* PROGRESS BAR */
.progress-bar{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:5px;
    background:rgba(255,255,255,.2);
}

.progress{
    height:100%;
    width:0%;
    background:#FFD200;
}

/* ==============================
   HERO PRODUCTOS EN VENTA
============================== */

.hero-ventas {
    position: relative;
    width: 100%;
    height: 85vh; /* MÁS ALTURA */
    min-height: 600px;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 6px;
    width: 0%;
    background: #fad201;
    transition: width 5s linear;
}

.hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 5;
}

.hero-btn.left { left: 20px; }
.hero-btn.right { right: 20px; }

.hero-btn:hover {
    background: #fad201;
    color: #000;
}

.categorias-menu {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    transition: .6s ease;
}

.categoria-btn {
    width: 220px;
    cursor: pointer;
    transition: .6s ease;
}

.categoria-btn img {
    width: 100%;
    border-radius: 10px;
}

.categoria-btn span {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

.categoria-btn.hide {
    opacity: 0;
    transform: translateX(200px);
}

.productos-container {
    margin-top: 60px;
    opacity: 0;
    transform: translateY(40px);
    transition: .6s ease;
}

.productos-container.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   BOTONES CATEGORÍAS
========================= */

.categoria-btn {
    transition: .5s ease;
}

.categoria-btn.hide-btn {
    opacity: 0;
    transform: translateX(150px) scale(.8);
}

.categoria-btn.active-btn {
    transform: scale(1.1);
}

/* =========================
   PRODUCTOS
========================= */

.productos-container {
    opacity: 0;
    transform: translateY(40px);
    transition: .6s ease;
}

.productos-container.show-productos {
    opacity: 1;w
    transform: translateY(0);
}

.productos-activos {
    position: relative;
    animation: fadeInUp .6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BOTÓN CERRAR */

.btn-cerrar {
    position: absolute;
    right: 0;
    top: -50px;
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
}

.btn-cerrar:hover {
    background: #fad201;
    color: #000;
}

/* ============================= */
/* SLIDER PRODUCTOS – FIX REAL */
/* ============================= */

.ventas-slider .slider-track{
    display: flex;
    align-items: center;
}

.ventas-slider .slide{
    min-width: 100%;
    height: 420px;              /* ← MISMA ALTURA PARA TODOS */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #fff;
}

/* NORMALIZA TODAS LAS IMÁGENES */
.ventas-slider .slide img{
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;        /* ← CLAVE: no se deforman */
}

/* caja del texto */
.slide-info{
    position: absolute;
