/* ========================================
   ROCK CITY - BORN TO BLEED STYLE
   Enhanced Modern Design with GSAP
   ======================================== */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --color-primary: #E60000;
    --color-secondary: #8B0000;
    --color-dark: #1a1a1a;
    --color-darker: #0d0d0d;
    --color-light: #ffffff;
    --color-gray: #2a2a2a;
    --color-metal: #c0c0c0;

    /* Typography */
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Bebas Neue', cursive;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Effects */
    --shadow-glow: 0 0 20px rgba(230, 0, 0, 0.5);
    --shadow-text: 2px 2px 4px rgba(0, 0, 0, 0.8);
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-primary);
    background: var(--color-darker);
    color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ========================================
   LOADING SCREEN
   ======================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-darker) 0%, var(--color-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: loadingFadeIn 1.5s ease forwards;
}

.loading-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-md);
    text-shadow: var(--shadow-glow);
}

.loading-bar-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: var(--spacing-md) auto;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-metal));
    animation: loadingProgress 2s ease forwards;
    box-shadow: var(--shadow-glow);
}

.loading-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: var(--color-metal);
    letter-spacing: 0.1em;
    opacity: 0;
    animation: loadingFadeIn 1.5s ease 0.5s forwards;
}

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

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ========================================
   HEADER VIDEO SECTION
   ======================================== */
.header-video {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(230, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
}

.header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: headerReveal 2s ease 1s forwards;
}

.main-title {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.title-line {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 0.9;
    text-transform: uppercase;
}

.title-line.highlight {
    color: var(--color-primary);
    text-shadow: var(--shadow-glow);
    background: linear-gradient(45deg, var(--color-primary), var(--color-metal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titlePulse 3s ease-in-out infinite;
}

.title-underline {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: var(--spacing-md) auto;
    border-radius: 2px;
    box-shadow: var(--shadow-glow);
}

@keyframes headerReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes titlePulse {
    0%, 100% {
        filter: brightness(1) saturate(1);
    }
    50% {
        filter: brightness(1.2) saturate(1.3);
    }
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-metal);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    z-index: 3;
    opacity: 0;
    animation: scrollIndicator 2s ease 2s forwards;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scrollArrow 2s ease-in-out infinite;
    border-radius: 1px;
}

@keyframes scrollIndicator {
    to { opacity: 1; }
}

@keyframes scrollArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ========================================
   HERO IMAGE SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-darker) 100%);
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(230, 0, 0, 0.2),
        inset 0 0 0 2px rgba(230, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.hero-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(230, 0, 0, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.hero-image-wrapper:hover .hero-glow {
    opacity: 1;
}

/* ========================================
   ACTION BUTTONS SECTION
   ======================================== */
.action-section {
    position: relative;
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, var(--color-darker) 0%, var(--color-dark) 100%);
}

.action-container {
    max-width: 1000px;
    margin: 0 auto;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    grid-template-rows: repeat(4, auto);
}

.action-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-light);
    text-decoration: none;
    border-radius: 15px;
    border: 2px solid var(--color-primary);
    overflow: hidden;
    transition: all var(--transition-fast);
    box-shadow: 0 10px 30px rgba(230, 0, 0, 0.3);
    min-height: 80px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.6s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(230, 0, 0, 0.5);
    background: linear-gradient(135deg, #ff4444, #cc0000);
}

.action-btn .btn-icon {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.action-btn .btn-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-btn .btn-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.action-btn .btn-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

.secondary-btn {
    background: linear-gradient(135deg, var(--color-light), #f0f0f0);
    color: var(--color-dark);
    border-color: var(--color-light);
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #fff, #e0e0e0);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.2);
}

.tertiary-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: var(--color-light);
    border-color: #ff6b35;
}

.tertiary-btn:hover {
    background: linear-gradient(135deg, #ff8c5a, #ffb347);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.4);
}

.quaternary-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: var(--color-light);
    border-color: #4CAF50;
}

.quaternary-btn:hover {
    background: linear-gradient(135deg, #66BB6A, #5CB860);
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.4);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: none;
    pointer-events: none;
}

.btn-ripple.active {
    animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========================================
   FOOTER VIDEO SECTION
   ======================================== */
.footer-video {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(230, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 2;
}

.footer-content {
    position: relative;
    z-index: 3;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: footerReveal 1.5s ease 1s forwards;
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.footer-text {
    position: relative;
    text-align: center;
    z-index: 4;
    margin-bottom: var(--spacing-md);
    transform: none;
    bottom: auto;
    left: auto;
}

.footer-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-sm);
    text-shadow: var(--shadow-glow);
}

.footer-tagline {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--color-metal);
    letter-spacing: 0.1em;
    margin-bottom: 0;
}

.contact-info {
    margin-bottom: var(--spacing-lg);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-light);
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
}

.tiktok-link {
    position: relative;
    color: var(--color-metal);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    z-index: 4;
    bottom: auto;
    left: auto;
    transform: none;
}

.facebook-link {
    position: relative;
    color: var(--color-metal);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    z-index: 4;
    bottom: auto;
    left: auto;
    transform: none;
}

.instagram-link {
    color: var(--color-metal);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-fast);
}

.tiktok-link:hover,
.facebook-link:hover,
.instagram-link:hover {
    color: var(--color-primary);
    text-shadow: var(--shadow-glow);
    background: rgba(230, 0, 0, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.tiktok-link:hover::after,
.facebook-link:hover::after,
.instagram-link:hover::after {
    width: 100%;
}

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

/* ========================================
   MUSIC TOGGLE
   ======================================== */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: 2px solid var(--color-primary);
    color: var(--color-light);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(230, 0, 0, 0.4);
    transition: all var(--transition-fast);
}

.tiktok-link {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(230, 0, 0, 0.6);
}

.music-toggle:active {
    transform: scale(0.95);
}

/* ========================================
   MOBILE OPTIMIZATION
   ======================================== */
@media (max-width: 768px) {
    .footer-video {
        position: relative;
        min-height: 250px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-content {
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        z-index: 2;
    }

    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }

    /* TEXTO DEL FOOTER - SUBIR POSICIÓN */
    .footer-text {
        text-align: center;
        margin-top: -20px; /* Subir todo el bloque de texto */
        margin-bottom: 0;
    }

    .footer-title {
        font-size: 2.5rem;
        margin: 0;
        padding: 0;
        line-height: 1;
    }

    .footer-tagline {
        font-size: 0.9rem;
        margin: 5px 0 0 0;
        padding: 0;
        line-height: 1.2;
    }

    /* BOTONES SOCIALES - LAYOUT HORIZONTAL */
    /* BOTONES SOCIALES - LAYOUT HORIZONTAL ORDEN FIJO */
    .social-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 18px;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
        padding: 0 10px;
    }

    /* ORDEN Y POSICIÓN EXACTA DE LOS BOTONES */
    .facebook-link {
        order: 1;
        background: rgba(59, 89, 152, 0.9);
        color: white;
    }

    .instagram-link {
        order: 2;
        background: rgba(228, 64, 95, 0.9);
        color: white;
    }

    .tiktok-link {
        order: 3;
        background: rgba(0, 0, 0, 0.8);
        color: white;
    }

    /* ESTILO UNIFICADO DE LOS BOTONES */
    .social-links a {
        text-decoration: none;
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 0.95rem;
        text-align: center;
        flex: 0 0 auto;
        width: 100px;
        transition: all 0.3s ease;
        border: 1px solid transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .social-links a:hover {
        transform: translateY(-3px);
        border-color: var(--color-primary);
        box-shadow: 0 0 10px rgba(230, 0, 0, 0.4);
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: var(--spacing-md);
    }

    .hero-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .action-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .action-buttons-grid {
        gap: var(--spacing-lg);
        grid-template-rows: repeat(4, auto);
    }

    .action-btn {
        min-height: 90px;
        min-width: 260px;
        padding: var(--spacing-lg) var(--spacing-md);
        font-size: 1.2rem;
    }

    .action-btn .btn-title {
        font-size: 1.4rem;
    }

    .action-btn .btn-subtitle {
        font-size: 1.1rem;
    }

    .action-btn .btn-icon {
        font-size: 3rem;
        min-width: 60px;
    }

    .footer-content {
        padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-xl);
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .footer-text {
        position: relative;
        text-align: center;
        z-index: 4;
        margin-bottom: 4px;
        margin-top: -8px;
        transform: none;
        bottom: auto;
        left: auto;
        order: 1;
    }

    .footer-title {
        font-size: clamp(1.5rem, 10vw, 2.5rem);
        margin-bottom: var(--spacing-xs);
        margin-top: 0;
        letter-spacing: 0.15em;
    }

    .footer-tagline {
        font-size: 1.1rem;
        margin-bottom: 0;
        margin-top: -3px;
        letter-spacing: 0.1em;
    }

    .social-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
        padding: 0 10px;
    }

    .facebook-link {
        order: 1;
        background: rgba(59, 89, 152, 0.9);
        color: white;
    }

    .instagram-link {
        order: 2;
        background: rgba(228, 64, 95, 0.9);
        color: white;
    }

    .tiktok-link {
        order: 3;
        background: rgba(0, 0, 0, 0.8);
        color: white;
    }

    /* ESTILO UNIFICADO DE LOS BOTONES */
    .social-links a {
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 0.85rem;
        text-align: center;
        flex: 0 0 auto;
        width: 90px;
        transition: all 0.3s ease;
        border: 1px solid transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .social-links a:hover {
        transform: translateY(-3px);
        border-color: var(--color-primary);
        box-shadow: 0 0 10px rgba(230, 0, 0, 0.4);
    }

}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.action-btn:focus,
.music-toggle:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .action-btn {
        border-width: 3px;
    }

    .music-toggle {
        border-width: 3px;
    }
}

/* Performance optimizations */
.header-bg-video,
.footer-bg-video,
.hero-image {
    will-change: transform;
    backface-visibility: hidden;
}

/* Ensure smooth scrolling on iOS */
* {
    -webkit-overflow-scrolling: touch;
}