/* 
   Core-Under CSS Protocol - Dark Neon V2
   Refined for Maximum Legibility & Visual Impact
*/

:root {
    /* Base Colors - Deep Space */
    --apple-bg: #050505;
    --apple-card-bg: #0a0a0f;
    --apple-white: #ffffff;

    /* Text - High Contrast Silver */
    --apple-text: #e0e0e0;
    --apple-text-secondary: #a0a0a0;

    /* Neon Accents - Cyberpunk Balance */
    --apple-accent: #00f2ff;
    /* Cyan Neon - Primary Action/Highlight */
    --apple-secondary: #bf00ff;
    /* Purple Neon - Secondary/Brand */

    /* Effects */
    --neon-blue: 0 0 10px rgba(0, 242, 255, 0.5), 0 0 20px rgba(0, 242, 255, 0.3);
    --neon-purple: 0 0 10px rgba(191, 0, 255, 0.5), 0 0 20px rgba(191, 0, 255, 0.3);
    --neon-glow: 0 0 15px rgba(0, 242, 255, 0.8);
    --glass-panel: rgba(10, 10, 15, 0.8);

    /* Typography */
    --sf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --apple-radius: 16px;
}

body {
    background-color: var(--apple-bg);
    background-image: url('../images/fondo5.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--apple-text);
    font-family: var(--sf-font);
    margin: 0;
    overflow-x: hidden;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--apple-white);
    letter-spacing: -0.5px;
}

a {
    color: var(--apple-accent);
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: var(--neon-glow);
    text-decoration: none;
}

/* Card Design - Glassmorphism + Neon Border */
.apple-card {
    background: var(--apple-card-bg);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: var(--apple-radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.apple-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--apple-accent);
    box-shadow: var(--neon-blue);
    z-index: 10;
}

/* Button Styling */
.btn-neon {
    background: transparent;
    border: 1px solid var(--apple-accent);
    color: var(--apple-accent);
    text-transform: uppercase;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 4px;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.btn-neon:hover {
    background: var(--apple-accent);
    color: #000;
    box-shadow: var(--neon-glow);
}

/* Navigation Overrides */
.navbar-default {
    background-color: rgba(5, 5, 5, 0.95);
    border-color: rgba(0, 242, 255, 0.1);
}

/* Glass Main Container */
.glass-container {
    background: rgba(10, 10, 18, 0.85);
    /* Darker background (85%) as requested */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin-top: 120px;
    position: relative;
    z-index: 5;
}

/* Flex Grid for Mosaic Fix */
.row.dis-flex {
    display: flex;
    flex-wrap: wrap;
}

.row.dis-flex>[class*='col-'] {
    display: flex;
    flex-direction: column;
}

.apple-card {
    flex: 1;
    width: 100%;
}

/* Utility Classes */
.text-neon-blue {
    color: var(--apple-accent);
    text-shadow: var(--neon-blue);
}

.text-neon-purple {
    color: var(--apple-secondary);
    text-shadow: var(--neon-purple);
}

/* Loader Animation */
@keyframes pulse-neon {
    0% {
        opacity: 0.8;
        text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 25px rgba(0, 242, 255, 0.9);
    }

    100% {
        opacity: 0.8;
        text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    }
}

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

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

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

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