/*
@version      3.2.1
@date         2025-08-08
@author       Baxahaun Venture Studio https://baxahaun.com
// PEV_REF:   FEATURE-001-CookieModal
*/

/* --- Base, Tipografía y Efectos Globales --- */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #020412; 
    color: #E2E8F0; 
    overflow-x: hidden; 
}
h1, h2, h3, h4 { 
    font-family: 'Lora', serif; 
}
#particle-canvas { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -2; 
}
.aurora-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(2, 132, 199, 0.15), transparent 80%); 
    z-index: -1; 
}

/* --- Componentes --- */

/* Botones */
.button-secondary {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid #334155;
    background-color: rgba(30, 41, 59, 0.3);
    color: #94A3B8;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.button-secondary:hover {
    background-color: #1e293b;
    border-color: #475569;
    color: #E2E8F0;
    transform: translateY(-2px);
}

/* Tarjetas */
.glass-card { 
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(51, 65, 85, 0.5); 
    transition: all 0.3s ease; 
}
.glass-card:hover { 
    border-color: rgba(56, 189, 248, 0.5); 
    transform: translateY(-5px); 
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2); 
}
.icon-formacion { 
    font-size: 48px; 
    color: #07B6D4; 
    margin-bottom: 1rem; 
    display: inline-block; 
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48; 
    transition: all 0.3s ease; 
}
.glass-card:hover .icon-formacion { 
    color: #E2E8F0; 
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48; 
    transform: scale(1.1); 
}

/* Sliders */
.social-proof-slider { position: relative; overflow: hidden; }
.social-proof-slider .swiper-slide { height: auto; padding-top: 5px; padding-bottom: 60px; }
.social-proof-slider .logo-container { display: flex; justify-content: flex-end; align-items: center; min-height: 80px; }
.social-proof-slider .logo-svg { filter: brightness(0) invert(1); }
.social-proof-slider .social-proof-pagination { bottom: 20px !important; left: 50%; transform: translateX(-50%); width: auto !important; }
.social-proof-slider .swiper-pagination-bullet { background: #475569; }
.social-proof-slider .swiper-pagination-bullet-active { background: #07B6D4; }
.social-proof-slider .social-proof-button-prev { left: calc(50% - 80px); }
.social-proof-slider .social-proof-button-next { right: calc(50% - 80px); }
.social-proof-slider .social-proof-button-next,
.social-proof-slider .social-proof-button-prev { color: #94A3B8; top: auto; bottom: 12px; width: 24px; height: 24px; transition: color 0.3s ease; }
.social-proof-slider .social-proof-button-next:hover,
.social-proof-slider .social-proof-button-prev:hover { color: #E2E8F0; }
.social-proof-slider .social-proof-button-next::after,
.social-proof-slider .social-proof-button-prev::after { font-size: 1rem !important; }

.formacion-slider { position: relative; overflow: hidden; padding: 0 40px; }
.formacion-slider .swiper-slide { height: auto; padding-top: 5px; padding-bottom: 60px; }
.formacion-slider .glass-card { height: 100%; }
.formacion-slider .formacion-pagination { bottom: 20px !important; left: 50%; transform: translateX(-50%); width: auto !important; }
.formacion-slider .swiper-pagination-bullet { background: #475569; }
.formacion-slider .swiper-pagination-bullet-active { background: #07B6D4; }
.formacion-slider .formacion-button-prev { left: calc(50% - 80px); }
.formacion-slider .formacion-button-next { right: calc(50% - 80px); }
.formacion-slider .formacion-button-next,
.formacion-slider .formacion-button-prev { color: #94A3B8; top: auto; bottom: 12px; width: 24px; height: 24px; transition: color 0.3s ease; }
.formacion-slider .formacion-button-next:hover,
.formacion-slider .formacion-button-prev:hover { color: #E2E8F0; }
.formacion-slider .formacion-button-next::after,
.formacion-slider .formacion-button-prev::after { font-size: 1rem !important; }

@media (min-width: 1024px) {
    .formacion-slider { padding: 0; }
    .formacion-slider.is-desktop .swiper-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 2rem; }
    .formacion-slider.is-desktop .swiper-slide { width: auto !important; padding-bottom: 0; }
    .formacion-slider.is-desktop .swiper-pagination,
    .formacion-slider.is-desktop .formacion-button-prev,
    .formacion-slider.is-desktop .formacion-button-next { display: none; }
}

/* Timeline */
.timeline-container { 
    position: relative; 
    width: 100%; 
    max-width: 48rem; 
    margin: 12rem auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.timeline-track { 
    position: absolute;
    top: 50%; 
    left: 0; 
    height: 2px; 
    width: 100%; 
    background-color: #334155; 
    transform: scaleX(0); 
    transform-origin: left; 
    transition: transform 1s ease-out; 
    z-index: 1;
}
.timeline-container.is-visible .timeline-track { 
    transform: scaleX(1); 
}

.timeline-track::after { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
    animation: pulse-animation 4s linear infinite;
    display: block;
}
@keyframes pulse-animation { 
    0% { transform: translateX(-100%); } 
    100% { transform: translateX(100%); } 
}

.timeline-wave-svg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 40px;
    transform: translateY(-50%);
    overflow: visible;
    z-index: 2;
    pointer-events: none;
}
.timeline-wave-path {
    fill: none;
    stroke: rgba(56, 189, 248, 0.7);
    stroke-width: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.timeline-container:hover .timeline-wave-path {
    opacity: 1;
}

.timeline-node { 
    position: relative; 
    z-index: 3;
    cursor: pointer; 
}
.timeline-node-dot { 
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    background-color: #020412; 
    border: 3px solid #475569; 
    transition: all 0.3s ease; 
}
@keyframes pulse-dot {
    0% {
        transform: scale(1.2);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    }
    70% {
        transform: scale(1.4);
        box-shadow: 0 0 10px 20px rgba(56, 189, 248, 0);
    }
    100% {
        transform: scale(1.2);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}
.timeline-node.is-active .timeline-node-dot { 
    background-color: #07B6D4; 
    border-color: #07B6D4; 
    transform: scale(1.2); 
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5); 
    animation: pulse-dot 2s infinite; 
}
.timeline-node:hover .timeline-node-dot { 
    border-color: #07B6D4; 
    background-color: #07B6D4; 
    transform: scale(1.2); 
    animation: none; 
}
.timeline-card {
    position: absolute;
    left: 0;
    padding: 1rem;
    width: 280px; 
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
    z-index: 10;
}
.timeline-card.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.timeline-card::before {
    content: '';
    position: absolute;
    left: var(--arrow-position, 50%);
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
}
.timeline-card.show-on-top {
    bottom: calc(100% + 20px);
    transform: translateY(10px);
}
.timeline-card.show-on-top::before {
    top: 100%;
    border-color: rgba(51, 65, 85, 0.5) transparent transparent transparent;
}
.timeline-card.show-on-bottom {
    top: calc(100% + 20px);
    transform: translateY(-10px);
}
.timeline-card.show-on-bottom::before {
    bottom: 100%;
    border-color: transparent transparent rgba(51, 65, 85, 0.5) transparent;
}

/* --- Layout --- */
.image-stylized { 
    filter: grayscale(1) contrast(1.1); 
    mix-blend-mode: screen; 
    opacity: 0.6; 
}

/* --- Cookie Modal --- */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(2, 4, 18, 0.5);
    backdrop-filter: blur(16px); /* Aumentado de 8px a 16px */
    -webkit-backdrop-filter: blur(16px); /* Aumentado de 8px a 16px */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cookie-overlay.show {
    opacity: 1;
    visibility: visible;
}
.cookie-banner {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.cookie-overlay.show .cookie-banner {
    transform: scale(1);
}
.cookie-banner .glass-card {
    border: 1px solid rgba(51, 65, 85, 0.8);
    background: rgba(15, 23, 42, 0.9);
}
