*{
    box-sizing:border-box;
}
html,body{
    height:100%;
    overflow-x:hidden;
}

.dashboard{
    display:flex;
    min-height:100vh;
    background:
        radial-gradient(circle at 20% 20%, #1e293b 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, #0ea5e9 0%, transparent 35%),
        #020617;
    color:#e6edf6;
    font-family: system-ui, -apple-system, sans-serif;
}

.container{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

.section{
    padding:80px 0;
}

.section-header{
    text-align:center;
    margin-bottom:50px;
}

.sidebar{
    width:270px;
    background:rgba(2,6,23,.65);
    backdrop-filter: blur(18px);
    padding:32px;
    position:sticky;
    top:0;
    border-right:1px solid rgba(255,255,255,.05);
    box-shadow:
        inset -1px 0 rgba(255,255,255,.03),
        10px 0 40px rgba(0,0,0,.35);
}

.sidebar h2{
    margin-bottom:35px;
    font-size:24px;
    font-weight:800;
    letter-spacing:.5px;
}

.sidebar-links a{
    display:block;
    width:100%;
    padding:14px;
    margin-bottom:12px;
    border-radius:14px;
    border:none;
    font-weight:600;
    cursor:pointer;
    text-decoration:none;
    transition:.25s;
    background:transparent;
    color:#cbd5e1;
}

.sidebar-links a:hover{
    background:#0f172a;
    transform:translateX(6px);
}

.sidebar-links .salir{
    margin-top:25px;
    background:rgba(127,29,29,.15);
}

.sidebar-links .salir:hover{
    background:#7f1d1d;
    color:white;
}

.menu-btn{
    display:block;
    width:100%;
    padding:14px;
    margin-bottom:12px;
    border-radius:14px;
    border:none;
    font-weight:600;
    cursor:pointer;
    text-decoration:none;
    transition:.25s;
    background:rgba(15,23,42,.55);
    border:1px solid rgba(148,163,184,.16);
    color:#cbd5e1;
}

.menu-btn.activo{
    background:linear-gradient(135deg,rgba(59,130,246,.2),rgba(14,165,233,.22));
    border-color:rgba(96,165,250,.45);
    color:#f8fafc;
    box-shadow:0 14px 28px rgba(14,165,233,.16);
}

.btn-aceptar,
.btn-finalizar{
    width:100%;
    padding:13px;
    border:none;
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
    margin-top:14px;
    transition:.25s;
}

.btn-aceptar{
    background:linear-gradient(135deg,#22c55e,#4ade80);
}

.btn-aceptar:hover{
    transform:translateY(-3px);
}

.btn-finalizar{
    background:linear-gradient(135deg,#3b82f6,#60a5fa);
}

.btn-finalizar:hover{
    transform:translateY(-3px);
}

.btn-aceptar:disabled,
.btn-finalizar:disabled{
    opacity:.7;
    cursor:wait;
    transform:none;
}

.contenido{
    flex:1;
    padding:50px;
    background:rgba(2,6,23,.35);
    backdrop-filter: blur(6px);
}

.panel-title{
    font-size:38px;
    font-weight:900;
    margin-bottom:35px;
    background:linear-gradient(90deg,#38bdf8,#60a5fa);
    background-clip:text;
    -webkit-background-clip:text;
    color:transparent;
    letter-spacing: -1px;
}

.trust {
    padding: 28px 20px;
    background: linear-gradient(
        180deg,
        rgba(15,23,42,.9),
        rgba(2,6,23,.95)
    );
    border-top: 1px solid rgba(148,163,184,.08);
    border-bottom: 1px solid rgba(148,163,184,.08);
}

.trust-items {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-items span {
    background: rgba(30,41,59,.6);
    border: 1px solid rgba(148,163,184,.15);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    color: #e2e8f0;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
    transition: all .2s ease;
}

.trust-items span:hover {
    transform: translateY(-3px);
    border: 1px solid rgba(59,130,246,.4);
    box-shadow: 0 12px 30px rgba(59,130,246,.25);
}

.grid-servicios{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:28px;
}

.panel-switcher{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:20px;
}

.servicios-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.card-servicio{
    background:rgba(15,23,42,.55);
    backdrop-filter: blur(16px);
    border-radius:24px;
    padding:26px;
    border:1px solid rgba(255,255,255,.05);
    transition:.35s;
    box-shadow:0 22px 45px rgba(2,6,23,.28);
}

.card-servicio:hover{
    transform:translateY(-10px) scale(1.01);
    box-shadow:0 30px 60px rgba(0,0,0,.6);
}

.card-servicio-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}

.servicio-titulo{
    margin:10px 0 0;
    font-size:1.15rem;
    line-height:1.35;
}

.solicitud-meta{
    display:grid;
    gap:8px;
    margin-bottom:12px;
    color:#cbd5e1;
}

.solicitud-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:10px;
}

.solicitud-tag{
    display:inline-flex;
    align-items:center;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(148,163,184,.12);
    border:1px solid rgba(148,163,184,.16);
    color:#e2e8f0;
    font-size:.78rem;
    font-weight:700;
}

.solicitud-tag-urgente{
    background:rgba(239,68,68,.16);
    border-color:rgba(248,113,113,.22);
    color:#fca5a5;
}

.panel-empty{
    margin:0;
    padding:22px;
    border-radius:16px;
    background:rgba(2,6,23,.45);
    border:1px dashed rgba(148,163,184,.2);
    color:#cbd5e1;
}

.servicio-card{
    background:#0f172a;
    padding:25px;
    border-radius:20px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.card-servicio p{
    margin:8px 0;
    color:#cbd5e1;
}

/* ESTADOS */

.estado{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 18px;
    border-radius:999px;
    font-size:.78rem;
    font-weight:700;
    letter-spacing:.4px;
    text-transform:uppercase;
    min-width:120px;
}

.pendiente{
    background:rgba(245,158,11,.15);
    color:#fbbf24;
}

.aceptado{
    background:rgba(34,197,94,.15);
    color:#22c55e;
}

.finalizado{
    background:rgba(148,163,184,.18);
    color:#cbd5e1;
}

.panel-config{
    position:absolute;
    bottom:20px;
    right:20px;
}

/* BOTÓN */
.config-btn{
    width:55px;
    height:55px;

    border-radius:50%;
    border:none;

    font-size:22px;

    background:linear-gradient(135deg,#3b82f6,#0ea5e9);
    color:white;

    cursor:pointer;

    box-shadow:0 15px 35px rgba(59,130,246,.5);

    transition:.3s;
}

.config-btn:hover{
    transform:scale(1.1) rotate(90deg);
}

/* MENÚ */
.config-menu{
    position:absolute;
    bottom:70px;
    right:0;

    width:220px;

    background:rgba(15,23,42,.95);
    backdrop-filter:blur(12px);

    border-radius:16px;
    padding:12px;

    display:flex;
    flex-direction:column;
    gap:8px;

    box-shadow:0 25px 50px rgba(0,0,0,.7);

    opacity:0;
    transform:translateY(10px) scale(.95);
    pointer-events:none;

    transition:.25s;
}

.config-menu.activo{
    opacity:1;
    transform:translateY(0) scale(1);
    pointer-events:auto;
}

.config-menu button{
    padding:10px;

    border:none;
    border-radius:10px;

    background:#0f172a;
    color:#cbd5e1;

    font-weight:600;
    cursor:pointer;

    transition:.2s;
}

.config-menu button:hover{
    background:#1e293b;
    transform:translateX(5px);
}

.config-menu .salir{
    background:#7f1d1d;
    color:white;
}

.config-menu .salir:hover{
    background:#991b1b;
}

/* ===== ANIMACIÓN ===== */
@keyframes fadePanel{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

#panel-contenido{
    flex:1;
    overflow-y:auto;

    padding:30px;

    animation: fadePanel .4s ease;
}

#panel-contenido::-webkit-scrollbar{
    width:6px;
}

#panel-contenido::-webkit-scrollbar-thumb{
    background:rgba(148,163,184,.3);
    border-radius:10px;
}

.panel-barra{
    height:70px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 20px;

    border-bottom:1px solid rgba(148,163,184,.08);

    background: rgba(2,6,23,.6);
    backdrop-filter: blur(10px);
}

.panel-barra button{
    width:40px;
    height:40px;

    border-radius:10px;
    border:none;

    background:rgba(148,163,184,.08);
    color:#cbd5e1;

    font-size:20px;
    cursor:pointer;

    transition:.2s;
}

.panel-barra button:hover{
    background:#ef4444;
    color:white;
}

.panel-overlay{
    position: fixed;
    inset: 0;
    display: block;
    overflow: hidden;

    background: rgba(2,6,23,.65);
    backdrop-filter: blur(10px);

    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .35s ease;
}

.panel-overlay.activo{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.panel-seccion{
    padding:25px;
    background:rgba(15,23,42,.55);
    backdrop-filter: blur(16px);
    border-radius:20px;
    border:1px solid rgba(255,255,255,.05);
}

.panel-subtitulo{
    font-size:22px;
    font-weight:700;
    margin-bottom:20px;
    background:linear-gradient(90deg,#38bdf8,#60a5fa);
    background-clip:text;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
}

.centrado{
    text-align:center;
    width:100%;
    margin-bottom:25px;
}

.panel-perfil{
    display:flex;
    justify-content:center;
    margin-bottom:20px;
}

.panel-form textarea{
    width: 100%;
    resize:none;
    min-height:140px;

    background: linear-gradient(145deg, #020617, #020617);
    border:1px solid rgba(148,163,184,.25);
    border-radius:12px;

    padding:14px;
    color:#e6edf6;

    font-size:14px;
    line-height:1.5;

    transition:.25s;
}

.panel-form textarea:focus{
    border-color:#60a5fa;
    box-shadow:0 0 0 2px rgba(96,165,250,.25);
}

.panel-form textarea::-webkit-scrollbar{
    width:6px;
}

.panel-form textarea::-webkit-scrollbar-thumb{
    background:#334155;
    border-radius:10px;
}

.panel-form input,
.panel-form textarea{
    background:#020617;
    border:1px solid rgba(148,163,184,.2);
    border-radius:10px;
    padding:12px;
    color:#e6edf6;
    transition:.2s;
}

.panel-form input:focus,
.panel-form textarea:focus{
    border-color:#60a5fa;
    box-shadow:0 0 0 2px rgba(96,165,250,.2);
}

.panel-error{
    background:#7f1d1d;
    padding:10px;
    border-radius:8px;
    margin-bottom:15px;
}

.panel-exito{
    background:#065f46;
    padding:10px;
    border-radius:8px;
    margin-bottom:15px;
}
.panel-dashboard.activo ~ .panel-config .config-menu{
    display:none;
}

.file-label{
    display:block;
    cursor:pointer;
}

.file-label input{
    display:none;
}

.file-btn{
    display:block;
    width:100%;
    padding:14px;
    border-radius:12px;

    background:rgba(15,23,42,.6);
    border:1px dashed #334155;

    color:#cbd5e1;
    font-weight:600;
    text-align:center;

    transition:.25s;
}

.file-label:hover .file-btn{
    border-color:#60a5fa;
    background:rgba(30,41,59,.9);
    color:white;
}

.file-name{
    display:block;
    margin-top:8px;
    font-size:.85rem;
    color:#94a3b8;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all .2s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--azul-acento), #2563eb);
    color: #fff;
    box-shadow: 0 10px 25px rgba(59,130,246,.45);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(59,130,246,.6);
}

.btn-secondary {
    background: rgba(148,163,184,.08);
    border: 1px solid rgba(148,163,184,.25);
    color: #e2e8f0;
    backdrop-filter: blur(6px);
}

.btn-secondary:hover {
    background: rgba(148,163,184,.15);
    transform: translateY(-2px);
}

.panel-card{
    width:100%;
    max-width:100%;
    margin:0;

    padding:45px 40px;

    background: rgba(15,23,42,.65);
    backdrop-filter: blur(18px);

    border-radius:24px;
    border:1px solid rgba(255,255,255,.06);

    box-shadow:
        0 25px 60px rgba(0,0,0,.6),
        inset 0 1px rgba(255,255,255,.04);
}

@keyframes fadePanel{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }

}

.panel-title{
    text-align:center;
    margin-bottom:25px;
    color:white;
}

.panel-form input{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border-radius:8px;
    border:1px solid #374151;
    background:#1f2937;
    color:white;
    font-size:14px;
}

.panel-form input:focus{
    outline:none;
    border-color:#6366f1;
}

.panel-msg{
    margin-top:15px;
    padding:10px;
    border-radius:8px;
    text-align:center;
    font-size:14px;
}

.panel-msg.success{
    background:#065f46;
    color:#d1fae5;
}

.panel-msg.error{
    background:#7f1d1d;
    color:#fecaca;
}

.panel-form button{
    margin-top:10px;
    padding:13px;
    border:none;
    border-radius:14px;

    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color:white;

    font-weight:600;
    font-size:14px;
    letter-spacing:.3px;

    cursor:pointer;
    transition: all .25s ease;

    box-shadow: 0 8px 20px rgba(79,70,229,.35);
}

.panel-form button:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(79,70,229,.45);
}

.panel-form button:active{
    transform: scale(.98);
}

.obs-box{
    background:rgba(15,23,42,.82);
    padding:12px 14px;
    border-radius:12px;
    margin:12px 0;
    font-size:14px;
    color:#dbeafe;
    border-left:4px solid #3b82f6;
}

.detalle-solicitud{
    margin:12px 0 0;
    border:1px solid rgba(148,163,184,.18);
    border-radius:12px;
    background:rgba(15,23,42,.35);
    overflow:hidden;
}

.detalle-solicitud summary{
    cursor:pointer;
    list-style:none;
    padding:12px 14px;
    font-weight:700;
    color:#e2e8f0;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.detalle-solicitud summary::after{
    content:"\203A";
    font-size:1.2rem;
    color:#94a3b8;
    transition:transform .2s ease;
}

.detalle-solicitud summary::-webkit-details-marker{
    display:none;
}

.detalle-solicitud[open] summary::after{
    transform:rotate(90deg);
}

.detalle-solicitud-contenido{
    padding:0 14px 14px;
}

.detalle-solicitud-contenido p{
    margin:8px 0;
}

.toast{
    position:fixed;
    bottom:30px;
    left:50%;
    transform:translateX(-50%) translateY(20px);
    background:#1e293b;
    color:#e2e8f0;
    padding:14px 28px;
    border-radius:14px;
    font-weight:600;
    box-shadow:0 15px 40px rgba(0,0,0,.5);
    opacity:0;
    pointer-events:none;
    transition:.3s ease;
    z-index:100000;
}

.toast.mostrar{
    opacity:1;
    transform:translateX(-50%) translateY(0);
}

.panel-save-loader{
    position:fixed;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:14px;
    background:rgba(2,6,23,.58);
    backdrop-filter:blur(6px);
    color:#f8fafc;
    font-weight:600;
    z-index:2147483646;
}

.panel-save-loader.hidden{
    display:none;
}

.panel-save-spinner{
    width:54px;
    height:54px;
    border:5px solid rgba(255,255,255,.28);
    border-top-color:#22c55e;
    border-radius:50%;
    animation:panel-save-spin 1s linear infinite;
}

@keyframes panel-save-spin{
    to{
        transform:rotate(360deg);
    }
}

.btn-full{
    width:100%;
    margin-top:15px;
}

.panel-dashboard{
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    margin-left: auto;

    background: linear-gradient(
        180deg,
        rgba(15,23,42,.98),
        rgba(2,6,23,1)
    );

    border-left: 1px solid rgba(148,163,184,.1);

    box-shadow:
        -30px 0 80px rgba(0,0,0,.8),
        inset 1px 0 rgba(255,255,255,.04);

    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.22,.61,.36,1);

    position: absolute;
    top: 0;
    right: 0;
    z-index: 100000;
}

.panel-dashboard.activo{
    transform: translateX(0);
}

.panel-overlay.activo .panel-dashboard{
    transform: translateX(0);
}

.input-bloqueado{
    opacity: 0.6;
    filter: blur(1px);
    cursor: not-allowed;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.input-bloqueado:hover{
    filter: blur(0.5px);
}
