/* TOP HEADER ADMINISTRATIVO */
.admin-header {
    background-color: #2b75b2;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    position: sticky;
    top: 0;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    width: 40px;
}

.admin-header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Lobster Two', cursive;
    font-size: 24px;
    font-weight: 400;
}

.admin-header-logo img {
    height: 55px;
    width: auto;
}

.admin-header-nav {
    display: flex;
    align-items: center;
}

.view-site-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white !important;
    padding: 6px 15px !important;
    border-radius: 30px;
    margin-right: 15px !important;
    font-size: 14px !important;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-site-btn:hover {
    background: white !important;
    color: #2b75b2 !important;
    opacity: 1 !important;
}

.admin-header-nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-header-nav a:hover {
    opacity: 0.8;
}

.logout-link {
    background: #FF633C;
    padding: 8px 15px;
    border-radius: 4px;
}

/* MODO MANTENIMIENTO */
.maintenance-alert-bar {
    background: #d44638;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* BOTÓN OJO MANTENIMIENTO */
.maint-eye-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
    margin-right: 10px;
}

.maint-eye-btn i {
    font-size: 16px;
}

.maint-eye-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Estado Activo (En Mantenimiento) */
.maint-eye-btn.maint-active {
    background: #d44638;
    border-color: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.3);
}

.maint-eye-btn.maint-active:hover {
    background: #e53935;
}

/* RESPONSIVIDAD HEADER */
@media (max-width: 768px) {
    .admin-header {
        padding: 5px 10px;
        display: flex;
        justify-content: flex-start;
        /* Agrupar a la izquierda */
        gap: 10px;
        /* Espacio entre hamburguesa y logo */
    }

    .mobile-menu-btn {
        display: block;
        min-width: 35px;
        margin: 0;
    }

    .admin-header-logo {
        flex: 0 1 auto;
        /* No forzar crecimiento */
        display: flex;
        align-items: center;
        gap: 8px;
        overflow: hidden;
    }

    .admin-header-logo img {
        height: 30px;
    }

    .admin-header-logo span {
        font-size: 15px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 150px;
        font-family: 'Lato', sans-serif;
        /* Más legible en móvil */
        font-weight: bold;
    }

    .admin-header-nav {
        display: flex;
        gap: 5px;
        align-items: center;
        margin-left: auto;
        /* Empujar botones de acción a la derecha */
    }

    .admin-header-nav a.view-site-btn,
    .admin-header-nav .maint-eye-btn {
        display: flex !important;
        padding: 5px 8px !important;
        margin: 0 !important;
        border-radius: 8px;
        font-size: 16px !important;
    }

    .admin-header-nav a.view-site-btn span,
    .admin-header-nav .maint-eye-btn span {
        display: none !important;
    }

    .admin-header-nav a.logout-link {
        margin: 0;
        background: #FF633C;
        padding: 5px 8px;
        font-size: 16px;
        border-radius: 8px;
    }

    .admin-header-nav a.logout-link span {
        display: none;
    }

    /* Ocultar Dashboard/Configuración del header en móvil para dejar espacio */
    .admin-header-nav a:not(.view-site-btn):not(.logout-link) {
        display: none;
    }
}

@media (max-width: 480px) {
    .admin-header-logo span {
        font-size: 13px;
        /* Un poco más pequeño para que quepa */
        max-width: 100px;
    }

    .admin-header {
        gap: 5px;
        /* Menos espacio entre elementos */
    }
}