/* ================= VARIABLES Y RESET ================= */

html, body {
    overflow-x: hidden; /* Corta cualquier elemento que sobresalga por los lados */
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Fundamental para que los padding no sumen ancho extra a los elementos */
*, *::before, *::after {
    box-sizing: border-box; 
}








:root {
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --gold: #d4af37;
    --gold-hover: #c5a059;
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans); background-color: var(--bg-dark);
    color: var(--text-light); overflow-x: hidden; line-height: 1.6;
}

h1, h2, h3, h4, .serif { font-family: var(--font-serif); font-weight: 600; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.mobile-break { display: none; }

/* ================= ANIMACIONES DE SCROLL ================= */
.reveal-up {
    opacity: 0; transform: translateY(40px); /* Aumentado para más dinamismo */
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* ================= NAVEGACIÓN (HEADER) ================= */
header {
    position: fixed; top: 0; width: 100%; background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px); z-index: 1000; padding: 10px 5%;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); transition: all 0.3s ease;
}

.logo img { max-height: 75px; width: auto; object-fit: contain; } 

.nav-links { display: flex; gap: 30px; align-items: center; width: 100%; }
.nav-links a { font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--gold); }

.social-imgs { display: flex; gap: 10px; align-items: center; }
.social-icon {
    display: inline-flex; justify-content: center; align-items: center;
    width: 32px; height: 32px; border-radius: 0px; background-color: transparent; 
    color: var(--gold); border: 1px solid var(--gold); transition: 0.3s; font-size: 14px;
}

/* MEJORA 1: Hover invierte colores (fondo dorado, símbolo negro) */
.social-icon:hover { 
    background-color: var(--gold) !important; 
    color: var(--bg-dark) !important; 
    transform: scale(1.1); 
}
.social-icon:hover i { color: var(--bg-dark) !important; }

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #b89020 100%); color: #000;
    padding: 10px 25px; border: 1px solid transparent; font-weight: 600; cursor: pointer;
    transition: all 0.3s; font-family: var(--font-sans); border-radius: 2px;
    text-align: center;
    display: inline-block;
}
.btn-outline {
    background: transparent; color: var(--gold); border: 1px solid var(--gold);
    padding: 8px 20px; cursor: pointer; transition: all 0.3s;
    font-family: var(--font-sans); border-radius: 2px;
    text-align: center;
}
.btn-gold:hover, .btn-gold:active, .btn-outline:hover, .btn-outline:active {
    background: #111111 !important; color: #ffffff !important; border-color: #ffffff !important;
    transform: translateY(-2px); box-shadow: none;
}

.hamburger { display: none; font-size: 1.5rem; color: var(--gold); cursor: pointer; }

/* ================= HERO SECTION ================= */
.hero {
    height: 100vh; display: flex; align-items: center; padding: 0 5%; position: relative;

  
    background: #000 url('../img/zehtin-izgrev.webp') no-repeat right 50px / contain;

    background-size: auto calc(100vh - 50px);
}

.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* El negro sólido llega solo hasta el 30% y se desvanece por completo al 65% */
    background: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 65%);
    z-index: 1;
}

.hero-content { width: max-content; max-width: 100%; position: relative; z-index: 3; margin-top: 150px; }

.hero-content h1 {
    /* CAMBIO SOLICITADO: Entran desde la izquierda (-50px) hacia la derecha */
    font-size: 4rem; line-height: 1.1; margin-bottom: 20px; opacity: 0; transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-content h1 span { color: var(--gold); }
.hero-content p { 
    /* CAMBIO SOLICITADO: Entran desde la izquierda (-50px) hacia la derecha */
    font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; opacity: 0;
    transform: translateX(-50px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    max-width: 500px;
}
.hero-content .btn-gold {
    /* CAMBIO SOLICITADO: Solo zoom suave (scale), preparado para aparecer al final */
    opacity: 0; transform: scale(0.5);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.loaded .hero-content h1 { opacity: 1; transform: translateX(0); transition-delay: 0.2s; }
body.loaded .hero-content p { opacity: 1; transform: translateX(0); transition-delay: 0.5s; }
/* CAMBIO SOLICITADO: El botón aparece con zoom justo al finalizar la animación de los textos (1.2s de retraso) */
body.loaded .hero-content .btn-gold { opacity: 1; transform: scale(1); transition-delay: 1.2s; }

/* ================= SECCIONES GENERALES ================= */
section { padding: 80px 5%; overflow: hidden; position: relative; scroll-margin-top: 100px; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: #fff; }
.section-title::after { content: ''; display: block; width: 60px; height: 2px; background: var(--gold); margin: 15px auto 0; }

#about { padding-top: 20px; }

/* ================= FEATURES ================= */
.features-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2); border-bottom: 1px solid rgba(212, 175, 55, 0.2); padding: 40px 0;
}
.feature-box { text-align: center; padding: 20px; border-right: 1px solid rgba(255,255,255,0.05); }
.feature-box:last-child { border-right: none; }
.feature-img { height: 78px; margin-bottom: 15px; object-fit: contain; }
.feature-box h4 { color: var(--gold); margin-bottom: 10px; font-size: 1rem; text-transform: uppercase; font-family: var(--font-sans); }
.feature-box p { font-size: 0.85rem; color: var(--text-muted); }

/* ================= PRODUCTOS ================= */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background-color: transparent; height: 580px; perspective: 1000px; }
.card-inner {
    position: relative; width: 100%; height: 100%; text-align: center;
    transition: transform 0.8s; transform-style: preserve-3d;
}
.product-card.flipped .card-inner { transform: rotateY(180deg); }
.card-front, .card-back {
    position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden;
    background-color: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
    padding: 30px 20px 40px 20px; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
}
.card-front img { 
    height: 368px; width: 100%; object-fit: contain; margin-bottom: 10px; 
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}
.card-front h3 { font-size: 1.5rem; margin-bottom: 5px; }
.card-front p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; }

.card-back {
    transform: rotateY(180deg); background: linear-gradient(180deg, var(--bg-card) 0%, rgba(212,175,55,0.1) 100%);
    border: 1px solid var(--gold); justify-content: center;
}
.card-back h3 { color: var(--gold); margin-bottom: 20px; }
.card-back ul { text-align: left; margin-bottom: 30px; width: 100%; }
.card-back li { margin-bottom: 10px; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }
.card-back li i { color: var(--gold); margin-right: 10px; }

.back-buttons { display: flex; flex-direction: column; gap: 10px; width: 100%; }

/* ================= PROCESO ================= */
.process-container { display: flex; justify-content: space-between; align-items: flex-start; position: relative; padding: 40px 0; }
.process-container::before {
    /* MEJORA 4: Alineado exactamente al centro de las imágenes (100px compensando padding y tamaño) */
    content: ''; position: absolute; top: 100px; left: 10%; right: 10%; height: 1px; background: rgba(212, 175, 55, 0.3); z-index: 0;
}
.process-step { text-align: center; width: 22%; position: relative; z-index: 1; }

.process-icon {
    width: 120px; height: 120px; margin: 0 auto 20px; border-radius: 50%; background: var(--bg-dark);
    border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center;
}
.process-icon img { width: 67px; height: 67px; object-fit: contain; }

.process-step h4 { color: var(--gold); margin-bottom: 10px; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); }


        /* ================= ORIGEN ================= */
        .origin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
        .origin-img { border-radius: 5px; overflow: hidden; }
        .origin-stats { display: flex; justify-content: space-between; margin-top: 30px; }
        .stat-item { text-align: center; }
        .stat-item i { font-size: 2rem; color: var(--gold); margin-bottom: 10px; }
        .stat-item h4 { font-size: 1.5rem; color: #fff; }
        .stat-item p { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }

        /* ================= BLOG ================= */
        .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
        .blog-card { background: var(--bg-card); border-radius: 5px; overflow: hidden; transition: transform 0.3s; display: block; }
        .blog-card:hover { transform: translateY(-10px); }
        .blog-img { height: 200px; overflow: hidden; }
        .blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
        .blog-card:hover .blog-img img { transform: scale(1.1); }
        .blog-content { padding: 20px; }
        .blog-date { font-size: 0.8rem; color: var(--gold); margin-bottom: 10px; display: block; }
        .blog-title { font-size: 1.2rem; margin-bottom: 15px; }
        .read-more { color: var(--gold); font-size: 0.9rem; font-weight: 600; }

        /* ================= NEWSLETTER & FOOTER ================= */
        .newsletter {
            background: linear-gradient(to right, rgba(20,20,20,1), rgba(40,40,20,0.8)); border: 1px solid rgba(212, 175, 55, 0.2);
            padding: 40px; display: flex; justify-content: space-between; align-items: center; border-radius: 5px; margin: 0 5% 50px;
        }
        .news-text h3 { font-size: 1.8rem; margin-bottom: 10px; }
        .news-form { display: flex; gap: 10px; }
        .news-form input { padding: 12px 20px; border: 1px solid #333; background: #000; color: #fff; outline: none; width: 300px;}
        
        footer { border-top: 1px solid #222; padding: 50px 5% 20px; background: #050505; }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
        .footer-logo p { color: var(--text-muted); font-size: 0.9rem; margin: 15px 0; }
        .footer-col h4 { color: #fff; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
        .footer-col ul li { margin-bottom: 10px; }
        .footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.3s; }
        .footer-col ul li a:hover { color: var(--gold); }
        .copyright { text-align: center; color: #666; font-size: 0.8rem; border-top: 1px solid #222; padding-top: 20px; }

        /* ================= COOKIES Y MODALES ================= */
        #cookieBanner {
            display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(15,15,15,0.98);
            border-top: 1px solid var(--gold); padding: 15px 5%; z-index: 2000; text-align: center; backdrop-filter: blur(10px);
        }
        #cookieBanner p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; }
        #cookieBanner a { color: var(--gold); text-decoration: underline; cursor: pointer; }

        .modal {
            display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto;
            background-color: rgba(0,0,0,0.85); backdrop-filter: blur(5px); justify-content: center; align-items: center;
        }
        .modal-content {
            background-color: var(--bg-card); margin: auto; padding: 40px; border: 1px solid var(--gold); border-radius: 5px;
            width: 90%; max-width: 550px; position: relative; text-align: center; max-height: 85vh; overflow-y: auto;
        }
        .close-modal {
            color: var(--text-muted); float: right; font-size: 28px; font-weight: bold; cursor: pointer;
            position: absolute; top: 10px; right: 20px;
        }
        .close-modal:hover { color: var(--gold); }
        .modal form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
        .modal input { 
            padding: 12px; background: #0a0a0a; border: 1px solid #333; color: #fff; border-radius: 3px; outline: none; font-family: var(--font-sans);
        }
        .modal input:focus { border-color: var(--gold); }
        .legal-link { cursor: pointer; }
















/* ================= 1 ================= */
/* ================= RESPONSIVE (ESCRITORIO PEQUEÑO, TABLET Y MÓVIL) ================= */

/* 1. PORTÁTILES Y TABLETS HORIZONTALES (< 1200px) */
@media (max-width: 1200px) {
    .hamburger { display: block; }
    
    header { 
        padding: 5px 5%; 
        background-color: #000 !important; 
    }
    
    .nav-links {
        position: fixed; top: 95px; right: -100%; flex-direction: column;
        background: rgba(10,10,10,0.98); width: 100%; height: calc(100vh - 95px);
        justify-content: flex-start; padding-top: 30px; transition: right 0.4s ease; gap: 15px;
    }
    .nav-links.active { right: 0; }
    .nav-links .btn-li { margin: 20px auto 0; width: auto; display: flex; justify-content: center; }
    .nav-links .btn-li a { padding: 8px 16px; font-size: 0.85rem; }

    .mobile-break { display: block; }
    
    .hero { 
        background: #000 url('../img/zehtin-izgrev.webp') top right / cover no-repeat; 
        align-items: flex-start; 
        margin-top: 95px; 
        padding-top: 40px; 
        padding-bottom: 60px; 
        min-height: 500px; 
        overflow: hidden; 
        width: 100%; 
        box-sizing: border-box;
        position: relative; 
    }
    
    .hero::before { 
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0) 100%) !important;
        z-index: 1;
    }

    .hero-content {
        position: relative;
        z-index: 2; 
        margin-top: 0;
        background: transparent; 
        backdrop-filter: none;        
        -webkit-backdrop-filter: none;
        padding: 0 5%; 
        border: none;
        box-shadow: none;
        box-sizing: border-box;
        max-width: 600px; 
    }

    .hero-content h1 { 
        line-height: 1.2; 
        font-size: 3rem; 
        max-width: 450px; 
        margin-bottom: 15px;
        text-shadow: 2px 2px 6px rgba(0,0,0,0.9); 
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
    }
}

/* 2. TABLETS VERTICALES (< 1024px) */
@media (max-width: 1024px) {
    .features-grid, .products-grid, .process-container, .origin-grid, .blog-grid { 
        width: 100% !important; 
        margin: 0 auto !important; 
        padding: 0 20px !important; 
        box-sizing: border-box !important;
    }

    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .feature-box:nth-child(2) { border-right: none; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .process-container { flex-direction: column; align-items: center; }
    .process-container::before { display: none; }
    .process-step { width: 100%; margin-bottom: 40px; }
    .origin-grid { grid-template-columns: 1fr; }
}

/* 3. MÓVILES HORIZONTALES (LANDSCAPE) Y RANGO ENTRE 600-950px */
@media (max-width: 950px) and (orientation: landscape) {
    .hero {
        background: #000 url('../img/zehtin-izgrev.webp') center right / cover no-repeat !important;
        min-height: calc(100vh - 95px);
        padding-top: 30px; 
        padding-bottom: 30px;
    }
    
    .hero-content {
        max-width: 350px;
        margin-top: 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .newsletter { 
        padding: 20px !important; 
        width: 85% !important; 
        max-width: 400px !important;
        margin: 0 auto 30px auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .news-form { 
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 10px !important;
        margin: 0 !important;
    }
    
    .news-form input, .news-form button { 
        width: 100% !important;
        max-width: 300px !important; 
        margin: 0 auto !important;
        display: block !important;
    }
}

/* 4. TABLETS PEQUEÑAS Y MÓVILES (< 768px) */
@media (max-width: 768px) {
    body { overflow-x: hidden; } 
    
    .hero { max-width: 100vw; }

    .hero::before {
        background: 
            linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 35%),
            linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 115px) !important;
    }
    
    .products-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
        margin: 0 auto 30px auto !important; 
        padding: 0 20px !important; 
        width: 100%;
        box-sizing: border-box;
    }
    
    .product-card { 
        height: auto; 
        min-height: 620px;
        box-sizing: border-box;
        margin: 0 auto; 
        width: 100%;
        max-width: 400px; 
    } 

    .product-card h3, .product-card p, .product-card span {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .features-grid { grid-template-columns: 1fr; gap: 30px; }
    .feature-box:nth-child(even) { border-right: none; } 

    .blog-grid { grid-template-columns: 1fr; padding: 0 20px !important; box-sizing: border-box; }
    
    .newsletter { 
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        text-align: center !important; 
        gap: 15px !important; 
        padding: 30px 20px !important; 
        width: 90% !important; 
        max-width: 500px !important;
        box-sizing: border-box;
        margin: 0 auto 30px auto !important; 
    }

    .newsletter > div { display: contents !important; }
    .newsletter h2, .newsletter h3 { order: 1 !important; margin-bottom: 5px !important; width: 100%; }
    .newsletter img { order: 2 !important; max-width: 160px !important; height: auto !important; margin: 10px auto !important; display: block !important; }
    .newsletter p { order: 3 !important; margin-bottom: 15px !important; width: 100%; padding: 0 10px; box-sizing: border-box; }
    
    .news-form { 
        order: 4 !important;
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        width: 100% !important; 
        gap: 15px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .news-form input, .news-form button { 
        width: 100% !important; 
        max-width: 300px !important;
        box-sizing: border-box !important; 
        margin: 0 auto !important;
    }
    
    .footer-grid { grid-template-columns: 1fr !important; text-align: center !important; justify-items: center !important; align-items: center !important; }
    .social-imgs { display: flex !important; justify-content: center !important; align-items: center !important; margin: 20px auto 0 auto !important; padding: 0 !important; width: 100% !important; gap: 15px; }
}

/* 5. MÓVILES EN VERTICAL ESTRICTO (< 600px) - CARGA IMAGEN MÓVIL */
@media (max-width: 600px) {
    .hero { 
        background: #000 url('../img/zehtin-izgrev-mobil.webp') bottom center / cover no-repeat !important; 
        margin-top: 95px; 
        padding-top: 60px;
        justify-content: flex-start;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-content h1 { 
        font-size: 2.1rem; 
        max-width: 280px; 
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .news-form input, .news-form button { 
        width: 100% !important;
        max-width: 300px !important; 
        margin: 0 auto !important;
        display: block !important;
    }
}