/* ==============================================
   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;
    padding: 60px;
}

/* 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;
}

.desktop-layout .product-specs {
    margin-top: 30px;
}
@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: 50%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* Columna Derecha: Información */
.product-info-column {
    padding-left: 10px;
}

.product-logo {
    max-width: 100%;
    align-items: center;
}

.product-title {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* 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: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

.spec-arrow {
    display: none;
    color: #c81517;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Contenido de especificación */
.spec-content {
    margin-top: 8px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    /* En desktop siempre visible */
    max-height: none;
    opacity: 1;
}

.spec-text {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* ==============================================
   GALERÍA DE PRODUCTOS
   ============================================== */

.product-gallery {
    padding: 80px 0;
    background-color: 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: 5px;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: start;
}

/* Mobile Carousel - Hidden by default */
.mobile-carousel {
    display: none;
    position: relative;
    align-items: center;
    gap: 15px;
}

/* Indicador de auto-slide continuo */
.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: autoIndicatorPulse 3s infinite;
}

/* Animación sutil para el indicador AUTO */
@keyframes autoIndicatorPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.6; }
}

.mobile-carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    width: 100%;
}

.mobile-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 0px;
    width: 100%;
}

.mobile-carousel-nav {
    width: 50px;
    height: 70px;
    border: none;
    border-radius: 50%;
    background: rgba(199, 0, 7, 0.9);
    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);
    z-index: 10;
}

.mobile-carousel-nav:hover {
    background: #c81517;
    transform: scale(1.1);
}

.mobile-carousel-nav:active {
    transform: scale(0.95);
}

.mobile-carousel-indicators {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background: #c81517;
    animation: indicatorPulse 3s infinite;
}

/* Animación para el indicador activo en auto-slide */
@keyframes indicatorPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* Mobile Product Cards */
.mobile-product-card {
    flex: 0 0 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-right: 0;
    width: 100%;
    min-height: 300px;
    position: relative;
}

/* Estilos para producto activo (página actual) - Ocultar en móvil */
.mobile-product-card.active-product {
    display: none;
}

.mobile-product-card:active {
    transform: scale(0.98);
}

.mobile-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mobile-card-image .mobile-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 220px; /* Aumentar tamaño máximo */
    max-height: 200px; /* Aumentar altura máxima */
}

.mobile-card-content {
    padding: 15px;
    text-align: center;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Estilos para logos de productos - Mobile */
.mobile-product-logo-image {
    max-width: 120px;
    width: auto;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.mobile-product-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15px;
}

.mobile-product-logo .mobile-logo-image {
    height: 100%;
    max-width: 100px;
    object-fit: contain;
}

.mobile-product-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 12px 0 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mobile-product-description {
    font-size: 12px;
    color: #666;
    margin: 8px 0;
    line-height: 1.3;
}

.mobile-product-type {
    font-size: 11px;
    font-weight: 600;
    color: #c81517;
    margin: 8px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
}
.product-card-image {
    position: relative;
    width: 100%;
    height: 240px; /* Incrementar altura */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px; /* Reducir padding para más espacio de imagen */
}

.product-card-image .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card-content {
    padding: 25px 20px;
    text-align: center;
}

/* Estilos para logos de productos - Desktop */

.product-logo-flat {
    width: 325px;
    height: 33px;
    margin: 20px;
}
.product-logo-image {
    height: 40px !important;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.product-logo {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}

.product-logo .logo-image {
    height: 100%;
    max-width: 120px;
    object-fit: contain;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 15px 0 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-description {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
    line-height: 1.4;
}

.product-type {
    font-size: 12px;
    font-weight: 600;
    color: #c81517;
    margin: 10px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.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);
}

/* Overlay "Ver más" para product-gallery */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.product-card:hover .card-overlay {
    opacity: 1;
}

.ver-mas-btn {
    background: #c81517;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}


.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;
    font-weight: 700;
    color: #c81517;
    letter-spacing: 5px;
    margin-bottom: 60px;
    text-transform: uppercase;
}
.attributes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center;
    align-items: start;
}


.attribute-logo {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-logo {
    width: 100%;
}

.attribute-name {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 20px 0;
    line-height: 1.3;
    text-align: center;
}

.attribute-description {
    font-size: 14px;
    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: 15px 20px;
        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 - Compactas */
    .logo-section {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 5px 0 0 0;
        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;
        line-height: 1.1;
        color: #333;
        font-weight: 600;
        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: 85%;
        max-width: 260px;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
    }

    .specs-section .product-specs {
        margin: 10px 0;
        gap: 10px;
        text-align: left;
        width: 100%;
    }

    .product-logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .product-logo {
        height: 60px;
        width: auto;
        max-width: 220px;
        object-fit: contain;
    }

    .product-title {
        font-size: 28px;
        line-height: 1.2;
        color: #333;
        font-weight: 600;
    }

    .product-image {
        max-width: 280px;
        width: 90%;
        height: auto;
        max-height: 300px;
        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;
    }

    .gallery-title {
        font-size: 20px;
        margin-bottom: 30px;
        letter-spacing: 1px;
    }

    /* Ocultar grid desktop y mostrar carrusel móvil */
    .products-grid.desktop-grid {
        display: none;
    }

    .mobile-carousel {
        display: flex;
    }

    .mobile-carousel-indicators {
        display: flex;
    }

    .mobile-carousel-container {
        margin: 0 10px;
    }

    .mobile-carousel-track {
        width: calc(280px * 4 + 15px * 3);
        transform: translateX(0);
    }

    .mobile-product-card {
        flex: 0 0 280px;
    }

    /* 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;
    }

    /* Mostrar indicador AUTO en móvil */
    .auto-slide-indicator {
        display: block !important;
    }

    .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;
        background-image: url('img/fondo-atributos-tecnicos.png');
    }

    .technical-attributes__inner {
        padding: 0 20px;
    }

    .attributes-title {
        font-size: 24px;
        margin-bottom: 40px;
        letter-spacing: 1px;
    }

    .attributes-container {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
    }

    .attribute-item {
        padding: 30px 25px;
        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: 780px) {
    .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: 10px;
    }

    .product-info-column {
        order: 1;
        display: flex;
        flex-direction: column;
    }

    .product-image-column {
        order: 2;
        margin: 15px 0;
    }

    .product-logo-container {
        order: 1;
    }

    .product-title {
        order: 2;
        font-size: 16px;
        line-height: 1.2;
    }

    .product-specs {
        order: 4;
        gap: 18px;
        text-align: left;
        width: 100%;
    }

    .product-logo {
        height: 70px;
        max-width: 220px;
    }

    .product-image {
        max-width: 250px;
    }

    /* 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 de productos móvil pequeño */
    .product-gallery {
        padding: 30px 0;
    }

    .product-gallery__inner {
        padding: 0 15px;
    }

    .gallery-title {
        font-size: 14px;
        margin-bottom: 25px;
        letter-spacing: 7px;
    }

    /* Carrusel móvil pequeño */
    .mobile-carousel-track {
        width: calc(250px * 4 + 12px * 3);
    }

    .mobile-product-card {
        flex: 0 0 250px;
    }

    .mobile-card-image {
        height: 160px;
        padding: 12px;
    }

    .mobile-card-content {
        padding: 15px 12px;
    }

    .mobile-product-name {
        font-size: 13px;
        margin: 10px 0 6px;
    }

    .mobile-product-description {
        font-size: 11px;
        margin: 6px 0;
    }

    .mobile-product-type {
        font-size: 10px;
        margin-top: 6px;
    }

    .mobile-carousel-nav {
        width: 35px;
        height: 35px;
    }

    .attributes-title {
        font-size: 14px;
        margin-bottom: 30px;
        letter-spacing: 5px;

    }

    .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;
    }
}

/* ==============================================
   BURBUJA FLOTANTE
   ============================================== */

.floating-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #c81517 0%, #a00005 100%);
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 8px 25px rgba(199, 0, 7, 0.4);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    animation: bubblePulse 2s infinite;
}

.floating-bubble:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(199, 0, 7, 0.6);
}

.bubble-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bubble-icon .material-symbols-outlined {
    color: white;
    font-size: 20px;
}

.bubble-text {
    color: white;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Animación de pulso */
@keyframes bubblePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive móvil */
@media (max-width: 768px) {
    .floating-bubble {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        border-radius: 40px;
    }
    
    .bubble-icon {
        width: 35px;
        height: 35px;
    }
    
    .bubble-icon .material-symbols-outlined {
        font-size: 18px;
    }
    
    .bubble-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .floating-bubble {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
        gap: 8px;
    }
    
    .bubble-text {
        font-size: 12px;
    }

    /* Logos de productos en pantallas muy pequeñas */
    .mobile-product-logo-image {
        max-width: 100px !important;
    }
}