/* ===== CONTENEDOR GENERAL ===== */
.usuarios-container {
    margin-top: 20px;
}

/* ===== HEADER ===== */
.usuarios-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.usuarios-title {
    font-weight: 700;
    color: #ffffff;
}

/* ===== BOTÓN CREAR ===== */
.btn-usuarios {
    background: linear-gradient(135deg, rgba(5, 171, 158, 0.2), rgba(0, 0, 0, 0.6));
    color: #05AB9E;
    border: 1px solid rgba(5, 171, 158, 0.5);
    padding: 10px 22px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

    .btn-usuarios:hover {
        background: #05AB9E;
        color: #ffffff;
        box-shadow: 0 0 15px rgba(5, 171, 158, 0.6);
        border-color: #05AB9E;
    }

/* ===== ESTILOS PARA FORMULARIO GLASS (CREAR/EDITAR) ===== */
.form-glass-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.7) 0%, rgba(5, 5, 5, 0.85) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(5, 171, 158, 0.2);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

    .form-glass-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #05AB9E, #02665e);
    }

.glass-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(5, 171, 158, 0.3) !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

    .glass-input:focus {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: #05AB9E !important;
        box-shadow: 0 0 15px rgba(5, 171, 158, 0.2) !important;
        color: #ffffff !important;
    }

    .glass-input::placeholder {
        color: rgba(255, 255, 255, 0.4) !important;
    }

    /* Para los Dropdowns Select */
    .glass-input option {
        background-color: #111111;
        color: #ffffff;
    }

/* Switch Glass estilo */
.glass-switch:checked {
    background-color: #05AB9E;
    border-color: #05AB9E;
    box-shadow: 0 0 15px rgba(5, 171, 158, 0.4);
}

/* ===== BOTONES DE FORMULARIO ===== */
.btn-save {
    background: linear-gradient(135deg, rgba(5, 171, 158, 0.9), #034f49);
    color: #ffffff;
    border: 1px solid rgba(5, 171, 158, 0.8);
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

    .btn-save:hover {
        background: #05AB9E;
        color: #ffffff;
        box-shadow: 0 0 20px rgba(5, 171, 158, 0.6);
        transform: translateY(-2px);
    }

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #c4c4c4;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .btn-cancel:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff;
        border-color: #ffffff;
    }

/* =========================
   GRID
========================= */

.usuarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
}

/* =========================
   CARD
========================= */

.usuario-card-item {
    position: relative;
    min-height: 420px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(5,171,158,.25);
    background: #050505;
    transition: all .35s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 35px rgba(0,0,0,.45), 0 0 25px rgba(5,171,158,.06);
}

    .usuario-card-item:hover {
        transform: translateY(-6px);
        border-color: rgba(5,171,158,.55);
        box-shadow: 0 18px 45px rgba(0,0,0,.55), 0 0 35px rgba(5,171,158,.18);
    }

/* =========================
   IMAGEN FONDO
========================= */

.servicio-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

    .servicio-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
        filter: brightness(.55);
    }

.usuario-card-item:hover .servicio-bg img {
    transform: scale(1.05);
}

/* =========================
   OVERLAY
========================= */

.servicio-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient( to top, rgba(0,0,0,.95) 10%, rgba(0,0,0,.75) 40%, rgba(0,0,0,.25) 100% );
}

/* =========================
   HEADER
========================= */

.usuario-card-header {
    position: relative;
    z-index: 3;
    padding: 22px;
}

.badge-servicio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(0,0,0,.45);
    border: 1px solid rgba(5,171,158,.35);
    color: #00e5ff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* =========================
   CONTENIDO
========================= */

.usuario-card-content {
    position: relative;
    z-index: 3;
    padding: 0 24px 24px 24px;
    margin-top: auto;
}

.usuario-nombre {
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 14px;
}

.servicio-descripcion {
    color: rgba(255,255,255,.78);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 24px;
}

/* =========================
   ACTIONS
========================= */

.usuario-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================
   BOTÓN DETALLES
========================= */

.btn-details {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(5,171,158,.45);
    color: #ffffff;
    font-weight: 600;
    transition: all .3s ease;
}

    .btn-details:hover {
        background: #05AB9E;
        color: #ffffff;
        box-shadow: 0 0 20px rgba(5,171,158,.45);
    }

/* =========================
   BOTÓN EDITAR
========================= */

.btn-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: #ffffff;
    font-weight: 600;
    transition: all .3s ease;
}

    .btn-edit:hover {
        background: #ffffff;
        color: #000000;
    }

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px) {

    .usuarios-grid {
        grid-template-columns: 1fr;
    }

    .usuario-card-item {
        min-height: 380px;
    }

    .usuario-nombre {
        font-size: 1.7rem;
    }
}

/* ===== BADGES ===== */
.badge-rol {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f1f1f1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.badge-activo {
    background-color: rgba(25, 135, 84, 0.15);
    color: #4ce59b;
    border: 1px solid rgba(25, 135, 84, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-inactivo {
    background-color: rgba(220, 53, 69, 0.15);
    color: #ff6b7b;
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== BOTONES ACCIONES ===== */
.btn-action {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Editar */
.btn-edit {
    border: 1px solid rgba(5, 171, 158, 0.5);
    color: #05AB9E;
    background: rgba(5, 171, 158, 0.1);
}

    .btn-edit:hover {
        background-color: #05AB9E;
        color: white;
        box-shadow: 0 0 10px rgba(5, 171, 158, 0.4);
    }

/* Ver */
.btn-details {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
}

    .btn-details:hover {
        background-color: #ffffff;
        color: #000;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    }

/* Eliminar */
.btn-delete {
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff6b7b;
    background: rgba(220, 53, 69, 0.1);
}

    .btn-delete:hover {
        background-color: #dc3545;
        color: white;
        box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
    }

/* ===== IMÁGENES Y PREVIEW ===== */
.servicio-imagen-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(5, 171, 158, 0.2);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .servicio-imagen-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.imagen-preview {
    display: none;
    width: 100%;
    text-align: center;
}


/* ===== DIVIDER ===== */

.glass-divider {
    border-color: rgba(255,255,255,0.08);
    margin: 35px 0;
}

/* ===== CARACTERISTICAS ===== */

.caracteristicas-section {
    margin-top: 10px;
}

.caracteristicas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.caracteristica-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(5, 171, 158, 0.12);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    transition: all .3s ease;
}

    .caracteristica-card:hover {
        border-color: rgba(5, 171, 158, 0.4);
        box-shadow: 0 0 20px rgba(5,171,158,0.08);
    }

/* ===== BOTON AGREGAR ===== */

.btn-add-caracteristica {
    background: rgba(5,171,158,0.15);
    border: 1px solid rgba(5,171,158,0.5);
    color: #05AB9E;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: all .3s ease;
}

    .btn-add-caracteristica:hover {
        background: #05AB9E;
        color: white;
        box-shadow: 0 0 15px rgba(5,171,158,0.4);
    }

/* ===== BOTON ELIMINAR ===== */

.btn-remove-caracteristica {
    width: 100%;
    border: 1px solid rgba(220,53,69,.4);
    background: rgba(220,53,69,.1);
    color: #ff6b7b;
    border-radius: 8px;
    padding: 10px;
    transition: all .3s ease;
}

    .btn-remove-caracteristica:hover {
        background: #dc3545;
        color: white;
        box-shadow: 0 0 12px rgba(220,53,69,.4);
    }



/* =========================
   DETALLE SERVICIO
========================= */

.detalle-imagen-wrapper {
    width: 100%;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(5, 171, 158, 0.2);
    background: rgba(0,0,0,.35);
}

.detalle-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detalle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.detalle-item {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: 1 / -1;
}

.detalle-label {
    color: #05AB9E;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: .95rem;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.detalle-value {
    color: #ffffff;
    font-size: 1rem;
}

.detalle-text {
    color: #d8d8d8;
    line-height: 1.8;
    margin: 0;
}

.detalle-caracteristica {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
}

.empty-caracteristicas {
    text-align: center;
    padding: 25px;
    color: #8c8c8c;
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: 12px;
    margin-top: 10px;
}


/* =========================
   TOP SECTION
========================= */

.detalle-top-section {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

/* =========================
   MINI IMAGEN
========================= */



.detalle-mini-imagen-wrapper {
    width: 380px;
    height: 320px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(5, 171, 158, 0.25);
    background: linear-gradient( 145deg, rgba(20,20,20,.85), rgba(8,8,8,.95) );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,.45), 0 0 25px rgba(5,171,158,.08);
    transition: all .35s ease;
}

    .detalle-mini-imagen-wrapper:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 30px rgba(5,171,158,.15);
    }

.detalle-mini-imagen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}

    .detalle-mini-imagen:hover {
        transform: scale(1.03);
    }

/* =========================
   INFO TOP
========================= */

.detalle-top-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detalle-servicio-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: .5px;
}

/* =========================
   CARDS SIMPLES
========================= */

.simple-card {
    padding: 16px 20px;
}

    .simple-card .detalle-caracteristica {
        font-size: 1rem;
        color: #f1f1f1;
        line-height: 1.7;
    }
