/* Estilos compartidos: reset, paleta, scrollbar, header y navegación.
   Usado por index.html y transparencia.html */

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

:root {
    --color-primary: #FF6B35;
    --color-secondary: #F7931E;
    --color-accent: #FFC857;
    --color-dark: #2C3E50;
    --color-light: #F5F5F5;
    --color-text: #333333;
    --color-success: #27AE60;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    background: rgba(44, 62, 80, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.7);
    opacity: 0.9;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) rgba(44, 62, 80, 0.1);
}

html {
    scroll-behavior: smooth;
}

/* Header */
header {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('https://images.ctfassets.net/neb2xacyy5jk/4pLXFTBEa1MC4ZoUaTAO9b/8722c9237973d8f531220cfc4a5db736/Corporaci%C3%83_n_El_Trampol%C3%83_n_files_7c83682e7f7b61a0ba8e6238ce1fe6f0.jpg') center center / cover no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Navigation Bar */
nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 1rem 2rem;
}

nav.scrolled .logo-text,
nav.scrolled .nav-links a {
    color: var(--color-dark);
}

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

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    transition: color 0.3s ease;
}

nav.scrolled .logo-img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-weight: 700;
    font-size: 1.3rem;
}

.nav-links a:hover {
    opacity: 0.9;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

nav.scrolled .nav-links a::after {
    background: var(--color-primary);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

nav.scrolled .mobile-menu-toggle {
    color: var(--color-dark);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--color-dark);
        font-size: 1.2rem;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    header {
        min-height: 90vh;
        background-attachment: scroll;
    }
}
