/* assets/css/style.css - VERSIÓN MAESTRA FINAL (CLEAN & MOTION) */

/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root { 
    --space-cadet: #242554; 
    --persimmon: #e74a0f; 
    --gamboge: #eb9f0e; 
    --white: #ffffff; 
    --metallic: #087183;
}

body, html { 
    margin: 0; padding: 0; 
    background-color: var(--space-cadet); 
    color: var(--white); 
    font-family: 'Montserrat', sans-serif; 
    overflow-x: hidden; 
    width: 100%;
    cursor: none; /* Ocultamos cursor nativo */
}

/* =========================================
   2. CURSOR MAGNÉTICO PERSONALIZADO
   ========================================= */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999;
    pointer-events: none;
}

.cursor-dot { 
    width: 8px; height: 8px; 
    background-color: var(--gamboge); 
}

.cursor-outline {
    width: 40px; height: 40px;
    border: 2px solid var(--persimmon);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Estado Hover (se agranda) */
body.hovering .cursor-outline {
    width: 80px; height: 80px;
    background-color: rgba(231, 74, 15, 0.1);
    border-color: var(--gamboge);
    mix-blend-mode: difference;
}

/* =========================================
   3. ATMÓSFERA Y FONDOS
   ========================================= */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9000; opacity: 0.05;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
}

.geo-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
    pointer-events: none; overflow: hidden;
}

.geo-shape {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.4;
    animation: float 20s infinite alternate;
}

.shape-1 { width: 500px; height: 500px; background: var(--metallic); top: -10%; left: -10%; }
.shape-2 { width: 400px; height: 400px; background: var(--persimmon); bottom: -10%; right: -10%; animation-delay: -5s; }
.shape-3 { width: 300px; height: 300px; background: var(--gamboge); top: 40%; left: 40%; opacity: 0.2; animation-delay: -10s; }

@keyframes float { 
    0% { transform: translate(0, 0) scale(1); } 
    100% { transform: translate(50px, 50px) scale(1.1); } 
}

/* =========================================
   4. SECCIÓN HERO (PORTADA)
   ========================================= */
#hero { 
    position: relative; width: 100vw; height: 100vh; 
    display: flex; justify-content: center; align-items: center; 
    overflow: hidden; z-index: 10; 
}

.headline { 
    position: relative; z-index: 10; 
    font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; 
    text-align: center; text-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    opacity: 0; max-width: 80%; mix-blend-mode: overlay;
}

.impact-text-container { 
    position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%); z-index: 1; 
    display: flex; flex-direction: column; 
    align-items: center; justify-content: center; 
    width: 100%; pointer-events: none; 
}

.impact-text { 
    font-size: clamp(4rem, 12vw, 11rem); 
    font-weight: 900; text-transform: uppercase; 
    line-height: 1.1; color: var(--persimmon); 
    white-space: nowrap; opacity: 0; text-align: center; 
    letter-spacing: -2px;
}

.slash { 
    position: absolute; width: 120%; height: 100%; 
    background: linear-gradient(45deg, transparent 40%, var(--gamboge) 40%, var(--gamboge) 41%, transparent 41%); 
    top: 0; left: -10%; opacity: 0.3; z-index: 2; transform: scaleX(0); 
}

.scroll-hint { 
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); 
    font-size: 0.8rem; opacity: 0; color: var(--white); z-index: 20; 
    animation: bounce 2s infinite; letter-spacing: 5px; text-transform: uppercase; 
}

@keyframes bounce { 
    0%, 100% { transform: translate(-50%, 0); } 
    50% { transform: translate(-50%, 10px); } 
}

/* =========================================
   5. ESTRUCTURA Y UI COMÚN
   ========================================= */
.section-wrapper { 
    min-height: 100vh; display: flex; flex-direction: column; 
    align-items: center; justify-content: center; 
    padding: 100px 20px; position: relative; z-index: 5; 
}

.section-title { 
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; 
    color: var(--gamboge); margin-bottom: 80px; 
    text-transform: uppercase; letter-spacing: -1px; 
    opacity: 0; text-shadow: 0 10px 20px rgba(0,0,0,0.5); 
}

.btn-buy { 
    display: inline-block; background-color: var(--persimmon); 
    color: white; text-decoration: none; padding: 25px 50px; 
    font-size: 1.2rem; font-weight: 800; border-radius: 5px; 
    transition: 0.3s; text-transform: uppercase; letter-spacing: 2px; 
    position: relative; overflow: hidden; 
}
.btn-buy::before { 
    content:''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; 
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); 
    transition: 0.5s; 
}
.btn-buy:hover::before { left: 100%; }

/* =========================================
   6. MODO LANZAMIENTO (CLEAN & MOTION)
   ========================================= */
.video-wrapper { 
    width: 100%; max-width: 1000px; margin-bottom: 60px; 
    transform: translateY(100px); opacity: 0; 
}

.video-container { 
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; 
    border-radius: 20px; box-shadow: 0 20px 80px rgba(0,0,0,0.5); 
    border: 1px solid rgba(255,255,255,0.1); background: black; 
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- MANIFIESTO MOTION GRAPHIC --- */
.manifesto-box { 
    text-align: center; max-width: 1000px; 
    margin: 80px auto 100px; padding: 0 20px; 
}

.manifesto-text { 
    font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; 
    text-transform: uppercase; line-height: 1.1; 
    color: var(--white); letter-spacing: -2px; margin-bottom: 30px; 
}

/* Clase clave para la animación palabra por palabra */
.manifesto-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    filter: blur(15px);
    will-change: transform, opacity, filter;
}

/* Nueva Firma Estilo Regular Elegante */
.signature-font {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; /* Regular */
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 6px; /* Espaciado amplio premium */
    color: var(--gamboge);
    display: block;
    margin-top: 20px;
    opacity: 0; /* Se anima con JS */
}

/* Tarjetas */
.offer-card { 
    background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(20px); 
    border: 1px solid rgba(255,255,255,0.1); padding: 60px; border-radius: 30px; 
    text-align: center; max-width: 600px; width: 100%; 
    transform: scale(0.9); opacity: 0; transform-style: preserve-3d; 
}
.price { 
    font-size: 4.5rem; font-weight: 900; color: var(--white); margin: 20px 0; 
    letter-spacing: -2px; text-shadow: 0 0 30px rgba(255,255,255,0.2); 
}

.testi-card { 
    background: rgba(255,255,255,0.03); padding: 30px; border-radius: 15px; 
    border-left: 4px solid var(--persimmon); backdrop-filter: blur(10px); 
    border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s ease; 
}
.testi-card:hover { 
    transform: translateY(-5px); background: rgba(255,255,255,0.05); 
}

/* =========================================
   7. MODO EVERGREEN (PORTAFOLIO)
   ========================================= */
.services-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; width: 100%; max-width: 1400px; perspective: 1000px; 
}

.service-card { 
    background: rgba(30, 30, 60, 0.4); border: 1px solid rgba(255,255,255,0.05); 
    padding: 50px 40px; border-radius: 20px; opacity: 0; transform: translateY(50px); 
    transform-style: preserve-3d; transform: perspective(1000px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
}

.service-content { transform: translateZ(30px); }
.icon { font-size: 3.5rem; margin-bottom: 25px; display: block; text-shadow: 0 0 20px rgba(255,255,255,0.3); }
.service-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; color: var(--white); }
.service-desc { font-size: 1rem; line-height: 1.7; color: #bbb; font-weight: 400; }

.filter-btn { 
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); 
    color: #aaa; padding: 12px 30px; border-radius: 30px; cursor: pointer; 
    font-weight: bold; transition: 0.3s; letter-spacing: 1px; 
    font-size: 0.8rem; font-family: 'Montserrat', sans-serif; 
}
.filter-btn:hover { background: rgba(255,255,255,0.1); color: white; border-color:white; }
.filter-btn.active { 
    background: var(--persimmon); color: white; border-color: var(--persimmon); 
    box-shadow: 0 0 20px rgba(231, 74, 15, 0.4); 
}

/* =========================================
   8. FOOTER Y RESPONSIVE
   ========================================= */
.himagen-block { 
    margin-top: 150px; text-align: center; opacity: 0; transform: translateY(30px); 
}
.himagen-logo-text { 
    font-size: 3rem; font-weight: 900; color: var(--white); 
    letter-spacing: -2px; background: -webkit-linear-gradient(white, #888); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.himagen-badge { 
    display: inline-block; background: var(--persimmon); color: white; 
    padding: 5px 10px; border-radius: 4px; font-size: 0.7rem; 
    font-weight: 900; letter-spacing: 1px; vertical-align: super; 
    -webkit-text-fill-color: white; 
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-outline { display: none; }
    body, html { cursor: auto; }
    .impact-text { font-size: 12vw; }
    .headline { font-size: 1.8rem; }
    .price { font-size: 3.5rem; }
    .section-wrapper { padding: 80px 15px; }
    .manifesto-text { font-size: 2rem; }
}