/* ============================================
   FICHAS TÉCNICAS - ESTILOS
   ============================================ */

/* Importar variables de fuentes desde style.css */
/* Las variables --font-producto-organico y --font-producto-mineral 
   están definidas en style.css y se heredan automáticamente */

/* Sección Principal Producto */
.ficha-producto-section {
    background: #FFFFFF;
    padding: 30px var(--container-padding) 40px;
    margin-top: 35px;
}

.ficha-producto-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Columna Imágenes */
.ficha-imagen-col {
    position: sticky;
    top: 100px;
}

.ficha-imagen-principal {
    background: transparent;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
}

.ficha-imagen-principal img {
    width: 100%;
    height: auto;
    display: block;
}

.ficha-imagen-principal .logo-residuo-cero-img {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 70px;
    height: auto;
    z-index: 10;
}

.ficha-miniaturas {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ficha-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.ficha-thumb:hover,
.ficha-thumb.active {
    border-color: #9FC11F;
}

/* Columna Información */
.ficha-info-col {
    padding-top: 20px;
}

/* Contenedor título + logo residuo cero */
.ficha-titulo-row {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-bottom: 10px;
}

.ficha-titulo-row .logo-residuo-cero-ficha {
    width: 80px;
    height: auto;
    flex-shrink: 0;
}

/* Título con imagen de fondo */
.ficha-titulo {
    position: relative;
    display: inline-block;
    padding: 10px 30px;
    margin: 0;
}

.ficha-titulo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: url('../images/fichas-tecnicas/Modo_de_aislamiento.png') no-repeat center;
    background-size: contain;
    z-index: -1;
}

/* Título Orgánico - Tipografía Edo SZ */
.ficha-titulo-organico {
    font-family: var(--font-producto-organico);
    font-size: 60px;
    font-weight: normal;
    color: #9FC11F;
    line-height: 1;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

/* Título Mineral - Tipografía Chewy */
.ficha-titulo-mineral {
    font-family: var(--font-producto-mineral);
    font-weight: normal;
    font-size: 55px;
    color: #2A3D2A;
    line-height: 1.1;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

/* Quitar imagen de fondo en títulos minerales */
.ficha-titulo-mineral::before {
    display: none;
}

.ficha-subtitulo {
    font-family: 'Futura Std', 'Futura', 'Century Gothic', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 25px;
    line-height: 35px;
    letter-spacing: 0;
    color: #141313;
    margin: 15px 0 20px 0;
}

.ficha-descripcion {
    font-family: 'Futura Std', 'Futura', 'Century Gothic', sans-serif;
    font-weight: 400;
    font-size: 21px;
    line-height: 31px;
    letter-spacing: 0;
    color: #404040;
    margin-bottom: 25px;
    text-align: justify;
}

.ficha-beneficios {
    margin-bottom: 30px;
}

.ficha-beneficios p {
    font-family: 'Futura Std', 'Futura', 'Century Gothic', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #404040;
    margin: 0 0 10px 0;
}

.ficha-beneficios ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ficha-beneficios li {
    font-family: 'Futura Std', 'Futura', 'Century Gothic', sans-serif;
    font-size: 14px;
    color: #404040;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.ficha-beneficios li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #9FC11F;
}

/* Acordeones */
.ficha-acordeones {
    margin-bottom: 25px;
}

.acordeon {
    border-bottom: 1px solid #E0E0E0;
}

.acordeon-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-titles); text-transform: uppercase;
    font-weight: 600;
    font-size: 16px;
    color: #141313;
}

.acordeon-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.acordeon-icon::before {
    content: "▼";
    font-size: 10px;
}

.acordeon.active .acordeon-icon {
    transform: rotate(180deg);
}

.acordeon-content {
    display: none;
    padding: 0 0 15px 0;
    font-family: 'Futura Std', 'Futura', 'Century Gothic', sans-serif;
    font-size: 14px;
    color: #404040;
    line-height: 1.6;
}

.acordeon.active .acordeon-content {
    display: block;
}

/* Formatos con precios */
.formatos-precios {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.formato-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #F5F5F5;
    border-radius: 8px;
    border-left: 3px solid #9FC11F;
}

.formato-nombre {
    font-family: 'Futura Std', 'Futura', 'Century Gothic', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2A3D2A;
}

.formato-pvp {
    font-family: 'Futura Std', 'Futura', 'Century Gothic', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #9FC11F;
}

/* Aplicación */
.ficha-aplicacion {
    background: #F9F9F9;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.ficha-aplicacion h4 {
    font-family: var(--font-titles); text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    color: #141313;
    margin: 0 0 10px 0;
}

.ficha-aplicacion p {
    font-family: 'Futura Std', 'Futura', 'Century Gothic', sans-serif;
    font-size: 14px;
    color: #404040;
    margin: 0 0 10px 0;
}

.aplicacion-nota {
    font-size: 12px !important;
    color: #888 !important;
    font-style: italic;
}

.aplicacion-indoor {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
}

.btn-programa {
    display: inline-block;
    padding: 12px 25px;
    background: #141313;
    color: #FFFFFF;
    font-family: 'Futura Std', 'Century Gothic', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-programa:hover {
    background: #9FC11F;
}

/* Sección Composición */
.ficha-composicion-section {
    background: #FFFFFF;
    padding: 40px var(--container-padding) 60px;
    max-width: 1140px;
    margin: 0 auto;
}

.ficha-composicion-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    max-width: 900px;
}

.composicion-titulo {
    font-family: var(--font-titles);
    font-weight: 900;
    font-size: 50px;
    color: #9FC11F;
    margin: 0 0 10px 0;
    letter-spacing: -3px;
    line-height: 1.1;
    width: 100%;
    flex-basis: 100%;
}

.composicion-content {
    flex: 1;
    min-width: 400px;
}

.composicion-certificado {
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.composicion-certificado img {
    width: 250px;
    height: auto;
}

/* Tabla Normal (pocas filas) */
.composicion-tabla {
    width: 100%;
    display: block;
    border: none;
    box-shadow: none;
    background: transparent;
}

.composicion-tabla tbody {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.composicion-tabla tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #E8E8E8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.composicion-tabla tr:hover {
    box-shadow: 0 4px 15px rgba(159, 193, 31, 0.15);
    border-color: #9FC11F;
}

.composicion-tabla td {
    border: none;
    padding: 0;
    font-family: 'Futura Std', 'Futura', 'Century Gothic', sans-serif;
}

.composicion-tabla td:first-child {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    padding-right: 10px;
}

.composicion-tabla td:last-child {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #9FC11F;
    text-align: right;
    min-width: 70px;
}

@media (max-width: 768px) {
    .composicion-tabla tbody {
        grid-template-columns: 1fr;
    }
    
    .composicion-tabla tr {
        padding: 10px 14px;
    }
    
    .composicion-tabla td:first-child {
        font-size: 12px;
    }
    
    .composicion-tabla td:last-child {
        font-size: 12px;
        min-width: 60px;
    }
}

/* Sección Otros Productos */
.otros-productos-section {
    padding: 60px var(--container-padding);
    background: #FFFFFF;
}

.otros-productos-organico,
.otros-productos-mineral {
    background: #FFFFFF;
}

.otros-productos-titulo {
    text-align: center;
    font-family: var(--font-titles);
    font-weight: 900;
    font-size: 50px;
    line-height: 0.95;
    letter-spacing: -4px;
    margin: 0 0 50px 0;
}

.titulo-dark {
    color: #141313;
}

.titulo-green {
    color: #9FC11F;
}

/* Carrusel Gama */
.carrusel-gama-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 70px;
}

.carrusel-gama {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 10px;
}

.carrusel-gama::-webkit-scrollbar {
    display: none;
}

.carrusel-gama-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #141313;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carrusel-gama-btn:hover {
    background: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
}

.carrusel-gama-prev {
    left: 10px;
}

.carrusel-gama-next {
    right: 10px;
}

/* Tarjeta Producto Carrusel - Mini Glass Card */
.gama-card {
    flex: 0 0 calc((100% - 75px) / 4);
    min-width: calc((100% - 75px) / 4);
    background: #FFFFFF;
    border: 2px solid #9FC11F;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 0;
    display: flex;
    flex-direction: column;
}

.gama-card:hover {
    box-shadow: 0 8px 25px rgba(159, 193, 31, 0.25);
}

.gama-card:hover .gama-card-btn {
    background: #8ab018;
}

.gama-card-imagen {
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.gama-card-imagen img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.gama-card-info {
    padding: 15px;
    background: #FFFFFF;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gama-card-tipo {
    font-family: 'Futura Std', 'Century Gothic', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9FC11F;
    display: block;
    margin-bottom: 6px;
}

.gama-card-titulo {
    font-family: var(--font-producto-organico);
    font-size: 20px;
    font-weight: normal;
    color: #000;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

/* Título de carrusel mineral - Tipografía Chewy */
.gama-card-titulo-mineral {
    font-family: var(--font-producto-mineral);
    font-weight: normal;
    color: #2A3D2A;
}

/* Tarjetas minerales */
.otros-productos-mineral .gama-card-imagen {
    padding: 0;
}

.otros-productos-mineral .gama-card-imagen img {
    height: 180px;
}

.gama-card-descripcion {
    font-family: 'Futura Std', 'Century Gothic', sans-serif;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.gama-card-btn {
    display: inline-block;
    background: #9FC11F;
    color: #000;
    font-family: 'Futura Std', 'Century Gothic', sans-serif;
    font-size: 11px;
    font-weight: normal;
    padding: 10px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .ficha-producto-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ficha-imagen-col {
        position: static;
    }
    
    .gama-card {
        flex: 0 0 calc((100% - 60px) / 3);
        min-width: calc((100% - 60px) / 3);
    }
}

@media (max-width: 768px) {
    .ficha-titulo-organico {
        font-size: 45px;
    }
    
    .ficha-titulo-mineral {
        font-size: 40px;
    }
    
    .otros-productos-titulo {
        font-size: 40px;
    }
    
    .gama-card {
        flex: 0 0 calc((100% - 30px) / 2);
        min-width: calc((100% - 30px) / 2);
    }
    
    .carrusel-gama-container {
        padding: 0 50px;
    }
}

@media (max-width: 480px) {
    .ficha-titulo-organico {
        font-size: 35px;
    }
    
    .ficha-titulo-mineral {
        font-size: 32px;
    }
    
    .ficha-miniaturas {
        justify-content: center;
    }
    
    .gama-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}


/* ============================================
   MODAL FLAYER
   ============================================ */
.modal-flayer {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-flayer.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-flayer-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-flayer-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 35px;
    font-weight: bold;
    color: #000;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-flayer-close:hover {
    color: #9FC11F;
    background: #fff;
}

.flayer-iframe {
    width: 100%;
    height: 75vh;
    border: none;
}

.flayer-btn-descarga {
    display: block;
    padding: 20px 40px;
    background: #9FC11F;
    color: #000;
    font-family: 'Futura Std', 'Century Gothic', sans-serif;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.flayer-btn-descarga:hover {
    background: #8ab01a;
}

@media (max-width: 768px) {
    .modal-flayer-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .flayer-iframe {
        height: 60vh;
    }
    
    .flayer-btn-descarga {
        padding: 15px 30px;
        font-size: 14px;
    }
}
