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

/* BODY */
body {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    background:
        linear-gradient(rgba(8, 20, 36, 0.72), rgba(8, 20, 36, 0.84)),
        url("logo.png") center center / cover no-repeat fixed;
    color: #ffffff;
    position: relative;
}

/* OVERLAY */
.page-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.88), rgba(27, 38, 59, 0.84), rgba(65, 90, 119, 0.86));
    z-index: 0;
}

/* TOPBAR */
.topbar {
    position: relative;
    z-index: 2;
    width: min(1250px, 94%);
    margin: 0 auto;
    padding: 18px 0 6px;
}

/* LOGO ARRIBA */
.brand-mini {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 10px 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.top-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 10px;
    background: #ffffff;
    padding: 4px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.4px;
    color: #ffffff;
}

.brand-sub {
    font-size: 0.84rem;
    color: #d4e7ff;
}

/* CONTENEDOR */
.main-container {
    position: relative;
    z-index: 1;
    width: min(1250px, 94%);
    margin: 0 auto;
    padding: 14px 0 38px;
}

/* HERO */
.hero-panel {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    padding: 30px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.hero-content {
    max-width: 820px;
}

.mini-label {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(89, 179, 255, 0.18);
    border: 1px solid rgba(89, 179, 255, 0.35);
    color: #d8efff;
    font-size: 0.82rem;
    font-weight: bold;
    margin-bottom: 14px;
}

.hero-content h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 8px;
    color: #ffffff;
}

.hero-content h2 {
    font-size: 1.25rem;
    color: #cfe3ff;
    margin-bottom: 14px;
    font-weight: 600;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #ebf3ff;
    max-width: 760px;
}

/* PANEL MODULOS */
.modules-panel {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    padding: 28px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20);
}

.panel-header {
    margin-bottom: 22px;
}

.panel-header h3 {
    font-size: 1.55rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.panel-header p {
    color: #d8e5f6;
    line-height: 1.6;
}

/* GRID */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}

/* TARJETAS */
.module-card {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 118px;
    padding: 20px;
    border-radius: 20px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    transition: 0.22s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

/* ACTIVOS */
.module-active {
    background: rgba(27, 119, 255, 0.18);
    border: 1px solid rgba(98, 175, 255, 0.45);
}

/* ICONO */
.module-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.13);
    font-size: 1.5rem;
}

/* TEXTO */
.module-info h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.module-info p {
    font-size: 0.93rem;
    line-height: 1.55;
    color: #e7eef9;
}

/* BADGES */
.module-status {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: bold;
    white-space: nowrap;
}

.available {
    background: rgba(57, 201, 126, 0.18);
    color: #c8f8d6;
    border: 1px solid rgba(57, 201, 126, 0.30);
}

.soon {
    background: rgba(255, 193, 7, 0.16);
    color: #ffe8a6;
    border: 1px solid rgba(255, 193, 7, 0.28);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 22px 10px 6px;
    color: #d7e3f2;
    font-size: 0.92rem;
}

/* RESPONSIVE */
@media (max-width: 820px) {
    .hero-panel,
    .modules-panel {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .module-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .module-status {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .topbar,
    .main-container {
        width: 95%;
    }

    .top-logo {
        width: 40px;
        height: 40px;
    }
}