        :root {
            --primary-color: #333;
            --secondary-color: #f5f5f5;
            --accent-color: #0d5c6b;
            --text-color: #333;
            --light-text: #777;
            --white: #fff;
            --border-color: #e0e0e0;
            --shelf-color: #8B4513;
            --shelf-border: #5D2906;
            --shelf-background: #f9f9f9;
        }
        .login-btn {
            margin-left: 15px; /* crea espacio entre los dos */
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: var(--secondary-color);
            color: var(--text-color);
            transition: all 0.3s ease;
            overflow-x: hidden;
            padding-top: 130px; /* suma la altura de .top-bar + .main-nav */
            zoom: 100%;

        }

        /* HEADER STYLES */
        header {
            background-color: var(--white);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 5%;
            border-bottom: 1px solid var(--border-color);
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgb(255, 255, 255);
            z-index: 1100; /* más alto que el nav */
            padding: 10px 5%;
        }

        .logo {
            font-size: 24px;
            font-weight: bold;
            color: var(--primary-color);
            text-decoration: none;
        }

        .auth-buttons {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .cart-icon-container {
            position: relative;
            margin-right: 15px;
        }

        .cart-icon {
            font-size: 20px;
            color: var(--primary-color);
            text-decoration: none;
            position: relative;
        }

        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background-color: var(--accent-color);
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .auth-buttons a {
            text-decoration: none;
            color: var(--primary-color);
            font-size: 14px;
            transition: color 0.3s;
        }

        .auth-buttons a:hover {
            color: var(--accent-color);
        }

        .user-menu {
            display: none;
            align-items: center;
            gap: 15px;
        }

        .user-menu.active {
            display: flex;
        }

        .user-info {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }

        .user-email {
            font-size: 14px;
            font-weight: 500;
            color: var(--primary-color);
        }

        .my-account-link {
            font-size: 12px;
            color: var(--accent-color);
            text-decoration: none;
            margin-top: 2px;
        }

        .my-account-link:hover {
            text-decoration: underline;
        }

        .logout-btn {
            background: none;
            border: none;
            color: var(--primary-color);
            cursor: pointer;
            font-size: 14px;
            padding: 5px 10px;
            border-radius: 4px;
            transition: all 0.3s;
        }

        .logout-btn:hover {
            background-color: var(--secondary-color);
            color: var(--accent-color);
        }

        .language-selector {
            position: relative;
        }

        .language-btn {
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 14px;
            color: var(--primary-color);
        }

        .language-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background-color: var(--white);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border-radius: 4px;
            min-width: 150px;
            z-index: 1001;
        }

        .language-dropdown.show {
            display: block;
        }

        .language-dropdown a {
            display: block;
            padding: 10px 15px;
            text-decoration: none;
            color: var(--text-color);
            border-bottom: 1px solid var(--border-color);
            transition: background-color 0.3s;
        }

        .language-dropdown a:hover {
            background-color: var(--secondary-color);
        }

        .language-dropdown a:last-child {
            border-bottom: none;
        }

        /* Barra de navegación dinámica */
        .main-nav {
        position: fixed;
        top: 85px; /* justo debajo de la top-bar (ajusta según altura real del logo/barra) */
        width: 100%;
        background: white;
        transition: transform 0.3s ease;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        
        }

        /* Estado oculto */
        .main-nav.hidden {
        transform: translateY(-100%);
        }

        /* Links dentro del nav */
        .nav-links {
        display: flex;
        list-style: none;
        justify-content: center;
        padding: 2px;
        }

        nav {
            padding: 15px 5%;
        }

        .nav-links {
            display: flex;
            list-style: none;
            justify-content: center;
            gap: 30px;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
        }

        .nav-links a:hover {
            color: var(--accent-color);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--accent-color);
            transition: width 0.3s;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* HERO SLIDER */
        .hero-slider {
            height: 80vh;
            position: relative;
            overflow: hidden;
            margin: 0;
            border-radius: 0;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            width: 100%;
            margin-bottom: 0px; /* ajusta el valor según el espacio que quieras */
        }

        .swiper {
            width: 100%;
            height: 100%;
            
        }

        .swiper-slide {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
              height: 700px;
        }

        .swiper-slide img,
        .swiper-slide video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .split-slide {
            display: flex;
            width: 100%;
            height: 100%;
        }

        .split-slide .image-half,
        .split-slide .video-half {
            flex: 1;
            overflow: hidden;
        }

        .split-slide .image-half img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .split-slide .video-half video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .slide-content {
            position: absolute;
            padding: 40px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 8px;
            max-width: 600px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            z-index: 10;
        }

        .slide-content h2 {
            font-size: 32px;
            margin-bottom: 15px;
            color: var(--primary-color);
        }

        .slide-content p {
            font-size: 18px;
            color: var(--light-text);
            margin-bottom: 25px;
        }

        .btn {
            display: inline-block;
            padding: 10px 20px;
            background-color: var(--accent-color);
            color: var(--white);
            text-decoration: none;
            border-radius: 4px;
            font-weight: 500;
            transition: background-color 0.3s;
            border: none;
            cursor: pointer;
        }

        .btn:hover {
            background-color: #0a4a56;
        }

        .swiper-button-next, .swiper-button-prev {
            color: var(--white);
        }

        .swiper-pagination-bullet-active {
            background-color: var(--accent-color);
        }

        /* BENEFITS SECTION CON EFECTO DE PARALAJE */


        .benefits-section {
            min-height: 0vh;
            display: flex;
            align-items: center;
            width: 100%;
            margin: 0;
            margin-top: 0px; /* antes era 60px o más */            
            padding: 00px 5%;
            position: relative;
            overflow: hidden;
            padding-top: 0px; /* antes era 100px */
        }

        .benefits-parallax-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 120%;
            background-image: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            transition: transform 0.1s ease-out;
            will-change: transform;
            z-index: 0;
        }

        .benefits-container {
            width: 100%;
            max-width: 110%;
            margin: 0;
            padding: 0;  
                  
        }

        .benefits-content-wrapper {
            display: grid !important;
            grid-template-columns: 1.1fr 1fr !important; /* imagen un poco más grande */
            gap: 0px;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
        }

        .benefits-image {
            position: relative;
            width: 100%;
            max-width: 100%; /* ajusta según tu diseño */
            height: auto;
            margin: 0; /* elimina auto-centering */
            border-top-right-radius: 40px;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            transform: translateX(-100px);
        }

        .benefits-image img {
            width: 100%;   /* ocupa todo el ancho del contenedor */
            height: 100%;  /* ocupa todo el alto del contenedor */
            object-fit: cover;
            display: block;
        }

        .benefits-image.static-img {
            aspect-ratio: 4 / 4; 
            border-top-right-radius: 40px;
            border-bottom-right-radius: 40px;
            overflow: hidden;
            box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.15);
        }

        .benefits-image.static-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .benefits-content {
            padding: 0px 0;
            
        }

        .benefits-content h2 {
            font-size: 2.8rem;
            margin-bottom: 50px;
            color: var(--primary-color); /* Cambiado a blanco */
            font-weight: 700;
            text-align: left;
            line-height: 1.2;
        }

        .benefits-content h2::after {
            content: "";
            display: block;
            width: 150px;
            height: 4px;
            background-color: var(--accent-color); /* o usa un color como #00bcd4 */
            margin-top: 5px;
            border-radius: 2px;
        }

        .benefit-item {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            margin-bottom: 35px;
            padding: 20px;
            border-radius: 10px;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(5px);
        }

        .benefit-item:hover {
            background: rgba(255, 255, 255, 0.95);
            transform: translateX(10px);
        }

        .benefit-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--accent-color), #0a4a56);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            flex-shrink: 0;
            transition: transform 0.3s ease;
        }

        .benefit-item:hover .benefit-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .benefit-text {
            flex: 1;
        }

        .benefit-text h3 {
            font-size: 1.2rem;
            margin-bottom: 12px;
            color: var(--primary-color);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            line-height: 1.3;
        }

        .benefit-text p {
            color: var(--light-text);
            line-height: 1.6;
            font-size: 1rem;
            margin: 0;
        }

        /* ABOUT SECTION CON EFECTO DE PARALAJE MEJORADO */
        .about-section {
            padding: 70px 0%;
            padding-bottom: 40px;
            position: relative;
            overflow: hidden;
            min-height: auto;
            display: flex;
            align-items: center;

        }

        .about-parallax-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 120%;
            background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            transition: transform 0.1s ease-out;
            will-change: transform;
            z-index: 0;
        }

        .about-content {
            position: relative;
            z-index: 2;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

        .section-title {
            text-align: center;
            margin-bottom: 60px;
            font-size: 2.5rem;
            color: var(--primary-color);
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background-color: var(--accent-color);
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }

        .about-text {
            font-size: 18px;
            color: var(--text-color);
            line-height: 1.8;
            background: var(--secondary-color);
            padding: 30px;
            border-radius: 10px;
            backdrop-filter: blur(5px);
        }

.about-text p {
            background: rgba(255, 255, 255, 0.9);
            padding: 25px 30px;
            border-radius: 12px;
            margin-bottom: 30px; /* separación entre bloques */
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            border-left: 5px solid var(--accent-color);
            line-height: 1.8;
            font-size: 18px;
            color: var(--text-color);
            transition: all 0.3s ease;
        }

        .about-text p:hover {
            border-left-color: var(--accent-color);
            padding-left: 25px;
        }

        .about-text p::first-letter {
            font-size: 2.5em;
            font-weight: bold;
            color: var(--accent-color);
            float: left;
            line-height: 0.8;
            margin-right: 8px;
            margin-top: 5px;
            text-shadow: 2px 2px 0 rgba(13, 92, 107, 0.1);
            transition: all 0.3s ease;
        }

        .about-text p:hover::first-letter {
            transform: scale(1.1);
            text-shadow: 3px 3px 0 rgba(13, 92, 107, 0.15);
        }

        .about-visual {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
        }

        .about-icon {
            width: 120px;
            height: 120px;
            background: linear-gradient(135deg, var(--accent-color) 0%, #0a4a56 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 50px;
            box-shadow: 0 10px 20px rgba(13, 92, 107, 0.2);
            transition: all 0.4s ease;
        }

        .about-icon:hover {
            transform: translateY(-5px) rotate(5deg);
            box-shadow: 0 15px 30px rgba(13, 92, 107, 0.3);
        }

        .about-stats {
            display: flex;
            justify-content: space-around;
            width: 100%;
            margin-top: 20px;
        }

        .stat-item {
            text-align: center;
            padding: 15px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.9);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .stat-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
            background: white;
        }

        .stat-number {
            font-size: 2em;
            font-weight: bold;
            color: var(--accent-color);
            display: block;
        }

        .stat-label {
            font-size: 0.9em;
            color: var(--light-text);
        }

        /* ENVIRONMENT SECTION CON EFECTO DE PARALAJE MEJORADO */
        .environment-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            width: 100%;
            margin: 0;
            padding: 100px 5%;
            position: relative;
            overflow: hidden;
        }

        .environment-parallax-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 120%;
            background-image: url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?ixlib=rb-4.0.3&auto=format&fit=crop&w=1474&q=80');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            transition: transform 0.1s ease-out;
            will-change: transform;
            z-index: 0;
        }

        .environment-container {
            width: 100%;
            max-width: 100%;
            margin: 0;
            padding: 0 5%;
        }

        .environment-content-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
            height: 100%;
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .environment-image {
            height: 80vh;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            order: 2;
        }

        .environment-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .environment-content {
            padding: 40px 0;
            order: 1;
        }

        .environment-content h2 {
            font-size: 2.8rem;
            margin-bottom: 50px;
            color: var(--white); /* Cambiado a blanco */
            font-weight: 700;
            text-align: left;
            line-height: 1.2;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Añadida sombra para mejor legibilidad */
        }

        .environment-item {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            margin-bottom: 35px;
            padding: 20px;
            border-radius: 10px;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(5px);
        }

        .environment-item:hover {
            background: rgba(255, 255, 255, 0.95);
            transform: translateX(10px);
        }

        .environment-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #27ae60, #219653);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            flex-shrink: 0;
            transition: transform 0.3s ease;
        }

        .environment-item:hover .environment-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .environment-text {
            flex: 1;
        }

        .environment-text h2 {
            font-size: 2rem;
            margin-bottom: 20px;
            color: var(--primary-color);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            line-height: 1.2;
        }

        .environment-text h3 {
            font-size: 1.2rem;
            margin-bottom: 12px;
            color: var(--primary-color);
            font-weight: 700;
            line-height: 1.3;
        }

        .environment-text p {
            color: var(--light-text);
            line-height: 1.6;
            font-size: 1rem;
            margin: 0;
        }

        /* COUNTER SECTION MEJORADA - FONDO PANTALLA COMPLETA */
        .counter-section {
            position: relative;
            width: 100vw;
            height: 100vh;
            background-image: url('../imgs/test.png') !important;
            background-size: cover !important;
            background-position: center center !important;
            background-repeat: no-repeat !important;
            background-color: transparent !important;
            margin: 0;
            overflow: hidden;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);

        }

        .counter-loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: var(--primary-color);
            font-size: 16px;
            background: rgba(255, 255, 255, 0.9);
            padding: 20px 30px;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
            z-index: 5;
        }

        .counter-product {
            position: absolute;
            background: transparent !important;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            z-index: 10;
            display: flex;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
            border: 2px solid transparent;
        }

        .counter-product img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.4s ease;
        }

        .counter-product:hover img {
            transform: scale(1.1);
        }

        .counter-product:hover {
            transform: scale(1.1) !important;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
            z-index: 20 !important;
            border: 2px solid var(--accent-color) !important;
        }

        /* POSICIONES DE PRODUCTOS */
        .producto-1 {
            top: 249px;
            left: 841px;
            width: 140px;
            height: 100px;
        }

        .producto-2 {
            top: 202px;
            left: 1020px;
            width: 140px;
            height: 100px;
        }

        .producto-3 {
            top: 155px;
            left: 1182px;
            width: 140px;
            height: 100px;
        }

        .producto-4 {
            top: 115px;
            left: 1327px;
            width: 140px;
            height: 100px;
        }

/* EXPANDED PRODUCT STYLES - MÁS COMPACTO */
.counter-product.expanded {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 75vw !important; /* Reducido de 90vw */
    max-width: 1000px !important; /* Reducido de 1200px */
    height: 65vh !important; /* Reducido de 80vh */
    max-height: 600px !important; /* Reducido de 700px */
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    z-index: 1000 !important;
    display: flex !important;
    overflow: hidden;
    animation: expandProduct 0.4s ease-out !important;
}

.counter-product.expanded .product-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.counter-product.expanded .product-image {
    flex: 0 0 55%; /* Reducido de 60% */
    height: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.counter-product.expanded .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px; /* Reducido de 20px */
}

.counter-product.expanded .product-info {
    flex: 0 0 45%; /* Aumentado de 40% */
    padding: 25px; /* Reducido de 40px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 1px solid var(--border-color);
}

.counter-product.expanded .product-info h3 {
    font-size: 1.8rem; /* Reducido de 2rem */
    margin-bottom: 12px; /* Reducido de 15px */
    color: var(--primary-color);
}

.counter-product.expanded .product-category {
    font-size: 0.85rem; /* Reducido de 0.9rem */
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.8px; /* Reducido de 1px */
    margin-bottom: 8px; /* Reducido de 10px */
    font-weight: 600;
}

.counter-product.expanded .product-description {
    font-size: 1rem; /* Reducido de 1.1rem */
    line-height: 1.5; /* Reducido de 1.6 */
    color: var(--light-text);
    margin-bottom: 20px; /* Reducido de 25px */
    flex-grow: 1;
}

.counter-product.expanded .product-price {
    font-size: 1.6rem; /* Reducido de 1.8rem */
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px; /* Reducido de 20px */
}

.counter-product.expanded .product-meta {
    display: flex;
    gap: 12px; /* Reducido de 15px */
    margin-bottom: 25px; /* Reducido de 30px */
}

.counter-product.expanded .product-stock,
.counter-product.expanded .product-wait-time {
    padding: 6px 12px; /* Reducido de 8px 15px */
    border-radius: 18px; /* Reducido de 20px */
    font-size: 0.85rem; /* Reducido de 0.9rem */
    font-weight: 600;
}

.counter-product.expanded .product-actions {
    display: flex;
    gap: 12px; /* Reducido de 15px */
}

.counter-product.expanded .btn-ver-mas {
    padding: 10px 20px; /* Reducido de 12px 25px */
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 6px; /* Reducido de 8px */
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    font-size: 0.9rem; /* Agregado para texto más pequeño */
}

.counter-product.expanded .btn-cerrar {
    padding: 10px 20px; /* Reducido de 12px 25px */
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px; /* Reducido de 8px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem; /* Agregado para texto más pequeño */
}

        .counter-product.expanded .btn-cerrar:hover {
            background: #5a6268;
            transform: translateY(-2px);
        }

        .counter-product.expanded ~ .counter-product {
            filter: blur(5px);
            opacity: 0.3;
            transform: scale(0.8);
            pointer-events: none;
            transition: all 0.4s ease;
        }

        .counter-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 999;
            backdrop-filter: blur(5px);
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

 /* Mejoras responsivas */
@media (max-width: 1400px) {
    .counter-product.expanded {
        width: 90vw !important;
        height: 80vh !important;
    }
}

@media (max-width: 992px) {
    .counter-product.expanded {
        flex-direction: column;
        width: 95vw !important;
        height: 85vh !important;
    }
    
    .counter-product.expanded .product-image {
        flex: 0 0 45%; /* Ajustado para móvil */
    }
    
    .counter-product.expanded .product-info {
        flex: 0 0 55%; /* Ajustado para móvil */
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .counter-product.expanded {
        width: 98vw !important;
        height: 90vh !important;
    }
    
    .counter-product.expanded .product-image {
        flex: 0 0 40%;
    }
    
    .counter-product.expanded .product-info {
        flex: 0 0 60%;
        padding: 20px;
    }
    
    .counter-product.expanded .product-info h3 {
        font-size: 1.5rem;
    }
    
    .counter-product.expanded .product-actions {
        flex-direction: column;
    }
}       

        /* CONTACT SECTION CON EFECTO DE PARALAJE MEJORADO */
        .contact-section {
            padding: 100px 5%;
            margin-top: -50px;
            margin-bottom: 0px;
            position: relative;
            overflow: hidden;
            min-height: 100vh;
            display: flex;
            align-items: center;
        }

        .contact-parallax-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 120%;
            background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            transition: transform 0.1s ease-out;
            will-change: transform;
            z-index: 0;
        }

        .contact-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
            width: 100%;
        }

        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: start;
        }

        .contact-form {
            background: rgba(255, 255, 255, 0.9);
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
            backdrop-filter: blur(5px);
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--primary-color);
        }

        .form-group input,
        .form-group textarea,
        .form-select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s ease;
            background-color: var(--white);
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-select:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(13, 92, 107, 0.1);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        .map-container {
            background: rgba(255, 255, 255, 0.9);
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
            backdrop-filter: blur(5px);
        }

        .map-container iframe {
            width: 100%;
            height: 300px;
            border: none;
            border-radius: 8px;
        }

        .success-message {
            background-color: #d4edda;
            color: #155724;
            padding: 12px;
            border-radius: 6px;
            margin-bottom: 20px;
            display: none;
        }

        .error-message {
            background-color: #f8d7da;
            color: #721c24;
            padding: 12px;
            border-radius: 6px;
            margin-bottom: 20px;
            display: none;
        }

        .contact-info p {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

       
            /* Efecto hover para correo y teléfono en el footer */
            .contact-info a {
                color: var(--white);
                text-decoration: none;
                transition: color 0.3s;
            }

            .contact-info a:hover {
                color: var(--accent-color);
            }

        .contact-info {
            margin-bottom: 20px;
        }

        .contact-info p {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
        }

        /* MODALS */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: var(--white);
            padding: 30px;
            border-radius: 8px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .modal-title {
            font-size: 24px;
            color: var(--primary-color);
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--light-text);
        }

        .form-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
        }

        /* EFECTOS DE SCROLL REVEAL */
        .reveal {
            opacity: 0;
            transform: translateY(28px) scale(0.985);
            transition: opacity 700ms cubic-bezier(.22,.9,.32,1), transform 700ms cubic-bezier(.22,.9,.32,1);
            will-change: opacity, transform;
        }
        .reveal.in-view {
            opacity: 1;
            transform: translateY(0) scale(1);
        }



        .reveal-stagger > * {
            opacity: 0;
            transform: translateY(18px);
            transition: opacity 700ms ease, transform 700ms ease;
        }
        .reveal-stagger.in-view > * {
            opacity: 1;
            transform: translateY(0);
        }
        .reveal-stagger > * { 
            transition-delay: calc(var(--i) * 0.10s); 
        }

        .icon-animate { 
            transform-origin:center; 
            transition: transform 420ms ease; 
        }
        .icon-animate.in-view { 
            transform: translateY(-6px) rotate(3deg); 
        }

        @media (prefers-reduced-motion: reduce) {
            .reveal, .reveal-img, .reveal-stagger > *, .icon-animate {
                transition: none !important;
                transform: none !important;
                opacity: 1 !important;
                filter: none !important;
            }
        }

        /* RESPONSIVE */
        @media (max-width: 1600px) {
            .counter-section {
                transform: scale(0.9);
                transform-origin: top center;
            }
            
            .counter-product.expanded {
                width: 95vw !important;
                height: 85vh !important;
            }
        }

        @media (max-width: 1400px) {
            .counter-section {
                transform: scale(0.8);
            }
            
            .counter-product.expanded {
                flex-direction: column;
            }
            
            .counter-product.expanded .product-image {
                flex: 0 0 50%;
            }
            
            .counter-product.expanded .product-info {
                flex: 0 0 50%;
                border-left: none;
                border-top: 1px solid var(--border-color);
            }
        }

        @media (max-width: 1200px) {
            .counter-section {
                transform: scale(0.7);
            }
            
            .benefits-content-wrapper,
            .environment-content-wrapper {
                gap: 60px;
                background-color: var(--secondary-color);
            }
            
            .benefits-content h2,
            .environment-content h2 {
                font-size: 2.5rem;
            }
        }

        @media (max-width: 992px) {
            .benefits-section,
            .environment-section {
                height: auto;
                min-height: 100vh;
                padding: 80px 0;
            }
            
            .benefits-content-wrapper,
            .environment-content-wrapper {
                grid-template-columns: 1fr;
                gap: 50px;
            }
            
            .benefits-image,
            .environment-image {
                height: 400px;
                order: 1;
                  overflow: hidden;
            }
            
            .benefits-content,
            .environment-content {
                order: 2;
                padding: 0;
            }
            
            .benefits-content h2,
            .environment-content h2 {
                text-align: center;
                font-size: 2.2rem;
            }
            
            .contact-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .counter-section {
                transform: scale(0.6);
                height: 400px;
            }
            
            .counter-product.expanded {
                width: 98vw !important;
                height: 90vh !important;
                flex-direction: column;
            }
            
            .counter-product.expanded .product-image {
                flex: 0 0 40%;
            }
            
            .counter-product.expanded .product-info {
                flex: 0 0 60%;
                padding: 20px;
            }
            
            .counter-product.expanded .product-info h3 {
                font-size: 1.5rem;
            }
            
            .counter-product.expanded .product-actions {
                flex-direction: column;
            }
            
            .benefits-container,
            .environment-container {
                padding: 0 20px;
            }
            
            .benefits-content h2,
            .environment-content h2 {
                font-size: 2rem;
                margin-bottom: 40px;
            }
            
            .benefit-item,
            .environment-item {
                padding: 15px;
                gap: 15px;
            }
            
            .benefit-icon,
            .environment-icon {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }
            
            .benefit-text h3,
            .environment-text h3 {
                font-size: 1.1rem;
            }
            
            .nav-links {
                flex-direction: column;
                gap: 15px;
            }
            
            /* Ajustes para móviles - desactivar parallax */
            .about-parallax-bg,
            .benefits-parallax-bg,
            .environment-parallax-bg,
            .contact-parallax-bg {
                background-attachment: scroll;
            }
        }

        @media (max-width: 576px) {
            .benefit-item,
            .environment-item {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }
            
            .benefit-icon,
            .environment-icon {
                align-self: center;
            }
            
            .benefit-item:hover,
            .environment-item:hover {
                transform: translateY(-5px);
            }
            
            .about-grid {
                grid-template-columns: 1fr;
            }
            
            .about-stats {
                flex-direction: column;
                gap: 15px;
            }
        }

            /* SECCIÓN PROMOCIONAL CON EFECTO DE PARALAJE */
            .promo-section {
            background-color: var(--secondary-color);
            padding: 40px 5%;
            text-align: center;
            margin-bottom: 100px; /* antes era 60px o más */
            }

            .promo-title {
            font-size: 2.2rem;
            color: var(--primary-color);
            margin-bottom: 0px;
            font-weight: 700;
            }

            .promo-text {
            font-size: 1.1rem;
            color: var(--light-text);
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.6;
            }


            #promo-parallax {
            position: relative;
            min-height: 10vh;
            background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('../imgs/GREENACT') center / cover;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-position 0.1s ease-out;
            }

            .promo-container {
            padding: 10px 10px;
            border-radius: 12px;
            max-width: 100%;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            }

            .promo-title{
            color: white;
            }

            .promo-text{
            color: white;
            }

            a {
            color: inherit;
            text-decoration: none;
            }

        /* ===============================
        HERO CON PARALLAX (nueva sección)
        ================================ */

            .hero-section {
                position: relative;
                width: 100%;
                height: 90vh; /* altura ajustable */
                overflow: hidden;
                margin-bottom: 50px;
                box-shadow: 0 6px 18px rgba(0,0,0,0.35);

            }

            /* Fondo con efecto parallax REAL */
            .hero-parallax-bg {
                background: url('../imgs/HERO.png') center/cover no-repeat;
                width: 100%;
                height: 120%;      /* extra para evitar bordes */
                position: absolute;
                top: 0;
                left: 0;
                z-index: 1;
                opacity: 100%;

                /* 🎯 PARALLAX REAL COMO LOS OTROS */
                background-attachment: fixed;
            }

            /* Overlay con texto */
            .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
            color: var(--secondary-color);

            /* Fondo oscuro translúcido */
            background-color: rgba(0, 0, 0, 0.2); /* ajusta opacidad según tu gusto */
            
            /* Centrado de contenido */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;

            /* Aire interno para el texto */
            padding: 40px 20px;

            /* Estética extra opcional */
            text-shadow: 10px 6px 15px rgba(0,0,0,0.35);
            }


            .hero-title {
                font-size: 48px;
                font-weight: 700;
                margin-bottom: 10px;
                padding: 10px 10px;
                border-radius: 15px;
            }

            .hero-subtitle {
                font-size: 20px;
                margin-bottom: 25px;
                padding: 10px 10px;
                border-radius: 15px;
            }

            .hero-button {
                display: inline-block;
                background: var(--accent-color);
                padding: 14px 34px;
                color: white;
                font-size: 20px;
                font-weight: 600;
                border-radius: 10px;
                text-decoration: none;
                transition: 0.3s;
                box-shadow: 0 6px 18px rgba(0,0,0,0.35);
            }

            .hero-button:hover {
            background-color: #0a4a56;
            }


/* Nueva seccion medio ambiente */

        .parallax-feature-section {
            position: relative;
            width: 100%;
            height: 380px; /* más alargado */
            overflow: hidden;
            margin: 60px 0;
            box-shadow: 0 6px 18px rgba(0,0,0,0.35);

        }

        /* Fondo con efecto de movimiento */
        .parallax-feature-bg {
            background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.0)), url('../imgs/GREENACT.jpg') center / cover;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-attachment: fixed; /* efecto movimiento */
            z-index: 1;
        }

        /* Contenido a la derecha */
        .parallax-feature-content {
            position: absolute;
            right: 50px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 2;
            max-width: 450px;
            color: white;
            text-align: right;
            text-shadow: 0 6px 15px rgba(0,0,0,0.35);
        }

        .feature-title {
            font-size: 42px;
            font-weight: 700;
            margin: 0 0 10px;
        }

        .feature-description {
            font-size: 18px;
            margin-bottom: 25px;
        }

        /* Botón */
        .feature-button {
                display: inline-block;
                background: var(--accent-color);
                padding: 14px 34px;
                color: white;
                font-size: 20px;
                font-weight: 600;
                border-radius: 10px;
                text-decoration: none;
                transition: 0.3s;
                box-shadow: 0 6px 18px rgba(0,0,0,0.35);
        }

        .feature-button:hover {
            background-color: #0a4a56;
        }

            /* Nuevo estilo para parallax promo */

            .parallax-hero {
                position: relative;
                width: 100%;
                height: 380px;        /* Ajusta altura si quieres */
                overflow: hidden;
                margin: 60px 0;
                box-shadow: 0 6px 18px rgba(0,0,0,0.35);

            }

            /* Fondo con PARALLAX REAL basado en scroll */
            .parallax-hero-bg {
                background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../imgs/prueba.jpg') center / cover;
                width: 100%;
                height: 120%;          /* 120% para evitar bordes al moverse */
                position: absolute;
                top: 0;
                left: 0;

                background-attachment: fixed;  /* IMPORTANTE */
                background-size: cover;
                background-position: center;
            }

            /* CONTENIDO SUPERIOR */
            .parallax-hero-content {
                position: absolute;
                z-index: 2;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                text-align: center;
                color: white;
                text-shadow: 0 6px 15px rgba(0,0,0,0.35);
                padding: 0 20px;
            }

            .parallax-title {
                font-size: 42px;
                font-weight: 700;
                margin-bottom: 12px;
            }

            .parallax-subtitle {
                font-size: 18px;
                margin-bottom: 25px;
            }

            /* BOTÓN */
            .parallax-btn {
                display: inline-block;
                background: var(--accent-color);
                padding: 14px 34px;
                color: white;
                font-size: 20px;
                font-weight: 600;
                border-radius: 10px;
                text-decoration: none;
                transition: 0.3s;
                box-shadow: 0 6px 18px rgba(0,0,0,0.35);
            }

            .parallax-btn:hover {
            background-color: #0a4a56;
            }

    /* =====================
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }

    /* --- ESTANTERÍA DENTRO DEL CONTENEDOR 
    .shelf-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .shelf {
        width: 100%;
        height: 100%;
        aspect-ratio: 1536 / 1024; /* Proporción REAL de tu imagen 
        background: url('imgs/test.png') center/contain no-repeat;
        position: relative;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }

    /* --- PRODUCTOS 
    .product {
        width: 28px;
        height: 28px;
        background: #ffffff;
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(0,0,0,0.25);
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        color: #333;
        position: absolute;
        transition: transform .3s ease;
    }

    .product:hover {
        transform: scale(1.12);
    }

    /* POSICIONES RELATIVAS AL TAMAÑO DE LA IMAGEN 
    .product-a { top: 18.3%; left: 15.2%; }
    .product-b { top: 33%; left: 45%; }
    .product-c { top: 33%; left: 55%; }

    /* --- OVERLAY --- 
    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 900;
    }

    .expanded-card {
        width: 80vw;
        max-width: 900px;
        height: 70vh;
        background: white;
        border-radius: 15px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.5);
        display: flex;
        overflow: hidden;
        animation: pop .35s ease-out;
    }

    @keyframes pop {
        from { transform: scale(.7); opacity: 0; }
        to   { transform: scale(1); opacity: 1; }
    }

    .expanded-left {
        flex: 1;
        background-image: url('imgs/botella.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .expanded-right {
        flex: 1;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 15px;
    }

    .close-btn {
        margin-top: 20px;
        padding: 12px 20px;
        background: #333;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-weight: bold;
    }
*/

        /* =====================
           ESTANTERÍA
        ===================== */

        .shelf-container {
            position: relative;
            max-width: 80vw;
            margin: 40px auto;
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        }

        .shelf-image {
            width: 100%;
            display: block;
        }

        /* =====================
           HOTSPOTS
        ===================== */

        .hotspot {
            position: absolute;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: rgba(140, 190, 140, 0.95);
            border: none;
            cursor: pointer;
            z-index: 2;
            animation: pulse 1.8s infinite;
        }

        .hotspot::after {
            content: "";
            position: absolute;
            inset: -8px;
            border-radius: 50%;
            background: rgba(140, 190, 140, 0.35);
            animation: halo 1.8s infinite;
        }

        @keyframes pulse {
            0%   { transform: scale(1); }
            50%  { transform: scale(1.15); }
            100% { transform: scale(1); }
        }

        @keyframes halo {
            0%   { opacity: 0.7; }
            50%  { opacity: 0; }
            100% { opacity: 0.7; }
        }

        /* =====================
           OVERLAY
        ===================== */

        .product-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.45);
            z-index: 100;
        }

        /* =====================
           MODAL ANIMADO
        ===================== */

        .product-modal {
            position: fixed;
            background: #fff;
            overflow: hidden;
            z-index: 101;

            width: 22px;
            height: 22px;
            border-radius: 50%;

            animation: morphOpen 0.6s cubic-bezier(.4,0,.2,1) forwards;
        }

        @keyframes morphOpen {
            0% {
                width: 22px;
                height: 22px;
                border-radius: 50%;
            }
            100% {
                width: 640px;
                height: 380px;
                border-radius: 18px;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
            }
        }

        .product-modal.closing {
            animation: closeFall 0.25s ease forwards;
        }

        @keyframes closeFall {
            from {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
            to {
                opacity: 0;
                transform: translate(-50%, calc(-50% + 40px));
            }
        }

        /* =====================
           CONTENIDO INTERNO
        ===================== */

        .modal-inner {
            width: 100%;
            height: 100%;
            display: flex;
            opacity: 0;
            animation: fadeIn 0.25s ease forwards;
            animation-delay: 0.45s;
        }

        @keyframes fadeIn {
            to { opacity: 1; }
        }

        .product-image {
            width: 45%;
            background: #f2f2f2;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .product-image img {
            max-width: 80%;
        }

        .product-info {
            width: 55%;
            padding: 30px;
            display: flex;
            flex-direction: column;
        }

        .product-info h2 {
            margin-top: 0;
        }

        .product-info p {
            line-height: 1.5;
            flex-grow: 1;
        }

        .close-btn {
            align-self: flex-start;
            padding: 10px 14px;
            border: none;
            background: #333;
            color: white;
            border-radius: 8px;
            cursor: pointer;
        }



/* Pantalla blanca */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;

}

/* Logo centrado */
#preloaderLogo {
    width: 120px;
    animation: shake 0.8s infinite ease-in-out;
}

/* Temblor suave */
@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -1px); }
    75% { transform: translate(-1px, 2px); }
    100% { transform: translate(0, 0); }
}

/* Animación final: el logo vuela hacia el header */
#preloader.fly-out #preloaderLogo {
    animation: flyToHeader 0.9s ease forwards;
}

@keyframes flyToHeader {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--logo-final-x), var(--logo-final-y)) scale(0.3);
        opacity: 0;
    }
}

/* Desvanecer pantalla */
#preloader.hide {
    opacity: 0;
    pointer-events: none;
}

        /* DESACTIVAR CAROUSEL SI EXISTE EN ESTA PÁGINA (no debería, pero por si acaso)*/
        .carousel-overlay {
            display: none !important;
        }

