/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Cinzel:wght@700&display=swap');

:root {
    --primary-color: #1a1c23; /* Fondo oscuro */
    --secondary-color: #2c2f3a; /* Fondo cartas */
    --accent-color: #007bff; /* Azul Hytale */
    --gold-color: #ffc107; /* Dorado botones */
    --text-color: #f0f0f0;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding-top: var(--nav-height); /* Para que el menú fijo no tape contenido */
}

/* --- HEADER & NAV --- */
header {
    background-color: rgba(20, 22, 28, 0.95);
    height: var(--nav-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #3a3d4a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.logo-container img {
    height: 50px; /* Ajuste del logo texto */
    vertical-align: middle;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-family: 'Cinzel', serif; /* Fuente estilo fantasía */
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--gold-color);
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-btn {
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.lang-btn:hover, .lang-btn.active {
    filter: grayscale(0%);
}

/* --- MOBILE MENU ICON --- */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

/* --- HERO SECTION (SERVER) --- */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://cdn.hytale.com/5c488fbb1809020015509765_cover_1.jpg'); /* Fondo genérico Hytale */
    background-size: cover;
    background-position: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #000;
}

.ip-box {
    background: rgba(0,0,0,0.7);
    padding: 20px 40px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid var(--accent-color);
}

.server-ip {
    font-size: 2rem;
    font-family: monospace;
    color: var(--gold-color);
}

.btn-copy {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
}

.btn-copy:hover {
    background-color: #0056b3;
}

/* --- FEATURES GRID --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.feature-card p {
    padding: 15px;
    font-weight: bold;
}

/* --- DISCORD SECTION --- */
.discord-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.discord-btn {
    margin-top: 20px;
    background-color: #5865F2;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- MAP SECTION --- */
.map-container img {
    width: 100%;
    border-radius: 10px;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* --- STORE SECTION --- */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--secondary-color);
    border: 1px solid #444;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-logo {
    width: 80px;
    margin-bottom: 15px;
}

.price {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin: 10px 0;
}

.btn-donate {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    margin-top: auto;
}

/* Modal del producto */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8); 
}
.modal-content {
    background-color: var(--secondary-color);
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid var(--gold-color);
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    border-radius: 10px;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: rgba(20, 22, 28, 0.98);
        padding: 20px;
        text-align: center;
    }
    nav ul.show { display: flex; }
    .hero h1 { font-size: 2rem; }
    .ip-box { width: 90%; }
    .server-ip { font-size: 1.5rem; }
}