@charset "UTF-8";

/* =====================================================
   CONTENEDOR PRINCIPAL
===================================================== */

.detalle-producto{

    width:100%;

    max-width:1800px;

    margin:auto;

    padding:24px;
}
/* =====================================================
   SEPARACIÓN ENTRE SECCIONES
===================================================== */

.descripcion-seccion,
.video-seccion,
.comentarios,
.compatibilidad-wrapper,
.productos-relacionados{

    margin-top:26px;
}

/* =====================================================
   CARD PRINCIPAL
===================================================== */

.producto-contenedor{

    display:grid;

    grid-template-columns:1.05fr .95fr;

    gap:28px;

    background:#fff;

    padding:26px;

    border-radius:24px;

    border:1px solid #edf2f7;

    box-shadow:
        0 10px 30px rgba(15,23,42,.05);

    align-items:start;
}

/* =====================================================
   COLUMNA IZQUIERDA
===================================================== */

.left-column{

    display:flex;

    flex-direction:column;

    align-items:center;
}

/* =====================================================
   IMAGEN PRINCIPAL
===================================================== */

.main-image{

    width:100%;

    max-width:700px;

    position:relative;

    overflow:hidden;

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:zoom-in;
}

.main-image img{

    width:100%;

    max-width:100%;

    height:auto;

    max-height:560px;

    object-fit:contain;

    border-radius:22px;

    background:#f8fafc;

    padding:18px;

    transition:
        transform .28s ease,
        box-shadow .28s ease;

    will-change:transform;

    border:1px solid #edf2f7;
}

.main-image img:hover{

    transform:scale(1.015);

    box-shadow:
        0 10px 24px rgba(15,23,42,.08);
}

/* =====================================================
   ZOOM
===================================================== */

.zoom-lens{

    position:absolute;

    width:180px;
    height:180px;

    border:2px solid #2563eb;

    border-radius:50%;

    pointer-events:none;

    background-repeat:no-repeat;

    background-size:200%;

    display:none;

    box-shadow:
        0 8px 24px rgba(0,0,0,.16);

    z-index:20;
}

/* =====================================================
   BADGE PRODUCTO
===================================================== */

.badge-producto{

    position:absolute;

    top:18px;
    right:18px;

    z-index:20;

    padding:8px 16px;

    border-radius:12px;

    font-size:13px;

    font-weight:700;

    letter-spacing:.3px;

    color:#fff;

    box-shadow:
        0 6px 18px rgba(0,0,0,.18);
}

.badge-producto.nuevo{

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );
}

.badge-producto.oferta{

    background:
        linear-gradient(
            135deg,
            #ef4444,
            #dc2626
        );
}

/* =====================================================
   CARRUSEL
===================================================== */

.carousel{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    margin-top:18px;

    width:100%;
}

.carousel-button{

    width:42px;
    height:42px;

    border-radius:50%;

    border:none;

    background:#2563eb;

    color:#fff;

    font-size:15px;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-shrink:0;

    transition:.25s ease;
}

.carousel-button:hover{

    background:#1d4ed8;

    transform:scale(1.05);
}

.carousel-wrapper{

    overflow:hidden;

    width:100%;

    max-width:580px;
}

.carousel-images{

    display:flex;

    gap:10px;

    transition:transform .28s ease;
}

.carousel-images img{

    width:108px;
    height:108px;

    object-fit:contain;

    background:#f8fafc;

    border-radius:14px;

    padding:8px;

    cursor:pointer;

    border:2px solid transparent;

    flex-shrink:0;

    transition:.22s ease;
}

.carousel-images img:hover{

    transform:translateY(-2px);
}

.carousel-images .active{

    border:2px solid #2563eb;
}

/* =====================================================
   INFORMACIÓN PRODUCTO
===================================================== */

.informacion-producto{

    display:flex;

    flex-direction:column;

    gap:14px;

    padding:4px;
}

/* =====================================================
   TÍTULO
===================================================== */

.informacion-producto h1{

    font-size:42px;

    font-weight:800;

    line-height:1.08;

    color:#0f172a;

    letter-spacing:-1px;

    margin:0 0 6px;
}

/* =====================================================
   ITEM
===================================================== */

.informacion-producto h2{

    font-size:24px;

    color:#0f172a;

    font-weight:800;

    text-align:center;

    padding:14px 18px;

    border-radius:18px;

    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #eef4ff
        );

    border:1px solid #dbe7ff;

    box-shadow:
        0 4px 14px rgba(37,99,235,.05);

    margin:0;
}

/* =====================================================
   PIEZAS X CAJA
===================================================== */

.piezas-caja{

    font-size:18px;

    color:#0f172a;

    font-weight:700;

    text-align:center;

    padding:14px 18px;

    border-radius:18px;

    background:#fff;

    border:1px solid #edf2f7;

    box-shadow:
        0 4px 14px rgba(15,23,42,.04);
}

/* =====================================================
   MARCA
===================================================== */

.marca-producto{

    display:flex;

    align-items:center;

    gap:14px;

    padding:14px 18px;

    border-radius:18px;

    background:#fff;

    border:1px solid #edf2f7;

    box-shadow:
        0 4px 14px rgba(15,23,42,.04);
}

.marca-label{

    font-size:16px;

    font-weight:800;

    color:#0f172a;
}

.marca-producto img{

    max-width:150px;

    max-height:56px;

    object-fit:contain;

    transition:.22s ease;
}

.marca-producto img:hover{

    transform:scale(1.03);
}

.marca-texto{

    font-size:15px;

    font-weight:700;

    color:#2563eb;
}

/* =====================================================
   DESCRIPCIÓN SECCIÓN
===================================================== */

.descripcion-seccion{

    background:#fff;

    border-radius:24px;

    border:1px solid #edf2f7;

    box-shadow:
        0 8px 24px rgba(15,23,42,.04);

    overflow:hidden;
}

.descripcion-larga{

    position:relative;

    padding:28px;

    font-size:16px;

    line-height:1.9;

    color:#334155;
}

.descripcion-larga::before{

    content:'';

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:4px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #3b82f6,
            #60a5fa
        );
}

/* =====================================================
   VIDEO
===================================================== */

.video-seccion{

    background:#fff;

    padding:24px;

    border-radius:24px;

    border:1px solid #edf2f7;

    box-shadow:
        0 8px 24px rgba(15,23,42,.04);
}

.video-container{

    width:100%;

    display:flex;

    justify-content:center;
}

.video-container iframe{

    width:100%;

    max-width:980px;

    height:520px;

    border:none;

    border-radius:22px;

    background:#000;

    box-shadow:
        0 10px 30px rgba(15,23,42,.10);
}

/* =====================================================
   COMENTARIOS
===================================================== */

.comentarios{

    background:#fff;

    border:1px solid #edf2f7;

    border-radius:24px;

    padding:28px;

    box-shadow:
        0 8px 24px rgba(15,23,42,.04);
}

/* =====================================================
   MODAL IMAGEN
===================================================== */

.image-modal{

    position:fixed;

    inset:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.88);

    display:flex;

    align-items:center;
    justify-content:center;

    opacity:0;
    visibility:hidden;

    transition:.35s ease;

    z-index:99999;
}

.image-modal.active{

    opacity:1;
    visibility:visible;
}

.modal-image{

    max-width:90%;
    max-height:90%;

    border-radius:18px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.4);

    transform:scale(.9);

    transition:.35s ease;
}

.image-modal.active .modal-image{

    transform:scale(1);
}

.close-modal{

    position:absolute;

    top:30px;
    right:40px;

    font-size:50px;

    color:#fff;

    cursor:pointer;

    z-index:2;

    transition:.25s ease;
}

.close-modal:hover{

    transform:scale(1.1);
}

/* =====================================================
   FLECHAS MODAL
===================================================== */

.modal-nav{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:56px;
    height:56px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.12);

    backdrop-filter:blur(10px);

    color:#fff;

    font-size:28px;

    cursor:pointer;

    z-index:10;

    transition:.25s ease;
}

.modal-nav:hover{

    background:rgba(255,255,255,.22);

    transform:
        translateY(-50%)
        scale(1.08);
}

.prev-modal{

    left:30px;
}

.next-modal{

    right:30px;
}

.preview-image{

    cursor:zoom-in;
}

/* =====================================================
   MONITORES GRANDES
===================================================== */

@media (min-width:1600px){

    .detalle-producto{

        padding:40px 28px;
    }

    .producto-contenedor{

        gap:36px;

        padding:34px;
    }

    .main-image img{

        max-height:720px;
    }

    .carousel-images img{

        width:138px;
        height:138px;
    }

    .informacion-producto h1{

        font-size:54px;
    }

    .video-container iframe{

        height:620px;
    }
}

/* =====================================================
   LAPTOPS
===================================================== */

@media (max-width:1200px){

    .producto-contenedor{

        grid-template-columns:1fr 1fr;

        gap:22px;
    }

    .informacion-producto h1{

        font-size:34px;
    }

    .main-image img{

        max-height:480px;
    }
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width:992px){

    .producto-contenedor{

        grid-template-columns:1fr;

        gap:22px;
    }

    .informacion-producto h1{

        font-size:30px;
    }

    .video-container iframe{

        height:400px;
    }
}

/* =====================================================
   MÓVIL
===================================================== */

@media (max-width:768px){

    .detalle-producto{

    padding:18px;
}

    .producto-contenedor{

        padding:16px;

        border-radius:18px;
    }

    .main-image img{

        max-height:320px;

        padding:12px;

        border-radius:16px;
    }

    .carousel-images img{

        width:72px;
        height:72px;
    }

    .informacion-producto h1{

        font-size:24px;

        line-height:1.18;
    }

    .informacion-producto h2{

        font-size:17px;

        padding:11px 14px;
    }

    .piezas-caja{

        font-size:15px;

        padding:12px;
    }

    .marca-producto{

        flex-wrap:wrap;

        padding:12px;

        gap:10px;
    }

    .descripcion-larga{

        padding:20px 18px;

        font-size:13px;

        line-height:1.75;
    }

    .video-seccion{

        padding:16px;
    }

    .video-container iframe{

        height:240px;

        border-radius:16px;
    }

    .comentarios{

        padding:18px;

        border-radius:18px;
    }

    .modal-nav{

        width:44px;
        height:44px;

        font-size:22px;
    }

    .prev-modal{

        left:12px;
    }

    .next-modal{

        right:12px;
    }

    .close-modal{

        top:18px;
        right:18px;

        font-size:38px;
    }

    .modal-image{

        max-width:94%;
        max-height:80%;
    }
}
@media (max-width:580px){

    .detalle-producto{

        padding:14px;
    }
}

/* =====================================================
   TELÉFONOS PEQUEÑOS
===================================================== */

@media (max-width:420px){

    .producto-contenedor{

        padding:12px;
    }

    .main-image img{

        max-height:240px;
    }

    .carousel-images img{

        width:56px;
        height:56px;
    }

    .informacion-producto h1{

        font-size:20px;
    }

    .informacion-producto h2{

        font-size:15px;
    }

    .descripcion-larga{

        padding:16px 14px;

        font-size:12px;
    }

    .video-container iframe{

        height:190px;
    }
}