/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #333;
}

/* Estilos de Login */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.login-header h1 {
    color: #2d3e50;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.login-header .subtitle {
    color: #7f8c8d;
    font-size: 14px;
}

.login-form {
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3e50;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #0f3460;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #0f3460;
    color: white;
}

.btn-primary:hover {
    background: #16213e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 52, 96, 0.4);
}

.btn-block {
    width: 100%;
}

.btn-logout {
    background: #95a5a6;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-logout:hover {
    background: #7f8c8d;
}

/* Alertas */
.flash-messages {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.header-content h1 {
    color: #2d3e50;
    font-size: 28px;
    margin: 0;
}

.header-content .subtitle {
    color: #0f3460;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: 0.3px;
    flex: 1;
    text-align: center;
    margin: 0 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #2d3e50;
    font-size: 14px;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 15px auto 40px auto;
    padding: 0 20px;
}

.menu-section {
    background: white;
    border-radius: 12px;
    padding: 20px 40px 40px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: left;
    color: #2d3e50;
    font-size: 24px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 25px;
    white-space: nowrap;
}

/* Menu Content Wrapper */
.menu-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Menu Left Column */
.menu-left-column {
    flex: 0 0 auto;
    max-width: 350px;
    display: flex;
    flex-direction: column;
}

/* Menu Grid */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.menu-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    margin-top: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.menu-image {
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.menu-image img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.menu-image img.active {
    opacity: 1;
}

.image-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(15, 52, 96, 0.3);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background-color: #0f3460;
    border-color: #0f3460;
    transform: scale(1.25);
    box-shadow: 0 0 6px rgba(15, 52, 96, 0.6);
}

.menu-card {
    background: white;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 
                0 3px 10px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    width: 100%;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.menu-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 
                0 5px 15px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    border-width: 3px;
}

.menu-card:hover::after {
    opacity: 1;
}

.card-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.card-icon {
    width: 65px;
    height: 65px;
    opacity: 0.95;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    transition: all 0.3s ease;
}

.menu-card:hover .card-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-card h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    text-align: left;
}

.card-abbrev {
    font-size: 12px;
    opacity: 0.9;
    text-align: right;
    margin: 0;
    font-weight: 600;
    flex-shrink: 0;
}

.card-bcp {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

.card-bes {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.card-bm {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.card-flujo {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Footer */
.footer {
    background: #2d3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer p {
    font-size: 12px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .menu-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .menu-grid {
        max-width: 100%;
        width: 100%;
    }
    
    .menu-image-container {
        min-height: auto;
        width: 100%;
    }
    
    .menu-image {
        width: 100%;
    }
    
    .menu-image img {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info {
        margin-top: 15px;
    }
    
    .menu-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .menu-grid {
        max-width: 100%;
    }
    
    .menu-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .menu-card h3,
    .menu-card p {
        text-align: center;
    }
    
    .menu-section {
        padding: 20px;
    }
    
    .menu-image-container {
        min-height: 250px;
    }
}
