/* ==============================================
   PÁGINA DE DETALLE DE PRODUCTO - OFP ORIGINAL
   ============================================== */

/* Font global Geologica */
*, *::before, *::after {
    font-family: 'Geologica';
}

/* Product Detail Section con Background Rectangle 34 */
.product-detail {
    background-image: url('img/rectangle-32.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 90h;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    position: relative;
}
.product-detail__inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Layout Desktop - Grid de dos columnas */
.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

/* Ocultar secciones móviles en desktop */
.mobile-section {
    display: none;
}

/* Mostrar layout desktop */
.desktop-layout {
    display: contents;
}

/* Estilos desktop para el layout tradicional */
.desktop-layout .product-info-column {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}

.desktop-layout .product-specs {
    margin-top: 30px;
}
.product-title {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 15px 0;
    line-height: 1.2;
    margin: 10px 0 15px 0;
}

@media (min-width: 769px) {
    .product-info-column,
    .product-image-column,
    .product-specs {
        order: unset;
    }
}

/* Columna Izquierda: Imagen */
.product-image-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image {
    width: 100%;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* Columna Derecha: Información */
.product-info-column {
    padding-left: 20px;
}


.product-logo {
    width: auto;
    margin: 0%;
}

/* Especificaciones Técnicas */
.product-specs {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.spec-item {
    margin: 0;
}

/* Header de especificación (desktop - siempre visible) */
.spec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-label {
    color: #c81517;
    font-size: 18px;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

.spec-arrow {
    display: none;
    color: #c81517;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Contenido de especificación */
.spec-content {
    margin-top: 10px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    /* En desktop siempre visible */
    max-height: none;
    opacity: 1;
}

.spec-text {
    color: #000000;
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}

/* ==============================================
   GALERÍA DE PRODUCTOS
   ============================================== */

.product-gallery {
    padding: 80px 0;
    background: white
}

.product-gallery__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.gallery-title {
    text-align: center;
    font-size: 18px;
    color: #c81517;
    letter-spacing: 4px;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Indicador de auto-slide para galería */
.gallery-auto-slide-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #c81517, #a00005);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    z-index: 15;
    opacity: 0.8;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(199, 0, 7, 0.3);
    animation: galleryAutoIndicatorPulse 3s infinite;
    display: none; /* Oculto por defecto en desktop */
}

/* Animación sutil para el indicador AUTO de la galería */
@keyframes galleryAutoIndicatorPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.6; }
}

.gallery-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 30px;
}

.gallery-item {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height:350px;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0;
    letter-spacing: 1px;
}

.gallery-nav {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #c81517;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(199, 0, 7, 0.3);
}

.gallery-nav:hover {
    background: #c81517;
    transform: scale(1.1);
}

.gallery-nav i {
    font-size: 24px;
}

/* Ocultar navegación móvil en desktop */
.mobile-carousel-nav {
    display: none;
}

.gallery-indicators {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.gallery-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-indicator.active {
    background: #c81517;
}

/* ==============================================
   ATRIBUTOS TÉCNICOS
   ============================================== */

.technical-attributes {
    padding: 80px 0;
    background-image: url('img/rectangle-4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.technical-attributes__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.attributes-title {
    text-align: center;
    font-size: 18px;
    color: #c81517;
    letter-spacing: 5px;
    margin-bottom: 60px;
    text-transform: uppercase;
}
.attributes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: start;
}


.attribute-logo {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-logo {
    width: 100%;
}
.tech-logo {
    height: 100%;
}

.attribute-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
    text-align: center;
}

.attribute-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 768px) {


    /* Layout móvil con contenedores separados */
    .product-content {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 80px);
        padding: 0px;
        gap: 0px;
    }

    /* Mostrar solo secciones móviles en móvil */
    .mobile-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0;
        text-align: center;
    }

    /* Ocultar layout desktop en móvil */
    .desktop-layout {
        display: none;
    }

    /* Orden específico móvil */
    .logo-section { order: 1; }
    .title-section { order: 2; }
    .image-section { order: 3; }
    .specs-section { order: 4; }

    /* Estilos para secciones móviles */
    .logo-section {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-bottom: 0;
    }

    .logo-section .product-logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .logo-section .product-logo {
        height: 60px;
        width: auto;
        max-width: 220px;
        object-fit: contain;
    }

    .title-section .product-title {
        font-size: 16px;
        margin: 0px 0 5px 0;
        line-height: 1.1;
        color: #000000;
        font-weight: 400;
        text-align: center;
        padding: 0 10px;
        max-width: 320px;
        width: 100%;
        word-break: keep-all;
        hyphens: none;
    }

    .image-section {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 10px 0;
    }

    .image-section .product-image-column {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .image-section .product-image {
        width: auto;
        max-width: 260px;
        object-fit: contain;
        margin: 0 auto;
    }

    .specs-section .product-specs {
        margin: 10px 0;
        gap: 10px;
        text-align: left;
        width: 100%;
    }

    .product-logo {
        height: 60px;
        width: auto;
        max-width: 220px;
        object-fit: contain;
    }

    .product-image {
        max-width: 260px;
        width: 90%;
        object-fit: contain;
        margin: 0 auto;
    }

    /* Acordeón móvil */
    .spec-item {
        border-bottom: 1px solid #eee;
        padding: 10px 5px 12px;
        margin-bottom: 5px;
        text-align: center;
    }
    
    .spec-item:last-child {
        border-bottom: none;
        padding-bottom: 12px;
        margin-bottom: 0;
    }
    
    /* Mostrar flechas en móvil */
    .spec-arrow {
        display: block !important;
    }
    
    /* Header clickeable en móvil */
    .spec-header {
        cursor: pointer;
        padding: 10px 0;
        user-select: none;
    }
    
    .spec-header:hover {
        background-color: rgba(199, 0, 7, 0.05);
        border-radius: 5px;
        padding: 10px 10px;
        margin: 0 -10px;
    }
    
    /* Contenido colapsable - por defecto oculto en móvil */
    .spec-content {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
    }
    
    .spec-content.active {
        max-height: 200px;
        opacity: 1;
        margin-top: 8px;
    }
    
    /* Rotación de flecha */
    .spec-arrow.rotated {
        transform: rotate(180deg);
    }

    .spec-label {
        font-size: 14px;
    }

    .spec-text {
        font-size: 14px;
    }

    /* Galería móvil - Estilo como sección 3 */
    .product-gallery {
        padding: 50px 0;
        position: relative;
    }

    .product-gallery__inner {
        padding: 0 20px;
        position: relative;
        overflow: hidden;
    }

    .gallery-title {
        font-size: 20px;
        margin-bottom: 30px;
        letter-spacing: 1px;
    }


    /* Ocultar navegación desktop en móvil */
    .gallery-nav {
        display: none;
    }

    /* Mostrar navegación móvil */
    .mobile-carousel-nav {
        display: flex !important;
    }

    /* Mostrar indicador AUTO de galería en móvil */
    .gallery-auto-slide-indicator {
        display: block !important;
    }

    .gallery-wrapper {
        width: 100%;
        border-radius: 10px;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    /* Carrusel móvil igual que sección 3 */
    .gallery-track {
        display: flex;
        overflow: visible;
        transition: transform 0.3s ease;
        width: 150%;
        padding: 0;
        gap: 10px;
        transform: translateX(0);
    }

    .gallery-item {
        flex: 0 0 calc(40% - 5px);
        width: calc(40% - 5px);
        padding: 10px;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 180px;
        box-sizing: border-box;
        text-align: center;
        background: transparent;
        box-shadow: none;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(199, 0, 7, 0.2);
        transition: transform 0.2s ease;
    }

    /* Efecto al tocar en móvil */
    .gallery-item:active {
        transform: scale(0.98);
    }

    .gallery-label {
        font-size: 12px;
        font-weight: 600;
        margin-top: auto;
    }

    /* Botones de navegación móvil */
    .mobile-carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid #c81517;
        color: #c81517;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .mobile-carousel-nav:hover {
        background: #c81517;
        color: white;
    }

    .mobile-carousel-nav.prev {
        left: 10px;
    }

    .mobile-carousel-nav.next {
        right: 10px;
    }

    .gallery-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    .gallery-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ccc;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .gallery-indicator.active {
        background: #c81517;
    }

    /* Atributos técnicos móvil */
    .technical-attributes {
        padding: 50px 0;
    }

    .technical-attributes__inner {
        padding: 0 20px;
    }

    .attributes-title {
        font-size: 14px;
        margin-bottom: 40px;
        letter-spacing: 2.8px;
    }

    .attributes-container {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }

    .attribute-item {
        padding: 20px 20px;
        max-width: 400px;
        width: 90%;
        text-align: center;
    }

    .attribute-logo {
        margin-bottom: 20px;
    }

    .attribute-name {
        font-size: 18px;
        margin-bottom: 15px;
        text-align: center;
    }

    .attribute-description {
        font-size: 14px;
        line-height: 1.5;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 10px 0;
        background-image: url('img/fondo-plumillas-movil.png');
    }

    .product-detail__inner {
        padding: 0 15px;
    }

    .product-content {
        padding: 30px 15px;
        gap: 25px;
    }

    .product-info-column {
        order: 1;
    }

    .product-image-column {
        order: 2;
        margin: 15px 0;
    }

    .product-specs {
        order: 3;
        margin-top: 20px;
        gap: 18px;
        text-align: left;
        width: 100%;
    }

    .product-logo {
        height: 70px;
        width: auto;
        max-width: 220px;
        object-fit: contain;
    }

    .product-title {
        font-size: 16px;
        line-height: 1.2;
        font-weight: 400; 
    }

    .product-image {
        max-width: 250px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Acordeón para móviles pequeños */
    .spec-header:hover {
        padding: 8px 8px;
        margin: 0 -8px;
    }

    .spec-label {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .spec-text {
        font-size: 13px;
        line-height: 1.4;
    }

    /* Galería móvil pequeño */
    .product-gallery {
        padding: 30px 0;
    }

    .product-gallery__inner {
        padding: 0 15px;
    }

    .gallery-title {
        font-size: 14px;
        margin: 50px;
        letter-spacing: 4px;
    }

    .gallery-track {
        padding: 15px;
        gap: 10px;
    }

    .gallery-item {
        flex: 0 0 130px;
        padding: 10px;
    }

    .gallery-image {
        height: 200px;
    }

    .gallery-label {
        font-size: 11px;
    }

    .gallery-indicators {
        margin-top: 20px;
        gap: 8px;
    }

    .gallery-indicator {
        width: 8px;
        height: 8px;
    }

    /* Atributos técnicos móvil pequeño */
    .technical-attributes {
        padding: 40px 0;
    }

    .technical-attributes__inner {
        padding: 0 15px;
    }

    .attributes-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .attributes-container {
        gap: 25px;
    }

    .attribute-item {
        padding: 25px 20px;
        border-radius: 12px;
        max-width: 350px;
        width: 95%;
    }

    .attribute-logo {
        margin-bottom: 15px;
    }

    .tech-logo {
        width: 100%;
    }

    .attribute-name {
        font-size: 16px;
        margin-bottom: 12px;
        text-align: center;
    }

    .attribute-description {
        font-size: 13px;
        text-align: center;
    }
}
