/* ==========================================================================
   NAZCALAND NETWORK - HOJA DE ESTILOS MAESTRA
   ========================================================================== */

/* --- Variables Principales --- */
:root {
    --bg-dark: #0a0f18;
    --nav-bg: rgba(10, 15, 24, 0.85);
    --primary-gold: #ffb300;
    --primary-orange: #ff9800;
    --primary-dark-orange: #e65100;
    --text-white: #ffffff;
    --text-gray: #a0a5b5;
    --card-bg: #111622;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

/* ==========================================================================
   1. BARRA DE NAVEGACIÓN Y FOOTER
   ========================================================================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 50px;
    background: transparent;
    transition: background 0.3s ease, padding 0.3s ease;
    z-index: 1000;
}

#navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-left { display: flex; align-items: center; gap: 35px; }
.logo { height: 42px; width: auto; cursor: pointer; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)); }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 30px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover { color: var(--primary-gold); }
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
}
.nav-links a.active:hover { background-color: rgba(255, 255, 255, 0.12); }

.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-selector { font-size: 13px; font-weight: 700; cursor: pointer; color: var(--text-white); }
#ip-btn {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#ip-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    box-shadow: 0 0 12px rgba(255, 179, 0, 0.3);
}

.site-footer { background-color: #06090e; padding: 40px 50px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-left { display: flex; align-items: center; gap: 25px; }
.footer-logo { height: 45px; filter: grayscale(0.3) opacity(0.8); transition: all 0.3s ease; }
.footer-logo:hover { filter: grayscale(0) opacity(1); }
.footer-text { color: var(--text-gray); font-size: 0.85rem; line-height: 1.5; }
.footer-text .disclaimer { font-size: 0.75rem; opacity: 0.6; margin-top: 5px; }
.footer-right { display: flex; gap: 12px; }
.social-icon { color: var(--text-gray); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; }
.social-icon:hover { color: var(--text-white); transform: translateY(-3px); }

/* ==========================================================================
   2. PÁGINA DE INICIO (HERO, NEWS MINIMAL Y DISCORD)
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('fondo.jpg') no-repeat center center/cover;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, #0a0f18 0%, rgba(10, 15, 24, 0.55) 25%, rgba(10, 15, 24, 0.2) 50%, rgba(10, 15, 24, 0.75) 80%, #0a0f18 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 850px; padding: 0 20px; }
.badge, .news-badge {
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 18px; border-radius: 20px; font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-gray);
    display: inline-block; margin-bottom: 25px;
}
.news-badge { background: rgba(255, 152, 0, 0.1); border: none; color: var(--primary-orange); padding: 4px 10px; border-radius: 8px; margin-bottom: 12px; letter-spacing: 0; }

.hero-title {
    font-size: 3.5rem; font-weight: 900; line-height: 1.25; margin-bottom: 18px;
    background: linear-gradient(to right, #ffffff 0%, #fff8e1 15%, #ffe082 30%, #ffca28 45%, #ffa726 65%, #fb8c00 82%, #e65100 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.7));
}
.hero-subtitle { font-size: 1.25rem; color: var(--text-gray); margin-bottom: 35px; font-weight: 500; }
.cta-btn {
    display: inline-block; background: linear-gradient(135deg, var(--primary-orange), var(--primary-dark-orange));
    color: var(--text-white); text-decoration: none; padding: 16px 45px; border-radius: 35px;
    font-weight: 800; font-size: 1.1rem; transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(230, 81, 0, 0.4);
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 152, 0, 0.6); }

/* SECCIÓN NOTICIAS INICIO */
.news-section { background-color: var(--bg-dark); padding: 90px 20px 30px 20px; text-align: center; position: relative; z-index: 1; }
.news-section h2 { font-size: 2.3rem; font-weight: 800; margin-bottom: 50px; }
.highlight { color: var(--primary-orange); }
.news-container { max-width: 1100px; margin: 0 auto; display: flex; gap: 25px; justify-content: center; flex-wrap: wrap; }
.news-card {
    background-color: var(--card-bg); border-radius: 16px; text-align: left; padding: 30px;
    flex: 1; min-width: 300px; max-width: 500px; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease; text-decoration: none;
}
.news-card:hover { transform: translateY(-5px); border-color: rgba(255, 152, 0, 0.3); }
.news-card h3 { margin-bottom: 12px; font-size: 1.4rem; font-weight: 700; color: var(--text-white); }
.news-card p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.6; margin-bottom: 22px; }
.read-more { color: var(--primary-gold); text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: color 0.2s ease; }
.read-more:hover { color: var(--primary-orange); }

/* SECCIÓN DISCORD INICIO (PUENTE VISUAL) */
.discord-section {
    background: radial-gradient(ellipse at top, rgba(230, 81, 0, 0.15) 0%, transparent 50%), radial-gradient(ellipse at bottom, rgba(125, 196, 255, 0.05) 0%, transparent 50%), var(--bg-dark);
    padding: 10px 20px 100px 20px; display: flex; justify-content: center; position: relative;
}
.discord-section::before {
    content: ''; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0 L60 20 L80 15 L70 35 L90 40 L75 55 L90 70 L70 75 L80 95 L60 90 L50 110 L40 90 L20 95 L30 75 L10 70 L25 55 L10 40 L30 35 L20 15 L40 20 Z' fill='%23e65100' opacity='0.3'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat; background-position: center;
    filter: blur(10px) drop-shadow(0 0 15px rgba(245, 179, 0, 0.4)); z-index: 0;
}
.discord-container {
    max-width: 1000px; width: 100%; background-color: var(--card-bg); border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05); display: flex; align-items: center; padding: 30px; gap: 30px;
    position: relative; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 80px rgba(125, 196, 255, 0.03); z-index: 1;
}
.discord-image { flex: 1; z-index: 2; }
.discord-image img { width: 100%; height: 100%; max-height: 250px; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
.discord-vertical-divider { width: 2px; height: 180px; background: linear-gradient(to bottom, transparent, rgba(125, 196, 255, 0.2), transparent); border-radius: 2px; margin: 0 10px; }
.discord-content { flex: 1.2; text-align: right; z-index: 2; }
.discord-content h2 {
    font-size: 2.2rem; font-weight: 800; margin-bottom: 5px;
    background: linear-gradient(to right, #ffffff 10%, #7dc4ff 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; display: inline-block;
}
.discord-content h3 { font-size: 1.05rem; color: var(--text-white); font-weight: 600; margin-bottom: 15px; }
.discord-content .divider { height: 3px; width: 80px; background: linear-gradient(to left, #7dc4ff, transparent); margin-left: auto; margin-bottom: 20px; border-radius: 2px; }
.discord-content p { color: var(--text-gray); font-size: 0.9rem; line-height: 1.6; margin-bottom: 30px; }
.discord-btn {
    display: inline-block; background: linear-gradient(135deg, #a0d4ff, #62b1ff); color: #ffffff; text-decoration: none;
    padding: 12px 35px; border-radius: 30px; font-weight: 800; font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 4px 15px rgba(98, 177, 255, 0.3);
}
.discord-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(98, 177, 255, 0.5); }


/* ==========================================================================
   3. PÁGINA PRINCIPAL DE NOTICIAS (HUB / GRID)
   ========================================================================== */
.news-page-container { max-width: 1200px; margin: 140px auto 100px auto; padding: 0 30px; text-align: center; }
.news-page-title {
    font-size: 3rem; font-weight: 900; line-height: 1.2; margin-bottom: 5px; text-transform: uppercase;
    background: linear-gradient(to right, #ffffff 0%, #fff8e1 15%, #ffe082 30%, #ffca28 45%, #ffa726 65%, #fb8c00 82%, #e65100 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.7));
}
.news-page-container .divider { height: 3px; width: 60px; background: linear-gradient(to right, transparent, #ffb300, transparent); margin: 0 auto 40px auto; border-radius: 2px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; text-align: left; }
.news-grid-card {
    background-color: var(--card-bg); border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.news-grid-card:hover { transform: translateY(-8px); border-color: rgba(255, 152, 0, 0.4); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); }
.news-card-image { width: 100%; height: 220px; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-grid-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-content { padding: 30px; display: flex; flex-direction: column; }
.news-card-date { font-size: 0.85rem; color: var(--text-gray); margin-bottom: 12px; font-weight: 600; }
.news-card-title { font-size: 1.4rem; font-weight: 800; color: var(--text-white); margin-bottom: 15px; line-height: 1.3; transition: color 0.3s ease; }
.news-grid-card:hover .news-card-title { color: var(--primary-orange); }
.news-card-excerpt { font-size: 0.95rem; color: var(--text-gray); line-height: 1.6; }

/* ==========================================================================
   4. DISEÑO DE ARTÍCULOS (BLOG)
   ========================================================================== */
.blog-header {
    position: relative; height: 45vh; min-height: 350px; display: flex; justify-content: center;
    align-items: center; text-align: center; background: url('fondo.jpg') no-repeat center center/cover;
}
.blog-header .hero-overlay { background: linear-gradient(to bottom, #0a0f18 0%, rgba(10, 15, 24, 0.6) 50%, var(--bg-dark) 100%); }
.blog-title {
    font-size: 2.8rem; font-weight: 900; margin-bottom: 10px;
    background: linear-gradient(to right, #ffffff, #ffca28); -webkit-background-clip: text;
    background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.8));
}
.blog-meta { color: var(--primary-gold); font-size: 0.95rem; font-weight: 600; letter-spacing: 1px; }
.blog-container {
    max-width: 850px; margin: -60px auto 80px auto; background-color: var(--card-bg);
    padding: 50px 60px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative; z-index: 10; box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.blog-content h3 { color: var(--primary-orange); font-size: 1.6rem; margin: 30px 0 15px 0; }
.blog-content p { color: var(--text-gray); font-size: 1.05rem; line-height: 1.8; margin-bottom: 20px; }
.blog-content ul { margin-bottom: 25px; padding-left: 20px; }
.blog-content li { color: var(--text-gray); font-size: 1.05rem; line-height: 1.8; margin-bottom: 10px; }
.blog-content li strong { color: var(--text-white); }

/* ==========================================================================
   5. VENTANA EMERGENTE (MODAL PARA JUGAR)
   ========================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; justify-content: center;
    align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background-color: var(--card-bg); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
    display: flex; width: 90%; max-width: 950px; min-height: 420px; overflow: hidden;
    transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-left { flex: 1.3; padding: 40px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.modal-left h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.modal-desc { color: var(--text-gray); font-size: 0.95rem; line-height: 1.5; margin-bottom: 35px; }
.modal-ip-section { margin-bottom: 25px; font-size: 0.95rem; color: var(--text-white); line-height: 2.2; }
.ip-pill {
    background-color: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); padding: 6px 14px;
    border-radius: 20px; font-family: 'Courier New', Courier, monospace; font-size: 0.95rem; font-weight: bold;
    margin: 0 5px; cursor: pointer; transition: all 0.2s ease; display: inline-block;
}
.ip-pill:hover { background-color: rgba(255, 255, 255, 0.1); border-color: var(--primary-gold); color: var(--primary-gold); }
.modal-footer { margin-top: 20px; display: flex; justify-content: flex-end; }
.close-btn {
    background-color: rgba(255, 255, 255, 0.05); color: var(--text-white); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 28px; border-radius: 25px; font-weight: 600; cursor: pointer; transition: all 0.3s ease;
}
.close-btn:hover { background-color: rgba(255, 255, 255, 0.1); border-color: #ff4d4d; color: #ff4d4d; }
.modal-right { flex: 1; background-color: #05070a; }
.modal-right img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   6. AJUSTES RESPONSIVOS GLOBALES
   ========================================================================== */
@media (max-width: 900px) {
    .discord-container { flex-direction: column; }
    .discord-vertical-divider { display: none; }
    .discord-content { text-align: center; }
    .discord-content .divider { margin: 0 auto 20px auto; background: linear-gradient(to right, transparent, #7dc4ff, transparent); }
}
@media (max-width: 768px) {
    #navbar { padding: 15px 20px; }
    .nav-links { display: none; }
    .hero-title { font-size: 2.2rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-left { flex-direction: column; gap: 15px; }
    
    .news-page-container { margin-top: 100px; padding: 0 20px; }
    .news-page-title { font-size: 2.2rem; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card-image { height: 180px; }
    
    .blog-container { margin: -40px 20px 60px 20px; padding: 30px 25px; }
    .blog-title { font-size: 2rem; }
    
    .modal-content { flex-direction: column; }
    .modal-right { display: none; }
    .modal-left { padding: 30px 20px; }
}