/* Estilos específicos para Majestic III Page - V2 Mejorada */

.product-wrapper {
    padding: 60px 0;
}

.product-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Más espacio para el visual */
    gap: 60px;
    align-items: start;
}

/* Header Ajustes */
.product-header-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-header {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* 3D Viewer Container */
.model-container {
    width: 100%;
    height: 500px;
    /* Altura del visor */
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    background-color: #e8ecf0;
}

.viewer-3d {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

.interaction-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ar-button {
    background-color: var(--accent-color);
    border-radius: 20px;
    border: none;
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s;
}

.ar-button:hover {
    background-color: var(--accent-hover);
}

/* Galería con Lightbox Trigger */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    padding: 0;
    /* Quitamos padding para que la imagen llene */
    cursor: pointer;
    transition: all 0.3s ease;
    height: 120px;
    /* Un poco más altas */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Para el efecto de zoom */
    border-radius: var(--radius);
    background: white;
    /* Fondo blanco para resaltar la imagen */
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-dark), var(--shadow-light), 0 0 0 2px var(--accent-color) inset;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cubrir el área */
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    /* Zoom suave al hacer hover */
}

/* Estilos del Lightbox Modal */
.lightbox {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(30, 41, 59, 0.9);
    /* Fondo oscuro semi-transparente (Slate 900) */
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 45px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.1rem;
}

/* Info Column */
.product-intro {
    margin-bottom: 30px;
}

.product-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.price-tag {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 15px;
}

.product-description {
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.feature-item i {
    flex-shrink: 0;
    /* Evita que el icono se aplaste */
}

.text-accent {
    color: var(--accent-color);
}

/* CTA Area */
.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-whatsapp {
    width: 100%;
    padding: 18px;
    background: #25D366;
    /* WhatsApp Green override */
    color: white;
    font-size: 1.1rem;
    border-radius: 16px;
    /* Un poco más cuadrado para diferenciar */
}

.btn-whatsapp:hover {
    background: #20bd5a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
}

.secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-outline {
    color: var(--text-secondary);
    padding: 14px;
    font-size: 0.95rem;
    text-decoration: none;
    /* Para los enlaces <a> */
    display: inline-flex;
    /* Para alinear iconos */
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline:hover {
    color: var(--accent-color);
}

/* NUEVA SECCIÓN: Comparativa (Ventajas) */
.comparison-section {
    padding: 80px 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.comparison-card {
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comp-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

.text-blue {
    color: #3b82f6;
}

.text-cyan {
    color: #06b6d4;
}

.text-indigo {
    color: #6366f1;
}

.comparison-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.comp-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
}

.comp-desc strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* NUEVA SECCIÓN: Video */
.video-section {
    padding: 80px 0;
}

.video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    /* Padding interno para el efecto inset */
    border-radius: 20px;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Technical Specs Table */
.specs-section {
    padding: 80px 0;
}

.specs-grid {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    overflow: hidden;
    background-color: white;
    /* Fondo blanco para mayor contraste en specs */
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    align-items: center;
}

.spec-row:nth-child(odd) {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.spec-row:nth-last-child(-n+2) {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.spec-value {
    color: var(--text-secondary);
    font-weight: 500;
    text-align: right;
}

/* Responsive */
@media (max-width: 900px) {
    .product-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .spec-row:nth-child(odd) {
        border-right: none;
    }

    .spec-row {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .spec-value {
        text-align: left;
    }

    .product-title {
        font-size: 2.5rem;
    }

    .secondary-actions {
        grid-template-columns: 1fr;
    }

    .model-container {
        height: 450px;
    }

    .lightbox-content {
        width: 95%;
        margin-top: 20%;
    }
}