:root {
    --zcash-gold: #F4B728;
    --zcash-dark: #1A1A1A;
    --bg-darker: #121212;
    --bg-card: #252525;
    --text-main: #E0E0E0;
    --text-muted: #A0A0A0;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--zcash-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--bg-darker);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--zcash-gold);
}

.logo { display: flex; align-items: center; font-size: 1.2rem; }
.logo img { height: 30px; margin-right: 10px; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-main); transition: 0.3s; }
.nav-links a:hover { color: var(--zcash-gold); }
.btn-nav { background: var(--zcash-gold); color: #000 !important; padding: 5px 15px; border-radius: 5px; font-weight: bold; }

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/zcash-bg.jpg'); /* Opcional fondo */
    background-size: cover;
}
.hero h1 { font-size: 2.5rem; color: var(--zcash-gold); margin-bottom: 1rem; }
.btn-primary {
    display: inline-block;
    background: var(--zcash-gold);
    color: #000;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
}

/* Layout General */
.container { max-width: 1000px; margin: 0 auto; padding: 60px 20px; }
.section h2 { text-align: center; margin-bottom: 10px; color: var(--zcash-gold); }
.description { text-align: center; margin-bottom: 40px; color: var(--text-muted); }
.bg-darker { background-color: var(--bg-darker); }

/* Cartas y Inputs */
.node-card, .wallet-card, .donation-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: center;
}

.input-group { margin: 20px 0; }
.copy-box {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

input, textarea {
    flex: 1;
    padding: 10px;
    background: #000;
    border: 1px solid #444;
    color: var(--zcash-gold);
    border-radius: 5px;
    font-family: monospace;
}
textarea { height: 80px; resize: none; font-size: 0.9rem; }

button {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}
button:hover { background: var(--zcash-gold); color: #000; border-color: var(--zcash-gold); }

/* Billeteras Grid */
.wallets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.wallet-icon { width: 60px; margin-bottom: 15px; }
.store-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.store-buttons a {
    text-decoration: none;
    color: var(--zcash-gold);
    border: 1px solid var(--zcash-gold);
    padding: 8px;
    border-radius: 5px;
    font-size: 0.9rem;
}
.store-buttons a:hover { background: rgba(244, 183, 40, 0.1); }

/* Links lista */
.links-list { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; align-items: center;}
.link-item { color: #fff; text-decoration: none; font-size: 1.1rem; }
.link-item:hover { color: var(--zcash-gold); }

/* Footer */
footer { text-align: center; padding: 20px; border-top: 1px solid #333; font-size: 0.8rem; color: #666; }

/* Responsive */
@media (max-width: 600px) {
    .nav-links { display: none; } /* Podrías añadir un menú hamburguesa aquí */
    .copy-box { flex-direction: column; }
    h1 { font-size: 1.8rem; }
}

/* Estilos para los botones de las tiendas */
.store-buttons { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    margin-top: 20px; 
}

.store-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espacio entre icono y texto */
    text-decoration: none;
    color: var(--zcash-gold);
    border: 1px solid var(--zcash-gold);
    padding: 10px;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.store-buttons a:hover { 
    background: rgba(244, 183, 40, 0.1); 
    transform: translateY(-2px); /* Pequeño efecto de elevación */
}

/* Estilo específico para el botón de GitHub/Repositorio */
.repo-btn {
    color: #fff !important; /* Texto blanco */
    border-color: #555 !important; /* Borde gris oscuro */
    background-color: rgba(255, 255, 255, 0.05);
}

.repo-btn:hover {
    background-color: #333 !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* Ajuste para iconos dentro de los botones */
.store-buttons i {
    font-size: 1.1rem;
}


/* Estilos para los botones de las tiendas */
.store-buttons { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    margin-top: 20px; 
}

.store-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espacio entre icono y texto */
    text-decoration: none;
    color: var(--zcash-gold);
    border: 1px solid var(--zcash-gold);
    padding: 10px;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.store-buttons a:hover { 
    background: rgba(244, 183, 40, 0.1); 
    transform: translateY(-2px); /* Pequeño efecto de elevación */
}

/* Estilo específico para el botón de GitHub/Repositorio */
.repo-btn {
    color: #fff !important; /* Texto blanco */
    border-color: #555 !important; /* Borde gris oscuro */
    background-color: rgba(255, 255, 255, 0.05);
}

.repo-btn:hover {
    background-color: #333 !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* Ajuste para iconos dentro de los botones */
.store-buttons i {
    font-size: 1.1rem;
}


/* --- Estilos para las Nuevas Secciones de Información (Zcash & Nodo) --- */

/* Grid General para 3 columnas */
.zcash-info-grid, .importance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    text-align: left;
}

.card-info, .card-importance {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-top: 3px solid var(--zcash-gold); /* Borde superior de acento */
    transition: transform 0.3s;
}

.card-info:hover, .card-importance:hover {
    transform: translateY(-5px);
}

.card-info h3, .card-importance h3 {
    color: var(--zcash-gold);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card-info i, .card-importance i {
    margin-right: 8px;
}

/* Enlaces de la sección Zcash (centrados) */
.links-zcash-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.btn-secondary-info {
    text-decoration: none;
    color: var(--zcash-gold);
    border: 1px solid var(--zcash-gold);
    padding: 10px 20px;
    border-radius: 20px;
    transition: 0.3s;
}

.btn-secondary-info:hover {
    background: var(--zcash-gold);
    color: #000;
}

/* Callout de la sección de Nodos */
.callout-node {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #333;
    border-radius: 8px;
    border-left: 5px solid var(--zcash-gold);
}

.callout-node p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Separador simple para secciones */
.separator {
    border: none;
    border-top: 1px solid #333;
    margin: 40px 5%;
}

/* Responsive adjustment (si es necesario) */
@media (max-width: 600px) {
    .zcash-info-grid, .importance-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Estilos para la Nueva Sección de Comunidad --- */

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.community-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s;
}

.community-card:hover {
    border-color: var(--zcash-gold);
    transform: translateY(-5px);
}

.community-card h3 {
    color: var(--zcash-gold);
    margin-bottom: 15px;
}

.btn-community {
    display: block;
    width: 80%;
    margin: 20px auto 10px;
    padding: 12px 20px;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

/* Colores específicos para Telegram y X */
.telegram-btn {
    background-color: #0088CC; /* Azul de Telegram */
}

.telegram-btn:hover {
    background-color: #006AA0;
}

.twitter-btn {
    background-color: #1DA1F2; /* Azul de X/Twitter */
}

.twitter-btn:hover {
    background-color: #0c85d0;
}

.handle-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Responsive para la rejilla de comunidad */
@media (max-width: 768px) {
    .community-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Estilos para el Dashboard de Métricas --- */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
    text-align: center;
}

.metric-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border-bottom: 4px solid var(--zcash-gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.metric-title {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.metric-value {
    display: block;
    color: var(--zcash-gold);
    font-size: 1.8rem;
    font-weight: bold;
}

.metric-card i {
    margin-right: 5px;
    color: var(--text-muted);
}

.data-source-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #666;
}

/* --- Estilos para el Selector de Idiomas --- */

/* Contenedor del selector para posicionamiento */
.lang-selector {
    display: flex;
    gap: 5px; /* Espacio entre los botones de idioma */
    margin-left: auto; /* Empuja el selector hacia la derecha si es necesario */
    margin-right: 15px; /* Espacio antes del botón de Donar */
}

.lang-option {
    text-decoration: none;
    color: var(--text-muted); /* Gris suave */
    font-size: 0.9rem;
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.lang-option:hover {
    color: var(--zcash-gold);
    border-color: #333;
}

/* Estilo para el idioma activo (seleccionado actualmente) */
.lang-option.active {
    color: var(--zcash-gold);
    border-color: var(--zcash-gold);
    font-weight: bold;
}

/* Ajuste Responsive (opcional, para mantener el selector en una línea) */
@media (max-width: 768px) {
    /* Mantiene los botones de idioma visibles en pantallas pequeñas */
    .navbar {
        display: flex;
        flex-wrap: wrap; /* Permite que los elementos se envuelvan si el espacio es limitado */
        justify-content: space-between;
    }
}

/* --- Estilos para la sección de Estado del Nodo --- */

.status-card {
    border-color: #555; /* Cambia el color del borde para distinguirlo de las métricas de mercado */
}

.status-card .status-data {
    font-size: 1.4rem; /* Menor que las métricas de mercado */
}

.metrics-grid .full-span {
    grid-column: 1 / -1; /* Hace que el último card (Uptime General) ocupe todo el ancho */
    border-bottom: 4px solid var(--zcash-gold);
}

.status-data {
    color: #fff; /* Color de texto blanco por defecto */
}
