/* Austram Fast - Estilos Principales */
/* Diseño moderno y responsivo con CSS moderno y mobile-first */

/* Variables CSS para diseño consistente */
:root {
    /* Colores principales */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #6b7280;
    --accent-primary: #3b82f6;
    --accent-secondary: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    
    /* Espaciado responsive */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Tipografía responsive */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Bordes y sombras */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Breakpoints para JavaScript */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Dashboard específico */
body.dashboard {
    background: #1a1a1a;
    min-height: 100vh;
}

/* Animación de fondo con partículas flotantes optimizadas */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    will-change: transform;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    border-radius: 50%;
    animation: float 25s infinite linear;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
    will-change: transform;
    transform: translateZ(0);
}

.floating-particle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

.floating-particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 30s;
}

.floating-particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.floating-particle:nth-child(4) {
    left: 40%;
    animation-delay: 6s;
    animation-duration: 28s;
}

.floating-particle:nth-child(5) {
    left: 50%;
    animation-delay: 8s;
    animation-duration: 26s;
}

.floating-particle:nth-child(6) {
    left: 60%;
    animation-delay: 10s;
    animation-duration: 24s;
}

.floating-particle:nth-child(7) {
    left: 70%;
    animation-delay: 12s;
    animation-duration: 32s;
}

.floating-particle:nth-child(8) {
    left: 80%;
    animation-delay: 14s;
    animation-duration: 27s;
}

.floating-particle:nth-child(9) {
    left: 90%;
    animation-delay: 16s;
    animation-duration: 29s;
}

.floating-particle:nth-child(10) {
    left: 95%;
    animation-delay: 18s;
    animation-duration: 31s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Gradiente animado de fondo optimizado */
.animated-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(15, 23, 42, 0.8) 25%,
        rgba(30, 41, 59, 0.75) 50%,
        rgba(15, 23, 42, 0.8) 75%,
        rgba(0, 0, 0, 0.9) 100%);
    background-size: 400% 400%;
    animation: gradientShift 30s ease infinite;
    z-index: -2;
    will-change: background-position;
    transform: translateZ(0);
}

.animated-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(29, 78, 216, 0.1) 0%, transparent 50%);
    animation: floatingOrbs 25s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatingOrbs {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Variables CSS */
:root {
    --primary-color: #000000;
    --primary-hover: #1a1a1a;
    --secondary-color: #333333;
    --success-color: #ffffff;
    --error-color: #ff6b6b;
    --warning-color: #ffd93d;
    --background-light: #333333;
    --background-white: #1a1a1a;
    --border-color: #333333;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --bg-primary: #000000;
    --accent-color: #ffffff;
}

.security-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.security-icon:hover {
    transform: scale(1.1);
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navegación Adaptada por Roles */
.role-navigation {
    background: #1a1a1a;
    border-bottom: 1px solid #333333;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-weight: 800;
    color: #000000;
    font-size: 0.875rem;
}

.nav-role-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-role-badge.admin {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.nav-role-badge.developer {
    background: rgba(255, 217, 61, 0.2);
    border-color: rgba(255, 217, 61, 0.3);
    color: #ffd93d;
}

.nav-role-badge.marketing {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.nav-role-badge.sales {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.nav-role-badge.client {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.nav-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu-toggle svg {
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 0 2px 2px 0;
}

.nav-link-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    opacity: 0.8;
}

.nav-user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-user-button {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.nav-user-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #000000;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.nav-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 0.5rem;
}

.nav-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.nav-user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-item svg {
    width: 16px;
    height: 16px;
    margin-right: 0.75rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a1a;
        border-top: 1px solid #333333;
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .nav-links.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
    
    .nav-user-info {
        display: none;
    }
    
    .nav-role-badge {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .nav-brand {
        font-size: 1.125rem;
    }
    
    .nav-brand-icon {
        width: 28px;
        height: 28px;
        margin-right: 0.5rem;
    }
}

/* Header */
.header {
    background: #1a1a1a;
    border-bottom: 1px solid #333333;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    min-height: 80px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Botón Hamburguesa */
.hamburger-btn {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    z-index: 1001;
    min-width: 60px;
    min-height: 60px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hamburger-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.hamburger-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.hamburger-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Animación del icono Cloudflare a X */
.hamburger-btn.active .hamburger-icon {
    transform: rotate(180deg);
}

.hamburger-btn.active .hamburger-icon path {
    opacity: 0;
    transform: scale(0.8);
}

.hamburger-btn.active .hamburger-icon circle {
    opacity: 0;
    transform: scale(0);
}

/* Agregar icono X cuando está activo */
.hamburger-btn.active .hamburger-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.hamburger-btn.active .hamburger-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Overlay oscuro para el menú móvil */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Navegación */
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-link {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #ffffff;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    header {
        padding: 1rem; /* Asegura un buen padding lateral en móvil */
        display: flex; /* Asegura que los elementos dentro se organicen bien */
        align-items: center; /* Centra verticalmente los elementos del header */
        justify-content: space-between; /* Distribuye espacio entre elementos (ej. logo a izq, hamburguesa a der) */
        width: 100%; /* Asegura que ocupe todo el ancho */
        box-sizing: border-box; /* Importante para que el padding no añada ancho extra */
    }

    .hamburger-btn {
        display: flex;
        /* position: relative;  <-- Intenta quitar esto, si no es estrictamente necesario */
        margin-left: auto;
        /* Asegúrate de que no haya un 'width' o 'max-width' excesivo aquí */
        /* Asegura que el botón no tenga un padding interno tan grande que lo desborde */
        padding: 0.5rem 1rem; /* Ejemplo de padding razonable */
        /* Otros estilos del botón */
    }
    
    /* -- ESTA ES LA REGLA CORREGIDA -- */
    .nav {
        display: none; /* Oculta el menú por defecto en móvil */
        position: fixed;
        top: 95px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding: 2rem 1rem;
        border-top: 1px solid #333333;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
        z-index: 999;
        overflow-y: auto;
        /* Las propiedades de transform, opacity y visibility se eliminan */
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .nav.active {
        display: flex; /* Muestra el menú cuando tiene la clase 'active' */
        height: max-content;
    }
    
    .nav-link {
        display: block;
        padding: 1.25rem 2rem;
        width: 100%;
        max-width: 300px;
        text-align: center;
        font-size: 1.1rem;
        font-weight: 600;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        margin-bottom: 1rem;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .nav-link:last-child {
        margin-bottom: 0;
    }
    
    .nav-link:hover {
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    
    /* Ajuste del botón registrarse en móvil */
    .nav .btn.btn-primary {
        margin: 1rem 0 0 0;
        width: 100%;
        max-width: 300px;
        padding: 1.25rem 2rem;
        text-align: center;
        font-size: 1.1rem;
        font-weight: 600;
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        border: none;
        border-radius: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }
    
    .nav .btn.btn-primary:hover {
        background: linear-gradient(135deg, #1d4ed8, #1e40af);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }
    .hero-buttons {
        display: none;
    }
}

/* Removed security-related styles */

/* Contenido principal */
.main-content {
    margin-top: 95px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Hero Section */
.hero {
    background: transparent;
    color: white;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    text-align: center;
    width: 100%;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #cccccc;
    text-align: center;
    width: 100%;
}

.hero-buttons {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Secciones adicionales */
.additional-sections {
    background: transparent;
    padding: 4rem 0;
    width: 100%;
}

.features-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    align-items: center;
}

.features-column .card {
    width: 100%;
    max-width: 500px;
    margin: 0;
}

.security-card {
    max-width: 800px;
    margin: 2rem auto 0;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    margin: 1rem auto;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: #cccccc;
    font-size: 0.875rem;
}

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffffff;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #333333;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #000000;
    color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #666666;
    box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.2);
    background: #1a1a1a;
}

.form-input.error {
    border-color: var(--error-color);
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox {
    margin-top: 0.25rem;
    accent-color: #ffffff;
}

.checkbox-label {
    font-size: 0.875rem;
    color: #cccccc;
    line-height: 1.4;
}

.checkbox-label a {
    color: #ffffff;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    width: 100%;
    max-width: 280px;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    background: #000000;
    color: #ffffff;
}

.btn-primary {
    background: #000000;
    color: white;
    border-color: #ffffff;
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: #666666;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.btn-secondary:hover {
    background: #1a1a1a;
    border-color: #ffffff;
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mensajes */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    background: #1a1a1a;
    color: #ffffff;
}

.alert-success {
    background: #1a1a1a;
    border: 1px solid #333333;
    color: #ffffff;
}

.alert-error {
    background: #1a1a1a;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.alert-warning {
    background: #1a1a1a;
    border: 1px solid #ffd93d;
    color: #ffd93d;
}

.alert-info {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #1e40af;
}

/* Errores de validación */
.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Indicador de fortaleza de contraseña */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Contenedor de input con icono de contraseña */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container .password-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    transition: all 0.3s ease;
    border-radius: 4px;
    z-index: 10;
}

.password-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.password-toggle:focus {
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.password-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.password-toggle:hover .password-icon {
    transform: scale(1.1);
}

/* Animación suave para el cambio de iconos */
.password-icon-hide,
.password-icon-show {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Mejoras de accesibilidad */
.password-toggle[aria-label]:focus::after {
    content: attr(aria-label);
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: #333333;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(0.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .password-toggle {
        padding: 0.75rem;
        right: 0.5rem;
    }
    
    .password-input-container .password-input {
        padding-right: 3.5rem;
    }
}

/* Dashboard */
.dashboard {
    min-height: 100vh;
    padding: var(--spacing-md);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: #000000;
}

/* Header */
.header {
    position: relative;
    z-index: 100;
    padding: var(--spacing-md) 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: var(--font-size-sm);
}

/* Dashboard Header */
.dashboard-header {
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.dashboard-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dashboard-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    position: relative;
    z-index: 10;
    padding-bottom: var(--spacing-xl);
}

/* Alerts */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown styles */
.panels-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Definición de panels-dropdown-menu movida a la sección principal más abajo */

/* Wallet styles */
.wallet-icon {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: white;
    cursor: pointer;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.wallet-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.credits-badge {
    background-color: #f59e0b;
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    min-width: 1.5rem;
    text-align: center;
    line-height: 1;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: var(--spacing-sm);
    flex: 1;
}

/* Navegación principal */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Grid de funciones */
.functions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Tarjetas de funciones */
.function-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.function-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.function-card:hover::before {
    opacity: 1;
}

.function-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.function-description {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
    flex: 1;
}

.function-cost {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--spacing-sm);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 44px; /* Tamaño mínimo para touch */
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Inputs y formularios */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xs);
}

.form-input {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
    min-height: 44px; /* Tamaño mínimo para touch */
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Modales */
.function-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.function-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.function-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-xl);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    margin-bottom: var(--spacing-lg);
}

.modal-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

/* Sección de noticias */
.news-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.news-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.news-item-title {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: white;
    margin-bottom: var(--spacing-xs);
}

.news-item-content {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Estados de carga */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.dashboard-header {
    background: #1a1a1a;
    border-bottom: 1px solid #333333;
    padding: 2rem 0;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: #cccccc;
}

.dashboard-content {
    padding: 2rem 0;
    background: #1a1a1a;
    min-height: calc(100vh - 200px);
}

.dashboard-header {
    background: #1a1a1a;
    padding: 2rem 0 1rem 0;
    margin-top: 80px;
    border-bottom: 1px solid #333333;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: #2a2a2a;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #444444;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    background: #333333;
    border-color: #555555;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

.dashboard-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

/* Main Functions Section */
.main-functions {
    padding: 2rem 0;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.function-card {
    background: #2a2a2a;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #444444;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #666666;
}

.function-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #000000;
}

.function-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.function-card p {
    color: #cccccc;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.function-cost {
    background: #1a1a1a;
    color: #ffd700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    border: 1px solid #333333;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #cccccc;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #333333;
}

/* Utilidades */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-content {
        margin-top: 120px;
    }
    
    .card {
        margin: 0.5rem;
        padding: 1rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in {
    animation: fadeIn 1.2s ease-out;
}

/* Loading spinner */
.spinner {
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estados de carga */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Sistema de Notificaciones */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.notification {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.notification-content {
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: 12px;
}

.notification-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-message {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #cccccc;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.notification-close:hover {
    background: #333333;
    color: #ffffff;
}

/* Tipos de notificaciones */
.notification.success {
    border-left: 4px solid #10b981;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.warning {
    border-left: 4px solid #f59e0b;
}

.notification.warning .notification-icon {
    color: #f59e0b;
}

.notification.info {
    border-left: 4px solid #3b82f6;
}

.notification.info .notification-icon {
    color: #3b82f6;
}

/* Barra de progreso para auto-dismiss */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transform-origin: left;
    animation: notificationProgress 5s linear;
}

.notification.success .notification-progress {
    background: #10b981;
}

.notification.error .notification-progress {
    background: #ef4444;
}

.notification.warning .notification-progress {
    background: #f59e0b;
}

.notification.info .notification-progress {
    background: #3b82f6;
}

@keyframes notificationProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .notification-icon {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
}

/* Billetera de Créditos */
.credits-wallet {
    margin-bottom: 2rem;
}

.wallet-card {
    background: #2a2a2a;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #444444;
    transition: all 0.3s ease;
}

.wallet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.wallet-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wallet-header h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.wallet-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333333;
}

.balance-label {
    color: #cccccc;
    font-size: 0.875rem;
}

.balance-amount {
    color: #f59e0b;
    font-size: 1.5rem;
    font-weight: 700;
}

.wallet-actions {
    display: flex;
    gap: 1rem;
}

/* Menú Principal de Funciones */
.main-functions-menu {
    margin-bottom: 2rem;
}

.menu-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.function-card {
    background: #2a2a2a;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #444444;
    position: relative;
    overflow: hidden;
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: #666666;
}

.function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s;
}

.function-card:hover::before {
    left: 100%;
}

.function-icon {
    margin-bottom: 1rem;
    color: #f59e0b;
}

.function-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.function-card p {
    color: #cccccc;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.function-cost {
    background: #1a1a1a;
    color: #f59e0b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    border: 1px solid #333333;
}

/* Menú desplegable de paneles */
.panels-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-toggle:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.dropdown-toggle.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Menú desplegable */
.panels-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #444444;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    min-width: 320px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-top: 0.5rem;
}

.panels-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Items del menú */
.panels-dropdown-item {
    border-bottom: 1px solid #333333;
}

.panels-dropdown-item:last-child {
    border-bottom: none;
}

.panel-link,
.panel-link-disabled {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.panel-link {
    color: #ffffff;
}

.panel-link:hover {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    transform: translateX(4px);
}

.panel-link-disabled {
    color: #666666;
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.panel-link-disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Iconos y contenido */
.panel-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.panel-link:hover .panel-icon {
    background: rgba(245, 158, 11, 0.2);
    transform: scale(1.1);
}

.panel-info {
    flex: 1;
}

.panel-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.panel-description {
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.3;
}

.panel-lock {
    color: #dc2626;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Estado activo */
.panels-dropdown-item.active .panel-link {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-left: 3px solid #f59e0b;
}

.panels-dropdown-item.active .panel-icon {
    background: rgba(245, 158, 11, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .panels-dropdown-menu {
        min-width: 280px;
        right: -1rem;
    }
    
    .panel-link,
    .panel-link-disabled {
        padding: 0.875rem 1rem;
    }
    
    .panel-icon {
        width: 36px;
        height: 36px;
    }
}

/* Logo responsivo */
.logo-img {
    width: 140px;
    height: 140px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: all var(--transition-normal);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

/* Media queries para logo responsivo */
@media (max-width: 1024px) {
    .logo-img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 80px;
        height: 80px;
    }
}

/* Hover effect para el logo */
.logo:hover .logo-img {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}