/* ===================================
   VARIABLES Y RESET
   =================================== */
:root {
    /* Colores principales - Temática Salvaje Oeste */
    --primary-color: #d4af37; /* Dorado */
    --secondary-color: #8b4513; /* Marrón Silla */
    --accent-color: #cd853f; /* Peru */
    --dark-bg: #1a1410;
    --dark-bg-2: #2a1f1a;
    --light-text: #f5f5dc; /* Beige */
    --white: #ffffff;
    --overlay: rgba(26, 20, 16, 0.85);
    
    /* Tipografía */
    --font-western: 'Rye', cursive;
    --font-elegant: 'Cinzel', serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Espaciado */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* Transiciones */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--light-text);
    background-color: var(--dark-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===================================
   NAVEGACIÓN
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(26, 20, 16, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-western);
    color: var(--primary-color);
    font-size: 2rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.logo .tagline {
    font-family: var(--font-elegant);
    font-size: 0.7rem;
    color: var(--light-text);
    letter-spacing: 2px;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--light-text);
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../assets/images/hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--dark-bg) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 0%, rgba(26, 20, 16, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-western);
    font-size: 4.5rem;
    color: var(--primary-color);
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.hero-subtitle {
    font-family: var(--font-elegant);
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    background: #f0c952;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animaciones de entrada */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
    padding: var(--section-padding);
    background: var(--dark-bg-2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--dark-bg);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-elegant);
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 15px;
}

.feature-card p {
    color: rgba(245, 245, 220, 0.8);
    line-height: 1.8;
}

/* ===================================
   SECTION HEADERS
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-western);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.section-divider {
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto 20px;
}

.section-subtitle {
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    color: rgba(245, 245, 220, 0.8);
}

/* ===================================
   SOBRE NOSOTROS
   =================================== */
.sobre-nosotros {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-text .lead {
    font-size: 1.3rem;
    font-family: var(--font-elegant);
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.sobre-text p {
    margin-bottom: 20px;
    color: rgba(245, 245, 220, 0.9);
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-western);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(245, 245, 220, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sobre-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.sobre-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    opacity: 0;
    transition: var(--transition);
}

.sobre-image:hover::after {
    opacity: 1;
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--dark-bg-2) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 245, 220, 0.3);
    font-size: 1.2rem;
}

/* ===================================
   REGLAS
   =================================== */
.reglas {
    padding: var(--section-padding);
    background: var(--dark-bg-2);
}

.reglas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.regla-card {
    background: var(--dark-bg);
    padding: 40px 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
}

.regla-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.regla-number {
    font-family: var(--font-western);
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: 20px;
    right: 20px;
}

.regla-card h3 {
    font-family: var(--font-elegant);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.regla-card p {
    color: rgba(245, 245, 220, 0.8);
    line-height: 1.8;
}

.reglas-footer {
    text-align: center;
}

/* ===================================
   CÓMO CONECTAR
   =================================== */
.conectar {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.pasos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.paso-card {
    background: var(--dark-bg-2);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.paso-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.paso-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.paso-card h3 {
    font-family: var(--font-elegant);
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 15px;
}

.paso-card p {
    color: rgba(245, 245, 220, 0.8);
    margin-bottom: 20px;
    line-height: 1.8;
}

.paso-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.paso-link:hover {
    text-decoration: underline;
}

.server-ip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.server-ip code {
    background: var(--dark-bg);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.copy-btn {
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: #f0c952;
}

/* ===================================
   STAFF
   =================================== */
.staff {
    padding: var(--section-padding);
    background: var(--dark-bg-2);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.staff-card {
    background: var(--dark-bg);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.staff-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.staff-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    padding: 5px;
    background: var(--dark-bg-2);
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.staff-card h3 {
    font-family: var(--font-elegant);
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.staff-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.staff-social {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.staff-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg-2);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.staff-social a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* ===================================
   GALERÍA
   =================================== */
.galeria {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 300px;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    background: linear-gradient(135deg, var(--dark-bg-2), var(--secondary-color));
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 175, 55, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.galeria-overlay i {
    font-size: 3rem;
    color: var(--dark-bg);
}

.galeria-item:hover img {
    transform: scale(1.1);
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

/* ===================================
   CONTACTO/REDES
   =================================== */
.contacto {
    padding: var(--section-padding);
    background: var(--dark-bg-2);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.social-card {
    background: var(--dark-bg);
    padding: 50px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.social-card i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.social-card h3 {
    font-family: var(--font-elegant);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.social-card p {
    color: rgba(245, 245, 220, 0.7);
}

.social-card.discord {
    border-color: #5865F2;
}

.social-card.discord i {
    color: #5865F2;
}

.social-card.discord:hover {
    background: #5865F2;
    transform: translateY(-10px);
}

.social-card.discord:hover i,
.social-card.discord:hover h3,
.social-card.discord:hover p {
    color: white;
}

.social-card.twitter {
    border-color: #1DA1F2;
}

.social-card.twitter i {
    color: #1DA1F2;
}

.social-card.twitter:hover {
    background: #1DA1F2;
    transform: translateY(-10px);
}

.social-card.twitter:hover i,
.social-card.twitter:hover h3,
.social-card.twitter:hover p {
    color: white;
}

.social-card.youtube {
    border-color: #FF0000;
}

.social-card.youtube i {
    color: #FF0000;
}

.social-card.youtube:hover {
    background: #FF0000;
    transform: translateY(-10px);
}

.social-card.youtube:hover i,
.social-card.youtube:hover h3,
.social-card.youtube:hover p {
    color: white;
}

.social-card.tiktok {
    border-color: #00f2ea;
}

.social-card.tiktok i {
    color: #00f2ea;
}

.social-card.tiktok:hover {
    background: #00f2ea;
    transform: translateY(-10px);
}

.social-card.tiktok:hover i,
.social-card.tiktok:hover h3,
.social-card.tiktok:hover p {
    color: var(--dark-bg);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--dark-bg);
    padding: 60px 0 20px;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-elegant);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(245, 245, 220, 0.8);
    line-height: 1.8;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(245, 245, 220, 0.7);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-bottom p {
    color: rgba(245, 245, 220, 0.6);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.disclaimer {
    font-size: 0.8rem !important;
    font-style: italic;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--dark-bg);
        flex-direction: column;
        padding: 40px 0;
        gap: 20px;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .sobre-content {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .features-grid,
    .reglas-grid,
    .pasos-grid,
    .staff-grid,
    .galeria-grid,
    .social-links {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   UTILIDADES
   =================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
