/* ===========================
   RESET & BASE
   =========================== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lucida Sans', sans-serif;
    font-weight: 600;
    overflow-x: hidden;
}

/* ===========================
   VISIBILIDAD RESPONSIVA
   =========================== */
.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar-custom {
    padding: 0 50px;
    height: 100px;
    width: 100%;
    /* border-bottom: solid 1px #d02727; */
    position: sticky;
    top: 0;
    z-index: 998;
    background-color: white;
}

.navbar-container {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
#logo-sesea img {
    width: 100px;
    height: auto;
}

/* Secciones del navbar */
.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Opciones del navbar */
.navbar-opcions {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
}

/* Botón hamburguesa */
.dropdown-btn {
    background: none;
    border: none;
    padding: 5px;
    padding-right: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.dropdown-btn:hover {
    transform: scale(1.1);
}

.dropdown-btn i {
    color: var(--color-primary);
    font-size: 28px;
}

/* Links y botones del navbar */
.navbar-opcions a,
.navbar-form button {
    text-decoration: none;
    background: none;
    border: none;
    font-family: 'Lucida Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: color 0.2s;
}

.navbar-opcions a:hover {
    color: var(--color-secondary);
}

.navbar-opcions a.nav-active {
    color: var(--color-secondary);
}

.navbar-form .nav-form-busqueda:hover {
    color: var(--color-primary-dark);
}

/* Lista del navbar derecho */
.navbar-right ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding-right: 35px;
}

/* ===========================
   BOTÓN DE SESIÓN
   =========================== */
#nav-form-sesion {
    background: var(--color-primary);
    color: white !important;
    height: 40px;
    padding-left: 20px;
    padding-right: 55px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    max-width: 280px;
    display: flex;
    align-items: center;
    position: relative;
    font-weight: 500;
}

#nav-form-sesion:hover {
    background-color: var(--color-secondary);
}

#nav-form-sesion i.bi {
    position: absolute;
    right: 0;
    font-size: 50px;
    color: var(--color-primary) !important;
    background: white !important;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--color-primary);
}

/* ===========================
   ANIMACIÓN CAMPANA
   =========================== */
@keyframes bell-ring {
    0%   { transform: rotate(0deg); }
    10%  { transform: rotate(15deg); }
    20%  { transform: rotate(-15deg); }
    30%  { transform: rotate(12deg); }
    40%  { transform: rotate(-12deg); }
    50%  { transform: rotate(8deg); }
    60%  { transform: rotate(-8deg); }
    70%  { transform: rotate(4deg); }
    80%  { transform: rotate(-4deg); }
    90%  { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

/* Botón de ayuda (interrogación) */
.nav-form-ayuda {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-form-ayuda i.bi {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-primary);
    transition: color 0.2s;
}
.nav-form-ayuda:hover i.bi {
    color: var(--color-secondary);
}

/* Contenedor del icono de notificación */
.nav-form-notificacion,
#mobile-toggle-notificacion {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Icono campana */
.nav-form-notificacion i.bi,
#mobile-toggle-notificacion i.bi {
    font-size: 18px;
    display: inline-block;
    transform-origin: top center;
}

/* Hover */
.nav-form-notificacion:hover i.bi,
#mobile-toggle-notificacion:hover i.bi {
    animation: bell-ring 1s ease-in-out;
}

/* Animación automática cuando hay notificaciones sin leer */
.nav-form-notificacion.has-notifications i.bi,
#mobile-toggle-notificacion.has-notifications i.bi {
    animation: bell-ring 1s ease-in-out 2s infinite;
}

/* ===========================
   BADGE DE NOTIFICACIONES
   =========================== */
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}

.badge-notificacion {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse-badge 2s ease-in-out infinite;
}

/* Ajustes desktop */
.nav-form-notificacion .badge-notificacion {
    top: -8px;
    right: -8px;
}

/* Ajustes mobile */
#mobile-toggle-notificacion .badge-notificacion {
    top: -5px;
    right: -5px;
}

/* ===========================
   DROPDOWNS DESKTOP
   =========================== */

/* Ocultos por defecto */
#form-dropdown-busqueda,
#form-dropdown-sesion {
    display: none;
    position: absolute;
    background-color: white;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 4px 10px rgba(109, 189, 158, 0.3);
    z-index: 999;
}

/* Piquito superior */
#form-dropdown-busqueda::before,
#form-dropdown-sesion::before {
    content: '';
    position: absolute;
    top: -12px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 11px solid var(--color-secondary);
}

#form-dropdown-busqueda::after,
#form-dropdown-sesion::after {
    content: '';
    position: absolute;
    top: -9px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

#form-dropdown-busqueda::before,
#form-dropdown-busqueda::after {
    right: 80px;
}

#form-dropdown-sesion::before,
#form-dropdown-sesion::after {
    right: 120px;
}

/* Clase para mostrar dropdowns */
.show {
    display: block !important;
}

/* Formulario búsqueda desktop */
.navbar-form {
    position: relative;
}

#form-dropdown-busqueda {
    top: 150%;
    right: 0;
    width: 640px;
    height: 240px;
    padding: 40px;
}

/* Formulario sesión desktop */
#form-dropdown-sesion {
    top: 150%;
    right: 0;
    width: 420px;
    height: auto;
    padding: 16px 20px;
    overflow-y: auto;
}

/* Cuando el usuario está logueado */
#form-dropdown-sesion:has(.user-menu-options) {
    max-height: 350px;
}

/* Títulos de formularios desktop */
#form-dropdown-busqueda h2,
#form-dropdown-sesion h2,
#form-dropdown-busqueda h3,
#form-dropdown-sesion h3,
#form-dropdown-busqueda h5,
#form-dropdown-sesion h5 {
    margin-bottom: 4px;
    color: var(--color-primary);
}

#form-dropdown-sesion h2 { font-size: 18px; }
#form-dropdown-sesion h3 { font-size: 14px; }
#form-dropdown-sesion h5 { font-size: 12px; }

/* Formularios desktop */
#form-dropdown-busqueda form,
#form-dropdown-sesion form {
    display: flex;
    flex-direction: column;
    color: var(--color-primary);
    gap: 8px;
    margin-top: 8px;
}

/* Grupo de formulario desktop */
#form-dropdown-busqueda .form-group,
#form-dropdown-sesion .form-group {
    display: flex;
    flex-direction: column;
}

/* Etiquetas desktop */
#form-dropdown-busqueda label,
#form-dropdown-sesion label {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 3px;
    color: var(--color-primary);
}

/* Inputs desktop */
#form-dropdown-busqueda input,
#form-dropdown-sesion input {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    font-family: 'Lucida Sans', sans-serif;
    background-color: white;
    color: var(--color-primary);
    box-sizing: border-box;
}

#form-dropdown-sesion input:focus {
    background-color: white;
    outline: none;
    border-color: var(--color-primary);
}

#form-dropdown-sesion input:-webkit-autofill,
#form-dropdown-sesion input:-webkit-autofill:hover,
#form-dropdown-sesion input:-webkit-autofill:focus,
#form-dropdown-sesion input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--color-primary) !important;
}

/* Botones de formularios desktop */
#form-dropdown-busqueda button[type="submit"] {
    height: 34px;
    width: 100%;
    margin-top: 4px;
    color: white;
    background-color: var(--color-primary);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#form-dropdown-sesion button[type="submit"] {
    height: 34px;
    width: 100%;
    color: white;
    background-color: var(--color-primary);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 4px;
    transition: background-color 0.3s;
}

#form-dropdown-busqueda button[type="submit"]:hover,
#form-dropdown-sesion button[type="submit"]:hover {
    background-color: var(--color-secondary);
}

/* Ayuda desktop */
.form-ayuda {
    margin-top: 8px;
    text-align: left;
    color: var(--color-primary);
    font-size: 13px;
}

.form-ayuda a {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.form-ayuda a:hover {
    opacity: 0.85;
}

/* ===========================
   MENÚ HAMBURGUESA DESKTOP
   =========================== */
#menu-dropdown-desktop {
    position: relative;
}

.content-dropdown-desktop {
    display: none;
    position: absolute;
    top: 150%;
    left: 0;
    background-color: white;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 4px 10px rgba(109, 189, 158, 0.3);
    z-index: 1000;
    border-radius: 4px;
    width: 500px;
}

/* Piquito superior */
.content-dropdown-desktop::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 11px solid var(--color-secondary);
    z-index: 1001;
}

.content-dropdown-desktop::after {
    content: '';
    position: absolute;
    top: -9px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    z-index: 1002;
}

.content-dropdown-desktop.show {
    display: block !important;
}

.desktop-menu-container {
    padding: 10px 0;
    max-height: 600px;
    overflow-y: auto;
}

/* ===========================
   MENÚ HAMBURGUESA MOBILE
   =========================== */
#menu-dropdown {
    position: relative;
}

.content-dropdown {
    display: none;
    position: absolute;
    background-color: white;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 4px 10px rgba(109, 189, 158, 0.3);
    z-index: 1000;
    border-radius: 4px;
}

/* Piquito superior */
.content-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 11px solid var(--color-secondary);
    z-index: 1001;
}

.content-dropdown::after {
    content: '';
    position: absolute;
    top: -9px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    z-index: 1002;
}

.mobile-menu-container {
    padding: 10px 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

/* ===========================
   ITEMS DEL MENÚ
   =========================== */
.menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.menu-item:last-child {
    border-bottom: none;
}

/* Links y botones del menú */
.menu-link,
.nav-form-ver,
.nav-form-ver-usuario,
.nav-form-ver-tit-aut {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Lucida Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-link:hover,
.nav-form-ver:hover,
.nav-form-ver-usuario:hover,
.nav-form-ver-tit-aut:hover {
    background-color: var(--color-primary-alpha);
    color: var(--color-primary-dark);
}

/* Estado activo (página actual) */
.menu-link.nav-active,
.nav-form-ver.nav-active,
.nav-form-ver-usuario.nav-active,
.nav-form-ver-tit-aut.nav-active {
    background-color: var(--color-primary-alpha);
    color: var(--color-primary-dark);
}

.menu-link i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.menu-link .arrow-icon {
    margin-left: auto;
    transition: transform 0.3s;
    font-size: 16px;
}

.menu-link.active .arrow-icon {
    transform: rotate(180deg);
}

/* Submenús */
.submenu {
    display: none;
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.submenu.show {
    display: block;
}

.submenu h3 {
    color: var(--color-primary);
    font-size: 16px;
    margin-bottom: 8px;
    text-align: center;
}

.submenu p {
    color: #6F6F6F;
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: normal;
}

/* Formularios dentro de submenús */
.submenu form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.submenu .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.submenu label {
    font-size: 12px;
    font-weight: bold;
    color: var(--color-primary);
}

.submenu input {
    padding: 10px;
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    font-family: 'Lucida Sans', sans-serif;
    font-size: 14px;
    background-color: white;
    color: var(--color-primary);
}

.submenu input:focus {
    background-color: white;
    outline: none;
    border-color: var(--color-primary);
}

.submenu input:-webkit-autofill,
.submenu input:-webkit-autofill:hover,
.submenu input:-webkit-autofill:focus,
.submenu input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--color-primary) !important;
}

.submenu button[type="submit"] {
    padding: 12px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 5px;
}

.submenu button[type="submit"]:hover {
    background-color: var(--color-secondary);
}

.submenu .form-ayuda {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    color: var(--color-primary);
    font-weight: normal;
}

.submenu .form-ayuda a {
    font-size: 15px;
    color: var(--color-primary);
    text-decoration: none;
    text-align: center;
    font-weight: normal;
    transition: opacity 0.2s;
}

.submenu .form-ayuda a:hover {
    opacity: 0.85;
}

/* Divisor */
.menu-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 10px 0;
}

/* Descripción de sección */
.menu-description {
    padding: 15px 25px;
    background-color: #f5f9f8;
    border-left: 3px solid var(--color-secondary);
    margin: 10px 0;
    height: 100px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.menu-description p {
    font-size: 13px;
    line-height: 1.5;
    color: #4a4a4a;
    font-weight: normal;
    margin: 0;
    text-align: justify;
    transition: color 0.3s ease;
}

.menu-description.active {
    background-color: #e8f5f1;
    border-left-color: var(--color-primary);
}

.menu-description.active p {
    color: #2d5549;
    font-weight: normal;
}

/* ===========================
   CONTENIDO PRINCIPAL
   =========================== */
.content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===========================
   FOOTER
   =========================== */
footer {
    background-color: #6F6F6F;
    color: white;
    padding: 30px 20px 20px 20px;
    font-weight: normal;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.footer-content-left {
    flex-shrink: 0;
}

.footer-content-center {
    flex-grow: 0;
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
}

.footer-logo {
    max-width: 170px;
    height: auto;
    display: block;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--color-secondary);
}

footer p {
    font-size: 13px;
    color: white;
    text-align: center;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#footer-informacion {
    font-style: normal;
    line-height: 1.6;
    font-size: 14px;
    color: white;
    max-width: 580px;
    margin: 0;
    padding: 0;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 950px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .navbar-custom {
        height: 70px;
        padding: 0 20px;
    }

    .navbar-container {
        justify-content: space-between;
    }

    #logo-sesea img {
        width: 90px;
    }

    .navbar-right {
        gap: 20px;
    }

    .navbar-opcions a {
        font-size: 12px;
    }

    .dropdown-btn {
        padding: 8px;
    }

    .dropdown-btn i {
        font-size: 32px;
    }

    /* Barra lateral mobile */
    .content-dropdown {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        border-radius: 0;
        transition: right 0.3s ease-out;
        z-index: 9999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    /* Ocultar piquito en mobile */
    .content-dropdown::before,
    .content-dropdown::after {
        display: none;
    }

    .content-dropdown.show {
        right: 0 !important;
        display: block !important;
    }

    /* Header de la barra lateral */
    .sidebar-header {
        display: flex;
        justify-content: flex-end;
        padding: 15px 20px;
        border-bottom: 1px solid #e0e0e0;
        background: #ffffff;
    }

    /* Botón cerrar */
    .close-sidebar-btn {
        background: transparent;
        font-size: 20px;
        color: var(--color-primary);
        cursor: pointer;
        padding: 8px;
        line-height: 1;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
    }

    .close-sidebar-btn:hover {
        background: var(--color-secondary);
        color: white;
    }

    .mobile-menu-container {
        max-height: 100vh;
        overflow-y: auto;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .navbar-custom {
        padding: 0 15px;
    }

    #logo-sesea img {
        width: 75px;
    }

    .navbar-right {
        gap: 15px;
    }

    .navbar-opcions a {
        font-size: 13px;
    }

    .content-dropdown {
        width: 90%;
        max-width: 320px;
    }

    .menu-link {
        padding: 12px 15px;
        font-size: 14px;
    }

    .submenu {
        padding: 15px;
    }

    .close-sidebar-btn {
        top: 15px;
        right: 15px;
        font-size: 24px;
        width: 36px;
        height: 36px;
    }

    footer .footer-logo {
        max-width: 100px;
    }

    footer .footer-content-center {
        font-size: 10px;
    }
}

/* ===========================
   SCROLLBAR PERSONALIZADO
   =========================== */
.mobile-menu-container::-webkit-scrollbar,
.desktop-menu-container::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu-container::-webkit-scrollbar-track,
.desktop-menu-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-menu-container::-webkit-scrollbar-thumb,
.desktop-menu-container::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 3px;
}

.mobile-menu-container::-webkit-scrollbar-thumb:hover,
.desktop-menu-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ===========================
   DESKTOP - MENÚ USUARIO LOGUEADO
   =========================== */
#form-dropdown-sesion .user-menu-options {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 30px;
}

#form-dropdown-sesion .user-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#form-dropdown-sesion .user-menu-link i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

#form-dropdown-sesion .user-menu-link:hover {
    background-color: #f8f8f8;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

#form-dropdown-sesion .user-menu-link.logout {
    margin-top: 10px;
    background-color: #f5f5f5;
}

#form-dropdown-sesion .user-menu-link.logout:hover {
    background-color: #ffebee;
    border-color: #ef5350;
    color: #d32f2f;
}

/* ===========================
   MOBILE - MENÚ USUARIO LOGUEADO
   =========================== */
.submenu .user-menu-mobile {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 15px;
}

.submenu .mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.submenu .mobile-menu-link i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.submenu .mobile-menu-link:hover {
    background-color: #f8f8f8;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.submenu .mobile-menu-link.logout {
    margin-top: 10px;
    background-color: #f5f5f5;
}

.submenu .mobile-menu-link.logout:hover {
    background-color: #ffebee;
    border-color: #ef5350;
    color: #d32f2f;
}

/* ===========================
   ERROR DE LOGIN EN MODAL
   =========================== */
.login-error-msg {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 6px;
    background-color: #ffebee;
    border: 1px solid #ef9a9a;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
    color: #b71c1c;
    font-size: 13px;
    font-weight: 600;
    animation: fadeInError 0.25s ease;
}

.login-error-msg.visible {
    display: flex;
}

.login-error-msg::before {
    content: '⚠';
    font-size: 15px;
    flex-shrink: 0;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Input con error */
.input-error {
    border-color: #d32f2f !important;
    background-color: #fff8f8 !important;
}

.input-error:focus {
    border-color: #b71c1c !important;
    outline: none;
}

/* ============================================
   MODAL DE ALERTA GLOBAL (reemplaza alert())
   ============================================ */
.modal-alerta-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.25s ease;
}

.modal-alerta {
    background: white;
    border-radius: 14px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.25s ease;
    overflow: hidden;
}

.modal-alerta-header {
    padding: 22px 30px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-alerta-header.warning {
    background: #fff8e1;
    border-bottom: 1px solid #ffe082;
}

.modal-alerta-header.error {
    background: #ffebee;
    border-bottom: 1px solid #ef9a9a;
}

.modal-alerta-header.info {
    background: #e8f5ee;
    border-bottom: 1px solid var(--color-secondary);
}

.modal-alerta-header i {
    font-size: 1.6rem;
}

.modal-alerta-header.warning i { color: #f9a825; }
.modal-alerta-header.error i { color: #d32f2f; }
.modal-alerta-header.info i { color: var(--color-primary); }
.modal-alerta-header.success i { color: #388e3c; }

.modal-alerta-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
    flex: 1;
}

.modal-alerta-body {
    padding: 22px 30px;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    max-height: 50vh;
    overflow-y: auto;
}

.modal-alerta-body ul {
    margin: 8px 0 0;
    padding-left: 22px;
}

.modal-alerta-body li {
    margin: 6px 0;
    color: #555;
}

.modal-alerta-footer {
    padding: 0 30px 20px;
    display: flex;
    justify-content: flex-end;
}

.btn-cerrar-alerta-modal {
    padding: 10px 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.btn-cerrar-alerta-modal:hover {
    opacity: 0.9;
}

/* ============================================
   ANIMACIONES (compartidas)
   ============================================ */
@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ============================================
   TOOLTIP DE FORMULARIOS
   Componente global reutilizable (CSS puro).
   Uso:
   <span class="form-tooltip" tabindex="0">
       <i class="bi bi-info-circle"></i>
       <span class="form-tooltip-texto">Mensaje</span>
   </span>
   ============================================ */
.form-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    color: var(--color-primary);
    font-size: 0.85rem;
    cursor: help;
    outline: none;
    vertical-align: middle;
}

.form-tooltip:hover,
.form-tooltip:focus {
    color: var(--color-primary-dark);
}

.form-tooltip-texto {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 180px;
    max-width: 240px;
    width: max-content;
    padding: 8px 12px;
    background-color: #2d3748;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

.form-tooltip-texto::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #2d3748 transparent transparent transparent;
}

.form-tooltip:hover .form-tooltip-texto,
.form-tooltip:focus .form-tooltip-texto {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===========================
   TÍTULOS DE VISTA (compartidos)
   =========================== */
.denuncias-titulo-vista {
    margin: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .denuncias-titulo-vista {
        margin: var(--spacing-md) 0 var(--spacing-sm);
        font-size: 1.25rem;
    }
}