/* =================================================================
   ALVEXA.WEBSITE - CSS EXPERIMENTAL & ASIMÉTRICO (v3.0)
   Paleta: #0fc3e8, #0194be, #e2d397, #f07e13, #481800
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;700&display=swap');

:root {
    --c-cyan: #0fc3e8;
    --c-deep-blue: #0194be;
    --c-gold: #e2d397;
    --c-orange: #f07e13;
    --c-dark-brown: #481800;
    --bg-main: #060911;
    --bg-surface: #0b111e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* --- PANTALLA DE CARGA CREATIVA --- */
#loader-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--c-cyan), var(--c-gold), var(--c-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: pulseLoader 1s ease-in-out infinite alternate;
}

.loader-bar-container {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--c-cyan), var(--c-orange));
    transform-origin: left;
    animation: loadProgress 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes loadProgress {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

@keyframes pulseLoader {
    0% { opacity: 0.6; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- AVISO GOOGLE ADS TOP --- */
.top-disclaimer {
    background: linear-gradient(90deg, #180802, #291204);
    border-bottom: 1px solid rgba(240, 126, 19, 0.3);
    color: var(--c-gold);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.4rem 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 100;
}

/* --- NAVEGACIÓN MINIMALISTA E INTERACTIVA --- */
header {
    position: fixed;
    top: 1.8rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.nav-floating-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}

.brand-sigil {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    background: rgba(6, 9, 17, 0.8);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(15, 195, 232, 0.2);
    transition: all 0.3s ease;
}

.brand-sigil:hover {
    border-color: var(--c-cyan);
    box-shadow: 0 0 20px rgba(15, 195, 232, 0.2);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    background: rgba(6, 9, 17, 0.8);
    backdrop-filter: blur(12px);
    padding: 0.4rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--text-main);
    background: rgba(15, 195, 232, 0.15);
}

/* --- EFECTO TRANSICIÓN DE PÁGINA --- */
.page-transition-curtain {
    position: fixed;
    inset: 0;
    background: var(--c-dark-brown);
    z-index: 9998;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-transition-curtain.active {
    transform: translateY(0);
}

/* --- FONDO ABSTRACTO CANVAS --- */
#bg-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

/* =================================================================
   8 SECCIONES NUEVAS CON ARQUITECTURA VISUAL ÚNICA E INDEPENDIENTE
   ================================================================= */

/* SECCIÓN 1: HERO (Fullscreen con texto flotante e imagen protagonista asimétrica) */
.sec-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 2rem 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-title-massive {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-title-massive span {
    color: var(--c-cyan);
    position: relative;
    display: inline-block;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.hero-floating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(226, 211, 151, 0.08);
    border: 1px solid rgba(226, 211, 151, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    color: var(--c-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-visual-collage {
    position: relative;
    height: 550px;
}

.h-img-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 450px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    border: 2px solid rgba(15, 195, 232, 0.3);
    transition: transform 0.5s ease;
}

.h-img-secondary {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    height: 280px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(240, 126, 19, 0.4);
}

/* SECCIÓN 2: COLLAGE EDITORIAL ASIMÉTRICO (Sin cards, superposición pura) */
.sec-editorial-collage {
    padding: 8rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.ed-collage-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.ed-text-block h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.ed-text-block h2 span {
    color: var(--c-orange);
}

.ed-text-block p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.ed-images-composition {
    position: relative;
    height: 480px;
}

.ed-img-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    filter: grayscale(20%);
}

.ed-img-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid var(--bg-main);
    box-shadow: 0 15px 35px rgba(1, 148, 190, 0.2);
}

/* SECCIÓN 3: GALERÍA HORIZONTAL DE ANCHO TOTAL (Inmersiva) */
.sec-full-gallery {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent, rgba(1, 148, 190, 0.05), transparent);
    overflow: hidden;
}

.gallery-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    padding: 0 1.5rem;
}

.gallery-header-center h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.gallery-header-center p {
    color: var(--text-muted);
}

.horizontal-scroll-track {
    display: flex;
    gap: 2rem;
    padding: 0 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.horizontal-scroll-track::-webkit-scrollbar {
    display: none;
}

.gallery-item-card {
    min-width: 380px;
    height: 450px;
    scroll-snap-align: start;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item-card:hover img {
    transform: scale(1.08);
}

.gallery-overlay-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 9, 17, 0.9), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
}

.gallery-overlay-content h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--c-gold);
    margin-bottom: 0.5rem;
}

.gallery-overlay-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* SECCIÓN 4: NÚMEROS Y ESTADÍSTICAS GIGANTESCAS (Sin cards rectangulares) */
.sec-stats-massive {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-intro-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.stats-title-big {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}

.stats-title-big span {
    color: var(--c-cyan);
}

.stats-grid-fluid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.stat-item-raw {
    border-left: 2px solid var(--c-cyan);
    padding-left: 2rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--c-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* SECCIÓN 5: TIMELINE VISUAL ORGÁNICA */
.sec-organic-timeline {
    padding: 8rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-header-center {
    text-align: center;
    margin-bottom: 6rem;
}

.timeline-header-center h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.timeline-flow-container {
    position: relative;
}

.timeline-flow-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--c-cyan), var(--c-orange), var(--c-gold));
    transform: translateX(-50%);
}

.timeline-node {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
    position: relative;
}

.timeline-node:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content-box {
    width: 44%;
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.timeline-content-box h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--c-cyan);
    margin-bottom: 0.75rem;
}

.timeline-content-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.timeline-marker-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--c-orange);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid var(--bg-main);
    box-shadow: 0 0 15px var(--c-orange);
}

/* SECCIÓN 6: IMAGEN GIGANTE RECORTADA POR EL VIEWPORT (Efecto inmersivo) */
.sec-giant-viewport-img {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.giant-banner-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giant-banner-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(1.2);
    transform: scale(1.05);
    transition: transform 0.8s ease;
}

.giant-banner-wrapper:hover img {
    transform: scale(1);
}

.giant-banner-text {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 1rem;
}

.giant-banner-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.giant-banner-text p {
    color: var(--c-gold);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-fluid-action {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--c-cyan);
    color: var(--bg-main);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(15, 195, 232, 0.4);
}

.btn-fluid-action:hover {
    background: var(--c-gold);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(226, 211, 151, 0.5);
}

/* SECCIÓN 7: CONTENIDO DINÁMICO INTERACTIVO (Cambio de imagen al hover) */
.sec-interactive-hover-showcase {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.interactive-links-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.interactive-row-item {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-row-item h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
}

.interactive-row-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: none;
}

.interactive-row-item.active h4 {
    color: var(--c-cyan);
    transform: translateX(10px);
}

.interactive-row-item.active p {
    display: block;
}

.interactive-image-preview {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(15, 195, 232, 0.3);
}

.interactive-image-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.interactive-image-preview img.active {
    opacity: 1;
    transform: scale(1.02);
}

/* SECCIÓN 8: COMPOSICIÓN FINAL DE CIERRE (Elementos flotantes, tipografía experimental) */
.sec-final-composition {
    padding: 8rem 2rem 10rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.final-massive-headline {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-main) 40%, var(--c-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.final-floating-pills {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.pill-tag {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- FOOTER MINIMALISTA --- */
footer {
    background-color: var(--bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links-group a:hover {
    color: var(--c-cyan);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 100%;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

/* --- BANNER DE COOKIES --- */
#cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(11, 17, 30, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 195, 232, 0.3);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9990;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#cookie-banner p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

#cookie-banner a {
    color: var(--c-cyan);
    text-decoration: underline;
}

.cookie-btn-group {
    display: flex;
    gap: 1rem;
}

.cookie-btn-accept {
    background: var(--c-cyan);
    color: var(--bg-main);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-btn-accept:hover {
    background: var(--c-gold);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 968px) {
    .hero-grid-layout,
    .ed-collage-grid,
    .stats-intro-layout,
    .stats-grid-fluid,
    .showcase-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .timeline-flow-container::before {
        left: 20px;
    }
    
    .timeline-node,
    .timeline-node:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }
    
    .timeline-content-box {
        width: 100%;
    }
    
    .timeline-marker-dot {
        left: 20px;
        top: 25px;
    }
    
    nav ul {
        display: none;
    }
}