/* ============================================================
   LOFControl - Estilos globales
   Bootstrap 5.3.2 + Blazor Bootstrap 3.4.0
   ============================================================ */

/* ----------------------------------------------------------
   1. VARIABLES CSS
   ---------------------------------------------------------- */
:root {
    --lof-brand: #B7D500;
    --lof-brand-dark: #8fa600;
    --lof-brand-light: #d4eb4d;
    --lof-brand-bg: #fafdf0;
    --lof-brand-bg-hover: #f0f5d0;
    --lof-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --lof-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --lof-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --lof-transition-fast: 0.2s ease;
    --lof-transition-normal: 0.3s ease;
    --lof-transition-slow: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Seleccion de texto con color marca */
::selection {
    background-color: rgba(183, 213, 0, 0.3);
    color: #2c3e50;
}

/* ----------------------------------------------------------
   2. LAYOUT BASE
   ---------------------------------------------------------- */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mt-auto {
    margin-top: auto !important;
}

main {
    flex-grow: 1;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

.main {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

/* Sin animacion en .main-section: si tuviera animation/opacity/transform,
   crearía un stacking context que atrapa el modal dentro de él, dejando
   el backdrop (z-1050, renderizado en root) por encima del modal (z-1055)
   y bloqueando todos los clicks. */
.main-section {
    width: 100%;
    background-color: white;
}

/* Contenedor principal con profundidad */
.main-section > .container,
.main-section > .container-fluid {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--lof-shadow-sm);
    padding: 1.5rem;
}

/* Animacion solo en las filas de contenido (.row), que son HERMANOS del
   componente Modal (no ancestros). Asi el modal y su backdrop quedan en
   el stacking context raiz y sus z-indices (1055 y 1050) funcionan bien. */
.main-section > .container > .row {
    animation: lof-fadeIn 0.35s ease both;
}

article.p-4 {
    padding: 0 !important;
}

/* ----------------------------------------------------------
   3. TIPOGRAFIA
   ---------------------------------------------------------- */
form {
    font-family: 'Montserrat', sans-serif;
}

label {
    font-weight: 500;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #343a40;
}

.form-control {
    font-family: 'Montserrat', sans-serif;
}

h1:focus {
    outline: none;
}

/* Titulo de pagina moderno */
.container > .row > .col-12 > h3,
.container-fluid > .row > .col-12 > h3,
.lof-page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    padding-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    animation: lof-titleSlideIn 0.5s ease both;
}

/* Linea gradiente animada bajo el titulo */
.container > .row > .col-12 > h3::after,
.container-fluid > .row > .col-12 > h3::after,
.lof-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lof-brand) 0%, var(--lof-brand-light) 60%, transparent 100%);
    animation: lof-titleLineGrow 0.8s ease 0.3s both;
    width: 100%;
}

/* Linea gradiente bajo el titulo (reemplaza el hr gris) */
.container > .row > .col-12 > h3 + hr,
.container-fluid > .row > .col-12 > h3 + hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, var(--lof-brand) 0%, var(--lof-brand-light) 40%, transparent 100%);
    opacity: 1;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Icono decorativo en titulo */
.lof-page-title .bi,
.lof-page-title i {
    color: var(--lof-brand);
    margin-right: 0.4rem;
    font-size: 1.3rem;
}

/* ----------------------------------------------------------
   4. HEADER Y NAVBAR
   ---------------------------------------------------------- */
header {
    background-color: white;
    min-height: 80px !important;
}

.navbar.fixed-top {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow var(--lof-transition-normal);
}

/* Efecto de linea inferior animada en nav links */
.navbar .nav-link {
    position: relative;
    transition: color var(--lof-transition-fast);
    padding-bottom: 0.5rem;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--lof-brand);
    transition: width var(--lof-transition-normal), left var(--lof-transition-normal);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
    left: 0;
}

.navbar .nav-link:hover {
    color: var(--lof-brand-dark);
}

.nav-item {
    font-size: 0.85em;
}

/* Dropdown mejorado */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: var(--lof-shadow-md);
    padding: 0.5rem 0;
    animation: lof-dropdownFadeIn 0.2s ease;
}

.dropdown-item {
    transition: background-color var(--lof-transition-fast), padding-left var(--lof-transition-fast);
    border-radius: 4px;
    margin: 0 0.5rem;
    padding: 0.4rem 1rem;
}

.dropdown-item:hover {
    background-color: var(--lof-brand-bg);
    color: var(--lof-brand-dark);
    padding-left: 1.25rem;
}

.logo {
    max-width: 130px !important;
    position: fixed !important;
    right: 0;
    top: 0;
    z-index: 0;
}

/* Navbar responsive - desktop */
@media (min-width: 768px) {
    .nav-item:hover {
        color: var(--lof-brand-dark);
    }
}

/* Navbar responsive - mobile */
@media (max-width: 572px) {
    .navbar-nav {
        border: solid #ddd;
        border-width: thin;
        padding: 5px;
        background-color: #fff;
        border-radius: 6%;
        width: max-content;
    }

    .nav-item:hover {
        background-color: var(--lof-brand-bg) !important;
        color: var(--lof-brand-dark);
    }
}

/* ----------------------------------------------------------
   5. FORMULARIOS
   ---------------------------------------------------------- */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Transiciones en inputs */
.form-control,
.form-select {
    transition: border-color var(--lof-transition-fast), box-shadow var(--lof-transition-fast);
    border-radius: 6px;
}

/* Focus con color marca */
.form-control:focus,
.form-select:focus {
    border-color: var(--lof-brand);
    box-shadow: 0 0 0 0.2rem rgba(183, 213, 0, 0.25);
}

/* Label flotante cambia color en focus */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-select:focus ~ label {
    color: var(--lof-brand-dark);
}

/* Estados de validacion modernos */
.valid.modified:not([type=checkbox]) {
    outline: none;
    border-color: #26b050;
    box-shadow: 0 0 0 0.2rem rgba(38, 176, 80, 0.15);
}

.invalid {
    outline: none;
    border-color: #e50000;
    box-shadow: 0 0 0 0.2rem rgba(229, 0, 0, 0.15);
}

.validation-message {
    color: #e50000;
}

.validation-errors {
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    font-weight: 500;
    border: 2px solid red;
    padding: 0.6em;
    border-radius: 6px;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Input group */
.input-group-text {
    background-color: var(--lof-brand-bg);
    border-color: #dee2e6;
    font-weight: 500;
}

/* ----------------------------------------------------------
   6. BOTONES
   ---------------------------------------------------------- */

/* Transicion universal para todos los botones */
.btn {
    transition: all var(--lof-transition-fast);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--lof-shadow-sm);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
}

/* Boton primario - color marca */
.btn-primary {
    background-color: var(--lof-brand);
    color: #fff;
    border: 1px solid var(--lof-brand);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--lof-brand-dark);
    color: #fff;
    border-color: var(--lof-brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(183, 213, 0, 0.3);
}

.btn-primary:active {
    background-color: var(--lof-brand-dark);
    color: #fff;
    transform: translateY(0) scale(0.98);
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(183, 213, 0, 0.4);
}

/* ----------------------------------------------------------
   7. TABLAS Y GRILLAS
   ---------------------------------------------------------- */

/* Tabla con bordes redondeados y sombra */
.table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--lof-shadow-sm);
}

/* Encabezado de tabla */
.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--lof-brand);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #495057;
}

/* Hover en filas con transicion suave */
.table-hover tbody tr {
    transition: background-color var(--lof-transition-fast), box-shadow var(--lof-transition-fast);
}

.table-hover tbody tr:hover {
    background-color: var(--lof-brand-bg) !important;
    box-shadow: inset 3px 0 0 var(--lof-brand);
}

/* Paginacion con color marca */
.page-link {
    transition: all var(--lof-transition-fast);
    border-radius: 4px !important;
    margin: 0 2px;
}

.page-item.active .page-link {
    background-color: var(--lof-brand);
    border-color: var(--lof-brand);
    color: #fff;
}

.page-link:hover {
    background-color: var(--lof-brand-bg);
    border-color: var(--lof-brand);
    color: var(--lof-brand-dark);
}

/* Botones de accion en grillas - scale en hover */
.table .btn-warning,
.table .btn-danger {
    transition: transform var(--lof-transition-fast), box-shadow var(--lof-transition-fast);
    border-radius: 6px;
}

.table .btn-warning:hover {
    transform: scale(1.12);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

.table .btn-danger:hover {
    transform: scale(1.12);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.table .btn-warning:active,
.table .btn-danger:active {
    transform: scale(0.95);
    box-shadow: none;
}

/* ----------------------------------------------------------
   8. MODALES
   ---------------------------------------------------------- */

/* Contenido del modal - sin overflow:hidden para no bloquear pointer events */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: var(--lof-shadow-lg);
}

/* Header del modal con gradiente - border-radius propio para no necesitar overflow:hidden en modal-content */
.modal-header {
    background: linear-gradient(135deg, var(--lof-brand) 0%, var(--lof-brand-dark) 100%);
    color: #fff;
    border-bottom: none;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity var(--lof-transition-fast);
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* ----------------------------------------------------------
   9. DROP ZONE - Carga Masiva
   ---------------------------------------------------------- */
.drop-zone {
    border: 2px dashed var(--lof-brand);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    background-color: var(--lof-brand-bg);
    transition: all var(--lof-transition-normal);
    cursor: pointer;
    position: relative;
}

.drop-zone:hover {
    background-color: var(--lof-brand-bg-hover);
    border-color: var(--lof-brand-dark);
    border-style: solid;
    box-shadow: 0 0 0 4px rgba(183, 213, 0, 0.15);
}

.drop-zone:hover .drop-zone-icon {
    animation: lof-pulse 1.5s ease-in-out infinite;
}

.drop-zone .drop-zone-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    color: var(--lof-brand);
    transition: transform var(--lof-transition-normal);
}

.drop-zone .drop-zone-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.drop-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Nombre archivo seleccionado */
.drop-zone-file-name {
    font-size: 0.85rem;
    color: #495057;
    margin-top: 0.5rem;
    display: block;
}

/* ----------------------------------------------------------
   10. BARRAS DE PROGRESO
   ---------------------------------------------------------- */
.progress {
    border-radius: 8px;
    height: 1.25rem;
    overflow: hidden;
    background-color: #e9ecef;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 0.75rem;
    font-weight: 600;
}

.progress-bar.bg-success {
    background-color: var(--lof-brand) !important;
    box-shadow: 0 0 8px rgba(183, 213, 0, 0.4);
}

/* ----------------------------------------------------------
   11. IMAGENES, CAROUSEL Y CAMARA
   ---------------------------------------------------------- */
.image-carousel-container {
    margin-top: 20px;
}

.carousel-item img {
    max-height: 400px;
    width: auto !important;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.form-control-file {
    margin-bottom: 15px;
}

.carousel {
    background-color: #000;
}

.btn-eliminar-foto {
    position: absolute;
    bottom: 0;
    text-align: end;
    right: 0;
    margin-right: 1rem;
}

.foto-transportista {
    width: 100%;
    max-width: 400px;
}

.imagen-50 {
    cursor: pointer;
    width: 50px;
    height: 50px;
    transition: transform var(--lof-transition-fast);
}

.imagen-50:hover {
    transform: scale(1.1);
    box-shadow: var(--lof-shadow-sm);
}

.mw-image-detagenda {
    max-width: 16rem !important;
    cursor: pointer;
    transition: transform var(--lof-transition-fast);
}

.mw-image-detagenda:hover {
    transform: scale(1.03);
    box-shadow: var(--lof-shadow-sm);
}

.imagen-header {
    position: relative;
    max-width: 375px !important;
}

.div-camara {
    max-width: 400px;
    width: 100%;
}

/* ----------------------------------------------------------
   12. CLASES UTILITARIAS
   ---------------------------------------------------------- */

/* Politica de contrasena - Usuarios */
.password-policy-title {
    font-size: 0.9em;
}

.password-policy-list {
    font-size: 0.7em;
}
.wd-10 { width: 10%; }
.wd-15 { width: 15%; }
.wd-20 { width: 20%; }
.wd-25 { width: 25%; }
.wd-30 { width: 30%; }
.wd-35 { width: 35%; }
.wd-40 { width: 40%; }
.wd-45 { width: 45%; }
.wd-50 { width: 50%; }
.wd-55 { width: 55%; }
.wd-60 { width: 60%; }
.wd-65 { width: 65%; }
.wd-70 { width: 70%; }
.wd-75 { width: 75%; }
.wd-80 { width: 80%; }

.cur-pointer {
    cursor: pointer;
}

.zix-1000 {
    z-index: 1000 !important;
}

.alerta {
    position: relative;
    z-index: 1000 !important;
}

/* ----------------------------------------------------------
   13. CARDS Y COMPONENTES ESPECIFICOS
   ---------------------------------------------------------- */

/* Cards con hover lift */
.card {
    transition: box-shadow var(--lof-transition-normal), transform var(--lof-transition-normal);
    border-radius: 8px;
}

.card:hover {
    box-shadow: var(--lof-shadow-md);
    transform: translateY(-2px);
}

.card-gracias {
    width: 100%;
    margin-top: 6rem;
}

.card-header-formulario {
    background-color: #fff !important;
    display: flex !important;
    justify-content: center !important;
}

/* Login shadow mejorada */
.shadow-login {
    box-shadow: var(--lof-shadow-lg) !important;
    border-radius: 12px;
    overflow: hidden;
}

.bb-top-row {
    background-color: #fff !important;
    border: 0 !important;
    display: flex !important;
    justify-content: center !important;
    min-height: 101px !important;
}

/* Badges mejorados */
.badge {
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Toast con bordes redondeados */
.toast {
    border-radius: 8px;
    box-shadow: var(--lof-shadow-md);
}

/* ----------------------------------------------------------
   14. FOOTER
   ---------------------------------------------------------- */
footer {
    border-top: none !important;
    background-color: #f8f9fa !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    margin-top: auto !important;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--lof-brand) 50%, transparent 100%);
}

footer a {
    color: var(--lof-brand-dark);
    text-decoration: none;
    transition: color var(--lof-transition-fast);
    font-weight: 500;
}

footer a:hover {
    color: var(--lof-brand);
    text-decoration: underline;
}

footer small, footer p {
    color: #6c757d;
}

.bb-footer {
    border-top: 1px solid #ddd !important;
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    margin-top: auto !important;
}

/* ----------------------------------------------------------
   15. CARGA MASIVA - Log Table
   ---------------------------------------------------------- */
.log-carga-masiva {
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.85rem;
}

.log-carga-masiva .log-ok {
    background-color: #f0fdf4;
}

.log-carga-masiva .log-ok td {
    color: #198754;
}

.log-carga-masiva .log-warning {
    background-color: #fff7ed;
}

.log-carga-masiva .log-warning td {
    color: #fd7e14;
    font-weight: 500;
}

.log-carga-masiva .log-error {
    background-color: #fef2f2;
}

.log-carga-masiva .log-error td {
    color: #dc3545;
    font-weight: 500;
}

/* ----------------------------------------------------------
   16. SCROLLBAR PERSONALIZADO
   ---------------------------------------------------------- */

/* Chromium */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lof-brand);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #c5c5c5 #f1f1f1;
}

/* Scrollbar del log siempre verde */
.log-carga-masiva::-webkit-scrollbar-thumb {
    background: var(--lof-brand);
}

/* ----------------------------------------------------------
   17. BLAZOR ERROR BOUNDARY
   ---------------------------------------------------------- */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ----------------------------------------------------------
   18. KEYFRAMES (animaciones agrupadas)
   ---------------------------------------------------------- */

/* Fade in de contenido - solo opacity, sin transform.
   opacity:1 al final NO crea stacking context (solo opacity < 1 lo crea).
   Se aplica en .row (hermanos del Modal), nunca en ancestros del modal. */
@keyframes lof-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Dropdown fade in - mismo motivo: transform:none al final */
@keyframes lof-dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Pulse para iconos (drop zone) */
@keyframes lof-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

/* Titulo slide in desde la izquierda */
@keyframes lof-titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Linea gradiente crece desde la izquierda */
@keyframes lof-titleLineGrow {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Blink highlight (existente) */
@keyframes blink-highlight {
    0% { background-color: transparent; }
    25% { background-color: #fffa90; }
    50% { background-color: transparent; }
    75% { background-color: #fffa90; }
    100% { background-color: transparent; }
}

.blink-highlight {
    animation: blink-highlight 1s ease-in-out 5;
}

/* ----------------------------------------------------------
   19. ACCESIBILIDAD - Respetar preferencias del usuario
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
