/* Botones deshabilitados: gris y no clicable */
button:disabled,
.btn:disabled {
    background-color: #bdbdbd !important;
    border-color: #bdbdbd !important;
    color: #fff !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.7;
}
:root {
    --color-primary: #007bff;
    --color-secondary: #6c757d;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-info: #17a2b8;
    --color-light: #f8f9fa;
    --color-dark: #343a40;

    --color-background: #333333;
    --color-text: #ffffff;
    --color-container-bg: #ffffff;
    --color-container-text: #333333;
    --color-border: #ccc;
    --color-placeholder: #999;
    --color-button-text: #fff;
    --color-link-hover: var(--color-info);
    --color-alert-bg: rgba(0, 0, 0, 0.7);
    --color-alert-content-bg: var(--color-dark);
    --color-modal-bg: #666666;
    --color-icon-logo-bg: #3C3A52;
}


body {
    padding-top: 80px; /* Ajusta al alto real del navbar */
}

.modal {
    padding-inline: 0.75rem;
}

.modal-dialog {
    margin: 1rem auto;
}

.modal-content {
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .modal {
        padding-inline: 0.5rem;
    }

    .modal-dialog,
    .modal-dialog.modal-lg,
    .modal-dialog.modal-xl,
    .modal-dialog.modal-md,
    .modal-dialog.modal-sm {
        width: auto;
        max-width: min(100%, 36rem);
        margin: 0.75rem auto;
    }

    .modal-dialog-centered {
        min-height: calc(100% - 1.5rem);
    }

    .modal-content {
        border-radius: 1rem;
    }

    .modal-header,
    .modal-footer {
        padding-inline: 0.875rem;
    }

    .modal-body {
        padding: 0.875rem;
        overflow-x: hidden;
    }
}

.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.transparent {
    background-color: rgba(255, 255, 255, 0.5) !important; /* semi-transparente */
    backdrop-filter: blur(10px); /* efecto vidrio */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}




/* Nuevo layout para login doble */
.login-section {
    padding: 2rem 0;
    background: #f8f9fa;
}

.login-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem 2rem 1.5rem 2rem;
    margin: 1rem 0;
    width: 100%;
    max-width: 370px;
    min-width: 270px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.login-card h4 {
    font-weight: 700;
    color: #007bff;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .login-row {
        flex-wrap: nowrap;
        gap: 3rem;
    }
    .login-container {
        max-width: 900px;
    }
}



.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}
.form-group input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    background: #f9f9f9;
    color: #333;
    margin-bottom: 0;
}
.form-group label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 4px;
    color: #888;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.2s;
}
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    font-size: 0.85rem;
    color: #007bff;
    background: #fff;
}
.form-group .toggle-password {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #bbb;
    font-size: 1.2rem;
    line-height: 1;
    z-index: 2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.form-group .toggle-password:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-radius: 50%;
}


.clickable {
    color: var(--color-info);
    text-decoration: underline;
    cursor: pointer;
}

.clickable:hover {
    color: var(--color-link-hover);
}



/* Estilo para la alerta personalizada */
#custom-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-alert-bg);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.alert-content {
    background-color: var(--color-alert-content-bg);
    color: var(--color-button-text);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.custom-alert-light .alert-content {
    background-color: #ffffff;
    color: #1f2937;
}

.custom-alert-dark .alert-content {
    background-color: #1f2937;
    color: #f8fafc;
}

.custom-alert-light #alert-message {
    color: inherit;
}

.custom-alert-dark #alert-message {
    color: inherit;
}

#custom-alert button {
    background-color: var(--color-primary);
    color: var(--color-button-text);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
}

 /* Botones del acordeón en gris */
 
