:root {
    --apple-bg: #f5f5f7;
    --apple-text: #1d1d1f;
    --apple-card: #ffffff;
    --accent: #0071e3; /* Azul Apple */
    --neon-dot: #32d74b; /* Verde estado */
}

body {
    background-color: var(--apple-bg);
    color: var(--apple-text);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}



/* Hero Section */
.hero {
    position: relative; height: 60vh; width: 100%;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
}

.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.hero-text {
    position: absolute; text-align: center; color: white;
}

.hero-text h1 { font-size: 4rem; font-weight: 600; margin: 0; letter-spacing: -2px; }

/* Botón IP Minimalista */
.ip-box {
    margin-top: 20px; background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px); padding: 12px 24px;
    border-radius: 30px; border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer; transition: 0.3s; display: inline-block;
}
.ip-box:hover { background: rgba(255,255,255,0.2); transform: scale(1.02); }
.copy-hint { display: block; font-size: 0.7rem; opacity: 0.6; margin-top: 4px; }

/* Contenedor */
.container { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }

/* Server Status Bar */
.server-bar {
    background: var(--apple-card); border-radius: 18px;
    padding: 20px; display: flex; justify-content: space-around;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); margin-top: -80px;
    position: relative; z-index: 10;
}

.dot { height: 10px; width: 10px; border-radius: 50%; display: inline-block; background: #ccc; margin-right: 8px; }

/* Noticia Card */
.section-title { font-size: 2rem; margin: 60px 0 30px; font-weight: 600; letter-spacing: -1px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.news-card {
    background: var(--apple-card); border-radius: 22px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: 0.4s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-content { padding: 24px; }
.news-content h3 { margin: 0 0 12px; font-size: 1.4rem; }
.news-content p { color: #6e6e73; font-size: 0.95rem; line-height: 1.5; }

/* Botón Leer Más */
.btn-more {
    display: inline-block; margin-top: 20px;
    background: var(--accent); color: white;
    padding: 8px 18px; border-radius: 20px;
    text-decoration: none; font-size: 0.85rem; font-weight: 500;
}

.article-page {
    background-color: #ffffff; /* Fondo blanco puro para lectura */
}

.article-container {
    max-width: 720px; /* Ancho ideal para lectura */
    margin: 0 auto;
    padding: 60px 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-tag {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-header h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -1.5px;
    margin: 10px 0;
    line-height: 1.1;
}

.article-meta {
    color: #86868b;
    font-size: 0.9rem;
}

.main-article-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #1d1d1f;
}

.intro {
    font-size: 1.4rem;
    font-weight: 500;
    color: #424245;
    margin-bottom: 30px;
}

.article-body h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.patch-notes {
    background: #f5f5f7;
    padding: 30px 40px;
    border-radius: 20px;
    list-style: none;
}

.patch-notes li {
    margin-bottom: 15px;
    position: relative;
}

.patch-notes li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.secondary-img {
    width: 100%;
    border-radius: 18px;
    margin: 40px 0;
}

.article-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e7;
    text-align: center;
}

.btn-back {
    text-decoration: none;
    color: var(--accent);
    font-weight: 500;
    transition: 0.3s;
}

.btn-back:hover {
    text-decoration: underline;
}

/* --- Estilos para Info Page --- */

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 40px 0;
}

.info-card {
    background: #f5f5f7;
    padding: 30px;
    border-radius: 22px;
    text-align: center;
    transition: 0.3s;
}

.info-card:hover {
    transform: scale(1.02);
    background: #f0f0f2;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.ip-display {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    font-family: monospace;
    color: var(--accent);
    margin-top: 15px;
    border: 1px solid #e5e5e7;
}

.contact-section {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 1px solid #e5e5e7;
    border-radius: 24px;
}

.email-protection-box {
    margin-top: 25px;
    padding: 20px;
    border-radius: 15px;
    background: #fafafa;
}

.email-link {
    font-size: 1.4rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    animation: fadeIn 0.5s ease-in;
}

.spam-notice {
    display: block;
    margin-top: 15px;
    color: #86868b;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .info-grid { grid-template-columns: 1fr; }
    
}
/* --- Estilos para la Página de Updates --- */

.updates-page {
    background-color: #f5f5f7;
}

.page-header {
    text-align: center;
    padding: 60px 0;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -2px;
    margin: 0;
}

.updates-list {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

/* Línea vertical de fondo */
.updates-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e5e7;
}

.update-entry {
    position: relative;
    margin-bottom: 50px;
}

.update-date {
    position: absolute;
    left: -85px;
    top: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
}

.update-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin-bottom: 20px;
}

.update-text {
    padding: 10px 20px;
}

/* Etiquetas de categoría */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #0071e3;
    color: white;
    margin-bottom: 10px;
}

.tag-fix { background: #32d74b; } /* Verde para arreglos */
.tag-maint { background: #ff9f0a; } /* Naranja para mantenimiento */

.update-content h2 {
    margin: 0 0 10px;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.update-content p {
    color: #424245;
    margin-bottom: 15px;
    font-size: 1rem;
}
blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin: 40px 0;
    font-style: italic;
    color: #424245;
    font-size: 1.2rem;
}
/*
.logo {
    width: 12%;
}


.logo2 {
    width: 8%;
}

/* Logo del Navbar */


/* Logo del Hero (el grande) */
.logo-hero {
    width: 20%;      /* En PC se ve bien a este tamaño */
    min-width: 220px; /* Evita que se haga minúsculo en tablets */
    max-width: 400px; /* Evita que se pixele en pantallas gigantes */
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); /* Sombra suave estilo Apple */
}

/* --- RESPONSIVE --- */

/* Tablets y Celulares grandes */
@media (max-width: 768px) {
    .logo-nav {
        width: 100px; /* Un poco más chico en el menú móvil */
    }
    .logo-hero {
        width: 50%; /* Ocupa más espacio relativo en la pantalla del celu */
    }
}

/* Celulares pequeños (iPhone SE, etc) */
@media (max-width: 480px) {
    .logo-hero {
        width: 70%; /* Casi todo el ancho para que luzca el nombre */
    }
}
*/
.rules-section {
    margin-top: 60px;
}

.rules-section h2 {
    color: var(--apple-text);
    border-bottom: 1px solid #e5e5e7;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 1.6rem;
}

/* Reutilizamos patch-notes para que las reglas se vean en cajas limpias */
.rules-section .patch-notes {
    background: #fafafa;
    border: 1px solid #f0f0f2;
}

.coming-soon-box {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 25px;
    border-left: 4px solid #0071e3; /* El azul clásico de Apple */
}

.coming-soon-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #1d1d1f;
}

.version-tag {
    background: #0071e3;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

:root {
    --apple-bg: rgba(255, 255, 255, 0.8);
    --apple-blur: blur(20px);
    --apple-text: #1d1d1f;
    --apple-link: #06c;
}

/* --- ESTRUCTURA PRINCIPAL --- */
body {
    margin: 0;
    padding-top: 60px; /* Evita que el contenido se meta debajo de la navbar */
    font-family: 'Inter', sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--apple-bg);
    backdrop-filter: var(--apple-blur);
    -webkit-backdrop-filter: var(--apple-blur); /* Soporte para Safari/iOS */
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 9999; /* Siempre arriba de todo */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- LOGO --- */
.logo-nav {
    height: 64px; /* Tamaño ideal estilo Apple */
    width: auto;
    display: block;
}

/* --- LINKS (PC) --- */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--apple-text);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--apple-link);
}

.staff-link {
    color: var(--apple-link) !important;
    font-weight: 600 !important;
}

/* --- MENU TOGGLE (Hamburguesa) --- */
.menu-toggle {
    display: none; /* Oculto en PC */
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background: var(--apple-text);
    transition: 0.3s;
}

/* --- RESPONSIVE (Celular) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Aparece en celular */
    }

    .nav-links {
        position: fixed;
        right: -100%; /* Escondido */
        top: 60px; /* Debajo de la navbar */
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        gap: 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9998;
    }

    .nav-links.active {
        right: 0; /* Desliza hacia adentro */
    }

    .nav-links li a {
        font-size: 24px; /* Más grande para tocar con el dedo */
        font-weight: 500;
    }

    /* Animación X */
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

.menu-overlay.active {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    z-index: 9997;
}

/* --- TABLAS DE COMANDOS --- */
.table-container {
    width: 100%;
    overflow-x: auto; /* Permite scroll lateral en celus chicos */
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid #e5e5e7;
}

.commands-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.commands-table th {
    background: #f5f5f7;
    text-align: left;
    padding: 15px;
    font-weight: 600;
    color: #1d1d1f;
    border-bottom: 1px solid #e5e5e7;
}

.commands-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f2;
    color: #424245;
}

.commands-table tr:last-child td {
    border-bottom: none;
}

.commands-table code {
    background: #f0f0f2;
    padding: 4px 8px;
    border-radius: 6px;
    color: #0071e3;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
}

/* Efecto hover en las filas */
.commands-table tr:hover td {
    background: #fafafa;
}

/* --- LOADER PRINCIPAL --- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Por encima de la navbar */
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-logo {
    height: 50px;
    width: auto;
    margin-top: 20px;
    opacity: 0.5;
    animation: pulse 2s infinite ease-in-out;
}

/* Spinner estilo Apple */
.apple-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0,0,0,0.05);
    border-top: 3px solid #0071e3; /* Azul Apple */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* --- EFECTO DE ENTRADA PARA LA WEB --- */
body {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

body.loaded {
    opacity: 1;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}