/* ================== VARIABLES Y ESTILOS GENERALES ================== */
:root {
    --primary-color: #A3E635;
    --dark-color: #1C1917;
    --dark-color-light: #2A2624;
    --text-color: #E7E5E4;
    --text-color-dark: #A8A29E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html.has-scroll-smooth {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section-title { font-size: 2.8rem; text-align: center; margin-bottom: 3rem; color: var(--primary-color); font-weight: 700; }
img { max-width: 100%; height: auto; }

/* ================== BOTONES (CON PROFUNDIDAD) ================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease-out;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: 0px 4px 20px rgba(163, 230, 53, 0.25);
}
.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0px 8px 30px rgba(163, 230, 53, 0.35);
    background-color: #bfff40;
}
.btn-whatsapp-small {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0px 2px 10px rgba(163, 230, 53, 0.2);
}
.btn-whatsapp-small:hover {
    transform: scale(1.05);
    background-color: #bfff40;
    box-shadow: 0px 4px 15px rgba(163, 230, 53, 0.3);
}

/* ================== HEADER FIJO (INTELIGENTE) ================== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(28, 25, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-color-light);
}

.nav { display: flex; justify-content: space-between; align-items: center; height: 5rem; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.nav-logo-icon {
    height: 45px;
    width: 45px;
}
.nav-logo-text {
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    overflow: hidden; 
}
.logo-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative; 
}
.logo-line {
    height: 2px;
    background-color: var(--primary-color);
    width: 100%;
    transform: scaleX(0); 
    transform-origin: left;
}
.logo-motto {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-color-dark);
    letter-spacing: 0.5px;
}
.logo-title, .logo-motto {
    opacity: 0;
}

.logo-title::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 30px;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-60px) skewX(-20deg);
    transition: 0s;
}
.logo-title.shine::after {
    transform: translateX(250px) skewX(-20deg);
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.nav-menu-desktop { list-style: none; display: flex; gap: 2.5rem; }
.nav-link { color: var(--text-color); text-decoration: none; font-weight: 600; position: relative; padding-bottom: 0.5rem; transition: color 0.3s ease; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-link:hover { color: var(--primary-color); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--primary-color); }
.nav-link.active::after { width: 100%; }

.mobile-menu-toggle {
    display: none; 
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}
.mobile-nav {
    display: none; 
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.mobile-nav.nav-open {
    transform: translateX(0);
}
.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 3rem;
    cursor: pointer;
}
.mobile-nav ul {
    list-style: none;
    text-align: center;
}
.mobile-nav-link {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem;
    transition: color 0.3s ease;
}
.mobile-nav-link:hover {
    color: var(--primary-color);
}
.btn-mobile-whatsapp {
    margin-top: 2rem;
    font-size: 1.2rem;
}


/* ================== HERO (MÁS IMPACTO) ================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}
.hero-content { max-width: 700px; }
.hero-content h1 {
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.7); 
}
.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}
.hero-title, .hero-subtitle, .hero-btn {
    opacity: 0;
    transform: translateY(30px);
}
.hero-socials {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}
.hero-socials a {
    color: var(--text-color);
    font-size: 2.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.hero-socials a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* ================== SERVICIOS (CON PROFUNDIDAD) ================== */
.services { 
    padding: 6rem 0 6rem 0; 
}
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; }
.service-card {
    background: linear-gradient(145deg, var(--dark-color-light), #221f1d);
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.3), 0px 10px 30px rgba(0, 0, 0, 0.4);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #3a3633;
    transition: all 0.3s ease-out;
    opacity: 0;
    transform: translateY(50px);
}
.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 15px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(163, 230, 53, 0.1);
}
.service-icon { height: 80px; width: 80px; margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.7rem; margin-bottom: 1rem; color: var(--text-color); }
.service-card p { color: var(--text-color-dark); font-size: 0.95rem; }

/* ================== FILOSOFÍA (NUEVA ESTRUCTURA) ================== */
.about {
    padding: 6rem 0;
    background-color: var(--dark-color-light);
    overflow: hidden;
}
.about-container { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: 4rem; 
}
.about-content { 
    flex: none;
}
.about-content .filosofia-corto p { 
    font-size: 1.1rem; 
    color: var(--text-color);
    margin-bottom: 1.5rem; 
}

/* Estilos para el acordeón de Filosofía */
.filosofia-completa {
    margin-top: 2rem;
    border: 1px solid #3a3633;
    border-radius: 15px;
    overflow: hidden;
}
.filosofia-toggle {
    display: block;
    padding: 1rem 1.5rem;
    background: var(--dark-color);
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}
.filosofia-toggle:hover {
    background: #000;
}
.filosofia-toggle .plus-icon {
    float: right;
    transition: transform 0.3s ease;
}
.filosofia-completa[open] .plus-icon {
    transform: rotate(45deg);
}
.filosofia-completa-content {
    padding: 1.5rem 2rem;
    background: var(--dark-color);
}
.filosofia-completa-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.filosofia-completa-content p {
    color: var(--text-color-dark);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Estilos para la columna de Video */
.about-video {
    flex: none;
}
.video-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 700;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-caption {
    font-size: 0.9rem;
    color: var(--text-color-dark);
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
}

/* ================== FOOTER ================== */
.footer {
    background: var(--dark-color-light);
    padding: 4rem 0 2rem 0;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0px -10px 30px rgba(0, 0, 0, 0.3);
}
.footer-container { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 2.5rem; 
    margin-bottom: 3rem; 
}
.footer-about, .footer-contact, .footer-social, .footer-qr { 
    flex: 1; 
    min-width: 220px;
}
.footer-about .nav-logo { cursor: default; }
.footer-contact p { display: flex; align-items: center; gap: 10px; margin-bottom: 0.5rem; color: var(--text-color-dark); }
.footer-contact p i { color: var(--primary-color); }
.footer-contact p a {
    color: var(--text-color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-contact p a:hover {
    color: var(--primary-color);
}
.footer-social a { color: var(--text-color); font-size: 1.8rem; margin-right: 1.5rem; transition: all 0.3s ease; }
.footer-social a:hover { color: var(--primary-color); transform: scale(1.1); }

.footer-qr {
    text-align: center;
}
.footer-qr h3 {
    margin-bottom: 1rem;
    text-align: left;
}
.footer-qr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.qr-code {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    text-align: left;
}
.qr-code img {
    width: 60px;
    height: 60px;
    background: white;
    padding: 4px;
    border-radius: 8px;
}
.qr-code p {
    color: var(--text-color-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-copy { text-align: center; color: var(--text-color-dark); border-top: 1px solid #444; padding-top: 2rem; }

/* ================== BOTÓN VOLVER ARRIBA (CORREGIDO) ================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem; 
    background-color: var(--primary-color);
    color: var(--dark-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0px 4px 15px rgba(163, 230, 53, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 20px rgba(163, 230, 53, 0.6);
}

/* ================== BOTÓN FLOTANTE GPT (MEJORADO) ================== */
@keyframes gpt-bounce {
    0%, 100% {
        transform: scale(1) translateY(0);
        box-shadow: 0px 4px 20px rgba(163, 230, 53, 0.3);
    }
    50% {
        transform: scale(1.05) translateY(-5px);
        box-shadow: 0px 10px 30px rgba(163, 230, 53, 0.5);
    }
}

.floating-gpt-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease-out;
    z-index: 1001;
    animation: gpt-bounce 2.5s infinite ease-in-out;
}
.floating-gpt-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}
.floating-gpt-btn:hover {
    transform: scale(1.1) translateY(-5px) !important;
    box-shadow: 0px 8px 30px rgba(163, 230, 53, 0.6) !important;
    animation-play-state: paused;
}
.floating-gpt-btn span {
    display: block;
}


/* ================== PÁGINA DE TEMAS (temas.html) ================== */
.temas-page {
    padding-top: 8rem;
}
.tema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding-bottom: 6rem;
}
.tema-card {
    background-color: var(--dark-color-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid #3a3633;
    transition: all 0.3s ease-out;
}
.tema-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}
.tema-card img {
    width: 100%;
    height: 250px; 
    object-fit: cover; 
}
.tema-card-content {
    padding: 2rem;
}
.tema-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.tema-card p {
    color: var(--text-color-dark);
    margin-bottom: 1.5rem;
}

/* PISTA DE SCROLL (temas.html) */
@keyframes bobbing {
    0% { transform: translateY(0); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0); }
}
.scroll-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 2.5rem;
    text-shadow: 0 0 5px var(--primary-color), 
                 0 0 15px var(--primary-color), 
                 0 0 25px var(--primary-color);
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 998;
    animation: bobbing 1.5s infinite ease-in-out;
}
.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}


/* ================== PÁGINA GPT (gpt.html - LA BARRERA) ================== */
.gpt-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 5rem;
}
.gpt-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
    gap: 3rem;
}
.gpt-container {
    background-color: var(--dark-color-light);
    border: 1px solid #3a3633;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4);
}
.gpt-container h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.gpt-container p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
}
.gpt-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.gpt-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease-out;
    cursor: pointer;
    text-align: center;
    border: none;
    order: 10;
}
.gpt-btn i {
    margin-right: 0.8rem;
}

.gpt-btn-install {
    background-color: #007bff;
    color: white;
    box-shadow: 0px 4px 20px rgba(0, 123, 255, 0.25);
    display: none;
    order: 1;
}
.gpt-btn-install:hover {
    background-color: #0056b3;
    transform: scale(1.03) translateY(-2px);
}
.gpt-btn-install.show {
    display: inline-block;
}

.gpt-btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: 0px 4px 20px rgba(163, 230, 53, 0.25);
    order: 2;
}
.gpt-btn-primary:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0px 8px 30px rgba(163, 230, 53, 0.35);
}

.gpt-btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color-dark);
    order: 3;
}
.gpt-btn-secondary:hover {
    background-color: var(--dark-color);
    border-color: var(--text-color);
    color: var(--primary-color);
    transform: scale(1.03);
}

/* ================== RESPONSIVE DESIGN (MÓVIL) ================== */
@media (max-width: 992px) {
    .footer-about, .footer-contact, .footer-social, .footer-qr { 
        min-width: calc(50% - 2rem);
    }
    .footer-qr {
        align-items: flex-start;
    }
}


@media (max-width: 768px) {
    .nav-menu-desktop { display: none; } 
    .btn-header-whatsapp { display: none; } 
    
    .mobile-menu-toggle { display: flex; } 
    .mobile-nav { display: flex; } 
    
    .logo-title { font-size: 0.9rem; }
    .logo-motto { font-size: 0.5rem; }
    .nav-logo-icon { height: 40px; width: 40px; }
    
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-socials { margin-top: 2rem; gap: 2rem; font-size: 2rem; }

    .services { padding: 4rem 0 4rem 0; }
    
    .about-container { grid-template-columns: 1fr; }
    .video-title { font-size: 2.2rem; text-align: left; }
    
    .footer-container { flex-direction: column; text-align: center; }
    .footer-about, .footer-contact, .footer-social, .footer-qr {
        min-width: 100%;
        align-items: center;
        text-align: center;
    }
    .footer-qr h3 { text-align: center; }
    .footer-social a { margin: 0 0.75rem; }
    .footer-contact p { justify-content: center; }

    .back-to-top { bottom: 1.5rem; left: 1.5rem; width: 45px; height: 45px; font-size: 1.3rem; }
    
    .floating-gpt-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: auto;
        height: auto;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        animation: gpt-bounce 2.5s infinite ease-in-out;
    }
    .floating-gpt-btn i {
        margin-right: 0.4rem;
        font-size: 1rem;
    }
    .floating-gpt-btn span {
        display: block;
    }

    .temas-page { padding-top: 6rem; }

    .gpt-content { padding: 2rem 1rem; }
    .gpt-container h1 { font-size: 2rem; }
    .gpt-container p { font-size: 1rem; }
    .gpt-btn { font-size: 1.1rem; padding: 0.9rem 1.5rem; }
    
    .scroll-hint { bottom: 1.5rem; }
}

/* ================== LÓGICA BOTÓN GPT BLOQUEADO ================== */
.gpt-btn-locked {
    pointer-events: none;
    opacity: 0.4;
    cursor: not-allowed;
}

/* Estilos para el cartelito "Toast" */
.toast-message {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2000;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.4);
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.toast-message i {
    margin-right: 0.5rem;
}
.toast-message.show {
    bottom: 2rem;
}

@media (max-width: 768px) {
    .toast-message {
        width: calc(100% - 2rem);
        margin: 0 1rem;
        text-align: center;
        font-size: 0.85rem;
    }
}