.galeria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    height: 100%;
    min-height: 0;
}
.img-wrapper {
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.3s;
    cursor: pointer;
}
.img-wrapper img:hover {
    transform: scale(1.05);
}

.detalle-desc {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--rojo-pulsar);
    margin-top: 30px;
}
.detalle-desc h3 { color: white; margin-bottom: 15px; font-size: 1.5rem; text-transform: uppercase; }
.detalle-desc p { color: #ccc; line-height: 1.8; font-size: 1.1rem; }

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.spec-item {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #222;
    text-align: center;
}
.spec-item i { font-size: 2rem; color: var(--rojo-pulsar); margin-bottom: 10px; }
.spec-item span { display: block; color: #888; font-size: 0.8rem; text-transform: uppercase; }
.spec-item strong { display: block; color: white; font-size: 1.1rem; margin-top: 5px; }

.main-container-segunda {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-detalle-grid {
    display: grid;
    grid-template-columns: 33% 1fr;
    grid-template-rows: 20% 1fr;
    gap: 20px 40px;
    height: 480px;
    margin-bottom: 40px;
}

.div-portada {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 100%;
    min-height: 0;
}

.portada-contenedor {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portada-contenedor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.div-header {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.div-galeria {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
}

.header-segunda {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.header-segunda h1 {
    font-size: 3rem;
    color: white;
    margin: 0;
    line-height: 1;
}
.header-segunda h1 span { color: var(--rojo-pulsar); }
.header-segunda .sub-marca {
    font-size: 1.5rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.precio-box {
    text-align: right;
}
.precio-box .monto {
    font-size: 4rem;
    color: white;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.precio-box .simbolo { font-size: 2rem; color: var(--rojo-pulsar); vertical-align: super; }
.precio-box .leyenda { color: var(--rojo-pulsar); font-weight: 800; letter-spacing: 2px; }

/* Modal Imagen Completa */
#modal-img {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}
#modal-img img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}
.cerrar-img {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: 0.3s;
}
.cerrar-img:hover { color: var(--rojo-pulsar); }

@media(max-width: 900px) {
    .hero-detalle-grid { 
        grid-template-columns: 1fr; 
        grid-template-rows: auto auto auto;
        height: auto; 
    }
    .div-portada, .div-header, .div-galeria {
        grid-column: auto;
        grid-row: auto;
    }
    .div-portada { height: 400px; }
}

@media(max-width: 768px) {
    .header-segunda { flex-direction: column; align-items: flex-start; gap: 20px; }
    .precio-box { text-align: left; }
    .precio-box .monto { font-size: 3rem; }
    .galeria-grid { 
        grid-template-columns: repeat(2, 1fr); 
        grid-template-rows: repeat(2, 120px); 
        width: 100%;
    }
}
