/* CDOR QUANTUM UI v8.0 - PREMIUM EDITION */
:root {
    /* Fondos */
    --bg-void: #020203;
    --bg-panel: #101014;
    --bg-grad: radial-gradient(ellipse at 50% 0%, #1e1b4b 0%, #020203 60%);

    /* Glassmorphism */
    --glass-surface: rgba(9, 9, 11, 0.85);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);

    /* Colores Premium */
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-glow: 0 0 30px rgba(139, 92, 246, 0.3);

    /* Textos */
    --text-main: #ffffff;
    --text-body: #e2e8f0;
    --text-dim: #94a3b8;

    /* Layouts */
    --nav-height: 72px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Efectos */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --z-nav: 1000;
    --z-modal: 9999;
}

/* RESET & BASE */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-void);
    background-image: var(--bg-grad);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    overflow-x: hidden;
}

/* CLS FIXES */
/* CLS FIXES & LAYERING */
.main-nav,
.container,
.footer,
.auth-wrapper {
    position: relative;
    z-index: 10;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(2, 2, 3, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    /* SIN BORDE */
    z-index: 1000;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-right: 24px;
    padding-left: 24px;
    padding-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-desc {
    max-width: 600px;
    color: var(--text-body);
    font-size: 1.1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    background: #050507;
    margin-top: auto;
}

.footer-inner {
    text-align: center;
    color: var(--text-dim);
}

.footer a {
    color: var(--text-body);
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary);
}

/* ===========================================
   PREMIUM BUTTONS & INTERACTIVE ELEMENTS
   =========================================== */

/* ESTILOS BASE COMPARTIDOS */
.btn-primary,
.btn-submit,
.btn-nav,
.btn-danger,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 12px;
    /* Más moderno */
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    line-height: 1.2;
    gap: 8px;
    /* Espacio para iconos */
}

/* 1. PRIMARY / SUBMIT / NAV (Gradiente Azul) */
.btn-primary,
.btn-submit,
.btn-nav {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    /* Sombra suave */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Borde sutil */
}

/* Hover: Levantar y brillar */
.btn-primary:hover,
.btn-submit:hover,
.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
    filter: brightness(1.1);
}

/* Active: Hundirse (Feedback táctil) */
.btn-primary:active,
.btn-submit:active,
.btn-nav:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.2);
}

/* Focus Ring (Accesibilidad Premium) */
.btn-primary:focus-visible,
.btn-submit:focus-visible,
.btn-nav:focus-visible,
.btn-danger:focus-visible,
.btn-ghost:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
}

/* 2. DANGER (Rojo Vibrante) */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5);
    filter: brightness(1.1);
}

.btn-danger:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.2);
}

/* 3. SMALL (Compacto) */
.btn-sm {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
}

/* 4. GHOST (Secundario/Transparente) */
.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-body);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost:active {
    transform: translateY(1px);
    background: rgba(255, 255, 255, 0.02);
}

/* SHIMMER EFFECT (Solo para Primary) */
.btn-primary::before,
.btn-submit::before,
.btn-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.btn-primary:hover::before,
.btn-submit:hover::before,
.btn-nav:hover::before {
    left: 100%;
    transition: left 0.6s ease-in-out;
}

.btn-primary:hover::before,
.btn-nav:hover::before {
    left: 100%;
}

/* Botón Secundario - Outline Elegante */
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* ===========================================
   PREMIUM CARDS - GLASSMORPHISM
   =========================================== */
.project-card,
.form-card,
.card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 20px 40px -10px rgba(0, 0, 0, 0.4),
        var(--glass-highlight);
    transition: transform 0.3s var(--ease-smooth), border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-6px);
    /* Sin scale */
    border-color: var(--primary);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

/* Nav Links Premium */
.nav-link {
    position: relative;
    color: var(--text-body);
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s var(--ease-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
    transition: width 0.3s var(--ease-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===========================================
   ACCESIBILIDAD MEJORADA
   =========================================== */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    /* Negro puro para máximo contraste */
    color: #ffffff;
    padding: 1rem 2rem;
    z-index: 10000;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--primary);
}

.skip-link:focus {
    top: 0;
    outline: 4px solid white;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Cookie Button High Contrast */
.btn-accept {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff;
    /* Make it look bigger/solid */
    padding: 10px 24px;
    font-weight: 800;
    /* Extra bold */
}

/* UTILIDADES NAVIGATION */
.nav-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* FIX: Contenedor Wrapper Flexible */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    /* Eliminar bullets */
}

/* FIX: Ocultar toggle en desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Sobre el menú fullscreen */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* BASE NAV LAYOUT (Fix Desktop) */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

/* ===========================================
   GLOBAL HAMBURGER MENU (DESKTOP & MOBILE)
   =========================================== */
.menu-toggle {
    display: flex;
    /* Siempre visible */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.menu-toggle span:nth-child(1) {
    margin-bottom: 6px;
}

.menu-toggle span:nth-child(3) {
    margin-top: 6px;
}

/* Animación: Hamburger → X */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* NAV WRAPPER (OVERLAY FULLSCREEN) */
.nav-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 2, 3, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 80px 40px 40px;
    z-index: 1000;

    /* Estado inicial: Oculto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.nav-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    font-size: 2rem;
    /* Texto grande estilo menú app */
    font-weight: 700;
    padding: 10px;
    display: block;
    color: var(--text-dim);
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    transform: scale(1.05);
    /* Zoom sutil permitido aquí */
}

/* Acciones (Botón Login/Perfil) dentro del menú */
.nav-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
}

.nav-actions .btn-nav {
    width: 100%;
    text-align: center;
}

/* ===========================================
   RESPONSIVE ADJUSTMENTS (Only if needed)
   =========================================== */
@media (max-width: 860px) {

    /* Ajustes menores para pantallas muy pequeñas si es necesario */
    .nav-link {
        font-size: 1.8rem;
    }
}

/* CONTAINERS */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 120px 24px 60px
}

.card,
.form-card,
.project-card,
.inbox-container {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), var(--glass-highlight)
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5)
}

.section-desc {
    color: var(--text-body);
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 3rem
}

/* ===========================================
   PREMIUM AUTH STYLES v4.0
   =========================================== */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    position: relative;
    overflow: hidden;
}

/* Fondo animado sutil exclusivo para Auth */
.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, #1e1b4b 0%, #000000 50%);
    z-index: -1;
    animation: pulseAuth 10s ease-in-out infinite alternate;
}

@keyframes pulseAuth {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.form-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    /* Glassmorphism Pro */
    background: rgba(16, 16, 20, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Highlight top */
    border-radius: 24px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Efecto de borde superior brillante */
.form-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.form-group {
    margin-bottom: 24px;
    position: relative;
    /* Para posicionar iconos */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 4px;
}

/* Inputs con soporte para iconos */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-dim);
    pointer-events: none;
    transition: color 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 14px 16px 14px 48px;
    /* Padding izquierdo para icono */
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-input:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

/* Botones Auth */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

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

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3)
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5)
}

.btn-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px
}

/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px
}

.project-card {
    transition: transform 0.3s, border-color 0.3s;
    overflow: hidden
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4)
}

.project-img {
    height: 220px;
    background: radial-gradient(circle at center, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    border-bottom: 1px solid var(--glass-border)
}

.project-body {
    padding: 30px
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--primary-dim);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    margin-right: 6px;
    margin-top: 6px
}

/* WEBMAIL */
.inbox-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 75vh;
    min-height: 600px;
    max-height: 900px;
    background: var(--bg-panel);
    padding: 0;
    margin-top: 20px
}

.inbox-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column
}

.inbox-header {
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
    text-align: center
}

.inbox-nav {
    padding: 16px;
    flex: 1;
    overflow-y: auto
}

.inbox-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-body);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 4px;
    font-weight: 500
}

.inbox-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff
}

.inbox-menu-item.active {
    background: var(--primary-dim);
    color: var(--primary)
}

.inbox-badge {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700
}

.email-list {
    flex: 1;
    overflow-y: auto;
    border-right: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.15)
}

.email-item {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: 0.2s;
    border-left: 3px solid transparent
}

.email-item:hover {
    background: rgba(255, 255, 255, 0.03)
}

.email-item.active {
    background: rgba(59, 130, 246, 0.08);
    border-left-color: var(--primary)
}

.email-item.unread {
    background: rgba(59, 130, 246, 0.03)
}

.email-item.unread .email-subject {
    color: #fff;
    font-weight: 700
}

.email-sender {
    display: block;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 4px
}

.email-subject {
    display: block;
    font-size: 0.85rem;
    color: var(--text-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.email-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: right;
    margin-top: 8px
}

.email-viewer {
    background: var(--bg-panel);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative
}

.email-content {
    padding: 40px;
    overflow-y: auto;
    height: 100%;
    /* animation removed */
}

.mail-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px
}

.mail-subject {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px
}

.mail-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-body);
    font-size: 0.9rem
}

.mail-body {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.8;
    white-space: pre-line
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-dim);
    text-align: center
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.2
}

@media(max-width:900px) {
    .inbox-container {
        grid-template-columns: 80px 1fr
    }

    .inbox-menu-item span,
    .inbox-badge,
    .inbox-header .btn-submit {
        display: none
    }

    .inbox-menu-item {
        justify-content: center
    }
}

@media(max-width:700px) {
    .inbox-container {
        display: block;
        height: auto;
        min-height: 600px
    }

    .inbox-sidebar {
        display: none
    }

    .email-list {
        height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border)
    }

    .email-viewer {
        height: 400px
    }
}

/* ADMIN GEAR */
.admin-gear-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: var(--z-modal);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)
}

.admin-gear-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    animation: spin 15s linear infinite
}

.admin-gear-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 0 40px var(--primary-dim)
}

.admin-gear-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px
}

/* COOKIES & FOOTER */
body.cookies-pending main,
body.cookies-pending .footer {
    filter: blur(8px) grayscale(50%);
    pointer-events: none;
    user-select: none;
    transition: filter 0.5s ease
}

.cookie-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #09090b;
    border-top: 1px solid var(--primary);
    padding: 30px;
    text-align: center;
    z-index: var(--z-modal);
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.6s var(--ease-out)
}

.cookie-content h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2rem
}

.cookie-content p {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 20px
}

.btn-accept {
    background: var(--primary);
    color: #fff;
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 0 20px var(--primary-dim)
}

.btn-accept:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px
}

.footer {
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-body);
    font-size: 0.9rem
}

.footer a:hover {
    color: #fff
}

.footer a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px
}

/* ===========================================
   CLEAN ANIMATION SYSTEM v3.0
   Sistema limpio y fluido - Sin movimiento agresivo
   =========================================== */

/* --- KEYFRAMES BÁSICOS --- */

/* Fade suave (sin movimiento) */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Spin para iconos */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Slide Up para modales */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- CLASES DE ANIMACIÓN --- */

/* Elementos con .reveal aparecen directamente (sin animación de entrada) */
.reveal,
.reveal.visible,
.animate-fade {
    opacity: 1;
    animation: none;
}

/* Clases stagger desactivadas */
.stagger-1,
.stagger-2,
.stagger-3,
.stagger-4,
.stagger-5 {
    animation-delay: 0s;
}

/* Delays legacy desactivados */
.delay-100,
.delay-200,
.delay-300 {
    animation-delay: 0s;
}

/* ===========================================
   BRAND LOGO
   =========================================== */
.brand-wrapper svg {
    height: 100% !important;
    width: auto !important;
    max-width: 100%;
    border-radius: 8px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}