/* ============================================
   RESIDENT EVIL .LAT - ESTILOS MODERNOS
   ============================================ */

/* Variables CSS */
:root {
    --color-red: #e50914;
    --color-red-dark: #b8070f;
    --color-red-light: #ff1a1a;
    --color-white: #ffffff;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e0e0e0;
    --color-gray-300: #a0a0a0;
    --color-gray-400: #666666;
    --color-gray-500: #333333;
    --color-dark: #0a0a0a;
    --color-darker: #050505;
    
    --font-title: 'Anton', 'Impact', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-accent: 'Bebas Neue', 'Impact', sans-serif;
    
    --nav-height: 80px;
    --nav-height-mobile: 65px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   FONDO Y OVERLAYS
   ============================================ */
.background-container {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.background-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 30s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.dark-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.vignette-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

/* Particulas */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-red);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 8s linear infinite;
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}

/* ============================================
   BARRA DE NAVEGACION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: linear-gradient(180deg, 
        rgba(15, 15, 15, 0.98) 0%, 
        rgba(10, 10, 10, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 9, 20, 0.2);
    z-index: 1000;
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

/* Logo */
.logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 8px rgba(229, 9, 20, 0.3));
}

.logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.6));
}

/* Botones de navegacion modernos */
.nav-buttons {
    display: flex;
    gap: 8px;
}

.nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    text-decoration: none;
    color: var(--color-gray-200);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(229, 9, 20, 0.15) 0%, 
        rgba(229, 9, 20, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-btn:hover::before {
    opacity: 1;
}

.nav-btn:hover {
    color: var(--color-white);
}

.btn-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.nav-btn:hover .btn-icon {
    opacity: 1;
    color: var(--color-red);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-red), transparent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover .btn-line {
    width: 80%;
}

/* Menu hamburguesa moderno */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--color-red);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--color-red);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Menu movil */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 9, 20, 0.2);
    padding: 20px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    color: var(--color-gray-200);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.15em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.mobile-nav-btn:last-child {
    border-bottom: none;
}

.mobile-nav-btn:hover {
    color: var(--color-white);
    background: rgba(229, 9, 20, 0.1);
    padding-left: 30px;
}

.mobile-btn-number {
    font-family: var(--font-accent);
    font-size: 12px;
    color: var(--color-red);
    opacity: 0.6;
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */
.main-content {
    position: relative;
    z-index: 2;
    padding-top: var(--nav-height);
    min-height: 100vh;
}

/* Seccion del titulo */
.title-section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.title-wrapper {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.85;
}

.title-line {
    font-family: var(--font-title);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: clamp(4rem, 15vw, 12rem);
    display: block;
}

.title-line-second {
    margin-top: 0.1em;
}

.letter-accent {
    color: var(--color-red);
    text-shadow: 
        0 0 40px rgba(229, 9, 20, 0.5),
        0 0 80px rgba(229, 9, 20, 0.3),
        4px 4px 0 rgba(0, 0, 0, 0.3);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 
            0 0 40px rgba(229, 9, 20, 0.5),
            0 0 80px rgba(229, 9, 20, 0.3),
            4px 4px 0 rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 
            0 0 60px rgba(229, 9, 20, 0.7),
            0 0 120px rgba(229, 9, 20, 0.4),
            4px 4px 0 rgba(0, 0, 0, 0.3);
    }
}

.letter-main {
    color: var(--color-white);
    text-shadow: 
        4px 4px 0 rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 255, 255, 0.1);
}

.subtitle {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: var(--color-white);
    letter-spacing: 0.15em;
    margin-top: 10px;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.deco-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-red), transparent);
}

.deco-dot {
    width: 8px;
    height: 8px;
    background: var(--color-red);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
}

/* ============================================
   SECCION DE INFORMACION
   ============================================ */
.info-section {
    padding: 80px 20px 120px;
}

.info-container {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(
        135deg,
        rgba(15, 15, 15, 0.95) 0%,
        rgba(20, 15, 15, 0.9) 100%
    );
    border: 1px solid rgba(229, 9, 20, 0.15);
    border-radius: 20px;
    padding: 60px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: fadeInUp 1s ease-out 0.9s backwards;
}

.info-header {
    text-align: center;
    margin-bottom: 50px;
}

.info-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 30px;
    color: var(--color-red);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.info-title {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.info-content {
    margin-bottom: 50px;
}

.info-text {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 400;
    line-height: 1.9;
    color: var(--color-gray-300);
    margin-bottom: 25px;
    text-align: justify;
}

.info-text:last-child {
    margin-bottom: 0;
}

/* Stats */
.info-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-accent);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-red);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(180deg, 
        rgba(8, 8, 8, 0.95) 0%, 
        rgba(5, 5, 5, 1) 100%
    );
    border-top: 1px solid rgba(229, 9, 20, 0.15);
    padding: 60px 20px 40px;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo Umbrella moderno */
.umbrella-modern {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(
        var(--color-red) 0deg 45deg,
        var(--color-white) 45deg 90deg,
        var(--color-red) 90deg 135deg,
        var(--color-white) 135deg 180deg,
        var(--color-red) 180deg 225deg,
        var(--color-white) 225deg 270deg,
        var(--color-red) 270deg 315deg,
        var(--color-white) 315deg 360deg
    );
    animation: slowRotate 20s linear infinite;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
    position: relative;
}

.umbrella-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--color-dark);
    border-radius: 50%;
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.footer-brand-text {
    font-family: var(--font-accent);
    font-size: 16px;
    letter-spacing: 0.15em;
    color: var(--color-gray-300);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: var(--color-gray-400);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-red);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--color-white);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(229, 9, 20, 0.3), 
        transparent
    );
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-gray-400);
    margin-bottom: 10px;
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--color-gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablets */
@media (max-width: 992px) {
    .navbar-content {
        padding: 0 30px;
    }
    
    .nav-btn {
        padding: 10px 18px;
        font-size: 12px;
    }
    
    .btn-icon {
        display: none;
    }
    
    .info-container {
        padding: 50px 40px;
    }
}

/* Tablets pequenas y moviles grandes */
@media (max-width: 768px) {
    :root {
        --nav-height: var(--nav-height-mobile);
    }
    
    .navbar-content {
        padding: 0 20px;
    }
    
    .logo {
        height: 40px;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .title-line {
        font-size: clamp(3rem, 14vw, 8rem);
    }
    
    .subtitle {
        font-size: clamp(2rem, 7vw, 4rem);
    }
    
    .info-container {
        padding: 40px 25px;
        border-radius: 16px;
    }
    
    .info-stats {
        gap: 20px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

/* Moviles */
@media (max-width: 480px) {
    .navbar-content {
        padding: 0 16px;
    }
    
    .logo {
        height: 35px;
        max-width: 100px;
    }
    
    .title-section {
        padding: 40px 16px;
    }
    
    .title-line {
        font-size: clamp(2.5rem, 13vw, 6rem);
    }
    
    .subtitle {
        font-size: clamp(1.8rem, 6vw, 3rem);
        margin-top: 5px;
    }
    
    .title-decoration {
        margin-top: 30px;
    }
    
    .deco-line {
        width: 40px;
    }
    
    .info-section {
        padding: 60px 16px 80px;
    }
    
    .info-container {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .info-header {
        margin-bottom: 35px;
    }
    
    .info-text {
        font-size: 0.95rem;
        text-align: left;
        line-height: 1.8;
    }
    
    .info-stats {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stat-item {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .footer {
        padding: 40px 16px 30px;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 12px;
    }
    
    .umbrella-modern {
        width: 35px;
        height: 35px;
    }
    
    .footer-brand-text {
        font-size: 14px;
    }
}

/* Pantallas muy pequenas */
@media (max-width: 320px) {
    .title-line {
        font-size: clamp(2rem, 12vw, 4rem);
    }
    
    .subtitle {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    
    .info-container {
        padding: 25px 15px;
    }
}

/* Modo paisaje moviles */
@media (max-height: 500px) and (orientation: landscape) {
    .title-section {
        min-height: auto;
        padding: 30px 20px;
    }
    
    .title-line {
        font-size: clamp(2rem, 10vw, 5rem);
    }
    
    .subtitle {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    
    .title-decoration {
        margin-top: 20px;
    }
}

/* Preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .background-media {
        animation: none;
        transform: scale(1);
    }
}

/* Modo oscuro del sistema */
@media (prefers-color-scheme: light) {
    /* Mantener siempre oscuro para esta tematica */
}
