/* ====================================
   VARIABLES GLOBALES
   ==================================== */
:root {
    --color-primary: #0066cc;
    --color-secondary: #28a745;
    --color-accent: #F26430;
    --color-seguridad: #E53E3E;
    --color-accidente: #9F7AEA;
    --color-alumbrado: #FBBF24;
    --color-inundacion: #3182CE;
    --color-animales: #2F855A;
    --color-arboles: #9AE6B4;
    --color-calle-rota: #2D3748;
    --color-intransitable: #8B5A2B;
    --color-obstruccion: #9CA3AF;
    
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

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

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: var(--gray-100);
}

/* ====================================
   SPLASH SCREEN
   ==================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../icons/infovecino_banner.png') center/cover,
                linear-gradient(135deg, var(--color-primary), #1A4B6D);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    color: white;
    animation: contentFadeIn 0.8s ease-out;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-infovecino {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.splash-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
    animation: logoEntrance 1s ease-out;
}

.header-logo {
    max-height: 40px;
    height: auto;
    width: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .splash-logo {
        max-width: 150px;
    }
    
    .header-logo {
        max-height: 35px;
    }
}

@media (max-width: 480px) {
    .splash-logo {
        max-width: 120px;
    }
    
    .header-logo {
        max-height: 30px;
    }
}

@keyframes logoEntrance {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.slogan {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0;
    animation: sloganFadeIn 1s ease-out 0.5s forwards;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

@keyframes sloganFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.loader {
    margin-top: 2rem;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: auto;
    margin-right: auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====================================
   APP PRINCIPAL
   ==================================== */
.app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ====================================
   HEADER
   ==================================== */
.header {
    background-color: white;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
}

.badge-accent {
    background-color: var(--color-accent);
    color: white;
}

/* ====================================
   PAGE CONTAINER
   ==================================== */
.page-container {
    flex: 1;
    overflow-y: auto;
    background: var(--gray-100);
    position: relative;
}

/* ====================================
   NAVEGACIÓN INFERIOR
   ==================================== */
.bottom-nav {
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-500);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item.active {
    color: var(--color-primary);
}

/* ====================================
   HOME PAGE
   ==================================== */
.home-page {
    padding: 1rem;
    padding-bottom: 1rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1rem 0.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
}

.quick-report-card {
    background: linear-gradient(135deg, var(--color-primary), #1A4B6D);
    border-radius: 20px;
    padding: 1.5rem;
    color: white;
}

.quick-report-btn {
    background: white;
    color: var(--color-primary);
    border: none;
    border-radius: 30px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.quick-report-btn:active {
    transform: scale(0.95);
}

.recent-reports-list {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recent-report-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

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

.report-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.report-info {
    flex: 1;
}

.report-title {
    font-weight: 500;
    color: var(--gray-800);
}

.report-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.report-time {
    font-size: 0.75rem;
    color: var(--gray-500);
    white-space: nowrap;
}

.mini-map-preview {
    border-radius: 16px;
    height: 120px;
    position: relative;
    overflow: hidden;
    background-image: url('https://tile.openstreetmap.org/14/8557/6357.png');
    background-size: cover;
    background-position: center;
    margin-top: 1rem;
    cursor: pointer;
}

.mini-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.5rem;
}

/* ====================================
   REPORTAR PAGE
   ==================================== */
.report-page {
    padding: 1rem;
}

.incident-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.incident-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    background: var(--gray-100);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.incident-type-item.selected {
    border-color: var(--color-primary);
    background: white;
}

.type-icon {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.type-icon i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.photo-upload-area {
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
}

.photo-upload-area i {
    font-size: 2.5rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.location-picker {
    background: var(--gray-100);
    border-radius: 16px;
    overflow: hidden;
}

.current-location {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--gray-300);
    cursor: pointer;
}

.current-location i {
    color: var(--color-primary);
}

.manual-address {
    padding: 1rem;
}

.location-preview {
    height: 100px;
    background: var(--gray-200);
    cursor: pointer;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.location-preview.has-map {
    height: 180px;
}

#mapa-inline-reporte {
    border-radius: 0 0 16px 16px;
}

.mapa-instruccion {
    background: #e3f2fd;
    color: #1565c0;
    border-bottom: 1px solid #bbdefb;
}

.mapa-coords {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-family: monospace;
}

.preview-map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    gap: 0.25rem;
}

.submit-report-btn {
    width: 100%;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}

.submit-report-btn:active {
    background: #e09d1f;
}

/* ====================================
   MIS REPORTES PAGE
   ==================================== */
.mis-reportes-page {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.map-container-inline {
    height: 40vh;
    min-height: 250px;
    width: 100%;
    transition: height 0.3s ease;
    border-bottom: 2px solid var(--gray-200);
}

.map-container-inline.expanded {
    height: 60vh;
}

.map-inline {
    width: 100%;
    height: 100%;
}

.map-toggle-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

.my-reports-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--gray-100);
}

.my-report-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-200);
}

.my-report-color {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.my-report-info {
    flex: 1;
}

.my-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.my-report-title {
    font-weight: 600;
    color: var(--gray-800);
}

.status-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-weight: 500;
}

.status-nuevo {
    background: rgba(49, 130, 206, 0.1);
    color: #3182CE;
}

.status-proceso {
    background: rgba(246, 174, 45, 0.1);
    color: #F6AE2D;
}

.status-resuelto {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

/* ====================================
   PERFIL PAGE
   ==================================== */
.perfil-page {
    padding: 0;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.profile-avatar i {
    font-size: 4rem;
    color: var(--color-primary);
}

.profile-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
}

.profile-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.profile-stat-label {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.profile-menu {
    padding: 1rem 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
}

.profile-menu-item i:first-child {
    width: 20px;
    color: var(--color-primary);
}

.profile-menu-item span {
    flex: 1;
}

.profile-menu-item i:last-child {
    color: var(--gray-400);
    font-size: 0.8rem;
}

.profile-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* ====================================
   OFFLINE TOAST
   ==================================== */
.offline-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-800);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 10000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ====================================
   UTILIDADES
   ==================================== */
.bg-accent {
    background-color: var(--color-accent) !important;
}

.text-primary-custom {
    color: var(--color-primary) !important;
}

/* ====================================
   PERFIL - ESTILOS ESPECÍFICOS
   ==================================== */

.perfil-page {
    background: var(--gray-100);
    min-height: 100%;
    padding-bottom: 20px;
}

.profile-header {
    border-bottom: 1px solid var(--gray-200);
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #1A4B6D);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.avatar-placeholder span {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

.btn-change-photo {
    width: 36px;
    height: 36px;
    border: none;
    transition: all 0.2s;
}

.btn-change-photo:active {
    transform: scale(0.95);
}

/* Tarjetas de sección */
.section-card {
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid var(--gray-200);
}

.info-row {
    align-items: center;
}

.info-label {
    font-size: 0.9rem;
}

.info-value {
    font-size: 0.95rem;
}

/* Direcciones */
.direccion-item {
    transition: background 0.2s;
}

.direccion-item:hover {
    background: var(--gray-100);
}

.direccion-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estadísticas circulares */
.stat-circle {
    background: var(--gray-100);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Botones de acción */
.btn-outline-danger {
    border-color: var(--gray-300);
    color: #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

/* Formulario de edición */
.edit-mode {
    animation: slideIn 0.3s ease;
}

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

/* Responsive */
@media (min-width: 768px) {
    .section-card {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ====================================
   FIX PARA CELULARES REALES
   ==================================== */

/* Asegurar que el html y body ocupen todo el alto */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Contenedor principal */
.app {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}

/* Contenedor de páginas */
.page-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: calc(100vh - 120px); /* Altura total menos header y nav */
}

/* Header fijo */
.header {
    flex-shrink: 0;
    height: 60px;
    background: white;
    z-index: 10;
}

/* Menú inferior FIJO */
.bottom-nav {
    flex-shrink: 0;
    display: flex !important;
    background: white;
    border-top: 1px solid #dee2e6;
    height: 70px;
    padding: 8px 0;
    width: 100%;
    position: relative;
    bottom: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* Botones del menú */
.nav-item {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 12px;
    padding: 5px 0;
    margin: 0;
    cursor: pointer;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 11px;
}

.nav-item.active {
    color: var(--color-primary, #2E86AB) !important;
}

/* Fix para iOS */
@supports (-webkit-touch-callout: none) {
    .app {
        height: -webkit-fill-available;
    }
    
    .bottom-nav {
        padding-bottom: constant(safe-area-inset-bottom);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Fix para navegadores móviles */
@media (max-width: 768px) {
    .bottom-nav {
        height: 65px;
    }
    
    .page-container {
        height: calc(100vh - 125px); /* 60px header + 65px nav */
    }
}

/* Agregar a styles.css */
.login-page {
    height: 100%;
    background: 
        linear-gradient(135deg, 
            rgba(0, 102, 204, 0.08), 
            rgba(26, 75, 109, 0.08)
        ),
        url('/icons/infovecino_banner.png') center/cover;
    background-blend-mode: soft-light;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.login-page > .container {
    position: relative;
    z-index: 2;
}

/* Versión de app en login */
#app-version {
    position: relative;
    z-index: 10;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    border-radius: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

#app-version i {
    color: rgb(255, 166, 0); /* 🟡 Icono dorado BRILLANTE para test de actualización v3 */
    filter: drop-shadow(0 0 12px rgba(182, 155, 1, 0.9));
    animation: iconGlow 2.5s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1.08) rotate(2deg); }
}

.logo-login {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.login-logo {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* Slogan del login */
.login-page .text-light {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    letter-spacing: 0.5px;
}

.emergency-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ====================================
   ESTILOS PARA SALUDO DINÁMICO
   ==================================== */

.welcome-header {
    transition: all 0.5s ease;
    color: white;
    padding: 20px !important;
    border-radius: 20px !important;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.welcome-header .text-secondary {
    color: rgba(255,255,255,0.9) !important;
}

.welcome-header .weather-widget {
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px);
    color: white !important;
    border: 1px solid rgba(255,255,255,0.3);
}

.welcome-header .weather-widget i {
    color: white !important;
}

.welcome-header .weather-widget span {
    color: white !important;
    font-weight: 600;
}

/* Animación para el cambio de saludo */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-header {
    animation: fadeIn 0.5s ease;
}
/* ====================================
   ESTILOS PARA CLIMA
   ==================================== */

.weather-widget {
    transition: all 0.5s ease;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    cursor: help;
}

.weather-widget i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.weather-widget span {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Skeleton loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Tooltip personalizado */
.weather-widget:hover {
    transform: scale(1.05);
}

/* Estilos para diferentes rangos de temperatura */
.temp-extreme {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.temp-hot {
    background: linear-gradient(135deg, #d35400, #e67e22);
}

.temp-warm {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

.temp-mild {
    background: linear-gradient(135deg, #27ae60, #87e2a8);
}

.temp-cool {
    background: linear-gradient(135deg, #3498db, #a7c5eb);
}

.temp-cold {
    background: linear-gradient(135deg, #2980b9, #6dd5fa);
}

.temp-freezing {
    background: linear-gradient(135deg, #2c3e50, #3498db);
}
/* ====================================
   ESTILOS PARA LOGIN CON HUELLA
   ==================================== */

#seccionHuella {
    animation: slideDown 0.5s ease;
    margin-bottom: 20px;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), #1A4B6D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

/* ====================================
   PWA INSTALACIÓN PERSONALIZADA
   ==================================== */
.pwa-install-modal {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.pwa-install-modal .swal2-popup {
    padding: 2rem !important;
}

.pwa-install-modal .swal2-title {
    font-size: 1.5rem !important;
    color: var(--color-primary) !important;
    margin-bottom: 1rem !important;
}

.pwa-install-modal .swal2-html-container {
    margin: 1rem 0 !important;
    font-size: 0.95rem !important;
}

.btn-install-pwa {
    background: linear-gradient(135deg, var(--color-primary), #1A4B6D) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3) !important;
}

.btn-install-pwa:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4) !important;
}

.btn-cancel-pwa {
    background: var(--gray-400) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.btn-cancel-pwa:hover {
    background: var(--gray-500) !important;
    transform: translateY(-1px) !important;
}

/* Animación para el icono del modal */
.pwa-install-modal img {
    animation: logoScale 2s ease-in-out infinite alternate;
}

@keyframes logoScale {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Estilos para móvil */
@media (max-width: 768px) {
    .pwa-install-modal {
        margin: 1rem !important;
        border-radius: 16px !important;
    }
    
    .pwa-install-modal .swal2-popup {
        padding: 1.5rem !important;
        max-width: 90vw !important;
    }
    
    .pwa-install-modal .swal2-title {
        font-size: 1.3rem !important;
    }
    
    .btn-install-pwa, .btn-cancel-pwa {
        font-size: 0.9rem !important;
        padding: 10px 20px !important;
    }
}

.avatar-circle:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.avatar-circle span {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

#btnLoginHuella {
    background: linear-gradient(135deg, var(--color-primary), #1A4B6D);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px;
    transition: all 0.3s;
}

#btnLoginHuella:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 134, 171, 0.3);
}

#btnLoginHuella i {
    font-size: 1.2rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Asegurar que el menú oculto no afecte el layout */
.bottom-nav.d-none {
    display: none !important;
}

/* Cuando el menú está oculto, el contenido ocupa toda la pantalla */
.bottom-nav.d-none + .page-container {
    height: 100vh;
}
/* ====================================
   ANIMACIÓN SECCIÓN HUELLA
   ==================================== */
#seccionHuella {
    /* Inicialmente oculto pero sin interferir con JavaScript */
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(-10px);
    position: relative;
    z-index: 1000;
}

#seccionHuella.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Permitir que JavaScript controle la visibilidad */
#seccionHuella[style*="display: block"] {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

/* Animación de pulso para el ícono */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#seccionHuella.mostrar .fa-fingerprint {
    animation: pulse 2s infinite;
}

/* ====================================
   PÁGINA DE REPORTES - FOTOS
   ==================================== */
.photo-upload-area {
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-area:hover {
    border-color: var(--color-primary);
    background: rgba(0, 102, 204, 0.05);
    color: var(--color-primary);
}

.photo-preview {
    margin-top: 1rem;
}

.preview-container {
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
}

.preview-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.validation-status {
    padding: 0.75rem;
    background: var(--gray-50);
    font-size: 0.875rem;
}

.validation-status.valid {
    background: rgba(40, 167, 69, 0.1);
    color: var(--color-secondary);
}

.validation-status.invalid {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.validation-status.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.photo-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Estados de validación */
.face-detected {
    border-color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.1) !important;
}

.inappropriate-content {
    border-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.1) !important;
}

.validation-approved {
    border-color: #28a745 !important;
    background: rgba(40, 167, 69, 0.1) !important;
}

/* Spinner personalizado */
.validation-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ====================================
   🔄 TEST DE VERSIÓN - 22/03/2026 14:30
   ==================================== */

.version-test-element {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    padding: 1rem;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: testPulse 2s ease-in-out infinite alternate;
}

@keyframes testPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.version-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 102, 204, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 9999;
}

/* ====================================
   MODO EMERGENCIA - REPORTAR
   ==================================== */

.emergency-banner {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border: none !important;
    color: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
    animation: emergencyPulse 2s ease-in-out infinite alternate;
}

@keyframes emergencyPulse {
    0% { box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3); }
    100% { box-shadow: 0 8px 20px rgba(220, 53, 69, 0.5); }
}

.emergency-title {
    color: #dc3545 !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.incident-type-critical {
    border: 2px solid #dc3545 !important;
    background: rgba(220, 53, 69, 0.05) !important;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2) !important;
}

.incident-type-critical:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3) !important;
}

/* Modo emergencia - botón back */
.emergency-back-btn {
    color: #dc3545 !important;
    font-weight: bold;
}

.emergency-back-btn:hover {
    color: #a71e2a !important;
    transform: scale(1.1);
}

/* ====================================
   OCULTAR BOTONES EN MODO EMERGENCIA
   ==================================== */

/* Clase para ocultar botones de manera agresiva */
.emergency-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Específicamente para botones nav en emergencia */
.bottom-nav .nav-item.emergency-hidden {
    display: none !important;
    flex: 0 !important;
}

/* Forzar ocultado por data-page */
.nav-item[data-page="home"].emergency-hidden,
.nav-item[data-page="mis-reportes"].emergency-hidden,
.nav-item[data-page="perfil"].emergency-hidden {
    display: none !important;
    visibility: hidden !important;
}

/* Modo emergencia: solo mostrar reportar y logout */
.emergency-mode .nav-item:not([data-page="reportar"]):not([data-page="logout"]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Estilos para el contenedor en modo emergencia */
.bottom-nav.emergency-mode {
    background-color: #f8f9fa !important;
    border-top: 3px solid #dc3545 !important;
    box-shadow: 0 -2px 10px rgba(220, 53, 69, 0.2) !important;
}

/* Botones visibles en modo emergencia con mejor contraste */
.bottom-nav.emergency-mode .nav-item[data-page="reportar"] {
    background-color: #dc3545 !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin: 0 5px !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
    transition: all 0.3s ease !important;
}

.bottom-nav.emergency-mode .nav-item[data-page="reportar"]:hover {
    background-color: #c82333 !important;
    transform: translateY(-2px) !important;
}

.bottom-nav.emergency-mode .nav-item[data-page="logout"] {
    background-color: #6c757d !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin: 0 5px !important;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3) !important;
    transition: all 0.3s ease !important;
}

.bottom-nav.emergency-mode .nav-item[data-page="logout"]:hover {
    background-color: #5a6268 !important;
    transform: translateY(-2px) !important;
}

/* Asegurar que el texto sea legible */
.bottom-nav.emergency-mode .nav-item i,
.bottom-nav.emergency-mode .nav-item span {
    color: white !important;
}

/* Fin de estilos para modo emergencia */

/* ====================================
   MÓDULO DE SELECCIÓN DE MUNICIPIOS
   ==================================== */

/* ====================================
   MÓDULO DE SELECCIÓN DE MUNICIPIOS
   ==================================== */

/* Indicador de municipio en formularios */
.municipio-indicator {
    background: linear-gradient(135deg, #e8f5e8, #f0f9f0);
    border-left: 4px solid #27ae60;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.1);
}

.municipio-selected {
    display: flex;
    align-items: center;
    gap: 10px;
}

.municipio-selected i {
    color: #27ae60;
    font-size: 16px;
}

.municipio-selected .municipio-nombre {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.btn-cambiar-municipio {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-cambiar-municipio:hover {
    background: rgba(39, 174, 96, 0.2);
    transform: translateY(-1px);
}

/* Indicador de tipo de incidente */
.tipo-incidente-indicator {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid #f39c12;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.1);
}

.tipo-selected {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tipo-selected i {
    color: #f39c12;
    font-size: 16px;
}

.tipo-selected .tipo-nombre {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.btn-cambiar-tipo {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-cambiar-tipo:hover {
    background: rgba(243, 156, 18, 0.2);
    transform: translateY(-1px);
}

/* Estados de tipos de incidente */
.incident-type-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px;
}

.incident-type-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.incident-type-item.selected {
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
}

.incident-type-item.selected .type-icon {
    border: 2px solid #3498db;
}

/* Loading y estados de error */
.loading-tipos, .error-tipos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: #6c757d;
    text-align: center;
}

.error-tipos {
    color: #dc3545;
}

.error-tipos h6 {
    color: #dc3545;
    margin-bottom: 15px;
}

.error-tipos .btn {
    margin: 5px;
}

.loading-tipos {
    font-style: italic;
}

/* ===================================
   MAPA DE UBICACIÓN EN MODAL
   =================================== */
.mapa-ubicacion {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.mapa-header h6 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.mapa-info {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
}

.ubicacion-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
}

#mapa-modal,
#mapa-ubicacion-reporte {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ubicacion-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ubicacion-actions .btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
}

/* Estilos para marcadores de Leaflet */
.marcador-usuario {
    background: transparent;
}

.usuario-pin {
    background: #007bff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: pulso 2s infinite;
}

@keyframes pulso {
    0% { transform: scale(1); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
    50% { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0,123,255,0.4); }
    100% { transform: scale(1); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
}

.popup-usuario {
    text-align: center;
}

.popup-usuario h4 {
    margin: 0 0 8px 0;
    color: #007bff;
    font-size: 16px;
}

/* Ajustes para controles de Leaflet en modal */
.mapa-ubicacion .leaflet-control-container {
    font-size: 12px;
}

.mapa-ubicacion .leaflet-control-zoom {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.loading-tipos i {
    animation: spin 1s linear infinite;
}

.error-tipos {
    text-align: center;
    padding: 20px;
    color: #dc3545;
}

.error-tipos i {
    font-size: 24px;
    margin-bottom: 10px;
}

.tipo-descripcion {
    display: block;
    font-size: 10px;
    color: #6c757d;
    margin-top: 2px;
    text-align: center;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.municipio-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.municipio-selector-modal.show {
    opacity: 1;
    visibility: visible;
}

.municipio-selector-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.municipio-selector-modal .modal-content {
    background: white;
    border-radius: 16px;
    max-width: 90vw;
    max-height: 80vh;
    width: 400px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.municipio-selector-modal.show .modal-content {
    transform: scale(1);
}

.municipio-selector-modal .modal-header {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    padding: 20px;
    text-align: center;
}

.municipio-selector-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.municipio-selector-modal .modal-header i {
    margin-right: 8px;
}

.municipio-selector-modal .modal-body {
    padding: 0;
    max-height: 50vh;
    overflow-y: auto;
}

.auto-deteccion {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.btn-auto-deteccion {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auto-deteccion:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

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

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

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 12px;
}

.municipios-lista {
    max-height: 300px;
    overflow-y: auto;
}

.municipio-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.municipio-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

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

.municipio-info h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.municipio-info .provincia {
    font-size: 12px;
    color: #7f8c8d;
}

.municipio-item i {
    color: #bdc3c7;
    font-size: 12px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-cancelar {
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Estilos para municipio recomendado/sugerido */
.municipio-sugerido {
    padding: 15px 20px;
    border-bottom: 1px solid #e8f5e8;
    background: linear-gradient(135deg, #f8fff8, #e8f5e8);
}

.btn-municipio-sugerido {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-municipio-sugerido:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    background: linear-gradient(135deg, #229954, #1e8449);
}

.municipio-recomendado {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(39, 174, 96, 0.1));
    border-left: 4px solid #27ae60;
}

.municipio-recomendado .municipio-info h4 {
    color: #27ae60;
    display: flex;
    align-items: center;
    gap: 8px;
}

.municipio-recomendado:hover {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(39, 174, 96, 0.15));
    transform: translateX(8px);
}

.municipio-info small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
}

.modal-header p.text-muted {
    font-size: 12px;
    margin-top: 8px;
}

/* ====================================
   ESTILOS PARA MAPAS GEOLOCALIZADOS
   ==================================== */

.mapa-estatico {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.mapa-placeholder {
    text-align: center;
    color: #6c757d;
}

.mapa-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #adb5bd;
}

.mapa-placeholder h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.mapa-placeholder p {
    margin: 0 0 15px;
    font-size: 14px;
}

.btn-reload {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reload:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Marcadores personalizados para el mapa */
.marcador-usuario {
    background: none !important;
    border: none !important;
}

.usuario-pin {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    animation: pulseUser 2s infinite;
}

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

.marcador-municipio {
    background: none !important;
    border: none !important;
}

.municipio-pin {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
}

/* Controles del mapa */
.control-ubicacion,
.control-municipio {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.btn-ubicacion {
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    color: #007bff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-ubicacion:hover {
    background: #007bff;
    color: white;
}

.municipio-info {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.municipio-info i {
    color: #e74c3c;
    font-size: 10px;
}

/* Popups del mapa */
.leaflet-popup-content {
    margin: 10px !important;
}

.popup-usuario,
.popup-municipio {
    text-align: center;
    min-width: 120px;
}

.popup-usuario h4,
.popup-municipio h4 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.popup-usuario i,
.popup-municipio i {
    margin-right: 5px;
    color: #e74c3c;
}

.popup-usuario p,
.popup-municipio p {
    margin: 0;
    font-size: 11px;
    color: #7f8c8d;
}

.popup-municipio small {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    color: #95a5a6;
}

/* ====================================
   WIDGETS DE MUNICIPIO EN HOME
   ==================================== */

.municipio-widget {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.municipio-action {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
}

.municipio-action:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.municipio-widget.no-selected .municipio-action {
    animation: municipioPulse 2s infinite;
}

.municipio-widget.selected .municipio-action {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
}

.municipio-widget.selected .municipio-action:hover {
    background: rgba(255, 255, 255, 1);
}

@keyframes municipioPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Estilos para el indicador de municipio en reportar */
.municipio-indicator {
    display: none;
    margin: 15px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.municipio-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.municipio-selected i {
    color: #007bff;
    margin-right: 8px;
}

.municipio-selected span {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
}

.btn-cambiar-municipio {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-cambiar-municipio:hover {
    background: #007bff;
    color: white;
}

/* Mapa estático para home */
.mapa-home-estatico {
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.mapa-home-estatico .mapa-placeholder h4 {
    color: white;
    margin-bottom: 8px;
}

.mapa-home-estatico .mapa-placeholder p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.mapa-home-estatico .btn-reload {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.mapa-home-estatico .btn-reload:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Popups específicos para home */
.popup-municipio-home {
    text-align: center;
    min-width: 140px;
}

.popup-municipio-home h4 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.popup-municipio-home p {
    margin: 0 0 5px;
    font-size: 11px;
    color: #7f8c8d;
}

.popup-municipio-home small {
    display: block;
    font-size: 10px;
    color: #007bff;
    font-weight: 500;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .municipio-selector-modal .modal-content {
        width: 95vw;
        max-height: 90vh;
    }
    
    .municipios-lista {
        max-height: 40vh;
    }
    
    .usuario-pin {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .municipio-pin {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}