:root {
    --bg-color: #000000;
    --text-color: #e0e0e0;
    --accent-color: #00ffcc;
    /* Verde ciberseguridad */
    --secondary-color: #1a1a1a;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fondo con rejilla sutil para estética de ingeniería */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* --- ESTILOS DE NOTIFICACIONES TOAST --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #0a0a0a;
    color: #fff;
    padding: 1rem 1.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
}

.toast::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    width: 100%;
    animation: toast-progress linear forwards;
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

.toast-error { border-color: #ff4444; }
.toast-error::before { background: #ff4444; }
.toast-success { border-color: #88ff88; }
.toast-success::before { background: #88ff88; }
.toast-info { border-color: var(--accent-color); }

/* --- BOTÓN FLOTANTE DE NAVEGACIÓN --- */
.nav-floater {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

.nav-floater.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-floater:hover {
    background: rgba(0, 255, 204, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

.nav-floater svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Animación de rebote sutil */
@keyframes floater-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-floater.bounce svg {
    animation: floater-bounce 2s infinite ease-in-out;
}

.nav-floater.up svg {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .nav-floater {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
