@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');


:root {
    --primary-color: #457b9d;
    --secondary-color: #003566;
    --tercero: #d62828;
	--background-color: #f0f0f0;
	--text-color: #333333;	
    --cluster-dark: #219ebc;
    --cluster-light: #8ecae6;
    --morado: #6a4c93;
}


html {
  font-size: 16px; /* tamaño base */
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-color);
    font-size: 1rem; /* tamaño base */
    font-weight: normal;
    margin: 0;
    padding: 0;
}

#map {
    z-index: 0;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
}

/* Estilos para invertir colores mapa */
.estilos-invertidos {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}





#zoom-in {
	position: absolute;
	top: 140px; 
	right: 90px;
	z-index: 101;
	background-color: #ffffff;
	border-radius: 5px;
	vertical-align: middle;
	text-align: center;
	width: 48px;
	height: 40px;
	cursor: pointer;
	font-weight: bold;
	color: #000000;
	font-size: 24px;
}

#zoom-out {
	position: absolute;
	top: 140px; 
	right: 30px;
	z-index: 101;
	background-color: #ffffff;
	border-radius: 5px;
	vertical-align: middle;
	text-align: center;
	width: 48px;
	height: 40px;
	cursor: pointer;
	font-weight: bold;
	color: #000000;
	font-size: 24px;	
}


#acerca {
    position: absolute;
    bottom: 30px;
    left: 10px;
    text-align: center;
    z-index: 1002;
    background-color: var(--secondary-color);
    border-radius: 5px;
    vertical-align: middle;
    height: 44px;
    width: 48px;
    cursor: pointer;
    color: #ffffff;
    padding-top: 4px;
}


#logo_container {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 10px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0.9;

    text-align: center;
    color: var(--secondary-color);
    font-size: 0.8rem;
    padding-bottom: 10px;
}


#m1 {
	background-color: var(--secondary-color);
    color: white;
	position: absolute;
	left: 10px;
	top: 150px;
	z-index: 10000;
	padding: 5px;
    text-align: center;
    width:130px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem !important;
    font-weight: normal;
}



.marker-cluster-small {
	background-color: var(--cluster-light) !important;
}  
.marker-cluster-small div {
	background-color: var(--cluster-dark) !important;
	color: #ffffff !important;
}

.marker-cluster-medium {
	background-color: var(--cluster-light) !important;
}  
.marker-cluster-medium div {
	background-color: var(--cluster-dark) !important;
	color: #fff !important;
}

.marker-cluster-large {
	background-color: var(--cluster-light) !important;
}  
.marker-cluster-large div {
	background-color: var(--cluster-dark) !important;
	color: #fff !important;
}



.leaflet-control-attribution {
    position: fixed;
    bottom: 30px !important;
    left: 1px !important;
    z-index: 1000 !important;
}


.leaflet-control-scale {
    position: fixed;
    bottom: 140px !important;
    right: 1px !important;
    text-align: right !important;
}



#agregar {
    position: absolute;
    top: 10px;
    right: 10px;
    text-align: center;
    z-index: 102;
    background-color: var(--secondary-color);
    border-radius: 5px;
    padding: 10px;
    font-size: 0.8rem;
}



#wait {
	width: 256px;
	height: 256px;
	top: calc(50% - 125px);
	left: calc(50% - 125px);
	position: absolute;
	z-index: 1000000;
}

#options{
	background-color: var(--secondary-color);
	position: absolute;
	right: 10px;
	top: 70px;
	z-index: 100;
	padding: 5px;
	padding-left: 10px;
	padding-right: 10px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: var(--primary-color);
    font-size: 0.8rem;
    width: 150px;
    text-align:center;
}

#status {
	font-size: 14px !important;
	padding: 3px;
	position: absolute; 
	bottom: 0px; 
	z-index:1000;
	text-align: center;
	color: #ffffff;
	background-color: var(--morado);
	margin-left: auto;
	margin-right: auto;
	left: 0px;
	right: 0px;
}
#statusr {
	font-size: 14px !important;
	padding: 3px;
	position: relative; 
	bottom: 0px; 
	z-index:1000;
	text-align: center;
	color: #ffffff;
	background-color: var(--morado);
	margin-left: auto;
	margin-right: auto;
	left: 0px;
	right: 0px;
    bottom: 0px;
    margin-right: 10px;
    margin-left: 10px;
    width: auto;
}

#casos1 {
	font-size: 14px !important;
	padding: 5px;
	position: absolute; 
	top: 100px; 
	right: 10px;
	z-index:1000;
	text-align: center;
	color: white;
	background-color: var(--primary-color);
	width:150px;
}

#status {
	font-size: 14px !important;
	padding: 3px;
	position: absolute; 
	bottom: 0px; 
	z-index:1000;
	text-align: center;
	color: #ffffff;
	background-color: var(--morado);
	margin-left: auto;
	margin-right: auto;
	left: 0px;
	right: 0px;
}

#recargar {
	position: absolute; 
	bottom: 150px; 
	z-index:1000;
	text-align: center;
	left: 10px;
	height: 64px;
	width: 64px;
	border-radius: 10px;
    background-color: var(--secondary-color);
	cursor: pointer;
}

#claro_oscuro {
    padding-top: 7px;
    bottom: 240px; 
    left: 10px;    
	position: absolute; 
	z-index:1000;
	text-align: center;
	height: 64px;
	width: 64px;
	border-radius: 10px;
    background-color: var(--secondary-color);
	cursor: pointer;
}





.leaflet-control-zoom { 
	display: none;
} 

#gpssw {
    display: flex;
    flex-direction: column; /* Cambia la dirección del eje principal a vertical */
    align-items: center;
    position: absolute; 
    bottom: 60px; 
    left: 10px;
    z-index: 1000;
    color: black;
    height: 64px;
    width: 64px;    
    border-radius: 10px;
    background-color: var(--secondary-color);
	cursor: pointer;
}

#ampolleta {
    display: flex;
    flex-direction: column; /* Cambia la dirección del eje principal a vertical */
    align-items: center;
    position: absolute; 
    bottom: 330px; 
    left: 10px;
    z-index: 1000;
    color: black;
    height: 64px;
    width: 64px;    
    border-radius: 10px;
    background-color: var(--secondary-color);
	padding-top: 10px;
	cursor: pointer;
	transition: all 1s ease-in-out;
    padding-top: 12px;
}

#gpslabel {
    text-align: center;
    color: #ffffff;
    margin-top: 4px;
}

/* width */
::-webkit-scrollbar {
	width: 15px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
	background: #f0f0f0; 
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
	background: var(--segundo); 
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
	background: #f0f0f0; 
  }

#reporte {
    position: absolute;
    width:calc(100% - 20px);
    height: calc(100% - 20px);
    top:0px;
    right: 0px;
    z-index: 100000;
    background-color: white;
    margin: 10px;
    padding: 5px;
}

#nuevo {
	position: absolute; 
	bottom: 60px; 
	z-index:1000;
	text-align: center;
	right: 10px;
	height: 64px;
	width: 64px;
	border-radius: 10px;
    background-color: var(--tercero);
}

.tools {
    color: #000000;
    text-decoration: none;
	margin-right: 0px;
}
a.tools:link {
    color: #fff;
    text-decoration: none;
}
a.tools:active {
    color: #fff;
    text-decoration: none;
}
a.tools:visited {
    color: #fff;
    text-decoration: none;
}
a.tools:hover {
    color: #fff;
    text-decoration: underline;
}


#sticky-header {
    background-color: var(--tercero);
    color: white;
    padding: 5px;
    z-index: 101;
}   



/* evita el cuadrado negro onclick*/
g:focus {
    outline: none;
}

path:focus {
    outline: none;
}
/* evita el cuadrado negro onclick*/






/* ============================================
   BÚSQUEDA
   ============================================ */
#divsearch {
    height: 38px;
    padding: 2px;
    top: 10px;
    right: 10px;
    position: absolute;
    z-index: 10000;
    width: 200px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#divsearch .input-group {
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

#divsearch .form-control {
    border: 1px solid #ddd;
    border-right: none;
    flex: 1;
    min-width: 0;
    height: 34px;
    font-size: 14px;
    padding: 5px 8px;
    border-radius: 4px 0 0 4px;
}

#divsearch .btn-dark {
    background-color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    flex-shrink: 0;
    width: 38px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 4px 4px 0;
}

#divsearch .btn-dark i {
    font-size: 14px;
}

#divsearch .btn-dark:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    #divsearch {
        width: 140px;
        height: 36px;
        right: 10px;
        top: 10px;
        padding: 2px;
    }
    
    #divsearch .form-control {
        font-size: 13px;
        padding: 4px 6px;
        height: 32px;
    }
    
    #divsearch .btn-dark {
        width: 36px;
        height: 32px;
    }
    
    #divsearch .btn-dark i {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #divsearch {
        width: 130px;
        height: 34px;
    }
    
    #divsearch .form-control {
        font-size: 12px;
        padding: 3px 5px;
        height: 30px;
    }
    
    #divsearch .btn-dark {
        width: 34px;
        height: 30px;
    }
    
    #divsearch .btn-dark i {
        font-size: 12px;
    }
    
    #logo_container {
        font-size: 0.65rem;
        padding: 6px;
        left: 8px;
        top: 8px;
    }
    
    #logo_container img {
        width: 45px;
    }
}

@media (max-width: 375px) {
    #divsearch {
        width: 115px;
    }
    
    #logo_container {
        font-size: 0.6rem;
        padding: 5px;
    }
    
    #logo_container img {
        width: 40px;
    }
}







/* report styles */
.container-report {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
    background: white;
}

.form-label {
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    transition: border-color 0.2s;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.mb-3 {
    margin-bottom: 20px;
}

.photo-section {
    margin-bottom: 24px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.photo-slot {
    aspect-ratio: 1;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.photo-slot:hover {
    border-color: #999;
    background: #f5f5f5;
}

.photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.photo-slot.has-image {
    border-style: solid;
    border-color: #e0e0e0;
}

.photo-slot i {
    font-size: 24px;
    color: #999;
    margin-bottom: 4px;
}

.photo-slot span {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.photo-slot.has-image i,
.photo-slot.has-image span {
    display: none;
}

input[type="file"] { 
    display: none; 
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #333;
}

.btn-submit:active {
    transform: scale(0.98);
}

#loader { 
    display: none; 
    text-align: center; 
    margin-top: 20px;
    padding: 40px 0;
}

#loader img { 
    width: 40px;
    opacity: 0.6;
}

#loader p {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .container-report {
        padding: 20px 16px;
    }
    
    .photo-grid {
        gap: 10px;
    }
}
/* Estilos adicionales para hacer el diálogo más ancho en móvil */
@media (max-width: 768px) {
    /* jQuery Confirm dialogs */
    .jconfirm .jconfirm-box {
        width: 95% !important;
        max-width: 95% !important;
        margin-left: 2.5% !important;
        margin-right: 2.5% !important;
    }
    
    .jconfirm .jconfirm-box.jconfirm-type-default,
    .jconfirm .jconfirm-box.jconfirm-type-blue,
    .jconfirm .jconfirm-box.jconfirm-type-green,
    .jconfirm .jconfirm-box.jconfirm-type-red {
        width: 95% !important;
        max-width: 95% !important;
    }
    
    /* Otros tipos de modales */
    .modal-content,
    .dialog-content,
    .ui-dialog,
    .ui-dialog-content,
    #reporte {
        width: 95% !important;
        max-width: 95% !important;
        left: 2.5% !important;
        right: 2.5% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 480px) {
    /* jQuery Confirm dialogs */
    .jconfirm .jconfirm-box {
        width: 98% !important;
        max-width: 98% !important;
        margin-left: 1% !important;
        margin-right: 1% !important;
    }
    
    .jconfirm .jconfirm-box.jconfirm-type-default,
    .jconfirm .jconfirm-box.jconfirm-type-blue,
    .jconfirm .jconfirm-box.jconfirm-type-green,
    .jconfirm .jconfirm-box.jconfirm-type-red {
        width: 98% !important;
        max-width: 98% !important;
    }
    
    /* Otros tipos de modales */
    .modal-content,
    .dialog-content,
    .ui-dialog,
    .ui-dialog-content,
    #reporte {
        width: 98% !important;
        max-width: 98% !important;
        left: 1% !important;
        right: 1% !important;
    }
}