/* ===== VENTANAS ESTILO MODERNO (DARK GLASS PREMIUM) ===== */
:root {
    --window-bg: rgba(18, 25, 35, 0.92);
    --window-header-bg: linear-gradient(180deg, rgba(16, 22, 32, 0.95), rgba(10, 15, 23, 0.9));
    --window-border: rgba(19, 177, 205, 0.25);
    --window-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    --accent-blue: #13b1cd;
    --accent-gold: #d4af37;
    --accent-gold-light: #ffe9a8;
    --text-primary: #F0F4FA;
    --text-secondary: #B0C4DE;
}

.window-modal {
    display: none;
    position: fixed;
    background: var(--window-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--window-shadow), 0 0 0 1px var(--window-border);
    overflow: hidden;
    z-index: 5000;
    flex-direction: column;
    min-width: 320px;
    min-height: 220px;
    resize: both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.25s ease, box-shadow 0.25s ease;
}

/* Filete superior degradado — detalle premium */
.window-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold), var(--accent-blue));
    background-size: 200% 100%;
    opacity: 0.85;
    z-index: 2;
    pointer-events: none;
}

.window-header {
    background: var(--window-header-bg);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    border-bottom: 1px solid var(--window-border);
    user-select: none;
    position: relative;
}
.window-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}
.window-controls {
    display: flex;
    gap: 10px;
}
.window-button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 12px;
}
.close-btn { background: #ff5f56; }
.minimize-btn { background: #ffbd2e; }
.maximize-btn { background: #27c93f; }
.reload-btn { background: #5e5e5e; color: white; }

/* Botón nuevo: Pantalla Completa (dorado premium, distinto del resto) */
.fullscreen-btn {
    background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
    color: #1a1406;
}
.fullscreen-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}
.fullscreen-btn.is-active {
    background: linear-gradient(135deg, var(--accent-blue), #0d7f93);
    color: #eafcff;
}

.window-button:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}
.window-content {
    flex-grow: 1;
    overflow: hidden;
    background: #0a0f14;
    position: relative;
}
.window-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== MODO PANTALLA COMPLETA NATIVA (sin ventana, sin chrome, borde cero) ===== */
.window-modal.native-fullscreen {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    transform: none !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    resize: none !important;
    background: #000 !important;
}
.window-modal.native-fullscreen::before,
.window-modal.native-fullscreen .swipe-indicator,
.window-modal.native-fullscreen .window-header {
    display: none !important;
}
.window-modal.native-fullscreen .window-content {
    background: #000;
}

/* Botón flotante para salir del modo pantalla completa (auto-oculto) */
.fs-exit-btn {
    display: none;
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 20;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: rgba(10, 14, 20, 0.55);
    backdrop-filter: blur(12px);
    color: var(--accent-gold-light);
    font-size: 15px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.fs-exit-btn:hover {
    background: rgba(212, 175, 55, 0.25);
    color: #fff;
}
.window-modal.native-fullscreen .fs-exit-btn {
    display: flex;
}
.window-modal.native-fullscreen.fs-show-controls .fs-exit-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: rgba(10, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(19,177,205,0.3);
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 4000;
}
.taskbar-item {
    background: rgba(25, 35, 50, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(19,177,205,0.3);
    padding: 6px 15px;
    margin-right: 8px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}
.taskbar-item:hover {
    border-color: rgba(212, 175, 55, 0.5);
}
.taskbar-item.active {
    background: rgba(19,177,205,0.3);
    border-color: #13b1cd;
    box-shadow: 0 0 8px rgba(19,177,205,0.35);
}

/* ===== CÍRCULO DE CARGA (SPINNER) OCULTO ===== */
.loading-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}
.spinner {
    display: none !important;
    border: 3px solid rgba(19,177,205,0.2);
    border-top: 3px solid #13b1cd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


.cge-logo-hero {
    width: 70%;          /* ← Aquí cambias el tamaño: 30%, 50%, 200px, etc. */
    max-width: 600px;    /* Límite máximo para que no se desborde en pantallas grandes */
    height: auto;        /* Mantiene la proporción */
    display: inline-block;
    filter: drop-shadow(0 0 40px rgba(19, 177, 205, 0.3));
    transition: all 0.4s ease;
}

.cge-logo-hero:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 50px rgba(19, 177, 205, 0.5));
}

