/* --- Variables de diseño --- */
:root {
    --color-rojo: #FF0000;
    --color-texto: #ecf0f1;
    --color-fondo-oscuro: #0a0a0a;
    --color-neon-azul: #00FFFF;
    --color-texto-oscuro: #1a1a1a;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-texto);
    background-color: var(--color-fondo-oscuro);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem 2rem;
    overflow-x: hidden;
    flex-direction: column;
}

/* --- Transición de página (Nuevo efecto de desvanecimiento con escala) --- */
.page-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}
.page-container.is-active {
    opacity: 1;
    transform: scale(1);
}
.page-container.is-leaving {
    opacity: 0;
    transform: scale(0.9);
}


/* --- Fondo con imagen --- */
.background-animation {
    position: fixed;
    inset: 0;
    background-image: url('fondoweb.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    animation: none;
}

/* --- Encabezado de la página --- */
.main-header {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
}

/* --- Contenedor principal para las tarjetas --- */
.main-container {
    display: flex;
    gap: 40px;
    width: 90%;
    max-width: 1000px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Estilos de la tarjeta con efecto Glassmorphism --- */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease-in-out;
}
.glass-card:hover {
    transform: translateY(-10px);
}
.profile-card {
    min-width: 300px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.info-card {
    min-width: 450px;
    flex-grow: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- Avatar con efecto de brillo animado --- */
.avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
}
.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}
.glow-border {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    z-index: 1;
    background: conic-gradient(from 0deg, rgba(0, 255, 255, 0.7) 0%, transparent 40%, transparent 60%, rgba(0, 255, 255, 0.7) 100%);
    animation: rotateGlow 5s linear infinite;
    filter: blur(5px);
    box-shadow: 
        0 0 15px 5px rgba(0, 0, 0, 0.5) inset,
        0 0 10px 5px var(--color-neon-azul),
        0 0 20px 10px var(--color-neon-azul);
}
@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Títulos y texto --- */
.nickname {
    font-size: 2.5rem;
    color: var(--color-texto-oscuro);
    text-shadow: 
        0 0 5px rgba(0, 0, 0, 0.5),
        0 0 10px var(--color-neon-azul),
        0 0 20px var(--color-neon-azul);
    margin: 10px 0;
}
/* Estilo de la lista de biografía */
.bio-list {
    list-style: none;
    padding: 0;
    line-height: 1.6;
    color: var(--color-texto);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.bio-list li i {
    margin-right: 8px;
}
.section-title {
    font-size: 1.2rem;
    color: var(--color-texto-oscuro);
    border-bottom: 2px solid var(--color-texto-oscuro);
    padding-bottom: 5px;
    display: inline-block;
    text-shadow: 
        0 0 3px rgba(0, 0, 0, 0.5),
        0 0 8px var(--color-neon-azul),
        0 0 15px var(--color-neon-azul);
}

/* --- Sección Redes Sociales --- */
.socials {
    text-align: left;
}
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}
.social-links a {
    color: var(--color-texto);
    font-size: 2rem;
    transition: transform 0.3s, color 0.3s, text-shadow 0.3s;
}
.social-links a:hover {
    color: var(--color-neon-azul);
    transform: scale(1.1);
    text-shadow: 0 0 20px var(--color-neon-azul), 0 0 40px var(--color-neon-azul);
}

/* --- Sección Setup --- */
.setup {
    text-align: left;
}
.setup-list {
    list-style: none;
    padding: 0;
    line-height: 1.6;
    color: var(--color-texto);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* --- Reproductor de Música --- */
.music-player {
    width: 100%;
    margin-top: 20px;
}
.music-player h3 {
    font-size: 1rem;
    color: var(--color-texto-oscuro);
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 
        0 0 3px rgba(0, 0, 0, 0.5),
        0 0 8px var(--color-neon-azul),
        0 0 15px var(--color-neon-azul);
}
.music-player audio {
    width: 100%;
    filter: invert(1) hue-rotate(180deg);
}

/* --- Estilo de los botones de navegación --- */
.home-button, .faq-button, .stats-button {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 20px;
    color: var(--color-texto);
    font-size: 1rem;
    display: inline-block;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.home-button i, .faq-button i, .stats-button i {
    margin-right: 8px;
}
.home-button:hover, .faq-button:hover, .stats-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-neon-azul);
    transform: scale(1.05);
    text-shadow: 0 0 10px var(--color-neon-azul);
}

/* --- Estilo del contenedor de FAQs para el nuevo diseño --- */
.faqs-container {
    flex-direction: column;
}

/* --- Estilo de las tarjetas de FAQs --- */
.faq-card {
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    padding: 2.5rem 2.5rem 1rem;
    position: relative;
    z-index: 1;
}
/* Estilo del título (h3) de las FAQs, ahora como los títulos del Home */
.faq-card h3 {
    font-size: 1.2rem;
    color: var(--color-texto-oscuro);
    border-bottom: 2px solid var(--color-texto-oscuro);
    padding-bottom: 5px;
    display: inline-block;
    text-shadow: 
        0 0 3px rgba(0, 0, 0, 0.5),
        0 0 8px var(--color-neon-azul),
        0 0 15px var(--color-neon-azul);
    margin: 0;
}
/* Estilo del texto (p) y las listas (ul) para que se oculten */
.faq-item p, .faq-item ul {
    color: var(--color-texto);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-top: 10px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}
/* Efecto de expansión al pasar el ratón (ahora más dramático) */
.faq-card:hover {
    transform: translateY(-15px) scale(1.05);
    padding-bottom: 2.5rem;
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.5), 0 0 20px 5px var(--color-neon-azul);
    z-index: 10;
}
.faq-card:hover .faq-item p, .faq-card:hover .faq-item ul {
    max-height: 500px;
    opacity: 1;
}

/* --- Estilos para la tarjeta seleccionada al hacer clic --- */
.faq-card.is-selected {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1) !important;
    width: 600px;
    max-width: 90%;
    padding: 3rem;
    box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.7);
    z-index: 100;
    overflow-y: auto;
    cursor: default;
    transition: all 0.5s ease-in-out;
}
.faq-card.is-selected h3, .faq-card.is-selected p, .faq-card.is-selected ul {
    opacity: 1;
    max-height: none;
}
.faqs-container.is-zoomed-in .faq-card:not(.is-selected) {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8) !important;
    transition: opacity 0.5s, transform 0.5s;
}


/* --- Responsive para móvil --- */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    .main-header {
        padding: 10px;
        flex-direction: column;
        gap: 10px;
    }
    .main-container {
        flex-direction: column;
        gap: 20px;
    }
    .profile-card, .info-card {
        padding: 2rem;
    }
    .faq-card.is-selected {
        width: 90%;
        padding: 2rem;
    }
}