/* --- Variables Maestras --- */
:root {
    --primary: #00b4d8;      /* Cian Scienco */
    --secondary: #0077b6;    /* Azul Profundo */
    --dark-bg: #050914;      /* Fondo Principal */
    --text-light: #f8f9fa;
    --text-muted: #adb5bd;
    --glass-bg: rgba(5, 9, 20, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* --- Base y Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { background-color: var(--dark-bg); color: var(--text-light); line-height: 1.6; overflow-x: hidden; }

/* --- HEADER --- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    transition: all 0.5s ease; 
    padding: 0;
    background: transparent;
}

.site-header.scrolled {
    background: var(--glass-bg); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container { 
    width: 90%; max-width: 1200px; margin: 0 auto; 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 25px 0;
    transition: all 0.5s ease;
}

.site-header.scrolled .header-container {
    padding: 12px 0; 
}

/* --- Efecto Etéreo para los Logos --- */
.logo-img, .footer-logo { 
    height: 45px; width: auto; 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.footer-logo { height: 65px; }

.logo-link:hover .logo-desktop, 
.footer-brand:hover .footer-logo {
    transform: scale(1.03);
    filter: drop-shadow(0 5px 15px rgba(0, 180, 216, 0.6)) brightness(1.1);
}

.logo-link:hover .logo-mobile {
    transform: rotate(180deg) scale(1.15);
    filter: drop-shadow(0 0 15px rgba(0, 180, 216, 0.8));
}

/* --- NAVEGACIÓN PRINCIPAL --- */
.main-nav .nav-list { display: flex; gap: 30px; list-style: none; }
.nav-item { color: var(--text-light); text-decoration: none; font-size: 0.95rem; position: relative; padding: 5px 0; }
.nav-item::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--primary); transition: 0.4s; }
.nav-item:hover { color: var(--primary); }
.nav-item:hover::after { width: 100%; }

.btn-academia {
    background: rgba(0, 180, 216, 0.1); color: var(--primary); text-decoration: none;
    padding: 10px 24px; border-radius: 50px; border: 1px solid var(--primary); transition: 0.4s;
}
.btn-academia:hover { background: var(--primary); color: #fff; box-shadow: 0 0 20px rgba(0, 180, 216, 0.4); }

/* --- FOOTER DE LA VIDA (CON ÍCONOS REDUCIDOS Y ELEGANTES) --- */
.main-footer {
    background-color: #02040a; 
    color: var(--text-light);
    padding-top: 85px;
    margin-top: 0;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}
.footer-container { width: 90%; max-width: 1200px; margin: 0 auto; }

.footer-brand { text-align: center; margin-bottom: 45px; }

.social-row {
    display: flex; justify-content: center; gap: 25px; 
    flex-wrap: wrap; margin-bottom: 50px;
}
.social-icon {
    color: var(--text-muted); font-size: 1.55rem; /* Reducido de 2.2rem para mayor elegancia */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Efecto Base del Hover (Redes) --- */
.social-icon:hover {
    transform: translateY(-6px) scale(1.18);
    color: #ffffff;
    text-shadow: none;
}

/* --- Efectos Neón 3D Bicolor para cada marca --- */
.social-icon:hover .fa-whatsapp { filter: drop-shadow(2px 2px 5px #25D366) drop-shadow(-2px -2px 5px #075E54); }
.social-icon:hover .fa-telegram { filter: drop-shadow(2px 2px 5px #0088cc) drop-shadow(-2px -2px 5px #38e0ff); }
.social-icon:hover .fa-facebook-f { filter: drop-shadow(2px 2px 5px #1877F2) drop-shadow(-2px -2px 5px #00e6ff); }
.social-icon:hover .fa-youtube { filter: drop-shadow(2px 2px 5px #FF0000) drop-shadow(-2px -2px 5px #ff8c00); }
.social-icon:hover .fa-instagram { filter: drop-shadow(2px 2px 5px #E1306C) drop-shadow(-2px -2px 5px #F56040); }
.social-icon:hover .fa-tiktok { filter: drop-shadow(2px 2px 5px #fe0051) drop-shadow(-2px -2px 5px #00f2fe); }
.social-icon:hover .fa-patreon { filter: drop-shadow(2px 2px 5px #FF424D) drop-shadow(-2px -2px 5px #ffb3b7); }
.social-icon:hover .fa-twitch { filter: drop-shadow(2px 2px 5px #9146FF) drop-shadow(-2px -2px 5px #00e5ff); }
.social-icon:hover .fa-linkedin-in { filter: drop-shadow(2px 2px 5px #0A66C2) drop-shadow(-2px -2px 5px #00e5ff); }
.social-icon:hover .fa-envelope { filter: drop-shadow(2px 2px 5px #ea4335) drop-shadow(-2px -2px 5px #fbbc05); }
.social-icon:hover .fa-graduation-cap { filter: drop-shadow(2px 2px 5px #f39c12) drop-shadow(-2px -2px 5px var(--primary)); }

.footer-links-section { padding-bottom: 45px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-col h4 { color: var(--primary); margin-bottom: 22px; font-size: 1.05rem; font-family: 'Cinzel', serif; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 13px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; transition: all 0.3s ease; display: inline-block; position: relative; }
.footer-col a::before {
    content: '→'; position: absolute; left: -15px; opacity: 0;
    color: var(--primary); transition: all 0.3s ease; font-weight: bold;
}
.footer-col a:hover { color: #fff; transform: translateX(15px); }
.footer-col a:hover::before { opacity: 1; left: -20px; }

.footer-disclaimer {
    border-top: 1px solid rgba(255,255,255,0.05); padding: 18px 0;
    text-align: center; font-size: 0.78rem; color: #6c757d; max-width: 950px; margin: 0 auto;
}

.footer-bottom { background: #000; padding: 22px 15px; text-align: center; border-top: 1px solid var(--glass-border); }
.footer-bottom p { font-size: 0.85rem; color: #666; }
.footer-bottom a { color: #888; text-decoration: none; margin: 0 6px; transition: 0.3s; }
.footer-bottom a:hover { color: var(--primary); }

/* --- Control de Logos Desktop/Mobile --- */
.logo-desktop { display: block; }
.logo-mobile { display: none; height: 35px; width: auto; transition: transform 0.3s; }

/* --- Barra de Progreso de Lectura --- */
.scroll-progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    background: transparent; z-index: 1001;
}
.scroll-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-top-right-radius: 3px; border-bottom-right-radius: 3px;
}

.nav-item.active { color: var(--primary); font-weight: 600; }
.nav-item.active::after { width: 100%; }

/* --- Botón Volver Arriba --- */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: var(--primary); border: 1px solid var(--primary);
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; cursor: pointer; z-index: 999;
    opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.2);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: var(--primary); color: #fff; transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 180, 216, 0.5);
}

/* --- Barra Top de Alertas --- */
.top-bar {
    background: linear-gradient(90deg, #02040a, var(--secondary), #02040a);
    color: white; text-align: center; padding: 8px 15px; font-size: 0.85rem;
    position: relative; overflow: hidden; transition: all 0.4s ease;
}
.top-bar a { color: #fff; text-decoration: underline; font-weight: bold; }
.close-top-bar {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: white; cursor: pointer; font-size: 1rem;
    transition: color 0.3s;
}
.close-top-bar:hover { color: var(--primary); }
.site-header.scrolled .top-bar { height: 0; padding: 0; opacity: 0; pointer-events: none; }

/* --- Portada y Bento Base --- */
.hero-section {
    position: relative; min-height: 100vh; 
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 120px 20px 50px; overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: linear-gradient(to bottom, rgba(5,9,20,0.95) 0%, rgba(5,9,20,0.6) 100%), url('../assets/fondo-ciudad.webp') no-repeat center center/cover;
}
.hero-content { z-index: 1; max-width: 900px; width: 100%; }
.espiral-wrapper { perspective: 1000px; margin-bottom: 30px; }
.hero-espiral {
    height: 220px; width: auto;
    filter: drop-shadow(0 0 40px rgba(0, 180, 216, 0.4));
    will-change: transform; margin: 0 auto; display: block;
}
.hero-title { font-size: 4rem; line-height: 1.2; margin-bottom: 20px; color: #fff; }
.text-gradient { background: linear-gradient(90deg, var(--primary), #90e0ef); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-espiral { height: 140px; }
}

/* --- TRANSICIÓN DE PÁGINA (PRELOADER) --- */
.page-transition-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--dark-bg); z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    opacity: 1; visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s ease;
}
.page-transition-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { width: 60px; height: auto; animation: pulse-loader 1.5s infinite ease-in-out; }
@keyframes pulse-loader {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 20px var(--primary)); }
    100% { transform: scale(0.9); opacity: 0.5; }
}

/* --- BANNER DE PRIVACIDAD Y COOKIES (ESTÉTICA SCIENCO) --- */
.cookie-banner {
    position: fixed; bottom: 20px; left: 20px; max-width: 430px; z-index: 99990;
    background: rgba(5, 9, 20, 0.96); border: 1px solid rgba(0, 180, 216, 0.35);
    border-radius: 18px; padding: 22px 24px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8); display: none;
}
.cookie-banner.show { display: block; animation: slideUpCookie 0.4s ease; }
@keyframes slideUpCookie { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner h4 { color: #fff; font-family: 'Cinzel', serif; font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cookie-banner p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.55; margin-bottom: 15px; font-weight: 300; }
.cookie-banner a { color: #00e6ff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.btn-cookie-accept {
    background: var(--primary); color: #000; border: none; padding: 9px 18px;
    border-radius: 50px; font-family: 'Gruppo', sans-serif; font-weight: bold; letter-spacing: 1px;
    font-size: 0.85rem; cursor: pointer; flex: 1; transition: 0.3s;
}
.btn-cookie-accept:hover { background: #fff; box-shadow: 0 0 15px rgba(0, 180, 216, 0.5); }
.btn-cookie-close {
    background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--glass-border);
    padding: 9px 15px; border-radius: 50px; font-family: 'Gruppo', sans-serif; font-weight: bold;
    font-size: 0.85rem; cursor: pointer; transition: 0.3s;
}
.btn-cookie-close:hover { color: #fff; border-color: #fff; }

/* --- PÁGINAS LEGALES (PRIVACIDAD Y TÉRMINOS) --- */
.legal-page { padding: 160px 20px 90px; }
.legal-container { max-width: 900px; margin: 0 auto; }
.legal-container h1 { font-family: 'Cinzel', serif; font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin: 10px 0; }
.legal-meta { color: var(--text-muted); font-family: 'Gruppo', sans-serif; font-weight: bold; letter-spacing: 1.5px; font-size: 0.9rem; margin-bottom: 30px; }
.legal-card { background: rgba(5, 9, 20, 0.85); border: 1px solid var(--glass-border); border-radius: 20px; padding: 45px; backdrop-filter: blur(15px); }
.legal-card h2 { color: #00e6ff; font-family: 'Cinzel', serif; font-size: 1.4rem; margin: 28px 0 12px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; font-weight: 300; line-height: 1.7; }
.legal-card ul { padding-left: 20px; margin-bottom: 20px; }
.legal-card a { color: var(--primary); }

@media (max-width: 600px) {
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
    .legal-card { padding: 28px 20px; }
}

/* --- SISTEMA DE FOTOGRAFÍA DARK GLASSMORPHISM (SCIENCO) --- */
.scienco-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 30px;
    width: 100%;
}
.scienco-photo-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #050914;
    aspect-ratio: 16 / 10;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}
.scienco-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.88) contrast(1.04);
    transition: transform 0.6s ease, filter 0.4s ease;
}
.scienco-photo-frame:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 180, 216, 0.25);
}
.scienco-photo-frame:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.05);
}
.scienco-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 28px 18px 14px;
    background: linear-gradient(to top, rgba(5, 9, 20, 0.95) 15%, transparent 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
}
.scienco-photo-caption small {
    display: block;
    font-family: 'Gruppo', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: bold;
}

/* --- BLOQUE DE RESEÑAS DE GOOGLE (SCIENCO) --- */
.google-reviews-section {
    margin: 70px auto 50px;
    width: 100%;
}
.google-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 183, 3, 0.35);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #fff;
}
.google-rating-pill .stars { color: #ffb703; letter-spacing: 2px; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 25px;
}
.review-card {
    background: rgba(5, 9, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 26px 24px;
    text-align: left;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 183, 3, 0.45);
}
.review-stars { color: #ffb703; font-size: 0.85rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 18px;
    font-style: italic;
}
.review-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.review-author strong { color: #fff; font-weight: 600; }
.review-author i { color: #4285F4; font-size: 1rem; }
.btn-google-reviews {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 11px 26px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff !important;
    text-decoration: none;
    font-family: 'Gruppo', sans-serif;
    font-weight: bold;
    letter-spacing: 1.2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.btn-google-reviews:hover {
    background: #fff;
    color: #050914 !important;
    transform: translateY(-2px);
}

/* --- ACORDEÓN DE PREGUNTAS FRECUENTES (FAQ) --- */
.scienco-faq-section {
    margin: 70px auto 30px;
    max-width: 900px;
    width: 100%;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 25px;
}
.faq-item {
    background: rgba(5, 9, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item[open] {
    border-color: var(--primary);
}
.faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.96rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.35rem;
    color: var(--primary);
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-answer {
    padding: 0 22px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 14px;
}
.faq-answer a { color: var(--primary); text-decoration: underline; }

/* --- BOTÓN FLOTANTE DE WHATSAPP (SOLO CELULAR, ESQUINA INFERIOR IZQUIERDA) --- */
.wa-mobile-float {
    display: none;
}
@media (max-width: 768px) {
    .wa-mobile-float {
        position: fixed;
        bottom: 22px;
        left: 18px;
        z-index: 998;
        display: inline-flex;
        align-items: center;
        gap: 9px;
        background: linear-gradient(135deg, #25D366, #128C7E);
        color: #fff !important;
        text-decoration: none;
        padding: 12px 18px;
        border-radius: 50px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 0.84rem;
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.25);
        transition: transform 0.25s ease;
    }
    .wa-mobile-float i { font-size: 1.25rem; }
    .wa-mobile-float:active { transform: scale(0.95); }
}
