/* =========================
SECCIÓN PRODUCTOS
========================= */
.productos-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:35px;
}


/* =========================
MODAL
========================= */
.modal{
    position:fixed;
    inset:0;
    width:100%;
    height:100vh;
    display:none;                  
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.modal.active{
    display:flex;
}


/* OVERLAY */
.modal-overlay{
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.82);
    backdrop-filter:blur(6px);
}


/* CONTENIDO */
.modal-contenido{
    position:relative;
    width:90%;
    max-width:1100px;
    max-height:90vh;
    overflow-y:auto;
    background:#fff;
    border-radius:35px;
    z-index:10;
    padding:45px;
    animation:aparecer .4s ease;
    box-shadow:0 20px 50px rgba(0,0,0,.3);
}


/* ANIMACIÓN */
@keyframes aparecer{

    from{
        opacity:0;
        transform:scale(.85);
    }

    to{
        opacity:1;
        transform:scale(1);
    }
}


/* CERRAR */
.cerrar-modal-btn{
    position:absolute;
    top:20px;
    right:28px;
    font-size:38px;
    cursor:pointer;
    color:#111;
    transition:.3s;
}

.cerrar-modal-btn:hover{
    color:#ff008c;
    transform:scale(1.1);
}

/* =========================
HEADER
========================= */
.modal-header{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:45px;
    align-items:center;
}


/* IMAGEN */
.modal-header img{
    width:100%;
    border-radius:28px;
    box-shadow:
    0 12px 30px rgba(0,0,0,.12);
}

/* TEXTO */
.modal-header-texto span{
    color:#ff008c;
    font-weight:800;
    letter-spacing:2px;
}

.modal-header-texto h2{
    font-size:52px;
    margin:18px 0;
    line-height:1.1;
    color:#000;
    font-weight:800;
}

.modal-header-texto p{
    color:#222;
    line-height:1.9;
    margin-bottom:30px;
    font-size:17px;
}

.next2{
    position:absolute;
    top:50%;
    right:40px;
    transform:translateY(-50%);
    background:#00aaff;
    border:none;
    color:white;
    font-size:35px;
    width:65px;
    height:65px;
    border-radius:50%;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 10px 25px rgba(0,170,255,.25);
}

.next2:hover{
    background:#ff008c;
    transform:translateY(-50%) scale(1.1);
    box-shadow:0 10px 25px rgba(255,0,140,.25);
}


/* BOTÓN */
.btn-cotizar{
    display:inline-block;
    background:#00aaff;
    color:#fff;
    padding:16px 34px;
    border-radius:18px;
    text-decoration:none;
    font-weight:700;
    transition:.35s;
    box-shadow:
    0 10px 25px rgba(0,170,255,.25);
}

.prev2{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:#00aaff;
    border:none;
    color:white;
    font-size:35px;
    width:65px;
    height:65px;
    border-radius:50%;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 10px 25px rgba(0,170,255,.25);
}


/* HOVER */
.btn-cotizar:hover{
    background:#ff008c;
    transform:translateY(-4px);
    box-shadow:
    0 14px 28px rgba(255,0,140,.3);
}

.prev2:hover{
    background:#ff008c;
    transform:translateY(-50%)scale(1.1);
    box-shadow:0 10px 25px rgba(255,0,140,.25);
}

.prev2{
    left:40px;
}


/* =========================
TARJETAS
========================= */
.card{
    background:white;
    border-radius:28px;
    overflow:hidden;
    transition:.4s;
    position:relative;
    box-shadow:
    0 12px 30px rgba(0,0,0,.12);
}


/* LINEA SUPERIOR */
.card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:6px;
    background:linear-gradient(
    90deg,
    #00aaff,
    #ff008c,
    #ffd500);

    z-index:5;
}


/* HOVER */
.card:hover{
    transform:translateY(-10px);
    box-shadow:
    0 20px 40px rgba(0,0,0,.18);
}

.resaltar{
    animation: flashMagenta 1.2s ease;
}

@keyframes flashMagenta{
    0%{
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255,0,255,0);
    }

    30%{
        transform: scale(1.06);
        box-shadow: 0 0 30px #ff00ff;
    }

    100%{
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255,0,255,0);
    }
}


/* =========================
IMAGEN
======================== */
.card-img{
    overflow:hidden;
    position:relative;
}

.card-img img{
    width:100%;
    height:240px;
    object-fit:cover;
    transition:.5s;
}


/* ZOOM */
.card:hover .card-img img{
    transform:scale(1.1);
}


/* SOMBRA IMAGEN */
.card-img::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top,rgba(0,0,0,.35),transparent);
    opacity:0;

    transition:.4s;
}

.card:hover .card-img::after{
    opacity:1;
}

/* =========================
TEXTOS
========================= */
.card-texto{
    padding:30px;
}

.card-texto h3{
    font-size:28px;
    color:#111;
    margin-bottom:15px;
    font-weight:800;
}

.card-texto p{
    color:#666;
    line-height:1.8;
    margin-bottom:28px;
    font-size:16px;
}


/* =========================
BOTÓN
========================= */
.card-texto a{
    display:inline-block;
    padding:14px 30px;
    background:#00aaff;
    color:white;
    text-decoration:none;
    border-radius:16px;
    font-weight:700;
    transition:.35s;
}

/* HOVER BOTÓN */
.card-texto a:hover{
    background:#ff008c;
    color:white;
    transform:translateY(-4px);
    box-shadow:
    0 12px 25px rgba(255,0,140,.25);
}

/*------*/
.productos{
    width:100%;
    padding:120px 8%;
    background:#f5f5f5;
    position:relative;
    overflow:hidden;
}

.productos{
    background:#111;
}

.productos-titulo span{
   color:#ff008c;
    font-size:14px;
    font-weight:800;
    letter-spacing:3px;
    margin-bottom:12px;
}

.productos-titulo h2{
    margin:15px 0;
    line-height:1.2;
}

.productos-titulo h2{
    font-size:45px;
    color: #111;
}

.productos-titulo p{
    font-size:17px;
    line-height:1.8;
}

.productos-titulo p{
    color:#222;
}

.productos-titulo{
    text-align:center;
    margin-bottom:70px;
}

.productos-titulo p{
    max-width:700px;
    margin:auto;
}


/* =========================
GALERÍA
========================= */
.modal-galeria,
.modal-tipos,
.modal-beneficios{
    margin-top:40px;
}

.modal-galeria h3,
.modal-tipos h3,
.modal-beneficios h3{
    font-size:34px;
    margin-bottom:30px;
    color:#111;
    font-weight:800;
}


/* GRID */
.beneficios-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    margin-top:20px;
}


/* GALERIA FLEX */
.galeria-grid{
    display:flex;
    gap:18px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding-bottom:10px;
    margin-top:20px;
}


/* SCROLL BONITO */
.galeria-grid::-webkit-scrollbar{
    height:8px;
}

.galeria-grid::-webkit-scrollbar-thumb{
    background:#00aaff;
    border-radius:20px;
}


/* IMAGENES */
.galeria-grid img{
    min-width:260px;
    height:220px;
    object-fit:cover;
    border-radius:22px;
    flex-shrink:0;
    transition:.35s;
}

/* TIPOS */
.tipo-box{
    background:#f5f5f5;
    padding:28px;
    border-radius:24px;
    transition:.35s;
    position:relative;
    overflow:hidden;
}



/* HOVER */

.tipo-box:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 28px rgba(0,0,0,.08);
}

.tipo-box h4{
    margin-bottom:12px;
    color:#111;
    font-size:20px;
    font-weight:800;
}

.tipo-box p{
    color:#222;
    line-height:1.7;
}


/* BENEFICIOS */

.beneficio{
    background:#111;
    color:#fff;
    padding:14px 16px;
    border-radius:18px;
    min-height:70px;
    font-size:15px;
    font-weight:600;
    line-height:1.2;
    border:none;
    box-shadow:none;
}


/* LINEA */

.beneficio::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:5px;
    background:linear-gradient(
    90deg,
    #00aaff,
    #ff008c,
    #ffd500);
}

@media(max-width:768px){

    .beneficios-grid{
        grid-template-columns:1fr 1fr;
    }

}

@media(max-width:500px){

    .beneficios-grid{
        grid-template-columns:1fr;
    }

}




/* =========================================
HEADER NUEVO
========================================= */

.precio-desde{
    font-size: 28px;
    font-weight: 800;
    color: #ff2d75;
    margin: 20px 0;
}

.header-info{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.info-mini{
    background: #eef2f8;
    color: #111;
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
}

/* =========================================
TIPOS CONTAINER
========================================= */

.tipos-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 30px;
    max-width:1200px;
    margin:auto;
    justify-items:center;
}


/* =========================================
TIPO BOX
========================================= */

.tipo-box{
    background: #fff;
    border-radius: 25px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid #f0f0f0;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 450px;
    width:100%;
    max-width:450px;
    
}

.tipo-box:hover{
    transform: translateY(-8px);
}

.tipo-box img{
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 20px;
}

.tipo-box h4{
    font-size: 26px;
    color: #111;
    margin-bottom: 15px;
}

.tipo-box p{
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* =========================================
BADGE
========================================= */

.badge-top{
    position: absolute;
    top: 18px;
    left: 18px;
    background: #ff2d75;
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
}

/* =========================================
PRECIO CARD
========================================= */

.precio-card{
    font-size: 28px;
    font-weight: 800;
    color: #0066ff;
    margin-bottom: 20px;
}

/* =========================================
BOTON DETALLES
========================================= */

.btn-ver-precios{
    width: 100%;
    border: none;
    background: linear-gradient(45deg,#0066ff,#00a2ff);
    color: #fff;
    padding: 14px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: 0.3s;
}

.btn-ver-precios:hover{
    transform: translateY(-3px);
}

/* =========================================
DETALLES
========================================= */

.tabla-precios{
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    background: #f8f8f8;
    border-radius: 18px;
    padding: 0 18px;
    margin-bottom: 20px;
}

.tabla-precios.active{
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding: 18px;
}

.detalle-item{
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

.detalle-item:last-child{
    border-bottom: none;
}


.titulo-precios{
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.fila-precio{
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.fila-precio:last-child{
    border-bottom: none;
}

.uso-recomendado{
    margin-top: 20px;
    background: rgba(255,45,117,0.08);
    color: #111;
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================
BOTON WHATSAPP
========================================= */

.btn-card-whatsapp{
    display: inline-block;
    width: 100%;
    text-align: center;
    background: linear-gradient(45deg,#ff2d75,#ff7b00);
    color: #fff;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-card-whatsapp:hover{
    transform: translateY(-3px);
}

/* =========================================
BENEFICIOS
========================================= */

.modal-beneficios h3{
    font-size: 34px;
    margin-bottom: 30px;
}

.beneficios-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 20px;
}

.beneficio{
    background: #f8f8f8;
    padding: 20px;
    border-radius: 18px;
    font-weight: 600;
    color: #111;
}

/* =========================================
MINI INFO
========================================= */

.header-info{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.info-mini{
    background: #eef2f8;
    color: #111;
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
}

/* =========================================
CTA FINAL
========================================= */

.cta-final-modal{
    margin-top: 70px;
    background: linear-gradient(45deg,#0066ff,#ff2d75);
    padding: 50px 30px;
    border-radius: 30px;
    text-align: center;
    color: #fff;
}

.cta-final-modal h3{
    font-size: 34px;
    margin-bottom: 20px;
}

.cta-final-modal p{
    max-width: 650px;
    margin: auto;
    line-height: 1.7;
    margin-bottom: 30px;
}

.btn-final-whatsapp{
    display: inline-block;
    background: #fff;
    color: #111;
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-final-whatsapp:hover{
    transform: translateY(-3px);
}

/* =========================================
RESPONSIVE
========================================= */

@media(max-width:768px){

    .tipo-box img{
        height: 200px;
    }

    .tipo-box h4{
        font-size: 22px;
    }

    .precio-card{
        font-size: 24px;
    }

    .modal-beneficios h3{
        font-size: 28px;
    }

}

/* =========================================
MOBILE PREMIUM FIX
AGREGA ESTO AL FINAL DEL CSS
========================================= */

@media(max-width:900px){

    /* MODAL */
    .modal{
        padding:20px 10px;
        align-items:flex-start;
        overflow-y:auto;
    }

    .modal-contenido{
        width:100%;
        max-width:100%;
        max-height:none;
        border-radius:28px;
        padding:25px 18px;
        margin:20px 0;
    }

    /* HEADER */
    .modal-header{
        grid-template-columns:1fr;
        gap:28px;
    }

    .modal-header img{
        height:260px;
        object-fit:cover;
        border-radius:22px;
    }

    .modal-header-texto{
        text-align:center;
    }

    .modal-header-texto span{
        font-size:12px;
        letter-spacing:1.5px;
    }

    .modal-header-texto h2{
        font-size:38px;
        line-height:1.1;
        margin:15px 0;
    }

    .modal-header-texto p{
        font-size:15px;
        line-height:1.7;
        margin-bottom:25px;
    }

    /* MINI INFO */
    .header-info{
        justify-content:center;
        gap:10px;
    }

    .info-mini{
        font-size:13px;
        padding:10px 14px;
        border-radius:14px;
    }

    /* BOTONES */
    .btn-cotizar,
    .btn-card-whatsapp,
    .btn-final-whatsapp{
        width:100%;
        text-align:center;
        font-size:15px;
        padding:15px;
    }

    /* TITULOS */
    .modal-tipos h3,
    .modal-beneficios h3,
    .cta-final-modal h3{
        font-size:28px;
        text-align:center;
        line-height:1.2;
    }

    /* CARDS */
    .tipos-container{
        grid-template-columns:1fr;
        gap:22px;
    }

    .tipo-box{
        padding:18px;
        border-radius:22px;
    }

    .tipo-box img{
        height:210px;
        border-radius:18px;
    }

    .tipo-box h4{
        font-size:22px;
    }

    .tipo-box p{
        font-size:14px;
        line-height:1.6;
    }

    /* DETALLES */
    .detalle-item{
        flex-direction:column;
        align-items:flex-start;
        gap:5px;
        padding:14px 0;
        font-size:14px;
    }

    .detalle-item strong{
        font-size:14px;
    }

    /* BENEFICIOS */
    .beneficios-grid{
        grid-template-columns:1fr;
        gap:15px;
    }

    .beneficio{
        min-height:auto;
        padding:18px;
        border-radius:16px;
        font-size:14px;
        line-height:1.5;
    }

    /* CTA */
    .cta-final-modal{
        margin-top:50px;
        padding:35px 20px;
        border-radius:24px;
    }

    .cta-final-modal p{
        font-size:14px;
        line-height:1.7;
    }

    /* BOTON CERRAR */
    .cerrar-modal-btn{
        top:14px;
        right:18px;
        font-size:34px;
        z-index:100;
    }

}


/* =========================================
CELULARES PEQUEÑOS
========================================= */

@media(max-width:480px){

    .modal-contenido{
        padding:22px 15px;
        border-radius:24px;
    }

    .modal-header img{
        height:220px;
    }

    .modal-header-texto h2{
        font-size:30px;
    }

    .modal-header-texto p{
        font-size:14px;
    }

    .info-mini{
        width:100%;
        text-align:center;
    }

    .tipo-box img{
        height:190px;
    }

    .tipo-box h4{
        font-size:20px;
    }

    .btn-ver-precios{
        padding:13px;
        font-size:14px;
    }

    .cta-final-modal h3{
        font-size:24px;
    }

}


/* =========================================
SCROLL PREMIUM
========================================= */

.modal-contenido::-webkit-scrollbar{
    width:8px;
}

.modal-contenido::-webkit-scrollbar-thumb{
    background:linear-gradient(
    180deg,
    #00aaff,
    #ff008c);
    
    border-radius:20px;
}


/* =========================================
EFECTOS MAS PREMIUM
========================================= */

.tipo-box{
    backdrop-filter:blur(10px);
}

.tipo-box:hover{
    transform:translateY(-8px) scale(1.01);
}

.btn-cotizar,
.btn-card-whatsapp,
.btn-final-whatsapp,
.btn-ver-precios{
    position:relative;
    overflow:hidden;
}

.btn-cotizar::before,
.btn-card-whatsapp::before,
.btn-final-whatsapp::before,
.btn-ver-precios::before{
    content:"";
    position:absolute;
    top:0;
    left:-120%;
    width:100%;
    height:100%;
    background:rgba(255,255,255,.18);
    transition:.6s;
    transform:skewX(-20deg);
}

.btn-cotizar:hover::before,
.btn-card-whatsapp:hover::before,
.btn-final-whatsapp:hover::before,
.btn-ver-precios:hover::before{
    left:120%;
}


/* =========================================
MEJOR ESPACIADO GENERAL
========================================= */

.modal-tipos,
.modal-beneficios{
    margin-top:60px;
}

.cta-final-modal{
    box-shadow:
    0 20px 45px rgba(0,0,0,.18);
}


/* =========================================
ARREGLA IMAGENES QUE SE ROMPEN
========================================= */

img{
    max-width:100%;
    display:block;
}


.producto-destacado,
.resultado-encontrado{

    box-shadow:
    0 0 30px #ff1493,
    0 0 60px rgba(255,20,147,.55);

    transform:scale(1.02);

    transition:all .1s ease;

}


/* =========================================
VISOR DE IMÁGENES
========================================= */

.visor-imagen{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.92);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:999999;

    opacity:0;
    visibility:hidden;

    transition:.3s;
}

.visor-imagen.activo{
    opacity:1;
    visibility:visible;
}

.visor-imagen img{
    max-width:90%;
    max-height:90%;
    border-radius:15px;

    transform:scale(1);
    transition:transform .15s ease;

    cursor:grab;
}

.cerrar-visor{
    position:absolute;
    top:20px;
    right:30px;

    font-size:50px;
    color:white;

    cursor:pointer;
    user-select:none;
}

.tipo-box img{
    cursor:zoom-in;
}

/* CELULAR */

@media(max-width:768px){

    .visor-imagen img{
        max-width:95%;
        max-height:85%;
    }

    .cerrar-visor{
        font-size:42px;
        top:15px;
        right:20px;
    }

}
