*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body.gd-body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #1b2735 0, #050608 55%, #020308 100%);
    color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
}

/* Contenedor centrado */
.gd-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.gd-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(5, 7, 12, 0.96), rgba(5, 7, 12, 0.85));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gd-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    gap: 16px;
}

.gd-header-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.gd-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00ff88, #00b894);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #050608;
    font-size: 18px;
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.5);
}

.gd-logo-text {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 14px;
    color: #f5f5f5;
}

.gd-logo-text span {
    color: #ffcc33;
}

/* Sponsor principal header */
.gd-header-main-sponsor {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.gd-sponsor-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
}

.gd-sponsor-badge {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 204, 51, 0.7);
    background: radial-gradient(circle at top left, rgba(255, 204, 51, 0.18), rgba(5, 7, 12, 0.9));
    color: #ffdd66;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Usuario */
.gd-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gd-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.gd-user-name {
    font-size: 13px;
    font-weight: 500;
}

.gd-user-role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #00ff88;
}

/* Botones */
.gd-btn-outline {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 6px 14px;
    font-size: 12px;
    text-decoration: none;
    color: #f5f5f5;
    background: transparent;
    transition: all 0.2s ease;
}

.gd-btn-outline:hover {
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

.gd-btn-primary {
    border-radius: 999px;
    border: none;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #050608;
    background: linear-gradient(135deg, #00ff88, #00b894);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gd-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(0, 255, 136, 0.7);
}

.gd-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

/* Nav */
.gd-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(5, 7, 12, 0.96);
}

.gd-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 0;
    overflow-x: auto;
}

.gd-nav-link {
    font-size: 13px;
    text-decoration: none;
    color: rgba(245, 245, 245, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.gd-nav-link:hover {
    color: #ffffff;
    border-color: #00ff88;
}

.gd-nav-link-admin {
    color: #ff4d4d;
}

.gd-nav-divider {
    width: 1px;
    height: 18px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* Main */
.gd-main {
    padding: 18px 0 80px;
}

/* Footer */
.gd-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), rgba(5, 7, 12, 0.98));
    padding: 28px 0 18px;
    margin-top: 32px;
}

.gd-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.gd-footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.gd-footer-text {
    font-size: 13px;
    color: rgba(245, 245, 245, 0.7);
    line-height: 1.5;
}

.gd-footer-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 10px;
}

.gd-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gd-footer-links a {
    font-size: 13px;
    color: rgba(245, 245, 245, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gd-footer-links a:hover {
    color: #00ff88;
}

.gd-footer-sponsors {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gd-footer-sponsor-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 204, 51, 0.6);
    color: #ffdd66;
    background: rgba(5, 7, 12, 0.7);
}

.gd-footer-bottom {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(245, 245, 245, 0.6);
}

.gd-footer-meta {
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

/* Publicidad móvil fija inferior */
.gd-mobile-ad {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    pointer-events: none;
}

.gd-mobile-ad-inner {
    max-width: 480px;
    margin: 0 auto 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, rgba(255, 204, 51, 0.22), rgba(5, 7, 12, 0.96));
    border: 1px solid rgba(255, 204, 51, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    pointer-events: auto;
}

.gd-mobile-ad-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(245, 245, 245, 0.7);
}

.gd-mobile-ad-text {
    font-size: 11px;
    color: #ffdd66;
}

/* Responsivo */
@media (max-width: 900px) {
    .gd-header-top {
        padding: 8px 12px;
    }

    .gd-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gd-header-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .gd-header-main-sponsor {
        display: none;
    }

    .gd-footer-grid {
        grid-template-columns: 1fr;
    }

    .gd-footer-bottom {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
}
