:root {
    /* Color Palette */
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --bg-light: #ffffff;
    --accent-primary: #cf2027; /* Official UNLa Red */
    --accent-hover: #a8171d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-dark: #333333;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --transition-smooth: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: transparent;
}

.hero-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    background-color: #111;
    background-image: url('assets/ed-argumedo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none; /* Prevent interacting with iframe */
}

.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.5) 0%, rgba(10, 10, 15, 0.85) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-logo-img {
    max-width: 250px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.hero-slogan {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.cta-button {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.cta-button i {
    font-size: 1.2rem;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   SOCIAL LINKS
   ========================================================================== */
.social-links {
    position: absolute;
    top: 2rem;
    right: 3rem;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1.5px solid white;
    border-radius: 50%;
    color: white !important;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    background-color: rgba(0, 0, 0, 0.2);
}

.social-icon i {
    color: #ffffff !important;
}

.social-icon:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(207, 32, 39, 0.5);
    color: white;
}

/* ==========================================================================
   PLAYER SECTION
   ========================================================================== */
.player-section {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-darker);
    border-top: 4px solid var(--accent-primary);
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.6);
}

.player-container {
    padding: 0 1rem;
    max-width: 1400px;
}

.player-glass {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    margin-bottom: 1rem;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.live-text {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.player-info h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
}

.player-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.control-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.control-btn.playing {
    background: var(--bg-light);
    color: var(--bg-darker);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.volume-control i {
    font-size: 1.2rem;
}

input[type=range] {
    -webkit-appearance: none;
    width: 120px;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* ==========================================================================
   WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px; /* Above the fixed player */
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 3px solid white;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   SIDE NAVIGATION
   ========================================================================== */
.side-nav {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 50;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
}

.side-nav li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.nav-label {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-right: 0.8rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    white-space: nowrap;
    pointer-events: none;
    background-color: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 4px;
}

.nav-line {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    border-radius: 2px;
}

.side-nav li a:hover .nav-label {
    opacity: 1;
    transform: translateX(0);
}

.side-nav li a:hover .nav-line {
    width: 45px;
    background-color: var(--accent-primary);
}

/* ==========================================================================
   INSTAGRAM SECTION
   ========================================================================== */
.instagram-section {
    padding: 6rem 0 4rem; /* Reduced padding since we now have a black footer */
    background-color: transparent; /* Removed the dark overlay */
    color: var(--text-primary);
    position: relative; /* ensure it scrolls over the fixed background */
    z-index: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background-color: var(--accent-primary);
}

.section-title::before {
    left: -70px;
}

.section-title::after {
    right: -70px;
}

.section-title span {
    color: var(--accent-primary);
}

.instagram-feed-container {
    min-height: 400px;
}

.snap-desktop {
    display: block;
    width: 100%;
}

.snap-mobile {
    display: none;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    padding-bottom: calc(2rem + 90px); /* Add padding to clear the fixed audio player */
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.site-footer p {
    margin: 0;
    line-height: 1.6;
    opacity: 0.8;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(207, 32, 39, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(207, 32, 39, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(207, 32, 39, 0);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }
    
    .player-glass {
        padding: 0.8rem 0;
    }
    
    .player-info h2 {
        font-size: 1rem;
    }
    
    .live-indicator {
        padding: 0.3rem 0;
        margin-bottom: 0;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .snap-desktop {
        display: none;
    }
    .snap-mobile {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .social-links {
        top: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .side-nav {
        display: none;
    }
    
    .social-icon {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 110px;
        right: 15px;
        font-size: 30px;
        border-width: 2px;
    }

    .hero-slogan {
        font-size: 0.9rem;
    }
    
    .hero-video {
        display: none;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-title::before,
    .section-title::after {
        width: 30px;
    }
    
    .section-title::before {
        left: -40px;
    }
    
    .section-title::after {
        right: -40px;
    }
    
    .hero-logo-img {
        max-width: 200px;
    }
}
