:root {
    --bg-dark: #1a0b2e;
    --bg-light: #ffecf5;
    --primary-glow: #ff00ff;
    --secondary-glow: #ff1493;
    --tertiary-glow: #ff69b4;
    --glass-bg: rgba(255, 240, 245, 0.8);
    --text-color: #8b008b;
    --border-color: rgba(255, 20, 147, 0.4);
    --accent-color: var(--primary-glow);
    --textlogo: white;
}

/* ===== RESET Y BASE ===== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body {
    width: 100%; 
    height: 100%;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

/* ===== BODY VARIANTES ===== */
body {
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

body.body-no-scroll {
    overflow: hidden;
}

body.login-body {
    display: block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffecf5, #ffffff, #ffe6f2);
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

/* 2. El contenedor <main class="container"> crece para llenar el espacio */
.container {
    flex: 1 0 auto; 
    width: 100%;
    position: relative;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 3. Estilo para el footer que importamos de partials */
.main-footer {
    flex-shrink: 0;
    width: 100%;
    background-color: var(--bg-dark);
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 10;
}

/* ===== ANIMACIONES ===== */
@keyframes spiralOut {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translate(0px) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(720deg) translate(100vw) rotate(-720deg) scale(0);
        opacity: 0;
    }
}

@keyframes fadeStar {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

@keyframes rotateImage {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 15px var(--primary-glow), 0 0 25px var(--secondary-glow); 
    }
    50% { 
        box-shadow: 0 0 25px var(--primary-glow), 0 0 40px var(--secondary-glow); 
    }
}

@keyframes rotateHalo { 
    to { transform: rotate(360deg); } 
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ===== EFECTOS DE FONDO ===== */
.spiral-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: spiralOut 12s linear infinite, fadeStar 2s ease-in-out;
    transform-origin: center;
}

#bg-canvas { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 1; 
}

/* ===== HEADER PRINCIPAL ===== */
.main-header { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    height: 80px;
    width: 100%; 
    background: rgba(255, 240, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0px 2px 20px rgba(255, 0, 255, 0.2);
    z-index: 1000;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box; 
    flex-wrap: nowrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--textlogo);
    box-shadow: 0 0 5px var(--primary-glow);
    overflow: hidden; 
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center 20%;
    display: block;
}

.webpage-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--primary-glow);
    margin: 0;
}

.widget-nav {
    display: flex;
    height: 100%;
}

.widget-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
}

.nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.nav-menu .nav-link {
    display: flex !important;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-glow);
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    transform: translateY(-2px);
}

/* AGREGAR después de .nav-menu */
.user-info-header {
    color: var(--secondary-glow);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255, 20, 147, 0.1);
    border-radius: 8px;
    white-space: nowrap;
}

/* Botón de logout en el header */
.logout-btn-header {
    background: rgba(255, 107, 107, 0.2);
    color: #ff0066 !important;
    border: 1px solid rgba(255, 0, 102, 0.4);
}

.logout-btn-header:hover {
    background: rgba(255, 107, 107, 0.3);
    box-shadow: 0 0 15px rgba(255, 0, 102, 0.4);
}

/* Si necesitas mantener el botón flotante para otras páginas, usa esta clase */
.logout-btn-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ff0066;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(7px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1000;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

.logout-btn-floating:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff0066;
    box-shadow: 0 0 15px rgba(255, 0, 102, 0.4);
    transform: translateY(-2px);
}

.user-welcome {
    color: var(--secondary-glow);
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.register-btn {
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    color: var(--textlogo) !important;
    font-weight: 600;
}

.register-btn:hover {
    background: linear-gradient(45deg, var(--secondary-glow), var(--primary-glow));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.4);
}

.logout-btn {
    background: rgba(255, 107, 107, 0.2);
    color: #ff0066 !important;
    border: 1px solid rgba(255, 0, 102, 0.4);
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    box-shadow: 0 0 15px rgba(255, 0, 102, 0.4);
}

/* ===== CONTENIDO PRINCIPAL ===== */
.content {
    position: relative;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
    width: 100%;
    z-index: 2;
    color: #333;
    font-family: 'Arial', sans-serif;
    font-size: 2rem;
    font-weight: bold;
}

.header-title { 
    position: absolute; 
    top: 5%; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 100%; 
    text-align: center; 
    user-select: none; 
    pointer-events: none; 
    z-index: 3;
}

.header-title h1 { 
    font-size: clamp(2rem, 5vw, 4rem); 
    font-weight: 700; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    color: #fff; 
    text-shadow: 0 0 5px #fff, 0 0 15px var(--primary-glow), 0 0 30px var(--primary-glow), 0 0 50px var(--secondary-glow); 
}

.header-title p { 
    font-size: clamp(1rem, 2.5vw, 1.5rem); 
    font-weight: 300; 
    opacity: 0.8; 
    margin-top: 5px; 
    text-shadow: 0 0 8px var(--secondary-glow); 
}

/* ===== IMAGEN CENTRAL ===== */
.image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 3px;
    animation: pulseGlow 4s infinite ease-in-out, rotateImage 20s linear infinite;
    z-index: 4;
}

.image-container::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    background: conic-gradient(from 90deg, var(--primary-glow), transparent, var(--secondary-glow), transparent, var(--primary-glow)); 
    animation: rotateHalo 8s linear infinite; 
    z-index: -1;
}

.image-container .image-wrapper { 
    width: 100%; 
    height: 100%; 
    background: var(--text-color); 
    border-radius: 50%; 
    overflow: hidden; 
    position: relative; 
}

.profile-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    position: absolute; 
    transition: opacity 1.5s ease-in-out; 
    opacity: 0; 
}

.profile-image.active { 
    opacity: 1; 
}

/* ===== SISTEMA DE ÍCONOS ===== */
.app-icon-container {
    margin-top: 5rem;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    z-index: 5;
}

.app-icon { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 85px; 
    height: 85px; 
    background-color: rgba(255, 240, 245, 0.8); 
    border: 1px solid var(--border-color); 
    border-radius: 24px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s ease; 
    backdrop-filter: blur(5px);
    will-change: transform; 
    gap: 4px; 
    pointer-events: auto; 
    text-decoration: none; 
    color: var(--text-color);
    z-index: 6;
}

.app-icon svg {
    width: 38px;
    height: 38px;
    stroke: var(--text-color);
    stroke-width: 1.5;
    transition: filter 0.3s ease; 
}

.app-icon:hover { 
    background-color: rgba(255, 0, 255, 0.4); 
    box-shadow: 0 0 25px var(--primary-glow), 0 0 40px var(--secondary-glow); 
    border-color: var(--primary-glow); 
    filter: url(#water-effect);
    z-index: 10;
}

.app-icon:hover svg { 
    filter: drop-shadow(0 0 12px var(--primary-glow));  
    stroke: #ffffff;
}

.app-icon p { 
    font-size: 0.8rem; 
    font-weight: 600; 
    margin-top: 0; 
    opacity: 0.9; 
    transition: all 0.3s ease;
}

.app-icon:hover p {
    opacity: 1;
    color: #ffffff;
    text-shadow: 0 0 8px var(--primary-glow);
}

/* ===== ELEMENTOS FLOTANTES ===== */
.copyright-footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    z-index: 11;
    color: var(--text-color);
    font-size: 0.8rem;
    letter-spacing: 1px;
    pointer-events: none;
    user-select: none;
}

.copyright-footer p { 
    margin: 0; 
}

/* ===== SISTEMA DE LOGIN ===== */
.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    width: 100%;
}

.login-container .logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #ff00ff, #ff1493);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--textlogo);
    font-weight: bold;
    box-shadow: 0 0 3px #ff00ff, 0 0 5px #ff1493;
}

.login-container .login-title {
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: #ff00ff;
    text-shadow: 0 0 2px #ff00ff, 0 0 5px #ff1493;
}

.login-container .login-subtitle {
    margin-bottom: 30px;
    opacity: 0.8;
    font-size: 1rem;
    color: #8b008b;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
    max-width: 300px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ff00ff;
    font-weight: 600;
    text-shadow: 0 0 2px rgba(255, 0, 255, 0.5);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ff00ff;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #8b008b;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #ff1493;
    box-shadow: 0 0 10px #ff00ff, 0 0 15px #ff1493;
    background: rgba(255, 255, 255, 1);
}

.login-btn {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    background: linear-gradient(45deg, #ff00ff, #ff1493);
    border: none;
    border-radius: 5px;
    color: var(--textlogo);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px #ff00ff;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px #ff00ff, 0 8px 30px #ff1493;
    background: linear-gradient(45deg, #ff1493, #ff00ff);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.captcha-refresh {
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    color: white !important;
    font-weight: 300;
    box-shadow: 0 1px 5px #ff00ff, 0 8px 30px #ff1493;
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 0, 102, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(255, 0, 102, 0.3);
    display: none;
    font-weight: 600;
}

.login-container.shake {
    animation: shake 0.5s ease-in-out;
}

/* ===== COMPATIBILIDAD BOOTSTRAP ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.bg-dark {
    background-color: #ffecf5 !important;
}

/* ===== FOOTER ESTILO MODERNO ===== */
.footer-content { 
    display: grid;
    width: 100%;
    height: 12.9vh;
    position: sticky;
    align-items: center;
    justify-content: space-between;
    top: 90vh;
    left: 0;
    background: rgba(255, 240, 245, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    padding: 0 2rem;
}

.footer-content .copyright {
    left: 0.2vw;
    height: auto;
    justify-content: flex-start;
    font-size: 1.1rem;
    letter-spacing: 0.1vw;
    padding-left: 1.2vw;
    padding-top: 1.2vw;
    color: var(--text-color);
    text-shadow: 0 0 8px var(--primary-glow);
}

.social-media {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: all;
}

.social-menu {
    display: flex;
    width: 50vw;
    margin: 0;
    height: auto;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0;
}

.social-item {
    padding-top: 3vh;
    display: inline;
    position: relative;
}

.social-icon {
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0.45rem;
    color: var(--primary-glow);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255, 240, 245, 0.8);
    backdrop-filter: blur(5px);
}

.social-icon:hover {
    color: #ffffff;
    border-color: var(--primary-glow);
    background: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 20px var(--primary-glow), 0 0 30px var(--secondary-glow);
    transform: translateY(-3px) scale(1.1);
}

/* Efectos de color específicos para cada red social */
.social-icon.facebook:hover {
    background: rgba(59, 89, 152, 0.8);
    box-shadow: 0 0 20px #3b5998;
}

.social-icon.twitter:hover {
    background: rgba(29, 161, 242, 0.8);
    box-shadow: 0 0 20px #1da1f2;
}

.social-icon.google:hover {
    background: rgba(219, 68, 55, 0.8);
    box-shadow: 0 0 20px #db4437;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 0 20px #dc2743;
}

.social-icon.youtube:hover {
    background: rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 20px #ff0000;
}

/* Tooltip para los íconos */
.social-item::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 15, 30, 0.9);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.social-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* ===== ESTILOS PARA PÁGINAS INFORMATIVAS ===== */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.card-header {
    background: rgba(255, 240, 245, 0.95) !important;
    border-bottom: 1px solid var(--border-color);
}

.logo-large {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo-large .logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--textlogo);
    box-shadow: 0 0 25px var(--primary-glow);
}

.content-section {
    line-height: 1.6;
}

.content-section h2,
.content-section h3,
.content-section h4 {
    color: var(--primary-glow);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section ul {
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.tech-badges {
    margin-top: 1rem;
}

.feature-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-glow);
}

.feature-item h5 {
    margin-bottom: 0.5rem;
}

.last-updated {
    border-left: 4px solid var(--primary-glow);
    padding-left: 1rem;
    background: rgba(0, 229, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
}

/* ===== ESTILOS PARA PÁGINAS DE ERROR ===== */
.error-icon .logo {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

/* ===== BANNER DE COOKIES ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 240, 245, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    animation: slideUpCookie 0.5s ease-out;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    color: var(--primary-glow);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-text p {
    color: var(--text-color);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-links {
    margin-top: 0.5rem;
}

.cookie-link {
    color: var(--secondary-glow);
    text-decoration: none;
    font-size: 0.9rem;
}

.cookie-link:hover {
    color: var(--primary-glow);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.cookie-btn-primary {
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    color: var(--bg-dark);
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.4);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@keyframes slideUpCookie {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MODAL DE VERIFICACIÓN DE EDAD ===== */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 4, 10, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease;
}

.age-modal-content {
    background: rgba(255, 240, 245, 0.95);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--primary-glow);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

.age-modal-header {
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    padding: 2rem;
    text-align: center;
    position: relative;
}

.age-logo {
    margin-bottom: 1rem;
}

.age-logo .logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.age-modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.age-modal-body {
    padding: 2rem;
}

.age-warning {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
}

.warning-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.age-warning h3 {
    color: #ffc107;
    margin: 0;
    font-size: 1.4rem;
}

.age-description {
    margin-bottom: 2rem;
}

.age-description p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.age-description ul {
    color: var(--text-color);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.age-description li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.age-description a {
    color: var(--primary-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.age-description a:hover {
    color: var(--secondary-glow);
    text-decoration: underline;
}

.age-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.age-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 60px;
}

.age-btn-primary {
    background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow));
    color: var(--textlogo);
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.3);
}

.age-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.5);
}

.age-btn-secondary {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 2px solid rgba(255, 0, 102, 0.4);
}

.age-btn-secondary:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 0, 102, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
}

.age-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.age-disclaimer {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .age-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .age-modal-header {
        padding: 1.5rem;
    }
    
    .age-modal-body {
        padding: 1.5rem;
    }
    
    .age-actions {
        grid-template-columns: 1fr;
    }
    
    .age-btn {
        min-height: 50px;
        font-size: 0.95rem;
    }
    
    .warning-icon {
        font-size: 2.5rem;
    }
    
    .age-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .age-warning h3 {
        font-size: 1.2rem;
    }
}

/* Efecto de desenfoque para el fondo */
body.age-verification-active {
    overflow: hidden;
}

body.age-verification-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    z-index: 9998;
}

/* ===== ANIMACIONES PARA LA VERIFICACIÓN DE EDAD ===== */
.age-loading-content {
    text-align: center;
    color: var(--text-color);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 229, 255, 0.3);
    border-top: 4px solid var(--primary-glow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.age-loading-content h3 {
    color: var(--primary-glow);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.age-loading-content p {
    opacity: 0.8;
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.age-success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.success-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== MENSAJES DE AUDIO ===== */
.audio-stopped-message {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.audio-icon {
    font-size: 1rem;
}

/* Controles de audio opcionales */
.audio-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.audio-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(10, 15, 30, 0.8);
    border: 2px solid var(--primary-glow);
    color: var(--primary-glow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.audio-btn:hover {
    background: var(--primary-glow);
    color: var(--bg-dark);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Estilos consistentes para ambos dashboards */
.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    border-radius: 20px;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.3);
}

.status-badge {
    background: rgba(255, 240, 245, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Cards de estadísticas - Títulos en una sola línea */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-card {
    background: rgba(255, 240, 245, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.2);
    border-color: var(--primary-glow);
}

.stats-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.2), rgba(255, 0, 255, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary-glow);
}

.stats-info {
    flex: 1;
}

.stats-info h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

.stats-info p {
    color: #666;
    margin: 0;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .error-icon .logo {
        width: 80px !important;
        height: 80px !important;
        font-size: 2rem !important;
    }
    
    .logo-large .logo {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-content {
        height: auto;
        padding: 1rem;
        position: relative;
        top: auto;
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content .copyright {
        font-size: 0.9rem;
        padding: 0;
        text-align: center;
    }
    
    .social-menu {
        width: 80vw;
        gap: 0.5rem;
    }
    
    .social-icon {
        height: 35px;
        width: 35px;
    }
    
    .social-item::after {
        font-size: 0.7rem;
        bottom: -25px;
    }
    
    .main-header {
        height: auto;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-container {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .webpage-name {
        font-size: 1.4rem;
    }
    
    .widget-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .image-container { 
        width: 120px; 
        height: 120px; 
    } 
    
    .header-title {
        margin-top: 2rem !important;
    }
    
    .header-title h1 { 
        font-size: 25px; 
    }
    
    .app-icon-container { 
        margin-top: 4rem !important;
        width: 90vw; 
        height: 90vw; 
        max-width: 350px;
        max-height: 350px; 
    } 
    
    .app-icon { 
        width: 70px; 
        height: 70px; 
        border-radius: 18px; 
    } 
    
    .app-icon svg { 
        width: 30px; 
        height: 30px; 
    }
    
    .login-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stats-info h3 {
        font-size: 1.5rem;
    }
    
    .stats-info p {
        font-size: 0.75rem;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0.8rem;
    }
    
    .footer-content .copyright {
        font-size: 0.8rem;
    }
    
    .social-menu {
        width: 90vw;
        gap: 0.3rem;
    }
    
    .social-icon {
        height: 30px;
        width: 30px;
    }
    
    .social-item::after {
        display: none;
    }
    
    .main-header {
        padding: 0.8rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .webpage-name {
        font-size: 1.2rem;
    }
    
    .widget-menu {
        gap: 0.8rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .user-welcome {
        display: none;
    }
    
    .login-container .logo {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .login-container .login-title {
        font-size: 1.5rem;
    }
    
    .app-icon-container {
        width: 320px;
        height: 320px;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
    }
    
    .app-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .app-icon p {
        font-size: 0.7rem;
    }
}

/* ===== ESTILOS PARA PÁGINAS DE AUTENTICACIÓN ===== */
.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 0;
    width: 100%;
    background: linear-gradient(135deg, #02040a, #1a1a2e);
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid #00e5ff;
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #00e5ff;
    text-shadow: 0 0 10px #00e5ff;
    font-size: 1.8rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00e5ff;
    font-weight: 500;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #00e5ff;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #eecdf7;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    background: rgba(0, 0, 0, 0.6);
}

.auth-form .btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #00e5ff, #6aff4d);
    border: none;
    border-radius: 5px;
    color: #02040a;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.4);
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #eecdf7;
}

.auth-link a {
    color: #00e5ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: #6aff4d;
    text-decoration: underline;
}

/* ===== ESTILOS RESPONSIVE PARA AUTENTICACIÓN ===== */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
        min-height: calc(100vh - 80px);
    }
    
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
        max-width: 100%;
    }
    
    .auth-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .auth-form .form-group {
        margin-bottom: 1rem;
    }
    
    .auth-form input,
    .auth-form select {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .auth-form .btn-primary {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .auth-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 0.5rem;
    }
    
    .auth-card {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .auth-card h2 {
        font-size: 1.3rem;
    }
    
    .auth-form input,
    .auth-form select {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .auth-form .btn-primary {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .alert-error {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Para tablets en orientación horizontal */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        max-width: 350px;
    }
}

/* Para pantallas muy grandes */
@media (min-width: 1440px) {
    .auth-card {
        max-width: 450px;
        padding: 2.5rem;
    }
    
    .auth-card h2 {
        font-size: 2rem;
    }
    
    .auth-form input,
    .auth-form select {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .auth-form .btn-primary {
        padding: 15px;
        font-size: 1.1rem;
    }
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 229, 255, 0.2);
    border: 1px solid var(--primary-glow);
    color: var(--primary-glow);
    text-decoration: none;
    border-radius: 8px;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* Agregar a styles.css o auth.css */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.message-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-message {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

