* { box-sizing: border-box; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
html { color-scheme: dark; }
body {
    margin: 0;
    background: radial-gradient(ellipse at top right, rgba(137, 245, 0, 0.06), transparent 40%),
                radial-gradient(ellipse at bottom left, rgba(137, 245, 0, 0.04), transparent 40%),
                #070508;
    color: #f4f3f7;
    font-size: 15px;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(137, 245, 0, 0.03) 0%, transparent 60%);
    pointer-events: none;
    animation: rotateGlow 30s linear infinite;
}

@keyframes rotateGlow { from { transform: translate(0, 0); } to { transform: translate(-50px, -50px); } }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #070508; }
::-webkit-scrollbar-thumb { background: #3a3848; border-radius: 6px; border: 2px solid #070508; }
::-webkit-scrollbar-thumb:hover { background: #4b495c; }

.banner-actualizacion {
    display: none;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #89f500 0%, #7ac700 100%);
    box-shadow: 0 4px 20px rgba(137, 245, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
    color: #0a0a06;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.banner-actualizacion.visible { display: flex; }
.banner-actualizacion button {
    background: white; color: #070508; border: none; border-radius: 20px; padding: 7px 16px; font-weight: bold; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-actualizacion button:hover { background: #f0fff4; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }

.layout { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: #1a1922; border-right: 2px solid #2b2936; display: flex; flex-direction: column; padding: 20px 0; }

.perfil { text-align: center; padding-bottom: 16px; border-bottom: 2px solid #2b2936; }
.avatar-wrap { position: relative; display: inline-block; line-height: 0; font-size: 0; }
.avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; display: block; }

.disposicion { position: absolute; bottom: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; }
.disposicion.libre { background: #89f500; }
.disposicion.ocupado { background: #ED4245; }

.nombre { font-weight: bold; margin-top: 8px; }
.discord-id { font-size: 12px; color: #9d9aa8; }

.menu { display: flex; flex-direction: column; margin-top: 16px; flex: 1; }
.menu-item { position: relative; overflow: hidden; padding: 14px 20px; color: #f4f3f7; text-decoration: none; border-bottom: 1px solid #2b2936; }

.menu-item::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(137, 245, 0, 0.1), transparent); transition: left 0.6s ease;
}

.menu-item:hover::before { left: 100%; }
.menu-item.activo { background: linear-gradient(90deg, #23212e 0%, rgba(137, 245, 0, 0.1) 50%, #23212e 100%); border-left: 3px solid #89f500; padding-left: 23px !important; }

.cerrar-sesion { padding: 14px 20px; color: #ED4245; text-decoration: none; border-top: 2px solid #2b2936; }
.desinstalar-app { border-top: none; padding-top: 4px; font-size: 13px; opacity: 0.75; }

.contenido { flex: 1; padding: 30px 40px; }
.seccion-titulo { color: #89f500; font-size: 17px; font-weight: 700; margin: 30px 0 16px 0; padding-bottom: 10px; border-bottom: 2px solid transparent; background: linear-gradient(90deg, #89f500 0%, rgba(137, 245, 0, 0.3) 50%, #89f500 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 3s ease-in-out infinite; display: flex; align-items: center; gap: 10px; }

@keyframes shimmer { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }
.card {
    background: linear-gradient(145deg, #1a1922 0%, #23212e 100%); border-radius: 16px; padding: 20px 24px; margin-bottom: 16px; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(137, 245, 0, 0.08); animation: fadeInUp 0.4s ease-out both;
}

.card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(137, 245, 0, 0.06), transparent); transition: left 0.6s ease; }
.card:hover::before { left: 100%; }
.card { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(137, 245, 0, 0.1) inset; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(137, 245, 0, 0.2) inset; border-color: rgba(137, 245, 0, 0.18); }

.staff-card, .proyecto-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.staff-card:hover, .proyecto-card:hover, .anuncio:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(137, 245, 0, 0.15); }

.grid-proyectos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.grid-trabajos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 14px; }
.grid-trabajos .trabajo-card { margin-bottom: 0; }

.proyecto-card { border-radius: 14px; padding: 16px; color: #1a1a1a; }
.proyecto-header { display: flex; justify-content: space-between; align-items: center; }
.titulo-canal { font-weight: bold; }
.proyecto-estado { margin-top: 8px; font-size: 14px; }

.buscar-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.buscar-categorias { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.categoria-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 24px; background: linear-gradient(145deg, #1a1922 0%, #23212e 100%); border: 2px solid rgba(137, 245, 0, 0.15); color: #d6d4dd; text-decoration: none; font-size: 14px; white-space: nowrap; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.categoria-pill:hover { background: linear-gradient(145deg, #23212e 0%, #2a2936 100%); border-color: rgba(137, 245, 0, 0.3); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(137, 245, 0, 0.1); }
.categoria-pill.activa { background: linear-gradient(135deg, #89f500 0%, #7ac700 100%); border-color: #89f500; color: #0a0a06; font-weight: bold; box-shadow: 0 4px 16px rgba(137, 245, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); animation: pillPulse 2s ease-in-out infinite; }

@keyframes pillPulse { 0%, 100% { box-shadow: 0 4px 16px rgba(137, 245, 0, 0.4); } 50% { box-shadow: 0 4px 24px rgba(137, 245, 0, 0.6); } }

.buscar-form { flex: 1; min-width: 280px; max-width: 600px; }
.buscar-input-wrap { position: relative; width: 100%; max-width: 480px; }
.buscar-input-wrap input {
    width: 100%; padding: 14px 52px 14px 16px; border-radius: 28px; border: 2px solid #3a3848; background: linear-gradient(145deg, #0e0d13 0%, #16151c 100%); color: white; font-size: 15px; box-sizing: border-box; transition: all 0.2s ease;
}

.buscar-input-wrap input:focus { border-color: #89f500; outline: none; }
.buscar-enviar { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: none; background: linear-gradient(135deg, #89f500 0%, #7ac700 100%); color: #0a0a06; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; }

.resultado-usuario { display: flex; align-items: flex-start; gap: 14px; }
.card { white-space: pre-line; }
.card p { white-space: pre-line; margin: 6px 0 0 0; line-height: 1.6; }

.form-anuncio, .form-crear-staff, .form-codigo { display: flex; flex-direction: column; gap: 10px; max-width: 400px; margin-bottom: 20px; }
.form-anuncio input, .form-anuncio textarea, .form-crear-staff input, .form-crear-staff select, .form-crear-staff textarea, .form-codigo input { padding: 10px; border-radius: 8px; border: 1px solid #3a3848; background: #0e0d13; color: white; }
.form-anuncio button:hover, .form-crear-staff button:hover, .form-codigo button:hover { background: #a6ff33; }

.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.staff-card { background: #1a1922; border: 1px solid #2b2936; border-radius: 14px; padding: 18px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.staff-grid a.staff-card { text-decoration: none; color: inherit; cursor: pointer; }
.staff-card .avatar-wrap { position: relative; }
.staff-card .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.staff-card .discord-id { margin-bottom: 4px; }

.btn-borrar { background: #ED4245; border: none; padding: 8px 16px; border-radius: 8px; color: white; cursor: pointer; flex-shrink: 0; margin-top: 6px; width: 100%; }

.fecha { font-size: 12px; color: #9d9aa8; }
.flash { background: #201f2b; border: 1px solid #2b2936; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }

.login-body { display: flex; align-items: center; justify-content: center; height: 100vh; background: radial-gradient(ellipse at top right, rgba(137, 245, 0, 0.08), transparent 40%), radial-gradient(ellipse at bottom left, rgba(137, 245, 0, 0.06), transparent 40%); }
.login-box { background: #1a1922; padding: 40px; border-radius: 16px; text-align: center; max-width: 340px; }

.login-logo { width: 96px; height: 96px; border-radius: 20px; display: block; margin: 0 auto 16px; }
.btn-discord { display: inline-block; margin-top: 16px; background: #89f500; color: #0a0a06; padding: 12px 20px; border-radius: 10px; text-decoration: none; }
.btn-discord:hover { background: #a6ff33; }

.plataformas-iconos { display: flex; justify-content: center; gap: 18px; margin: 14px 0 4px 0; }
.plataforma-icono { color: #89f500; opacity: 0.35; transition: opacity 0.15s ease, transform 0.15s ease; }
.plataforma-icono svg { width: 28px; height: 28px; display: block; }
.plataforma-icono.activa { opacity: 1; transform: scale(1.15); }

.select-oscuro { appearance: none; -webkit-appearance: none; background: #0e0d13; color: white; border: 1px solid #3a3848; border-radius: 10px; padding: 10px 36px 10px 14px; font-size: 14px; cursor: pointer; outline: none; transition: border-color 0.2s ease; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239fc9ae' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.select-oscuro:focus { border-color: #89f500; }
select option { background: #121117; color: white; }

.lista-etiquetas { list-style: none; margin: 8px 0 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lista-etiquetas li { display: inline-flex; align-items: center; gap: 6px; background: #201f2b; border-radius: 8px; padding: 4px 10px; font-size: 13px; color: #d6d4dd; width: fit-content; }

/* ============================================================================
   PÁGINA DE STATUS - ESTILOS PERSONALIZADOS
   ============================================================================ */

.status-resumen { text-align: center; padding: 30px 40px; margin-bottom: 24px; border-radius: 16px; font-size: 18px; font-weight: 700; }
.status-resumen.operativo { background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); color: #155724; border: 2px solid rgba(40, 167, 69, 0.3); box-shadow: 0 4px 16px rgba(40, 167, 69, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.status-resumen.menor { background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%); color: #856404; border: 2px solid rgba(255, 193, 7, 0.4); box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.status-resumen.mayor { background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); color: #721c24; border: 2px solid rgba(220, 53, 69, 0.4); box-shadow: 0 4px 16px rgba(220, 53, 69, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.status-resumen.critico { background: linear-gradient(135deg, #ef476f 0%, #d90429 100%); color: white; border: 2px solid rgba(255, 255, 255, 0.4); box-shadow: 0 8px 32px rgba(237, 66, 69, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); animation: pulseCritico 2s ease-in-out infinite; }
@keyframes pulseCritico { 0%, 100% { box-shadow: 0 8px 32px rgba(237, 66, 69, 0.5); } 50% { box-shadow: 0 8px 48px rgba(237, 66, 69, 0.8); } }

.incidencias-lista { display: flex; flex-direction: column; gap: 12px; }
.incidencia-card { background: linear-gradient(145deg, #1a1922 0%, #23212e 100%); border-radius: 14px; padding: 18px 20px; border-left: 4px solid #6c757d; animation: fadeInUp 0.4s ease-out both; }
.incidencia-card.menor { border-left-color: #ffc107; }
.incidencia-card.mayor { border-left-color: #fd7e14; }
.incidencia-card.critico { border-left-color: #dc3545; box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3); }
.incidencia-card.resuelta { opacity: 0.7; border-left-color: #28a745 !important; background: linear-gradient(145deg, #1a1922 0%, rgba(40, 167, 69, 0.1) 100%); }

.incidencia-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.badge-estado { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.badge-estado.investigando { background: rgba(137, 245, 0, 0.15); color: #89f500; border: 1px solid rgba(137, 245, 0, 0.4); }
.badge-estado.identificado { background: rgba(255, 193, 7, 0.15); color: #ffc107; border: 1px solid rgba(255, 193, 7, 0.4); }
.badge-estado.sin_rellenar { background: rgba(108, 117, 125, 0.2); color: #6c757d; border: 1px solid rgba(108, 117, 125, 0.4); }
.badge-estado.aprobada, .badge-estado.solucionado { background: rgba(40, 167, 69, 0.2); color: #28a745; border: 1px solid rgba(40, 167, 69, 0.4); }

.incidencia-meta { font-size: 13px; color: #9d9aa8; margin-bottom: 8px; }
.btn-recurso { background: linear-gradient(135deg, #89f500 0%, #7ac700 100%); color: #0a0a06; border: none; padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.btn-recurso:hover { background: linear-gradient(135deg, #9aff46 0%, #8ad70a 100%); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(137, 245, 0, 0.3); }
.btn-contrato { background: linear-gradient(135deg, #89f500 0%, #7ac700 100%); color: #0a0a06; border: none; padding: 12px 24px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 12px rgba(137, 245, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-contrato:hover { background: linear-gradient(135deg, #9aff46 0%, #8ad70a 100%); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(137, 245, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

/* ============================================================================
   ANIMACIONES ADICIONALES Y EFECTOS ESPECIALES
   ============================================================================ */

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.card, .staff-card, .proyecto-card, .anuncio { animation: fadeInUp 0.4s ease-out both; }

.avatar-wrap::after { content: ''; position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px; background: linear-gradient(135deg, rgba(137, 245, 0, 0.3), transparent); border-radius: 50%; z-index: -1; opacity: 0; transition: opacity 0.3s ease; }
.avatar-wrap:hover::after { opacity: 1; }

.glass-panel { background: rgba(26, 25, 34, 0.7); backdrop-filter: blur(12px) saturate(180%); border: 1px solid rgba(137, 245, 0, 0.15); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05); }

a:hover { text-decoration: underline; text-decoration-color: rgba(137, 245, 0, 0.5); text-underline-offset: 3px; }
a:hover.menu-item, a:hover.categoria-pill { text-decoration: none !important; }
