/* index.css - VERSIÓN FINAL PREMIUM */

@import url('colores.css'); 

/* --- 1. CONFIGURACIÓN Y VARIABLES --- */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Sombras Standard */
    --sombra-suave: 0 10px 40px -10px rgba(0,0,0,0.08);
    --sombra-hover: 0 20px 40px -10px rgba(0,0,0,0.15);

    /* NUEVO: Sombras Premium (Con tinte dorado/naranja) */
    --sombra-premium: 0 20px 40px -15px rgba(217, 140, 40, 0.25);
    --sombra-hover-premium: 0 30px 60px -12px rgba(217, 140, 40, 0.35);
}

/* --- 2. RESET Y TIPOGRAFÍA EDITORIAL --- */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--texto-principal);
    line-height: 1.7; /* Mayor legibilidad */
    background-color: var(--bg-principal);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { 
    margin: 0; 
    font-family: var(--font-heading); 
    color: var(--color-brand-black); 
}

/* Títulos más modernos y compactos */
h1 {
    font-weight: 700;
    letter-spacing: -0.04em; 
    line-height: 1.05;
}

h2 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p { 
    margin-bottom: 1.5rem; 
    font-weight: 300; 
    font-size: 1.05rem; /* Un poco más grande para lectura cómoda */
    color: #4B5563; 
    text-align: justify;
}

img { max-width: 100%; height: auto; display: block; } 

/* --- 3. BOTONES MODERNOS --- */
.btn2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary { 
    background: linear-gradient(135deg, var(--color-primario) 0%, #E6AA45 100%);
    color: var(--texto-blanco); 
    border: none;
    box-shadow: 0 4px 15px rgba(217, 140, 40, 0.3); 
}

.btn-primary:hover { 
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(217, 140, 40, 0.5); 
}

.btn-outline { 
    background-color: rgba(255,255,255,0.1); 
    backdrop-filter: blur(4px);
    color: var(--texto-blanco); 
    border: 1px solid rgba(255,255,255,0.5); 
}

.btn-outline:hover { 
    background-color: var(--texto-blanco); 
    color: var(--color-brand-black); 
    border-color: var(--texto-blanco);
}

.btn-text { 
    color: var(--color-primario); 
    font-weight: 600; 
    text-decoration: none; 
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.btn-text:hover { border-bottom-color: var(--color-primario); }

/* --- 4. HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('../Imagenes pagina web/Imagenes pagina web/IMG_7839.JPG'); 
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
    background-attachment: fixed; /* Parallax */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        rgba(17, 24, 39, 0.4) 0%, 
        rgba(17, 24, 39, 0.8) 80%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem; /* Base móvil */
    margin-bottom: 1.5rem;
    color: var(--texto-blanco);
    text-shadow: 0 4px 30px rgba(0,0,0,0.5); /* Sombra mejorada */
}

.hero-content h2 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Para que en móviles muy pequeños bajen */
}

/* --- SELLO FLOTANTE (GLASSMORPHISM MEJORADO) --- */
.active-plus-seal {
    position: absolute;
    top: 14%;
    right: 1%;
    width: 80px;
    height: 80px;
    
    /* Efecto Cristal Real */
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4); /* Luz superior */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transform: rotate(15deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: rotate(15deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-15px); }
}

.seal-content { text-align: center; }
.seal-title { display: block; font-weight: 800; font-size: 0.6rem; color: #FFD700; }
.seal-sub { font-size: 0.5rem; color: #FFF; text-transform: uppercase; }

/* --- 5. TRUST BAR --- */
.trust-bar {
    background-color: var(--bg-principal);
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trust-intro {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--texto-suave);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.trust-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; 
    opacity: 0.8;
    transition: opacity 0.3s;
}
.trust-logo-img:hover { opacity: 1; }

/* --- 6. PRODUCT TEASER --- */
.product-teaser {
    padding: 100px 20px;
    background: var(--bg-principal);
    overflow: hidden;
}

.teaser-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.teaser-image img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: var(--sombra-premium); /* Sombra añadida a la imagen */
}

.teaser-content { text-align: center; }

.teaser-content h3 {
    color: var(--color-primario);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.teaser-content h4 { font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.1; }

/* Caja de estadística Premium */
.stat-box {
    background: #FFF;
    border: 1px solid rgba(0,0,0,0.05);
    border-left: 5px solid var(--color-primario);
    padding: 25px;
    border-radius: 12px;
    
    /* Sombra Premium */
    box-shadow: var(--sombra-premium);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    transition: transform 0.3s ease;
}

.stat-box:hover { transform: translateY(-3px); }

.stat-number { 
    font-family: var(--font-body);
    font-size: 2.5rem; 
    line-height: 1;
    font-weight: 800;
    color: var(--color-brand-black); 
}

/* --- 7. I+D+i SECTION --- */
.idi-section {
    padding: 100px 20px;
    background-color: #FAFAFA; /* Contraste ligero */
    position: relative;
}

.idi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primario);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.idi-content h2 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.idi-visuals {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Tarjetas de Laboratorio Premium */
.lab-card {
    background: #FFF;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    padding: 20px;
    
    /* Sombra Premium */
    box-shadow: var(--sombra-premium);
    
    transition: all 0.4s ease;
}

.lab-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-hover-premium);
    border-color: rgba(217, 140, 40, 0.3);
}

.lab-caption {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--texto-suave);
    margin-top: 15px;
}

.css-chart-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.donut-chart {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--color-primario) 0% 58.4%, #eee 58.4% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

.chart-center {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.chart-center span {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primario);
}

/* Simulación Documento */
.doc-simulation {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fdfdfd;
    border-radius: 8px;
    position: relative;
    border: 1px dashed #ddd;
}

.doc-lines { display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; margin-top: 10px; }
.line { height: 6px; background-color: #eee; border-radius: 4px; }
.line-long { width: 80%; } .line-medium { width: 60%; } .line-short { width: 40%; }

.doc-badge {
    margin-top: 15px;
    background: #e6f4ea;
    color: #1e7e34;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- 8. APIARY SECTION --- */
.apiary-section {
    padding: 100px 20px;
    background-color: var(--bg-secundario); /* Crema */
}

.apiary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primario);
    margin-bottom: 10px;
}

.apiary-gallery {
    position: relative;
    min-height: 400px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sombra-hover);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.main-img {
    width: 90%;
    height: 350px;
    z-index: 1;
    border: 6px solid #FFF; 
}

.sub-img {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 180px;
    height: 180px;
    z-index: 2;
    border: 6px solid #FFF;
    display: none; /* Mobile */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.location-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-brand-black);
}

/* --- 9. B2B / CONTACTO --- */
.b2b-contact-section {
    padding: 100px 20px;
    background-color: #111827; 
    color: #FFFFFF;
    position: relative;
}

.b2b-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center; 
    max-width: 1200px;
    margin: 0 auto;
}

.section-label-light {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-secundario); 
    text-transform: uppercase;
    margin-bottom: 15px;
}

.b2b-visuals h2 {
    color: #FFF;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.b2b-intro {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.product-cert-composition {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.b2b-product-img {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

/* Badges Flotantes B2B - Glassmorphism Oscuro */
.cert-badge {
    position: absolute;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    color: #FFF;
    font-size: 0.5rem;
    font-weight: 600;
}

.badge-1 { top: 30px; right: -5px; }
.badge-2 { bottom: 40px; left: -20px; }

/* Formulario High-Tech */
.b2b-form-wrapper {
    background: #1F2937;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secundario);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    /* Input Moderno sin bordes duros */
    background-color: rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFF;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Previene desbordes */
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.4);
    border-color: var(--color-primario);
    box-shadow: 0 0 0 4px rgba(217, 140, 40, 0.15); /* Anillo de enfoque */
    transform: translateY(-2px);
}

.select-wrapper { position: relative; }
.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255,255,255,0.4);
}
.contact-form select { appearance: none; cursor: pointer; }

.btn-full { width: 100%; margin-top: 10px; padding: 18px; font-size: 1rem; }

/* --- 10. ANIMACIONES DE ENTRADA (Scroll Reveal) --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 11. MEDIA QUERIES (ESCRITORIO - min-width 992px) --- */
@media (min-width: 992px) {
    
    /* Hero */
    .hero-content h1 { font-size: 3.8rem; }
    .hero-content h2 { font-size: 1.3rem; }
    .cta-container { flex-direction: row; }
    
    .active-plus-seal {
        top: 15%; right: 10%; width: 140px; height: 140px;
    }
    .seal-title { font-size: 1.1rem; }
    .seal-sub { font-size: 0.65rem; }

    /* Product Teaser */
    .teaser-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 80px;
    }
    .teaser-content { text-align: left; }
    .teaser-image img {
        transform: perspective(1000px) rotateY(-5deg);
        transition: transform 0.5s ease;
    }
    .teaser-image img:hover { transform: perspective(1000px) rotateY(0deg); }
    
    .stat-box {
        flex-direction: row;
        justify-content: flex-start;
        gap: 25px;
        align-items: center;
    }

    /* IDI Section */
    .idi-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
    .idi-visuals { padding-left: 20px; }
    .lab-card:nth-child(2) { margin-left: 40px; margin-top: -20px; }

    /* Apiary Section */
    .apiary-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
    .main-img { width: 80%; height: 450px; margin-right: auto; margin-left: 0; }
    .sub-img { display: block; bottom: -40px; right: 10%; width: 250px; height: 250px; }

    /* B2B Section */
    .b2b-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
    .b2b-visuals { text-align: left; }
    .product-cert-composition { margin: 0; }
    .badge-1 { right: 40px; } 
    .badge-2 { left: -30px; }


.cert-badge {
    position: absolute;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    color: #FFF;
    font-size: 0.9rem;
    font-weight: 600;
}


    
}





/* --- NUEVOS ESTILOS: LÍNEAS DE NEGOCIO Y SECCIONES INDUSTRIALES --- */

/* Sección 3 Líneas de Negocio */
.business-section {
    padding: 80px 20px;
    background-color: #fff;
    margin-top: -60px; /* Efecto flotante sobre el hero */
    position: relative;
    z-index: 10;
}

.business-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.b-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--sombra-card);
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.b-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-hover-premium);
    border-top-color: var(--color-primario);
}

.b-icon-circle {
    width: 70px;
    height: 70px;
    background-color: rgba(222, 122, 46, 0.1); /* Color primario suave */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primario);
    margin-bottom: 10px;
}

.b-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.b-card p { font-size: 0.95rem; margin-bottom: 20px; color: var(--texto-suave); }
.b-link { color: var(--color-primario); font-weight: 600; text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; }

/* Sección Origen (Texto + Imagen) */
.origin-section {
    padding: 100px 20px;
    background-color: var(--bg-secundario); /* Crema */
}
.origin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}
.origin-img img { border-radius: 12px; box-shadow: var(--sombra-premium); }

/* Sección Industrial / Tambores */
.industrial-section { padding: 100px 20px; background-color: #fff; }
.industrial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}
.industrial-img { position: relative; }
.industrial-img img { width: 100%; border-radius: 8px; }
.norma-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--color-primario);
    color: white;
    padding: 8px 16px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Sección Importaciones */
.imports-section { padding: 100px 20px; background-color: #1a1a1a; color: white; }
.imports-section h2 { color: white; }
.imports-section p { color: rgba(255,255,255,0.7); }

/* Etiqueta Proyecto Futuro */
.future-tag {
    display: inline-block;
    background: #E7992D;
    color: #000;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Media Queries para Desktop */
@media (min-width: 992px) {
    .business-grid { grid-template-columns: 1fr 1fr 1fr; }
    .origin-grid { grid-template-columns: 1fr 1fr; }
    .industrial-grid { grid-template-columns: 1fr 1fr; }
}




/* --- DISEÑO INMERSIVO (NUEVO) --- */

.business-section-immersive {
    padding: 60px 20px 100px 20px;
    background-color: #fff;
    margin-top: -80px; /* Flotar sobre el hero */
    position: relative;
    z-index: 10;
}

.immersive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1300px; /* Un poco más ancho para lucir las fotos */
    margin: 0 auto;
}

/* Estructura de la Tarjeta */
.immersive-card {
    position: relative;
    height: 450px; /* Altura fija imponente */
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Texto abajo */
}

/* Imagen de Fondo */
.immersive-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.immersive-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Capa Oscura (Gradiente) para que se lea el texto */
.immersive-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        to top, 
        rgba(0,0,0,0.9) 0%, 
        rgba(0,0,0,0.5) 40%, 
        rgba(0,0,0,0.1) 100%
    );
    z-index: 2;
    transition: background 0.5s ease;
}

/* Contenido */
.immersive-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    transform: translateY(20px); /* Ligeramente desplazado */
    transition: transform 0.5s ease;
}

/* Elementos del contenido */
.icon-floating {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--color-secundario);
    transition: all 0.4s ease;
}

.card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primario);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.immersive-card h3 {
    color: #FFF;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.immersive-card p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-weight: 300;
    max-width: 90%;
}

.card-action {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #FFF;
    font-size: 0.9rem;
    opacity: 0; /* Oculto por defecto */
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

/* --- EFECTOS HOVER (LA MAGIA) --- */

.immersive-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(222, 122, 46, 0.25); /* Sombra naranja suave */
}

.immersive-card:hover .immersive-bg img {
    transform: scale(1.1); /* Zoom en la foto */
}

.immersive-card:hover .immersive-overlay {
    background: linear-gradient(
        to top, 
        rgba(0,0,0,0.95) 0%, 
        rgba(222, 122, 46, 0.4) 100% /* Tinte naranja sutil arriba */
    );
}

.immersive-card:hover .immersive-content {
    transform: translateY(0);
}

.immersive-card:hover .icon-floating {
    background: var(--color-primario);
    color: #FFF;
    border-color: var(--color-primario);
}

.immersive-card:hover .card-action {
    opacity: 1;
    transform: translateX(0);
}

/* Media Queries */
@media (min-width: 992px) {
    .immersive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* --- SECCIÓN CIENTÍFICA INMERSIVA (DASHBOARD STYLE) --- */

.idi-immersive-section {
    padding: 100px 20px;
    background-color: #F8F9FB; /* Gris muy pálido, casi blanco */
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo sutil */
.idi-bg-pattern {
    position: absolute;
    top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(222, 122, 46, 0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    border-radius: 50%;
}

.idi-grid-immersive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- ESTILOS TEXTO IZQUIERDA --- */

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(222, 122, 46, 0.1);
    color: var(--color-primario);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.idi-text-content h2 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--color-brand-black);
}

.lead-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.science-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.science-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--color-brand-black);
}

.science-list li i {
    color: var(--color-primario);
    width: 20px;
    height: 20px;
}

.action-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.meta-link {
    font-size: 0.8rem;
    color: #999;
    margin-left: 20px;
}

/* --- ESTILOS VISUALES DERECHA (STACK) --- */

.idi-visual-stack {
    position: relative;
    height: 400px; /* Altura para contener las tarjetas apiladas */
    display: flex;
    justify-content: center;
    align-items: center;
}

.science-card {
    background: #FFF;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: absolute;
    transition: transform 0.3s ease;
    width: 320px;
}

/* Tarjeta 1: Gráfico (Fondo/Arriba Izquierda) */
.current-stat {
    top: 0;
    left: 20px; /* Móvil: centrado o ajustado */
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

.live-dot {
    width: 8px; height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.chart-flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* SVG Chart Styles */
.donut-chart-mini { width: 80px; height: 80px; position: relative; }
.circular-chart { display: block; margin: 0 auto; max-width: 100%; max-height: 100%; }
.circle-bg { fill: none; stroke: #eee; stroke-width: 3.8; }
.circle { fill: none; stroke-width: 2.8; stroke-linecap: round; animation: progress 1s ease-out forwards; stroke: var(--color-primario); }
.chart-value {
    position: absolute;
    top: 35%; left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--color-brand-black);
}

@keyframes progress { 0% { stroke-dasharray: 0 100; } }

/* Tarjeta 2: Futuro (Frente/Abajo Derecha) */
.future-project {
    bottom: 0;
    right: 20px; /* Móvil: ajustado */
    z-index: 2;
    background: #1F2937; /* Oscuro para contraste */
    color: #FFF;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
}

.future-badge {
    background: var(--color-secundario);
    color: #000;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.future-content h4 {
    color: #FFF;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.future-content p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-bottom: 8px;
    width: 100%;
}
.progress-fill {
    height: 100%;
    background: var(--color-primario);
    border-radius: 2px;
}

.icon-bg {
    position: absolute;
    bottom: -10px; right: -10px;
    opacity: 0.1;
    transform: rotate(-15deg);
}
.icon-bg i { width: 80px; height: 80px; color: #FFF; }

/* Efecto Hover en el Stack */
.idi-visual-stack:hover .current-stat { transform: translateY(-10px) translateX(-5px); }
.idi-visual-stack:hover .future-project { transform: translateY(5px) translateX(5px); }


/* Media Queries */
@media (min-width: 992px) {
    .idi-grid-immersive { grid-template-columns: 1fr 1fr; }
    .current-stat { top: 20px; left: 0; }
    .future-project { bottom: 20px; right: 0; }
}

@media (max-width: 768px) {
    .idi-visual-stack { height: auto; flex-direction: column; gap: 20px; display: block; margin-top: 40px;}
    .science-card { position: relative; width: 100%; margin-bottom: 20px; top: auto; left: auto; right: auto; bottom: auto; }
}

/* --- SECCIÓN ORIGEN INMERSIVA --- */

.origin-immersive-section {
    padding: 100px 20px;
    background-color: var(--bg-secundario); /* Fondo crema suave para calidez */
    position: relative;
    overflow: hidden;
}

.origin-grid-immersive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* --- COLUMNA VISUAL --- */
.origin-visuals {
    position: relative;
    height: auto;
    min-height: 400px;
}

.visual-main {
    position: relative;
    width: 85%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sombra-premium);
    z-index: 1;
}

.visual-main img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s ease;
}

.visual-main:hover img { transform: scale(1.05); }

/* Badge de Ubicación Animado */
.geo-tag {
    position: absolute;
    top: 20px; left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 3;
}

.geo-tag i { color: var(--color-primario); width: 24px; height: 24px; }

.geo-label { display: block; font-size: 0.65rem; text-transform: uppercase; color: #888; letter-spacing: 1px; }
.geo-value { display: block; font-size: 0.9rem; font-weight: 700; color: var(--color-brand-black); }

/* Efecto de Pulso en el Mapa */
.pulse-ring {
    position: absolute; left: 27px; top: 22px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--color-primario);
    animation: pulse-animation 2s infinite;
    opacity: 0;
}

@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* Imagen Secundaria Flotante */
.visual-sub {
    position: absolute;
    bottom: -30px; right: 0;
    width: 220px; height: 220px;
    border-radius: 20px;
    border: 6px solid #FFF; /* Marco blanco */
    overflow: hidden;
    box-shadow: var(--sombra-hover-premium);
    z-index: 2;
}

.visual-sub img { width: 100%; height: 100%; object-fit: cover; }

/* --- COLUMNA CONTENIDO --- */
.origin-content { padding-left: 0; }

.story-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primario);
    margin-bottom: 20px;
    line-height: 1.5;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 35px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.6);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.feature-item:hover { transform: translateX(5px); background: #FFF; }

.f-icon {
    width: 45px; height: 45px;
    background: #FFF;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-brand-black);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.feature-item strong { display: block; font-size: 0.95rem; color: var(--color-brand-black); margin-bottom: 2px; }
.feature-item small { display: block; font-size: 0.8rem; color: var(--texto-suave); }

.origin-actions { margin-top: 30px; }


/* Media Queries */
@media (min-width: 992px) {
    .origin-grid-immersive { grid-template-columns: 1fr 1fr; gap: 80px; }
    .origin-visuals { margin-right: 20px; }
    .features-list { grid-template-columns: 1fr 1fr; }
    .origin-content { padding-left: 20px; }
}

@media (max-width: 768px) {
    .visual-main { width: 100%; height: 300px; }
    .visual-sub { width: 140px; height: 140px; bottom: -20px; right: 10px; }
}



/* --- SECCIÓN IMPORTACIONES INMERSIVA (DARK MODE) --- */

.imports-immersive-section {
    padding: 100px 20px;
    background-color: #0b0c10; /* Negro profundo casi azulado */
    color: #FFF;
    position: relative;
    overflow: hidden;
}

/* Efecto de luz ambiental naranja detrás del video */
.glow-backdrop {
    position: absolute;
    top: 50%; left: 20%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(222, 122, 46, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.imports-grid-immersive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- ESTILOS DEL VIDEO (ESTILO SMARTPHONE/KIOSK) --- */
.video-container-styled {
    position: relative;
    perspective: 1000px; /* Para efecto 3D si se desea */
    max-width: 380px; /* Ancho controlado para video vertical */
    margin: 0 auto;
}

.video-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); /* Sombra fuerte oscura */
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
    aspect-ratio: 9/16; /* Fuerza la proporción vertical */
    transform: rotateY(-5deg); /* Ligera rotación para estilo */
    transition: transform 0.5s ease;
}

.video-container-styled:hover .video-frame {
    transform: rotateY(0deg) scale(1.02);
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Elementos Flotantes sobre el Video */
.video-overlay-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
    pointer-events: none;
}

.live-status-badge {
    position: absolute; top: 20px; left: 20px;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    z-index: 2;
}

.blink-dot {
    width: 8px; height: 8px;
    background-color: #ff4444;
    border-radius: 50%;
    animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.tech-spec-floating {
    position: absolute; bottom: 25px; right: 20px;
    background: rgba(255,255,255,0.95);
    color: #000;
    padding: 10px 15px;
    border-radius: 12px;
    display: flex; align-items: center; gap: 10px;
    font-size: 0.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 2;
    transform: translateX(10px);
}
.tech-spec-floating i { width: 18px; color: var(--color-primario); }

/* --- CONTENIDO TEXTO (DERECHA) --- */
.section-label-accent {
    color: var(--color-secundario);
    font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.85rem; display: block; margin-bottom: 15px;
}

.imports-content-immersive h2 {
    color: #FFF;
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.lead-dark {
    color: #a0a0a0;
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Grid de Estadísticas */
.stats-grid-dark {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item-dark {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    display: flex; align-items: center; gap: 15px;
    transition: background 0.3s;
}

.stat-item-dark:hover { background: rgba(255,255,255,0.1); }

.icon-box {
    width: 40px; height: 40px;
    background: rgba(222, 122, 46, 0.2);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-primario);
}

.stat-text strong { display: block; font-size: 1rem; color: #FFF; }
.stat-text small { font-size: 0.75rem; color: #888; }

.action-buttons-dark {
    display: flex; align-items: center; gap: 20px;
}

.link-specs {
    color: #FFF;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 5px;
    opacity: 0.7; transition: opacity 0.3s;
}
.link-specs:hover { opacity: 1; }

/* Media Queries */
@media (min-width: 992px) {
    .imports-grid-immersive { grid-template-columns: 0.8fr 1.2fr; }
    /* Ajuste para que el video no se vea gigante en pantallas anchas */
    .video-container-styled { margin: 0; } 
}

@media (max-width: 768px) {
    .imports-grid-immersive { grid-template-columns: 1fr; gap: 40px; }
    .video-container-styled { max-width: 300px; margin: 0 auto; transform: none; }
    .video-frame { transform: none; }
    .imports-content-immersive { text-align: center; }
    .stats-grid-dark { text-align: left; }
    .action-buttons-dark { justify-content: center; }
}


/* --- 5. TRUST BAR --- */
.trust-bar {
    background-color: var(--bg-principal);
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 50px;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trust-intro {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--texto-suave);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.trust-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; 
    opacity: 0.8;
    transition: opacity 0.3s;
}
.trust-logo-img:hover { opacity: 1; }

/* --- 6. PRODUCT TEASER --- */
.product-teaser {
    padding: 100px 20px;
    background: var(--bg-principal);
    overflow: hidden;
}

.teaser-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.teaser-image img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: var(--sombra-premium); /* Sombra añadida a la imagen */
}

.teaser-content { text-align: center; }

.teaser-content h3 {
    color: var(--color-primario);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.teaser-content h4 { font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.1; }




/* --- SELLO FLOTANTE (GLASSMORPHISM MEJORADO) --- */
.active-plus-seal {
    position: absolute;
    top: 14%;
    right: 1%;
    width: 80px;
    height: 80px;
    
    /* Efecto Cristal Real */
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4); /* Luz superior */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transform: rotate(15deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: rotate(15deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-15px); }
}

.seal-content { text-align: center; }
.seal-title { display: block; font-weight: 800; font-size: 0.6rem; color: #FFD700; }
.seal-sub { font-size: 0.5rem; color: #FFF; text-transform: uppercase; }



/* --- 11. MEDIA QUERIES (ESCRITORIO - min-width 992px) --- */
@media (min-width: 992px) {
    

    
    .active-plus-seal {
        top: 15%; right: 10%; width: 140px; height: 140px;
    }
    .seal-title { font-size: 1.1rem; }
    .seal-sub { font-size: 0.65rem; }}


product-cert-composition {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.b2b-product-img {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

/* Badges Flotantes B2B - Glassmorphism Oscuro */
.cert-badge {
    position: absolute;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    color: #FFF;
    font-size: 0.5rem;
    font-weight: 600;
}

.badge-1 { top: 30px; right: -5px; }
.badge-2 { bottom: 40px; left: -20px; }



@media print {
  /* 1. FORZAR COLORES EXACTOS */
  /* Esto obliga al navegador a imprimir los colores de fondo tal cual son */
  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* 2. SOLUCIÓN AL CONTENIDO CORTADO (¡Lo más importante!) */
  /* Si tienes divs con scroll, el PDF los cortará. Esto los expande. */
  html, body, .tu-contenedor-principal, .seccion-larga {
    height: auto !important;
    width: auto !important;
    overflow: visible !important; /* Clave: muestra lo que se sale de la caja */
    position: static !important;  /* Evita que elementos 'fixed' tapen otros */
  }

  /* 3. AJUSTE DE ANCHO */
  /* El papel A4 es estrecho. Si tu web mide 1200px, se cortará la derecha. */
  body {
    max-width: 100% !important;
    font-size: 10pt; /* A veces reducir la letra ayuda a que quepa todo */
  }

  /* 4. EVITAR CORTES A LA MITAD DE UNA IMAGEN O TEXTO */
  img, h1, h2, h3, .tarjeta, li {
    page-break-inside: avoid; /* Evita que se partan entre página 1 y 2 */
    break-inside: avoid;
  }

  /* 5. OCULTAR LO INNECESARIO */
  /* Botones, menús de navegación y scrollbars sobran en papel */
  nav, button, footer, ::-webkit-scrollbar {
    display: none !important;
  }
}



/* Configuración base del contenedor principal */
#main-wrapper {
    transition: filter 0.5s ease; /* Para que el desenfoque aparezca suavemente */
}

/* CLASE ESPECIAL: Cuando esta clase esté en el body... */
body.cookies-active #main-wrapper {
    /* ...desenfocamos el contenido */
    filter: blur(8px); 
    
    /* Opcional: Evita que la gente haga clic en los enlaces del fondo */
    pointer-events: none; 
    
    /* Opcional: Evita que hagan scroll (sensación de bloqueo total) */
    /* overflow: hidden; */ 
    user-select: none;
}