/**
 * ============================================================================
 * GUITA EN MANO - GLASSMORPHISM UI (FRESH VERSION)
 * Efectos visuales para componentes con fondo TRON
 * Versión: 2.0.0 - Fresh Install
 * Fecha: Octubre 2025
 * ============================================================================
 */

/* ============================================================================
   RESET DE ESTILOS ANTIGUOS
   ============================================================================ */

/* Forzar eliminación de colores naranjas del sistema anterior */
* {
    --color-orange: transparent !important;
    --color-orange-light: transparent !important;
    --color-orange-dark: transparent !important;
}

/* Eliminar fondos heredados */
.container,
.content,
.main-content,
.wrapper {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* ============================================================================
   VARIABLES DE GLASSMORPHISM
   ============================================================================ */

:root {
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-hover: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Blur */
    --blur-sm: blur(10px);
    --blur-md: blur(20px);
    --blur-lg: blur(30px);
    
    /* Neon gradients */
    --gradient-violet-blue: linear-gradient(135deg, #a855f7, #3b82f6);
    --gradient-pink-red: linear-gradient(135deg, #ec4899, #ef4444);
    --gradient-yellow-green: linear-gradient(135deg, #eab308, #10b981);
    --gradient-cyan-blue: linear-gradient(135deg, #06b6d4, #3b82f6);
}

/* ============================================================================
   TARJETAS CON GLASSMORPHISM
   ============================================================================ */

.card,
.panel,
.box,
.widget,
[class*="card"],
[class*="panel"],
.bootstrap .card,
.card.bootstrap,
.container > .card,
.row > .card,
[class*="col"] > .card {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--blur-md) saturate(180%) !important;
    -webkit-backdrop-filter: var(--blur-md) saturate(180%) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--glass-shadow) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: white !important;
}

.card:hover,
.panel:hover,
.box:hover {
    background: var(--glass-bg-hover) !important;
    transform: translateY(-4px) !important;
    box-shadow: 
        var(--glass-shadow),
        0 0 40px rgba(168, 85, 247, 0.3) !important;
}

/* Headers de tarjetas */
.card-header,
.panel-header,
[class*="card-header"],
[class*="panel-header"] {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    padding: 1.25rem !important;
    border-radius: 16px 16px 0 0 !important;
    font-weight: 600 !important;
    color: white !important;
}

/* Bodies de tarjetas */
.card-body,
.panel-body,
[class*="card-body"],
[class*="panel-body"] {
    padding: 1.5rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Bootstrap Containers */
.container,
.container-fluid,
.row {
    position: relative !important;
    z-index: 1 !important;
}

/* ============================================================================
   BOTONES CON EFECTOS NEÓN
   ============================================================================ */

/* Reset de botones antiguos */
.btn,
button,
[type="button"],
[type="submit"],
input[type="button"],
input[type="submit"],
a.button,
.button {
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Botones primarios con gradiente neón */
.btn-primary,
button.primary,
[class*="btn-primary"],
.button-primary,
input[type="submit"] {
    background: var(--gradient-violet-blue) !important;
    color: white !important;
    padding: 12px 32px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 4px 15px rgba(168, 85, 247, 0.4),
        0 0 30px rgba(168, 85, 247, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 14px !important;
}

.btn-primary:hover,
input[type="submit"]:hover {
    background: var(--gradient-pink-red) !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 6px 20px rgba(236, 72, 153, 0.6),
        0 0 50px rgba(236, 72, 153, 0.4) !important;
}

.btn-primary:active {
    transform: translateY(0) !important;
}

/* Botones secundarios */
.btn-secondary,
button.secondary,
[class*="btn-secondary"] {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: var(--blur-sm) !important;
    color: white !important;
    padding: 12px 32px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.2) !important;
}

/* ============================================================================
   FORMULARIOS TRANSLÚCIDOS
   ============================================================================ */

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: var(--blur-sm) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    color: white !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #a855f7 !important;
    outline: none !important;
    box-shadow: 
        0 0 0 3px rgba(168, 85, 247, 0.2),
        0 0 30px rgba(168, 85, 247, 0.3) !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Labels */
label,
.form-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* ============================================================================
   NAVBAR CON EFECTO NEÓN
   ============================================================================ */

.navbar,
nav,
header,
[class*="navbar"],
[class*="header"] {
    background: rgba(10, 14, 39, 0.8) !important;
    backdrop-filter: var(--blur-md) saturate(180%) !important;
    border-bottom: 2px solid rgba(168, 85, 247, 0.5) !important;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(168, 85, 247, 0.2) !important;
}

.navbar a,
nav a,
header a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease !important;
}

.navbar a:hover,
nav a:hover,
header a:hover {
    color: #a855f7 !important;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.8) !important;
}

/* ============================================================================
   TABLAS CON GLASSMORPHISM
   ============================================================================ */

table {
    background: transparent !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

thead {
    background: rgba(255, 255, 255, 0.05) !important;
}

thead th {
    background: rgba(168, 85, 247, 0.2) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 16px !important;
    border: none !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
}

tbody tr {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: var(--blur-sm) !important;
    transition: all 0.3s ease !important;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.01) !important;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3) !important;
}

tbody td {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 16px !important;
    border: none !important;
}

/* ============================================================================
   BADGES Y ALERTAS CON EFECTOS NEÓN
   ============================================================================ */

.badge,
.alert,
[class*="badge"],
[class*="alert"] {
    backdrop-filter: var(--blur-sm) !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.badge-success,
.alert-success {
    background: rgba(16, 185, 129, 0.3) !important;
    color: #10b981 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3) !important;
}

.badge-warning,
.alert-warning {
    background: rgba(234, 179, 8, 0.3) !important;
    color: #eab308 !important;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.3) !important;
}

.badge-danger,
.alert-danger {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3) !important;
}

.badge-info,
.alert-info {
    background: rgba(6, 182, 212, 0.3) !important;
    color: #06b6d4 !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3) !important;
}

/* ============================================================================
   MODALES CON BACKDROP BLUR
   ============================================================================ */

.modal,
.dialog,
[class*="modal"] {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: var(--blur-lg) !important;
}

.modal-content,
.dialog-content {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--blur-md) !important;
    border: 2px solid rgba(168, 85, 247, 0.5) !important;
    border-radius: 20px !important;
    box-shadow: 
        var(--glass-shadow),
        0 0 60px rgba(168, 85, 247, 0.4) !important;
}

/* ============================================================================
   SCROLLBAR PERSONALIZADA
   ============================================================================ */

::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a855f7, #3b82f6) !important;
    border-radius: 10px !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ec4899, #ef4444) !important;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5) !important;
}

/* ============================================================================
   TEXTO CON SOMBRAS NEÓN
   ============================================================================ */

h1, h2, h3 {
    color: white !important;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.5) !important;
}

p, span, div {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Enlaces */
a {
    color: #a855f7 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

a:hover {
    color: #ec4899 !important;
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.8) !important;
}

/* ============================================================================
   RESPONSIVE - MOBILE
   ============================================================================ */

@media (max-width: 768px) {
    .card,
    .panel {
        border-radius: 12px !important;
        padding: 1rem !important;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 24px !important;
        font-size: 13px !important;
    }
}

/* ============================================================================
   FIN DEL SISTEMA UI
   ============================================================================ */
