:root {
    --primary-color: #1e40af;
    --primary-hover: #1e3a8a;
    --secondary-color: #059669;
    --accent-color: #2563eb;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --dark-color: #111827;
    --light-color: #f3f4f6;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header moderno */
header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}



.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 500;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    margin-bottom: 15px;
    text-shadow: none;
    text-align: center;
}

header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 1000px;
    margin: 0 auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.report-btn {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.report-btn:hover {
    background: linear-gradient(135deg, #c75656, #c75656);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(207, 41, 41, 0.4);
}

.report-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(207, 41, 41, 0.3);
}

.report-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.report-btn:disabled:hover {
    background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Stats Dashboard */
.stats-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.stats-container h3 {
    color: var(--dark-color);
    margin-bottom: 35px;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}



.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid transparent;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: help;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.stat-card[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--dark-color);
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    max-width: 100%;
}

.stat-card.stat-info .stat-number {
    font-size: 1.4rem;
    line-height: 1.4;
    min-height: 3.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-description {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
    font-style: italic;
}

/* Estilos temáticos para las cards de estadísticas */
.stat-primary {
    border-left: 4px solid #3b82f6;
}

.stat-primary .stat-number {
    color: #3b82f6;
}

.stat-success {
    border-left: 4px solid #10b981;
}

.stat-success .stat-number {
    color: #10b981;
}

.stat-warning {
    border-left: 4px solid #f59e0b;
}

.stat-warning .stat-number {
    color: #f59e0b;
}

.stat-info {
    border-left: 4px solid #8b5cf6;
}

.stat-info .stat-number {
    color: #8b5cf6;
}

/* Charts Section */
.charts-section {
    margin-top: 40px;
}

.charts-section h4 {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.chart-container {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    height: 350px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.chart-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.chart-container h5 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    margin-top: 0;
    letter-spacing: -0.025em;
}



.chart-container {
    position: relative;
    cursor: pointer;
}

.chart-container canvas {
    max-width: 100%;
}

.chart-container::after {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    padding: 5px;
    border-radius: 50%;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.chart-container:hover::after {
    opacity: 1;
}

.chart-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.chart-modal-content {
    position: relative;
    background-color: white;
    margin: 2% auto;
    padding: 20px;
    border-radius: 15px;
    width: 95%;
    max-width: 1000px;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.chart-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.chart-modal-close:hover {
    color: #000;
}

.chart-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
    text-align: center;
}

.chart-modal-canvas {
    width: 100%;
    height: auto;
    max-height: calc(95vh - 100px);
    margin: 0 auto;
    flex: 1;
}

/* Responsive design for charts */
@media (max-width: 768px) {
    .map-container {
        position: relative;
    }
    
    .map-legend-toggle {
        top: 10px;
        left: -40px;
    }
    
    .legend-toggle-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .toggle-text {
        display: none;
    }
    
    .side-map-legend {
        width: 200px;
        left: -200px;
    }
    
    .side-map-legend .legend-item {
        font-size: 13px;
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .side-map-legend .marker {
        width: 12px;
        height: 12px;
    }
    
    .legend-header {
        padding: 12px 16px;
    }
    
    .legend-title {
        font-size: 14px;
    }
    
    .legend-close {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
    
    .chart-modal-content {
        width: 98%;
        margin: 1% auto;
        padding: 15px;
    }
    
    .chart-modal-canvas {
        max-height: calc(98vh - 80px);
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-container {
        padding: 20px;
    }
    
    .chart-container h5 {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .stat-card {
        padding: 25px;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Modal de reporte */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .modal-extra-wide {
        width: 95%;
        max-width: none;
        margin: 2% auto;
        padding: 15px;
    }
    
    .close {
        position: fixed;
        right: 15px;
        top: 15px;
        width: 45px;
        height: 45px;
        font-size: 24px;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        border: 2px solid #e5e7eb;
    }
    
    /* Formulario de reporte */
    #reportForm h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .form-subtitle {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .report-section {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group {
        gap: 6px;
    }
    
    .form-group label {
        font-size: 14px;
        font-weight: 600;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
        min-height: 44px;
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    /* Radio buttons */
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-option {
        padding: 12px;
        border-radius: 8px;
        justify-content: flex-start;
    }
    
    .radio-custom {
        width: 20px;
        height: 20px;
    }
    
    .radio-label {
        font-size: 14px;
    }
    
    /* Mapa embebido */
    .embedded-map {
        height: 300px;
        border-radius: 8px;
    }
    
    .embedded-map-controls {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .btn-location-small {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        min-height: 44px;
    }
    
    /* Botones de acción */
    .form-actions {
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }
    
    .btn-primary,
    .btn-cancel {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        min-height: 44px;
        justify-content: center;
    }
    
    /* Botón flotante */
    .floating-report-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }
    
    .floating-plus-icon {
        font-size: 24px;
    }
    
    .floating-text {
        display: none;
    }
    
    .modal-wide {
        width: 98%;
        max-width: none;
        margin: 2% auto;
    }
    
    .faq-nav {
        gap: 8px;
        padding: 0 5px;
    }
    
    .faq-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Disclaimer legal */
    .legal-disclaimer {
        padding: 15px;
        border-radius: 12px;
    }
    
    .disclaimer-header h3 {
        font-size: 1.2rem;
    }
    
    .disclaimer-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .disclaimer-item {
        padding: 15px;
    }
    
    .disclaimer-item h4 {
        font-size: 1rem;
    }
    
    .disclaimer-item p {
        font-size: 0.9rem;
    }
    
    .legal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-legal {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    /* FAQ Modal */
    .faq-content {
        max-height: 70vh;
    }
    
    .faq-item {
        padding: 15px;
    }
    
    .faq-item h4 {
        font-size: 1rem;
    }
    
    .faq-item p,
    .faq-item li {
        font-size: 0.9rem;
    }
    
    /* Contact form */
    .contact-form-container {
        padding: 15px;
    }
    
    .contact-form .form-group {
        margin-bottom: 15px;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 12px;
        font-size: 16px;
        min-height: 44px;
    }
    
    .btn-contact-submit {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    /* Popups del mapa */
    .leaflet-popup-content {
        max-width: 280px;
        padding: 15px;
    }
    
    .popup-content-large {
        max-width: 300px;
    }
    
    .popup-content-large h4 {
        font-size: 1rem;
    }
    
    .popup-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .popup-info-item {
        font-size: 0.9rem;
    }
    
    .btn-validate {
        width: 100%;
        padding: 10px;
        font-size: 14px;
        margin-top: 10px;
    }
    
    /* Loading overlay */
    .loading-overlay {
        padding: 20px;
    }
    
    .loading-overlay p {
        font-size: 1rem;
        text-align: center;
    }
    
    /* Indicador de selección */
    .map-selection-active {
        padding: 15px;
        font-size: 14px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .charts-grid {
        gap: 15px;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .main-actions {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Action Cards */
.main-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.action-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid transparent;
    padding: 10px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.action-card[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}


.action-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.primary-action:hover {
    background: linear-gradient(135deg, #cf2929, #cf2929);
}

.info-action {
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    border-color: var(--accent-color);
}

.info-action:hover {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.action-buttons {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.action-buttons::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #10b981, #0ea5e9);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.action-header {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.action-header h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.buttons-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 2px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6b7280, #4b5563);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.filter-section h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}



/* Buttons */
.btn-primary, .btn-secondary, .btn-info, .btn-validate {
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

.btn-cancel {
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    color: white;
}

/* Select elements */
select {
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 25px;
    background: white;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    min-width: 160px;
    min-height: 44px;
    height: 44px;
}

select:hover, select:focus {
    border-color: var(--primary-color);
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

/* Integrated Map Section */
.map-section {
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}


/* Contact Form Styles */
.contact-form-container {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-contact-submit {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-contact-submit:active {
    transform: translateY(0);
}

.side-map-legend .legend-item {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #374151;
    font-weight: 500;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    cursor: help;
}

.side-map-legend .legend-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(2px);
}

.side-map-legend .legend-item:last-child {
    margin-bottom: 0;
}

.side-map-legend .marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
    font-weight: bold;
    font-size: 8px;
    border: 1px solid white;
}

.side-map-legend .marker.red {
    background-color: #ef4444;
}

.side-map-legend .marker.orange {
    background-color: #f59e0b;
}

.side-map-legend .marker.green {
    background-color: #10b981;
}

.map-header {
    padding: 25px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.map-header h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.map-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}


.filter-controls h4 {
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.map-container {
    position: relative;
    width: 100%;
}

/* Map Controls */
.map-controls {
    padding: 5px 10px;
    position: absolute;
    top: 2px;
    left: 1px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}

.map-control-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px 12px;
}

.map-control-item:first-child {
    margin-top: 60px;
}

#map {
    height: 800px;
    border: none;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
    width: 100%;
}

.map-legend h3, .map-legend h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.legend-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 20px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    flex: 1;
    min-width: 180px;
    justify-content: center;
    cursor: help;
    position: relative;
}

.marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.marker.red { 
    background: linear-gradient(135deg, #ff6b6b, #ee5a52); 
}
.marker.orange { 
    background: linear-gradient(135deg, #ffb75e, #ed8936); 
}
.marker.green { 
    background: linear-gradient(135deg, #51cf66, #37b24d); 
}

.legend-item span:not(.marker) {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
}

.legend-item strong {
    color: var(--dark-color);
    font-weight: 600;
}

.legend-help-btn {
    cursor: pointer;
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: white;
    transition: all 0.3s ease;
}

.legend-help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
}

.legend-help-btn strong {
    color: white !important;
}

.help-icon {
    font-size: 14px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    transition: background 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1600;
    transition: all 0.3s ease;
    scroll-behavior: auto;
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
    width: 18px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6c757d, #495057);
    border-radius: 8px;
    border: 2px solid #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


.modal-extra-wide {
    max-width: 85%;
    width: 800px;
    max-height: 95vh;
    overflow-y: auto;
    scroll-behavior: auto;
    scrollbar-width: auto;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Custom scrollbar for report modal */
.modal-extra-wide::-webkit-scrollbar {
    width: 20px;
}

.modal-extra-wide::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.modal-extra-wide::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6c757d, #495057);
    border-radius: 10px;
    border: 2px solid #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-extra-wide::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}



.modal.show {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

.modal.show .modal-content {
    animation: slideDown 0.3s ease;
    transform: translateY(0);
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Mejorar el espaciado del contenido de los modales */
.terms-content,
.privacy-content,
.validation-content,
.faq-content {
    padding: 0 10px;
    line-height: 1.6;
}

.terms-content h3,
.privacy-content h3,
.validation-content h3 {
    color: var(--dark-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.terms-content p,
.privacy-content p,
.validation-content p {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1rem;
}

.terms-content ul,
.privacy-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.terms-content li,
.privacy-content li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Botón de cerrar al final */
.modal-close-button {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 30px auto 0 auto;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.modal-close-button:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close-button:active {
    transform: translateY(0);
}

.modal-wide {
    width: 95%;
    max-width: 1000px;
    margin: 1% auto;
    max-height: 90vh;
    padding: 40px;
}



/* FAQ Modal specific styles */
.faq-content {
    max-height: 75vh;
    overflow-y: auto;
}

.faq-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
}

.faq-tab {
    padding: 12px 20px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    white-space: nowrap;
}

.faq-tab.active,
.faq-tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Asegurar que solo la primera pestaña esté activa por defecto */
.faq-tab:not(:first-child).active {
    background: var(--primary-color);
    color: white;
}

.faq-tab-content {
    display: none;
    padding-right: 10px;
}

.faq-tab-content.active {
    display: block;
}

.faq-tab-content h3 {
    color: var(--dark-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 12px;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

.faq-item ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.faq-item li {
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 6px;
}

.faq-item ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.faq-item ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-item ol li ul {
    margin-top: 8px;
    margin-left: 20px;
}

.faq-item .marker {
    display: inline-block;
    margin-right: 8px;
}

/* Legal Disclaimer Section */
.legal-disclaimer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    margin-top: 0px;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.disclaimer-content h3 {
    color: var(--dark-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.disclaimer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.disclaimer-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #dc2626;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.disclaimer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.disclaimer-item h4 {
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimer-item p {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.legal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-legal {
    padding: 12px 24px;
    background: linear-gradient(135deg, #374151, #1f2937);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-legal:hover {
    background: linear-gradient(135deg, #1f2937, #111827);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.copyright {
    border-top: 2px solid #e5e7eb;
    padding-top: 20px;
    text-align: center;
}

.copyright p {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.copyright .small-text {
    color: var(--text-light);
    font-size: 0.8rem;
    font-style: italic;
}

/* Aviso legal colapsable */
.disclaimer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 15px 0;
    margin-bottom: 0;
    position: relative;
}

.disclaimer-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.btn-toggle-legal-header {
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.btn-toggle-legal-header:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 16px;
    color: var(--text-dark);
}

.toggle-icon.expanded {
    transform: rotate(180deg);
}

.legal-content-collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.legal-content-expanded {
    max-height: 2000px;
    opacity: 1;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botón flotante para reportar delito */
.floating-report-btn {
    position: fixed;
    bottom: 100px;
    right: 250px;
    background: transparent;
    color: #333;
    border: none;
    border-radius: 50px;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    z-index: 1000;
    width: auto;
    justify-content: flex-start;
}

.floating-report-btn:hover {
    transform: translateY(-3px);
}

.floating-report-btn:hover .floating-plus-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.floating-report-btn:active {
    transform: translateY(-1px);
}

.floating-report-btn[style*="opacity: 0.5"] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.floating-report-btn[style*="opacity: 0.5"] .floating-plus-icon {
    animation: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-report-btn[style*="opacity: 0.5"]:hover {
    transform: none;
}

.floating-report-btn[style*="opacity: 0.5"]:hover .floating-plus-icon {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-plus-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    color: white;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-validate-btn {
    right: 30px;
    top: 30px;
    bottom: auto;
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.floating-validate-btn:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    box-shadow: 0 12px 35px rgba(39, 174, 96, 0.5);
}

.floating-help-btn {
    right: 30px;
    bottom: 30px;
    top: auto;
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 180px;
}

.floating-help-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

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

/* Responsive para botón flotante */
@media (max-width: 768px) {
    .floating-report-btn {
        bottom: 20px;
        right: 20px;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .floating-plus-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .floating-text {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .disclaimer-grid {
        grid-template-columns: 1fr;
    }
}

/* Form styles */
.report-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.report-section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    padding-bottom: 5px;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

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

.form-group.half {
    grid-column: span 1;
}

.form-group.third {
    grid-column: span 1;
}

.form-group label {
    color: #374151;
    font-size: 14px;
    margin-bottom: 4px;
}

.required-field {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

.form-group label:has(.required-field) {
    font-weight: 700;
}

.form-legend {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    text-align: center;
}

.form-legend p {
    margin: 0;
    font-size: 14px;
    color: #6c7280;
    font-weight: 500;
}

.location-instructions {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.location-instructions p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #1565c0;
    font-weight: 600;
}

.location-instructions ul {
    margin: 0;
    padding-left: 20px;
}

.location-instructions li {
    font-size: 13px;
    color: #1976d2;
    margin-bottom: 5px;
    line-height: 1.4;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 8px 10px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 50px;
    font-family: inherit;
}

/* Estilos para radio buttons personalizados */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.radio-option:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    background: #ffffff;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #3498db;
    background: #3498db;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}

.radio-option input[type="radio"]:checked ~ .radio-label {
    color: #3498db;
    font-weight: 600;
}

.radio-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Estilos específicos para radio buttons en campos third */
.form-group.third .radio-group {
    flex-direction: row;
    gap: 12px;
    justify-content: flex-start;
}

.form-group.third .radio-option {
    padding: 6px 10px;
    font-size: 13px;
    flex: 0 0 auto;
}

.form-group.third .radio-custom {
    width: 16px;
    height: 16px;
}

.form-group.third .radio-custom::after {
    width: 6px;
    height: 6px;
}

.form-group.third .radio-label {
    font-size: 13px;
}

/* Estilos para el formulario de reporte */
#reportForm {
    padding: 10px;
}

.form-subtitle {
    display: block;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin: 10px 0 20px 0;
    font-weight: 500;
}

/* Estilos para el título dentro del formulario */
#reportForm h2 {
    color: var(--dark-color);
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 1.6rem;
    font-weight: 700;
    padding-bottom: 10px;
}

.field-info {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    padding: 15px 0 5px;
    margin-top: 15px;
    gap: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.large-date-input {
    font-size: 16px !important;
    padding: 12px 15px !important;
    height: auto !important;
    min-height: 44px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.location-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-location {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    /*background: linear-gradient(135deg, #667eea, #764ba2);*/
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-location:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-location span {
    font-size: 18px;
}

/* Make sure textarea and other form elements take full width */
.form-group:not(.half):not(.third) {
    width: 100% !important;
    flex: none !important;
}

.form-row .form-group.suspect-info-group:only-child {
    width: 100% !important;
    max-width: none !important;
}

#suspectDescription {
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: none !important;
}

.btn-submit {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    min-width: 180px;
    position: relative;
}

/* Map selection indicator */
.map-selection-active {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    z-index: 2000;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    animation: bounceIn 0.5s ease;
    font-size: 14px;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3) translateX(-50%);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) translateX(-50%);
    }
    70% {
        transform: scale(0.9) translateX(-50%);
    }
    100% {
        transform: scale(1) translateX(-50%);
        opacity: 1;
    }
}

/* Map selection mode */
.map-selection-mode .modal {
    background: rgba(0, 0, 0, 0.2) !important;
}

.map-selection-mode .modal-content {
    transform: translateY(-100px);
    transition: transform 0.3s ease;
}

#map.selecting-location {
    z-index: 1700 !important;
    position: relative;
    border: 3px solid var(--primary-color) !important;
    cursor: crosshair !important;
}

/* Google Maps style location marker */
.google-maps-location-marker {
    background: transparent !important;
    border: none !important;
}

/* Botón de ubicación actual */
.location-button-container {
    margin-bottom: 10px !important;
}

.location-button {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    text-align: center !important;
    font-size: 18px !important;
    background: white !important;
    border: 2px solid rgba(0,0,0,0.2) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.location-button:hover {
    background: #f8f9fa !important;
    border-color: rgba(0,0,0,0.3) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    transform: translateY(-1px) !important;
}

.current-location-icon {
    position: relative;
    width: 30px;
    height: 30px;
}

.location-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #4285f4;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.location-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #4285f4;
    border-radius: 50%;
    opacity: 0.3;
    animation: location-pulse 2s infinite;
}

@keyframes location-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Estilos para botones deshabilitados */
.btn-disabled {
    background-color: #9ca3af !important;
    color: #374151 !important;
    cursor: not-allowed !important;
    opacity: 0.9 !important;
    font-weight: 600 !important;
}

.btn-disabled:hover {
    background-color: #9ca3af !important;
    transform: none !important;
}

/* Estilos mejorados para popups de Leaflet */
.leaflet-popup-content {
    margin: 0 !important;
    line-height: 1.4;
}

.popup-content-large {
    max-width: 400px;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.popup-content-large h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.popup-content-large h5 {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.popup-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.popup-info-item {
    font-size: 14px;
    line-height: 1.4;
    color: #2c3e50;
}

.popup-info-item strong {
    color: #34495e;
    font-weight: 600;
}

.popup-details {
    margin-bottom: 15px;
}

.popup-details > p {
    margin: 8px 0 4px 0;
    font-weight: 600;
    color: #374151;
}

.description-text {
    background: #f9fafb;
    padding: 8px 10px;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
    font-size: 14px;
    line-height: 1.4;
    color: #1f2937;
    margin-bottom: 10px;
    max-height: 80px;
    overflow-y: auto;
}

.popup-meta-info {
    display: grid;
    gap: 4px;
}

.popup-meta-info p {
    margin: 0;
    font-size: 13px;
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.popup-meta-info strong {
    min-width: 80px;
    margin-right: 8px;
}

.popup-actions {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.btn-validate {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-validate:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.heatmap-check {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    min-width: 40px;
    justify-content: center;
}

.heatmap-check:hover {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
    border: 2px solid var(--primary-color);
}

.heatmap-check .form-check-label {
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    user-select: none;
}

.heatmap-check .form-check-input:checked + .form-check-label {
    color: #ff6b6b;
}

.heatmap-check .form-check-input {
    margin: 0;
    cursor: pointer;
}

/* Estilos para marcadores de ubicación actual */
.current-location-marker {
    z-index: 1000 !important;
}

/* Estilos para marcadores seleccionados */
.selected-location-marker {
    z-index: 999 !important;
}

/* Estilos para marcador de ubicación de delito */
.crime-location-marker {
    background: #EF4444;
    border: 3px solid white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: pulse 2s infinite;
}

.crime-location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
}

/* Estilos para popup de ubicación */
.location-popup-container .leaflet-popup-content-wrapper {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.location-popup-container .leaflet-popup-tip {
    background: rgba(0, 0, 0, 0.9);
}

.location-popup {
    text-align: center;
    padding: 8px;
}

.popup-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
    color: #FCD34D;
}

.popup-address {
    font-size: 12px;
    color: #E5E7EB;
    line-height: 1.3;
}

.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.custom-popup .leaflet-popup-tip {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: none;
    border-left: none;
}

/* Mejorar la visibilidad y posicionamiento de popups */
.leaflet-popup {
    z-index: 1000 !important;
}

.leaflet-popup-content-wrapper {
    max-height: 80vh;
    overflow-y: auto;
}

/* Asegurar que los popups siempre sean visibles */
.leaflet-popup-content {
    margin: 0;
    padding: 15px;
    min-width: 280px;
    max-width: 400px;
}

/* Animación suave para los popups */
.leaflet-popup-content-wrapper {
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Embedded map in modal */
.embedded-map-container {
    margin: 1px 0;
    border-radius: 12px;
    overflow: hidden;
}

/* Estilos para controles de Leaflet */
.leaflet-control-layers {
    background: white !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 8px !important;
}

.leaflet-control-layers-toggle {
    background: white !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    width: 36px !important;
    height: 36px !important;
    transition: all 0.3s ease !important;
}

.leaflet-control-layers-toggle:hover {
    background: #f8f9fa !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-1px) !important;
}

.leaflet-control-layers-expanded {
    min-width: 150px !important;
    padding: 12px !important;
}

.leaflet-control-layers-expanded label {
    margin: 4px 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

.leaflet-control-layers-expanded input[type="radio"] {
    margin-right: 8px !important;
}

/* Estilos para botón de ubicación en Leaflet */
.location-button {
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    transition: all 0.3s ease !important;
}

.location-button:hover {
    background: #f8f9fa !important;
    transform: translateY(-1px) !important;
}

/* Ajustar posición del contenedor del botón de ubicación */
.location-button-container {
    margin: 10px !important;
}

.embedded-map {
    height: 250px;
    width: 100%;
    position: relative;
    cursor: crosshair;
}

.embedded-map-controls {
    display: flex;
    gap: 10px;
    padding: 8px;
}

.btn-location-small {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
    border-radius: 10px;
}

.btn-location-small:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-location-small:active {
    transform: translateY(0);
}

.location-instructions {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
    margin-bottom: 20px;
}

.location-instructions p {
    margin: 0;
    color: #1e40af;
    font-size: 14px;
}

.location-info-display {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
    margin-top: 15px;
    font-size: 14px;
    color: #0c4a6e;
    font-weight: 500;
}

.location-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Selected location marker styling */
.selected-location-marker {
    background: #ef4444 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    animation: pulse-marker 2s infinite !important;
}

@keyframes pulse-marker {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Contenedor principal */
    .container {
        padding: 10px;
        max-width: 100%;
    }
    
    /* Hero section */
    .hero-section {
        padding: 30px 20px;
        margin-bottom: 20px;
        border-radius: 16px;
    }
    
    .language-selector {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
        margin: 15px 0;
    }
    
    .lang-btn {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 8px;
        padding: 0.6rem 0.8rem;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1.4rem;
        backdrop-filter: blur(10px);
        color: white;
        font-weight: 500;
    }
    
    .lang-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .lang-btn.active {
        background: rgba(255, 255, 255, 0.4);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .lang-btn {
        font-size: 1.2rem;
        padding: 0.5rem 0.7rem;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .report-btn {
        width: 100%;
        max-width: 300px;
        padding: 15px 20px;
        font-size: 16px;
        text-align: center;
        justify-content: center;
    }
    
    .hero-help-btn {
        position: relative;
        top: auto;
        right: auto;
        margin: 15px auto 0;
        width: fit-content;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Mapa principal */
    .map-section {
        margin-bottom: 20px;
    }
    
        .map-controls {
        padding: 15px;
        border-radius: 12px;
        position: relative;
    }

    .filters {
        flex-direction: column;
        gap: 12px;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 100;
        margin-top: 5px;
    }

    .filters.show {
        display: flex;
    }

    .filters-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .filters-toggle:hover {
        background: linear-gradient(135deg, #2563eb, #1e40af);
        transform: translateY(-1px);
    }

    .filters-toggle .toggle-icon {
        transition: transform 0.3s ease;
    }

    .filters-toggle.active .toggle-icon {
        transform: rotate(180deg);
    }
    
    .filters select {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        min-height: 44px;
    }
    
    .heatmap-check {
        width: 100%;
        justify-content: center;
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #f9fafb;
    }
    
    .heatmap-check .form-check-label {
        font-size: 16px;
    }
    
    #map {
        height: 400px;
        border-radius: 12px;
    }
    
    /* Estadísticas */
    .stats-container {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .stats-container h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Gráficos */
    .charts-section {
        margin-top: 20px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-container {
        padding: 15px;
        border-radius: 12px;
    }
    
    .chart-container h5 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    /* Controles generales */
    .controls {
        gap: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-option {
        width: 100%;
        justify-content: flex-start;
        padding: 12px;
    }
    
    .action-buttons {
        padding: 15px;
    }
    
    .buttons-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .buttons-row button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 15px;
        font-size: 16px;
    }
    
    .filter-section {
        padding: 15px;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 10px;
    }
    
    .legend-item {
        min-width: auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .legend-help-btn {
        margin-top: 10px;
        justify-content: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .faq-nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .faq-tab {
        width: 100%;
        max-width: 250px;
        text-align: center;
        padding: 12px;
        font-size: 14px;
    }
    
    .validation-content {
        max-height: 70vh;
    }
    
    .validation-intro {
        padding: 15px;
    }
    
    .step {
        flex-direction: column;
        padding: 15px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-bottom: 15px;
        align-self: flex-start;
        margin-right: 0;
    }
    
    .step-content h4 {
        font-size: 1rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    .trust-level {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .trust-level .marker {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .responsibility-box {
        padding: 15px;
    }
    
    .responsibility-box p {
        font-size: 0.9rem;
    }
    
    .location-buttons {
        flex-direction: column;
    }
    
    .location-buttons .btn-location {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Ajustes adicionales para pantallas muy pequeñas */
    .container {
        padding: 8px;
    }
    
    .hero-section {
        padding: 25px 15px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .report-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    #map {
        height: 350px;
    }
    
    .map-controls {
        padding: 12px;
    }
    
    .filters select {
        padding: 10px;
        font-size: 15px;
    }
    
    .stats-container {
        padding: 15px 10px;
    }
    
    .stats-container h3 {
        font-size: 1.2rem;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .chart-container {
        padding: 12px;
    }
    
    .chart-container h5 {
        font-size: 0.9rem;
    }
    
    .legend-item span:not(.marker) {
        font-size: 0.8rem;
    }
    
    .map-header h3 {
        font-size: 1.2rem;
    }
    
    /* Modal en pantallas muy pequeñas */
    .modal-content {
        width: 98%;
        margin: 1% auto;
        padding: 15px;
    }
    
    .modal-extra-wide {
        width: 98%;
        padding: 12px;
    }
    
    .report-section {
        padding: 12px;
    }
    
    .section-title {
        font-size: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 15px;
    }
    
    .embedded-map {
        height: 250px;
    }
    
    .btn-location-small {
        padding: 10px;
        font-size: 15px;
    }
    
    .floating-report-btn {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    .floating-plus-icon {
        font-size: 22px;
    }
    
    .legal-disclaimer {
        padding: 12px;
    }
    
    .disclaimer-header h3 {
        font-size: 1.1rem;
    }
    
    .disclaimer-item {
        padding: 12px;
    }
    
    .disclaimer-item h4 {
        font-size: 0.95rem;
    }
    
    .disclaimer-item p {
        font-size: 0.85rem;
    }
    
    .faq-tab {
        padding: 10px;
        font-size: 13px;
    }
    
    .faq-item {
        padding: 12px;
    }
    
    .faq-item h4 {
        font-size: 0.95rem;
    }
    
    .faq-item p,
    .faq-item li {
        font-size: 0.85rem;
    }
    
    .leaflet-popup-content {
        max-width: 250px;
        padding: 12px;
    }
    
    .popup-content-large {
        max-width: 270px;
    }
    
    .popup-content-large h4 {
        font-size: 0.95rem;
    }
    
    .popup-info-item {
        font-size: 0.85rem;
    }
    
    .btn-validate {
        padding: 8px;
        font-size: 13px;
    }
}

.validation-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

.validation-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.responsibility-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.responsibility-box p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.responsibility-box p:last-child {
    margin-bottom: 0;
}

.responsibility-box strong {
    color: #dc2626;
}

.validation-footer {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.validation-footer p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.validation-footer strong {
    color: #2563eb;
}

/* Hero Section */
.hero-section {
    padding: 40px 40px;
    text-align: center;
    border-radius: 24px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}


@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(1deg); }
    50% { transform: translate(-5px, 10px) rotate(-1deg); }
    75% { transform: translate(-10px, -5px) rotate(1deg); }
}

.hero-section header {
    position: relative;
    z-index: 2;
    margin-bottom: 1px;
}

.hero-help-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-help-btn:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.hero-help-btn .help-icon {
    font-size: 15px;
}

.hero-section h1 {
    color: #1f2937;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: #6b7280;
    text-shadow: none;
    line-height: 1.5;
}




/* Hero Buttons - Removed, now integrated into cards */

/* Responsive Design for Hero Section */
@media (max-width: 1024px) {
    .hero-section {
        padding: 60px 30px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .main-actions {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 25px;
        margin-bottom: 40px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-help-btn {
        position: relative;
        top: auto;
        right: auto;
        margin: 20px auto 0;
        width: fit-content;
    }
    
    .main-actions {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }
    
    .action-card {
        padding: 30px 20px;
    }
    
    .action-icon {
        font-size: 3rem;
    }
    
    .action-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 20px;
        border-radius: 16px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .action-card {
        padding: 25px 15px;
    }
    
    .card-action-text {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Ajustes específicos para orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 20px 15px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    #map {
        height: 300px;
    }
    
    .modal-content {
        margin: 1% auto;
        max-height: 95vh;
    }
    
    .modal-extra-wide {
        margin: 1% auto;
        max-height: 95vh;
    }
    
    .embedded-map {
        height: 200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    
    .hero-section {
        padding: 35px 25px;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .filters {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .filters select {
        min-width: 200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-extra-wide {
        width: 90%;
        max-width: 700px;
    }
    
    .embedded-map {
        height: 350px;
    }
}

/* Asegurar que los inputs tengan el tamaño correcto en iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important;
    }
}

/* Mejoras para dispositivos con notch */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }
    
    .floating-report-btn {
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(20px, env(safe-area-inset-right));
    }
}

/* Ajustes para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .stat-number,
    .hero-section h1,
    .section-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Estilos para marcadores personalizados */
.custom-marker {
    background: transparent;
    border: none;
}

.custom-marker div {
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-marker:hover div {
    transform: scale(1.3);
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    z-index: 1000;
}

/* Ocultar botón de toggle de filtros en desktop */
@media (min-width: 769px) {
    .filters-toggle {
        display: none;
    }
    
    .filters {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}