* {
    font-family: 'Montserrat', Sans-Serif;
}/*Diseño del apartado "Mis reportes"*/
.reporte-lista {
    width: 100%;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    padding-left: 5%;
}

.reporte-btn {
    flex: 0 0 230px;
    height: 125px;
    background: linear-gradient(90deg, #4e9af1, #007bff);
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reporte-btn:hover {
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: translateY(-2px);
}


/* Responsive */
@media (max-width: 1000px) {
  .reporte-btn {
    flex: 0 1 calc(50% - 15px);
  }
}

@media (max-width: 520px) {
  .reporte-btn {
    flex: 0 1 calc(100% - 15px);
  }
}

/*Diseño del apartado "Calificar agente"*/

.reporte-btn1 {
    flex: 0 0 190px;
    height: 125px;
    background: linear-gradient(90deg, #4e9af1, #007bff);
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*Diseño del apartado "Mis calificaciones"*/
.calificacion-item {
  padding: 12px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  color: #fff;
}

.calificacion-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* nombre a la derecha */
  margin-bottom: 8px;
}

.estrellas-mostrar {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
  color: #FFD700;
  min-width: 110px;
  text-align: left;
}

.nombre-municipal {
  font-weight: 700;
  color: #fff;           
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  text-align: right;
}

.comentario-adicional {
  font-size: 14px;
  color: #fff;             
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-wrap;
  text-align: left;
}

.separador-calificacion {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 10px 0 0 0;
}

/* Responsive */
@media (max-width: 420px) {
  .estrellas-mostrar { font-size: 16px; min-width: 90px; }
  .nombre-municipal { font-size: 14px; }
  .calificacion-item { padding: 10px; }
}


/* Responsive */
@media (max-width: 420px) {
  .estrellas-mostrar { font-size: 16px; min-width: 90px; }
  .nombre-municipal { font-size: 14px; }
  .calificacion-item { padding: 10px; }
}

/* Sistema de estrellas (row-reverse) */
.estrellas {
    display: flex;
    flex-direction: row-reverse; /* invierte visualmente las estrellas */
    justify-content: center;     /* centra horizontalmente */
}

.estrellas input {
    display: none; /* oculta los radios reales */
}

.estrellas label {
    cursor: pointer;
    font-size: 24px;
    color: #ccc; /* color por defecto de estrella no seleccionada */
    transition: color 0.2s;
}

/* Hover: cambia color de la estrella y todas las anteriores */
.estrellas label:hover,
.estrellas label:hover ~ label {
    color: #FFD700;
}

/* Checked: mantiene color dorado al seleccionar */
.estrellas input:checked ~ label {
    color: #FFD700;
}



/* Colores según estado (opcional) */
.tomado {
    color: green;
}

.no-tomado {
    color: red;
}

/* Estilo para el botón "Ver imagen" */
.ver-imagen-btn {
    padding: 10px 18px;
    background: linear-gradient(90deg, #00e5ff, #00b3c7);
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 5px;
}

.ver-imagen-btn:hover {
    background: linear-gradient(90deg, #00b3c7, #00e5ff);
    transform: translateY(-1px);
}

/* Modal de la imagen */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 3000 !important;
    padding: 20px;
}
.detalle-repote{
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6); /* Fondo semitransparente */
  justify-content: center;
  align-items: center;
  z-index: 3001; /* Más alto que todo */
}
/* Contenedor de la imagen dentro del modal */
.modal-contenido {
    position: relative;
    display: inline;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    background: #000f47;
    color: #e3e3e3;
}

.modal-contenido img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px;
    overflow: hidden;
    object-fit: contain;
}

/* Botones de cerrar */
.modal .cerrar-detalle, 
.modal .cerrar-rating {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #ff4d4d;
    color: white;
    font-size: 26px;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 5100 !important;
    transition: background 0.2s, transform 0.2s;
}

.modal .cerrar-imagen{
    position: absolute;
    top: 15px;
    right: 20px;
    background: #ff4d4d;
    color: white;
    font-size: 26px;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 5000 !important;
    transition: background 0.2s, transform 0.2s;
}
.modal .cerrar-detalle:hover, 
.modal .cerrar-imagen:hover, 
.modal .cerrar-rating:hover {
    background: #ff1a1a;
    transform: scale(1.1);
}

/* Estilo botón calificar */
.calificar-btn {
    padding: 12px 18px;
    background: linear-gradient(90deg, #f08718, #ed7c05);
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.calificar-btn:hover {
    background: linear-gradient(90deg, #ed7c05, #f08718);
    transform: translateY(-1px);
}

/* Modal rating */
.modal-rating .modal-contenido {
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
    z-index: 100000 !important;
}

/* Forzar que el modal de calificación esté siempre por encima del de detalles */
.modal-rating {
    z-index: 99999 !important;
    position: fixed;
    top: 0;
    left: 0;
}


.modal-rating textarea {
    width: 100%;
    height: 80px;
    margin-top: 10px;
    border-radius: 6px;
    padding: 8px;
    border: 1px solid #ccc;
    resize: none; 
    
}
.enviar-rating {
    margin-top: 10px;
    padding: 10px 18px;
    background: #007bff;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.enviar-rating:hover {
    background: #0056b3;
}

/* rating */
.mensaje-rating {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
    animation: aparecer 0.3s ease-in-out;
}

@keyframes aparecer {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.rating-form {
    display: flex;
    flex-direction: column;
    align-items: center;   /* centra horizontalmente todo dentro del form */
}


.scroll-box::-webkit-scrollbar{
    width: 6px;
    
}

.scroll-box::-webkit-scrollbar-track {
  background: transparent;
  margin-top: 8px;   /* margen superior */
  margin-bottom: 8px; /* margen inferior */
}

.scroll-box::-webkit-scrollbar-thumb{
    background: #FF7800;
    border-left: 2px #D66602 solid;
    border-top: 2px #D66602 solid;
    border-bottom: 2px #D66602 solid;
    border-top-left-radius: 3.7px;
    border-bottom-left-radius: 3.7px;
}



.modal-detalle .modal-contenido {
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;       /* ancho del cuadro */
    max-height: 70vh;       /* altura máxima, 70% del viewport */
    overflow-y: auto;       /* scroll interno si hay mucho contenido */
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.detalle-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    row-gap: 8px;
    column-gap: 10px;
}

/* imagenes de perfil en calificaciones */

.perfil-calificacion {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foto-perfil {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2e8b57;
}

/* Contenedor principal para municipales */
.municipal-container {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-top: 50px;
}

/* Cajas individuales para municipales */
.municipal-box {
  background-color: #000826;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.main-box {
  flex: 3; /* Ocupa más espacio */
}

.sidebar-box {
  flex: 1; /* Ocupa menos espacio */
}

/* Scroll boxes que ocupan todo el espacio */
.municipal-box .scroll-box {
  flex: 1;
  min-height: 500px;
}

/* Responsive para municipales */
@media (max-width: 768px) {
  .municipal-container {
    flex-direction: column;
  }
  
  .municipal-box .scroll-box {
    min-height: 600px;
  }
}

/* Mantener estilos existentes para vecinos */
.big-box {
  margin-top: 50px;
  background-color: #000826;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bottom-boxes {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.left-box, .right-box {
  background-color: #000826;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  color: #ffffff;
}

.left-box {
  flex: 2;
  min-width: 250px;
}

.right-box {
  flex: 1;
  min-width: 180px;
}


/* Evita scroll de fondo cuando el modal está abierto */
body.modal-abierto {
  overflow: hidden !important;
  height: 100vh;
}

/* Ajuste visual del modal de imagen */
.modal-imagen .modal-contenido {
  display: flex !important;
  justify-content: center;
  align-items: center;
  background: #000f47;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden !important;
}

.modal-imagen .modal-contenido img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
