/* =========================================
   1. ANIMACIONES DE ENTRADA
   ========================================= */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards ease-out;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s;
}

.nav-content {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-text {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.3s;
    display: block;
}

.btn-text:hover { color: var(--text-main); }

/* =========================================
   3. HERO & USERNAME CLAIMER
   ========================================= */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Input Claimer */
.username-claimer {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 100px;
    width: 100%;
    max-width: 500px;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin: 0 auto;
}

.username-claimer:focus-within {
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px var(--gold-glow);
}

.username-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1; 
}

.prefix {
    padding-left: 20px;
    color: var(--text-muted);
    font-weight: 600;
}

#usernameInput {
    background: transparent;
    border: none;
    color: var(--text-main);
    flex: 1;
    padding: 15px 10px;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-body);
    width: 100%;
}

.input-feedback {
    height: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* =========================================
   4. SECCIÓN SPLIT (Texto + Carrusel)
   ========================================= */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    min-height: 80vh;
    margin-bottom: 100px;
}

.split-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.split-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 90%;
}

.split-visual {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
}

.carousel-window {
    width: 100%;
    max-width: 320px;
    height: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.carousel-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: scrollVertical 20s linear infinite;
}

.carousel-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

@keyframes scrollVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* =========================================
   5. DISEÑO RESPONSIVE (Móviles)
   ========================================= */
@media (max-width: 768px) {
    /* Navbar Móvil */
    .nav-content { height: 60px; padding: 0 15px; }
    .nav-actions { gap: 8px; }
    .btn-text { font-size: 0.85rem; padding: 5px; }
    .btn-primary { padding: 6px 14px; font-size: 0.85rem; }

    /* Hero Móvil */
    .hero { padding-top: 120px; padding-bottom: 50px; min-height: auto; }
    .hero h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1rem; padding: 0 20px; margin-bottom: 2rem; }

    /* Input Móvil */
    .username-claimer { flex-direction: column; background: transparent; border: none; padding: 0; gap: 15px; }
    .username-claimer:focus-within { box-shadow: none; }
    .username-input-wrapper {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 50px;
        width: 100%;
        padding: 2px 5px;
    }
    .prefix { display: none; }
    #usernameInput { text-align: center; padding: 15px; }
    #claimBtn { width: 100%; padding: 15px; font-size: 1.1rem; }

    /* Carrusel Móvil */
    .split-section { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .split-text { order: 1; }
    .split-text h2 { font-size: 2.2rem; }
    .split-visual {
        order: 2;
        height: auto;
        width: 100vw;
        margin-left: -20px;
        margin-right: -20px;
    }
    .carousel-window {
        max-width: 100%; height: auto;
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }
    .carousel-track {
        flex-direction: row;
        width: max-content;
        animation: scrollHorizontal 20s linear infinite;
    }
    .carousel-item { width: 240px; flex-shrink: 0; }
}

@keyframes scrollHorizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   6. ESTADOS DE VALIDACIÓN & SUGERENCIAS
   ========================================= */
.username-claimer.status-success {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.username-claimer.status-error {
    border-color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
}

.text-success { color: #00ff88; }
.text-error { color: #ff4444; }

/* Chips de sugerencias */
.suggestions-container {
    display: flex; gap: 10px; margin-top: 10px; justify-content: center; flex-wrap: wrap;
}

.suggestion-chip {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-chip:hover {
    background: var(--primary-gold);
    color: black;
    transform: translateY(-2px);
}

/* =========================================
   7. FAQ SECTION (Preguntas Frecuentes)
   ========================================= */
.faq-section {
    margin-bottom: 120px;
    position: relative;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* El Contenedor de cada pregunta */
.faq-item {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.faq-item:hover {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.05); /* Un brillo sutil al pasar el ratón */
}

/* El Título (Clickable) */
.faq-trigger {
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    list-style: none; /* Oculta el triángulo por defecto */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    user-select: none;
}

/* Ocultar triángulo default en navegadores webkit */
.faq-trigger::-webkit-details-marker {
    display: none;
}

/* Icono + / - animado */
.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-gold);
    transition: transform 0.3s ease;
    line-height: 1;
}

/* Cuando está abierto (<details open>) */
details[open] .faq-icon {
    transform: rotate(45deg); /* Se convierte en una X */
    color: var(--text-muted); /* Cambia de dorado a gris apagado al abrir */
}

details[open] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* El Contenido de la respuesta */
.faq-content {
    padding: 0 25px 25px 25px;
    color: var(--text-muted);
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

/* Animación al abrir */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-trigger {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .faq-content {
        padding: 0 20px 20px 20px;
    }
}

/* =========================================
   8. MEGA FOOTER (Biogoldy)
   ========================================= */

.site-footer {
    background: var(--bg-color); 
    border-top: 1px solid var(--glass-border); 
    padding: 80px 0 40px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

/* Grilla de 4 Columnas */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

/* Efecto hover en los enlaces con el color Dorado de Biogoldy */
.footer-col ul li a:hover {
    color: var(--primary-gold); 
    padding-left: 5px; 
}

.footer-divider {
    height: 1px;
    background: var(--glass-border);
    width: 100%;
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================
   ICONOS SOCIALES ORIGINALES
   ========================================= */
.social-icons {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03); /* Fondo cristal base */
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Colores Base Originales (Modo Reposo) */
.facebook { color: #1877F2; border-color: rgba(24, 119, 242, 0.2); }
.instagram { color: #E1306C; border-color: rgba(225, 48, 108, 0.2); }
.tiktok { color: var(--text-main); border-color: rgba(255, 255, 255, 0.2); }
.x-twitter { color: var(--text-main); border-color: rgba(255, 255, 255, 0.2); }
.youtube { color: #FF0000; border-color: rgba(255, 0, 0, 0.2); }

/* Colores Originales (Modo Hover Activo) */
.social-link.facebook:hover {
    background: #1877F2; color: white;
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.5);
    transform: translateY(-3px);
}

.social-link.instagram:hover {
    background: #E1306C; color: white;
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.5);
    transform: translateY(-3px);
}

/* TikTok (Blanco y Negro según tema) */
.social-link.tiktok:hover {
    background: var(--text-main); color: var(--bg-color);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* X Twitter */
.social-link.x-twitter:hover {
    background: var(--text-main); color: var(--bg-color);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.social-link.youtube:hover {
    background: #FF0000; color: white;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    transform: translateY(-3px);
}

/* =========================================
   FOOTER RESPONSIVE (Móvil)
   ========================================= */
@media (max-width: 768px) {
    .site-footer {
        padding: 50px 0 30px 0;
        text-align: center; 
    }
    .footer-grid {
        grid-template-columns: 1fr; 
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column-reverse; 
        gap: 20px;
    }
    .footer-col h4 {
        font-size: 1.2rem;
        color: var(--primary-gold); 
    }
    .social-icons {
        justify-content: center;
    }
}