* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #08080a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
}

/* Fondo con efecto oscuro */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/fondo.jpg'); /* <-- Cambia esto por tu ruta e imagen local */
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(11,11,15,0.85) 0%, rgba(5,5,8,0.95) 100%);
    z-index: -1;
}

/* --- BARRA DE NAVEGACIÓN SUPERIOR --- */
.navbar {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 8, 10, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.6);
}

.nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-discord { background-color: #5865F2; color: #fff; }
.btn-discord:hover { background-color: #4752c4; }

.btn-store { background-color: #2b2b36; color: #fff; border: 1px solid #3f3f46; }
.btn-store:hover { background-color: #3f3f46; }

.btn-connect { background-color: #9d4edd; color: #fff; }
.btn-connect:hover { background-color: #7b2cbf; }

/* --- CONTENEDOR PRINCIPAL HOME --- */
.container {
    max-width: 800px;
    margin: auto;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container { margin-bottom: 20px; }
.logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.4));
}

.title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.title span { color: #9d4edd; text-shadow: 0 0 20px rgba(157, 78, 221, 0.5); }

.subtitle {
    font-size: 1rem;
    color: #a1a1aa;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 35px;
}

.action-buttons { display: flex; justify-content: center; }

.btn-main-connect {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    background-color: #9d4edd;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(157, 78, 221, 0.4);
    transition: all 0.3s ease;
}
.btn-main-connect:hover {
    background-color: #7b2cbf;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(157, 78, 221, 0.6);
}

/* --- ESTILOS DE PÁGINAS INTERNAS (TIENDA) --- */
.container-page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
    flex-grow: 1;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.page-title span { color: #9d4edd; }

.page-subtitle {
    color: #a1a1aa;
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
}

.store-card {
    background: rgba(18, 18, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.store-card:hover {
    transform: translateY(-5px);
    border-color: rgba(157, 78, 221, 0.5);
}

.store-card.featured {
    border-color: #9d4edd;
    background: rgba(25, 20, 35, 0.9);
}

.badge {
    position: absolute;
    top: -12px;
    background: #9d4edd;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.card-icon {
    font-size: 2.5rem;
    color: #9d4edd;
    margin-bottom: 15px;
}

.store-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}

.features {
    list-style: none;
    margin-bottom: 25px;
    color: #a1a1aa;
    font-size: 0.9rem;
    text-align: left;
    width: 100%;
    padding-left: 20px;
}

.features li {
    margin-bottom: 8px;
    position: relative;
}

.features li::before {
    content: "✔";
    color: #9d4edd;
    position: absolute;
    left: -20px;
}

.btn-buy {
    width: 100%;
    padding: 12px;
    background: #9d4edd;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: background 0.2s ease;
}
.btn-buy:hover { background: #7b2cbf; }

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #52525b;
}

/* Responsivo */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .nav-left, .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* --- ESTILOS ESPECÍFICOS PARA LA PÁGINA DE NORMATIVA --- */

/* Contenedor principal de la normativa */
.normativa-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

/* Cuadrícula del Índice Superior */
.index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

.index-card {
    background: rgba(18, 18, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.25s ease;
}

.index-card:hover {
    border-color: rgba(157, 78, 221, 0.6);
    transform: translateY(-3px);
    background: rgba(25, 20, 35, 0.9);
}

.index-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: #9d4edd;
    letter-spacing: 1px;
}

.index-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.index-card p {
    font-size: 0.85rem;
    color: #a1a1aa;
}

/* Secciones de Normas Detalladas */
.rules-sections-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.rule-section-block {
    background: rgba(14, 14, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.rule-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.rule-section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.rule-section-header h2 span {
    color: #9d4edd;
}

.rule-count {
    background: rgba(157, 78, 221, 0.15);
    color: #9d4edd;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(157, 78, 221, 0.3);
}

.rule-section-desc {
    font-size: 0.95rem;
    color: #a1a1aa;
    margin-bottom: 25px;
    font-style: italic;
}

/* Lista interna de cada regla */
.rule-item-box {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rule-item-box:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rule-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-item-title span {
    color: #9d4edd;
    font-size: 0.95rem;
}

.rule-item-box p {
    color: #c7c7cf;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Cajas de notas, advertencias o ejemplos dentro de las reglas */
.rule-note {
    background: rgba(157, 78, 221, 0.08);
    border-left: 3px solid #9d4edd;
    padding: 10px 15px;
    border-radius: 0 6px 6px 0;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #e2e2e7;
}

.rule-alert {
    background: rgba(220, 38, 38, 0.1);
    border-left: 3px solid #dc2626;
    padding: 10px 15px;
    border-radius: 0 6px 6px 0;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #fca5a5;
}

/* --- BARRA DE PESTAÑAS / FILTROS DE NORMATIVA --- */
.normativa-tabs-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.norm-tab-btn {
    background: rgba(18, 18, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.norm-tab-btn i {
    color: #9d4edd;
}

.norm-tab-btn:hover {
    border-color: rgba(157, 78, 221, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

.norm-tab-btn.active {
    background: #9d4edd;
    border-color: #9d4edd;
    color: #fff;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
}

.norm-tab-btn.active i {
    color: #fff;
}

/* --- ESTILOS DEL DESPLEGABLE DEL CARRITO --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: #141419;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-drawer-header h3 {
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-cart-btn:hover {
    color: #fff;
}

.cart-drawer-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-drawer-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #101014;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

#cart-total-price {
    color: #4ade80;
    font-size: 1.3rem;
}

/* Estilo para las filas de productos dentro del carrito (cuando añadas artículos) */
.cart-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-row img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-price {
    color: #4ade80;
    font-weight: 600;
    font-size: 0.9rem;
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: #f87171;
    cursor: pointer;
    padding: 6px;
    transition: opacity 0.2s;
}

.remove-item-btn:hover {
    opacity: 0.8;
}