

/* --- MAIN HERO PRODUCTO (Ancho Completo) --- */
.product-hero-full {
    padding-top: 6rem; /* Espacio para el navbar */
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-color);
}

/* =========================================
   FIX IMAGEN PRINCIPAL PRODUCTO
   ========================================= */
.product-gallery-full {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.product-gallery-full img.main-image {
    max-width: 100%;
    /* 70vh asegura que nunca sea más alta que el 70% de la pantalla del usuario */
    max-height: 70vh; 
    object-fit: contain;
    display: block;
}

.product-split-container {
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    align-items: stretch;
}

.product-gallery-full {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    padding: 2rem;
}

.product-gallery-full .main-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.product-info-box {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 15, 18, 0.9);
}

.stock-badge {
    align-self: flex-start;
    background: rgba(1, 254, 134, 0.15);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.product-info-box h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.product-info-box .price {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-info-box .description {
    font-size: 1.1rem;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.purchase-actions {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

/* =========================================
   FIX MEDIA GRID (TIKTOK E IMAGEN SECUNDARIA)
   ========================================= */
.media-grid {
    display: grid;
    /* Crea columnas fluidas que se apilan en teléfonos */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
    justify-content: center;
    margin-top: 2rem;
}

.video-container {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Si la imagen secundaria tiene fondo, object-fit: cover ayuda a rellenar el espacio */
.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.quantity-wrapper label {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.qty-input input {
    width: 80px;
    height: 50px;
    background: #000;
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    border-radius: 8px;
}

.purchase-actions .cta-button {
    height: 50px;
    flex-grow: 1;
}

.quick-features {
    list-style: none;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.quick-features li {
    color: #a0a0a0;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.success-msg {
    color: var(--primary-color);
    font-weight: bold;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

/* --- DETALLES EXTENDIDOS Y VIDEOS --- */
.extended-details {
    padding: 6rem 5%;
    background: var(--bg-dark);
}

.details-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.details-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.long-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 4rem;
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* --- TABLA DE ESPECIFICACIONES --- */
.specs-table-container {
    background: rgba(15, 20, 25, 0.6);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: left;
}

.specs-table-container h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #fff;
    text-align: center;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}

.specs-table td strong {
    color: #fff;
}

/* Responsividad */
@media (max-width: 1024px) {
    .product-split-container {
        flex-direction: column;
    }
    .product-gallery-full {
        padding: 4rem 2rem;
    }
    .product-info-box {
        padding: 3rem 2rem;
    }
    .media-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   FIX DEFINITIVO IMAGEN PRINCIPAL PRODUCTO
   ========================================= */

/* Hacer el contenedor invisible */
.product-gallery-full {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Tamaño de la funda Élite */
.product-gallery-full img.main-image {
    width: 100%;
    max-width: 700px; /* Gran tamaño horizontal */
    max-height: 80vh; /* Ocupa hasta el 80% del alto de pantalla */
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background-color: transparent !important;
}