/* ============================================================================
   GOLDEN CHILE - ESTILOS GLOBALES
   Archivo: golden-styles.css
   Descripción: Hoja de estilos unificada para todo el sistema
   Versión: 2.0
   ============================================================================ */


/* ============================================================================
   1. RESET Y CONFIGURACIÓN BASE
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ============================================================================
   2. ESTILOS GLOBALES DEL BODY
   ============================================================================ */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f0f0;
    min-height: 100vh;
}

/* Body para página de login */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Body para páginas de menú */
body.menu-page,
body.parametros-page {
    display: flex;
    flex-direction: column;
    padding: 0;
}


/* ============================================================================
   3. HEADER SUPERIOR (Común para todas las páginas internas)
   ============================================================================ */

.top-header {
    background: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-info-box {
    background: #f0f0f0;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    gap: 25px;
    align-items: center;
}

.user-info-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.user-info-box span:first-child {
    color: #666;
    font-weight: 500;
}

.user-info-box span:last-child {
    color: #0066cc;
    font-weight: 600;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.logo-container img {
    height: 60px;
    object-fit: contain;
}

.logout-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}


/* ============================================================================
   4. NAVEGACIÓN PRINCIPAL
   ============================================================================ */

.main-nav {
    background: #1e3a8a;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.1);
    border-bottom-color: #ff6b35;
}

.main-nav a.active {
    background: rgba(255,255,255,0.15);
    border-bottom-color: #ff6b35;
}

.main-nav a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 25px;
    width: 1px;
    background: rgba(255,255,255,0.3);
}


/* ============================================================================
   5. BARRAS DE TÍTULO
   ============================================================================ */

/* Barra de título estándar */
.title-bar {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 25px;
    text-align: center;
    margin-top: 20px;
}

.title-bar h1 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Barra de título para páginas de parámetros */
.parametros-title-bar {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 25px;
    text-align: center;
    margin-top: 20px;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.parametros-main-title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
}

.parametros-subtitle {
    font-size: 16px;
    color: #ffffff;
    margin-top: 5px;
}

/* Título para Compra Venta */
.compra-venta-title {
    font-size: 48px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.compra-venta-subtitle {
    font-size: 20px;
    color: #ffffff;
    margin-top: 10px;
}


/* ============================================================================
   6. BOTÓN VOLVER
   ============================================================================ */

.back-btn {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) translateX(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* ============================================================================
   7. CONTENIDO PRINCIPAL
   ============================================================================ */

.main-content {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ============================================================================
   8. GRIDS DE MÓDULOS
   ============================================================================ */

/* Grid para menú principal (5 columnas) */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1400px;
    width: 100%;
}

/* Grid para compra venta (6 columnas) */
.compra-venta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1400px;
    width: 100%;
}

/* Grid para parámetros (6 columnas) */
.parametros-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1400px;
    width: 100%;
}


/* ============================================================================
   9. TARJETAS DE MENÚ (Con iconos)
   ============================================================================ */

.menu-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.menu-card:hover::before {
    top: -60%;
    left: -60%;
}

.menu-icon {
    font-size: 60px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.menu-card:hover .menu-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.menu-card:active .menu-icon {
    transform: scale(0.9) rotate(-5deg);
    transition: all 0.1s ease;
}

.menu-title {
    font-size: 24px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Animaciones para iconos */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.menu-card:nth-child(1):hover .menu-icon {
    animation: bounce 0.6s ease infinite;
}

.menu-card:nth-child(2):hover .menu-icon {
    animation: rotate 1s linear infinite;
}

.menu-card:nth-child(3):hover .menu-icon {
    animation: pulse 0.8s ease infinite;
}

.menu-card:nth-child(4):hover .menu-icon {
    animation: bounce 0.6s ease infinite;
}

.menu-card:nth-child(5):hover .menu-icon {
    animation: rotate 1.5s linear infinite;
}


/* ============================================================================
   10. TARJETAS COMPRA VENTA (Con iconos - tamaño reducido)
   ============================================================================ */

.compra-venta-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
    border: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.compra-venta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
}

.compra-venta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.compra-venta-card:hover::before {
    top: -60%;
    left: -60%;
}

.compra-venta-icon {
    font-size: 50px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.compra-venta-card:hover .compra-venta-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.compra-venta-card:active .compra-venta-icon {
    transform: scale(0.9) rotate(-5deg);
    transition: all 0.1s ease;
}

.compra-venta-card-title {
    font-size: 16px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Animaciones específicas */
.compra-venta-card:nth-child(1):hover .compra-venta-icon,
.compra-venta-card:nth-child(4):hover .compra-venta-icon,
.compra-venta-card:nth-child(7):hover .compra-venta-icon,
.compra-venta-card:nth-child(10):hover .compra-venta-icon {
    animation: bounce 0.6s ease infinite;
}

.compra-venta-card:nth-child(2):hover .compra-venta-icon,
.compra-venta-card:nth-child(5):hover .compra-venta-icon,
.compra-venta-card:nth-child(8):hover .compra-venta-icon,
.compra-venta-card:nth-child(11):hover .compra-venta-icon {
    animation: rotate 1s linear infinite;
}

.compra-venta-card:nth-child(3):hover .compra-venta-icon,
.compra-venta-card:nth-child(6):hover .compra-venta-icon,
.compra-venta-card:nth-child(9):hover .compra-venta-icon,
.compra-venta-card:nth-child(12):hover .compra-venta-icon {
    animation: pulse 0.8s ease infinite;
}


/* ============================================================================
   11. BOTONES DE PARÁMETROS (Sin iconos - Azules)
   ============================================================================ */

.param-button {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border: none;
    border-radius: 15px;
    padding: 30px 20px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.param-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
}

.param-button:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.param-button:hover::before {
    top: -60%;
    left: -60%;
}

.param-button:active {
    transform: translateY(-5px);
}


/* ============================================================================
   12. ANIMACIÓN DE ENTRADA
   ============================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.compra-venta-card,
.param-button {
    animation: fadeInUp 0.5s ease backwards;
}

/* Delays escalonados para animaciones */
.param-button:nth-child(1), .compra-venta-card:nth-child(1) { animation-delay: 0.05s; }
.param-button:nth-child(2), .compra-venta-card:nth-child(2) { animation-delay: 0.1s; }
.param-button:nth-child(3), .compra-venta-card:nth-child(3) { animation-delay: 0.15s; }
.param-button:nth-child(4), .compra-venta-card:nth-child(4) { animation-delay: 0.2s; }
.param-button:nth-child(5), .compra-venta-card:nth-child(5) { animation-delay: 0.25s; }
.param-button:nth-child(6), .compra-venta-card:nth-child(6) { animation-delay: 0.3s; }
.param-button:nth-child(7), .compra-venta-card:nth-child(7) { animation-delay: 0.35s; }
.param-button:nth-child(8), .compra-venta-card:nth-child(8) { animation-delay: 0.4s; }
.param-button:nth-child(9), .compra-venta-card:nth-child(9) { animation-delay: 0.45s; }
.param-button:nth-child(10), .compra-venta-card:nth-child(10) { animation-delay: 0.5s; }
.param-button:nth-child(11), .compra-venta-card:nth-child(11) { animation-delay: 0.55s; }
.param-button:nth-child(12), .compra-venta-card:nth-child(12) { animation-delay: 0.6s; }
.param-button:nth-child(13) { animation-delay: 0.65s; }
.param-button:nth-child(14) { animation-delay: 0.7s; }
.param-button:nth-child(15) { animation-delay: 0.75s; }
.param-button:nth-child(16) { animation-delay: 0.8s; }
.param-button:nth-child(17) { animation-delay: 0.85s; }
.param-button:nth-child(18) { animation-delay: 0.9s; }
.param-button:nth-child(19) { animation-delay: 0.95s; }
.param-button:nth-child(20) { animation-delay: 1s; }
.param-button:nth-child(21) { animation-delay: 1.05s; }
.param-button:nth-child(22) { animation-delay: 1.1s; }
.param-button:nth-child(23) { animation-delay: 1.15s; }


/* ============================================================================
   13. FOOTER
   ============================================================================ */

.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}


/* ============================================================================
   14. LOGIN - ESTILOS ESPECÍFICOS
   ============================================================================ */

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.login-left {
    background: #0066cc;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.logo-section {
    position: relative;
    z-index: 1;
    text-align: center;
}

.logo-placeholder {
    width: 400px;
    background: transparent;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: none;
    padding: 25px;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 36px;
    font-weight: 700;
    color: #0066cc;
}

.welcome-text h1 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.welcome-text p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

.login-right {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 8px;
}

.login-header p {
    color: #718096;
    font-size: 14px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 18px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a0aec0;
    font-size: 20px;
    user-select: none;
}

.toggle-password:hover {
    color: #0066cc;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #0066cc;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.remember-me label {
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
}

.forgot-password {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #0052a3;
}

.login-button {
    width: 100%;
    padding: 15px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
}

.login-button:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #a0aec0;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.alternative-login {
    text-align: center;
}

.alternative-login a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.alternative-login a:hover {
    text-decoration: underline;
}


/* ============================================================================
   15. RESPONSIVE DESIGN
   ============================================================================ */

/* Tablets y pantallas medianas */
@media (max-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .compra-venta-grid,
    .parametros-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .logo-container {
        order: -1;
    }

    .user-info-box {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .main-nav {
        flex-direction: column;
        padding: 0;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-left: 3px solid transparent;
    }

    .main-nav a:hover,
    .main-nav a.active {
        border-bottom-color: transparent;
        border-left-color: #ff6b35;
    }

    .main-nav a::after {
        display: none;
    }

    .title-bar h1 {
        font-size: 24px;
    }

    .back-btn {
        position: static;
        transform: none;
        margin: 0 auto 15px;
    }

    .parametros-title-bar {
        padding-top: 60px;
    }

    .main-content {
        padding: 30px 20px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .compra-venta-grid,
    .parametros-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .menu-card {
        padding: 30px 20px;
    }

    .menu-icon {
        font-size: 50px;
    }

    .menu-title {
        font-size: 20px;
    }

    .compra-venta-card,
    .param-button {
        padding: 25px 15px;
    }

    .compra-venta-icon {
        font-size: 40px;
    }

    .compra-venta-card-title {
        font-size: 14px;
    }

    .parametros-main-title {
        font-size: 32px;
    }

    .parametros-subtitle {
        font-size: 16px;
    }

    /* Login responsive */
    .login-container {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .login-left {
        padding: 40px 30px;
        min-height: auto;
    }

    .welcome-text h1 {
        font-size: 24px;
    }

    .login-right {
        padding: 40px 30px;
    }

    .login-header h2 {
        font-size: 24px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .menu-grid,
    .compra-venta-grid,
    .parametros-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================================
   FIN DEL ARCHIVO
   ============================================================================ */


/* ============================================================================
   16. ESTILOS PARA TABLAS Y GRILLAS DE DATOS
   ============================================================================ */

/* Contenedor de tabla */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* Barra de herramientas (búsqueda y acciones) */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buscador */
.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 18px;
    pointer-events: none;
}

/* Tabla de datos */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.data-table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.data-table thead th:first-child {
    border-top-left-radius: 8px;
}

.data-table thead th:last-child {
    border-top-right-radius: 8px;
}

.data-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: #f7fafc;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 15px;
    color: #4a5568;
}

/* Alternado de filas */
.data-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.data-table tbody tr:nth-child(even):hover {
    background: #f0f4f8;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.pagination-info {
    color: #718096;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
}

.pagination-btn:hover:not(:disabled) {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

/* Botones de acción en tabla */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 3px;
}

.action-btn-view {
    background: #3b82f6;
    color: white;
}

.action-btn-view:hover {
    background: #2563eb;
}

.action-btn-edit {
    background: #10b981;
    color: white;
}

.action-btn-edit:hover {
    background: #059669;
}

.action-btn-delete {
    background: #ef4444;
    color: white;
}

.action-btn-delete:hover {
    background: #dc2626;
}

/* Badge de estado */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Mensaje de tabla vacía */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-state-text {
    font-size: 16px;
    color: #6b7280;
}

/* Responsive para tablas */
@media (max-width: 768px) {
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .table-container {
        padding: 15px;
        overflow-x: auto;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 10px 8px;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-controls {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================================================
   17. ESTILOS PARA SELECTOR DE TRANSFERENCIA MÚLTIPLE
   ============================================================================ */

/* Modal para selector de transferencia */
.transfer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.transfer-modal.active {
    display: flex;
}

.transfer-modal-content {
    background: #1e3a8a;
    border-radius: 15px;
    padding: 30px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.transfer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    color: white;
}

.transfer-modal-header h2 {
    font-size: 24px;
    margin: 0;
}

.transfer-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: start;
}

.transfer-list-wrapper {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.transfer-list-header {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    padding: 15px;
    font-weight: 600;
    text-align: center;
}

.transfer-list {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 2px solid #e2e8f0;
}

.transfer-list-item {
    padding: 12px;
    margin-bottom: 5px;
    background: #f7fafc;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #2d3748;
}

.transfer-list-item:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

.transfer-list-item.selected {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
    font-weight: 600;
}

.transfer-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.transfer-btn {
    padding: 12px 20px;
    background: white;
    color: #1e3a8a;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.transfer-btn:hover:not(:disabled) {
    background: #fbbf24;
    color: #1e3a8a;
    transform: scale(1.1);
}

.transfer-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.transfer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

/* Botones de acción principales */
.btn-action {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save {
    background: #10b981;
    color: white;
}

.btn-save:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-cancel {
    background: #ef4444;
    color: white;
}

.btn-cancel:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Responsive para selector de transferencia */
@media (max-width: 768px) {
    .transfer-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .transfer-controls {
        flex-direction: row;
        justify-content: center;
        order: 2;
    }

    .transfer-btn {
        transform: rotate(90deg);
    }

    .transfer-list {
        height: 250px;
    }
}


/* ============================================================================
   18. BOTONES DE ACCIÓN EN TABLA
   ============================================================================ */

.table-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-add {
    padding: 12px 24px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Iconos de acción en tabla */
.action-icon {
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-icon:hover {
    transform: scale(1.3);
}

.icon-edit {
    color: #3b82f6;
}

.icon-delete {
    color: #ef4444;
}

.icon-view {
    color: #10b981;
}

.icon-pages {
    color: #8b5cf6;
}