﻿/*fuente  principal*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --mainColorMunicipio: #123648;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  width: 100%;
  height: 100vh;
}

/* Estilos para las scroll bars  */
/* ::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--mainColorMunicipio);
  border-radius: 6px;
}

::-webkit-scrollbar-track {
  background-color: #fff;
} */

/* Animaciones para el header */

@keyframes slideInDown {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Estilo de la transiciÃ³n de izquierda a derecha */
@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Estilo de la apariciÃ³n gradual de la imagen */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Estilo de la transiciÃ³n de la barra de carga */
@keyframes expandWidth {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* Estilos tooltips  */

.tippy-box {
  background-color: white;
  color: black;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
    0px 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.tippy-content {
  background-color: white;
  color: black;
}

.tippy-arrow::before {
  border-top-color: white !important;
}

.tippy-theme-light .tippy-backdrop {
  background: rgba(255, 255, 255, 0.9);
}

/* Estilos spinner  */

.loader {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border: 4px solid #0000;
  border-radius: 50%;
  border-right-color: var(--mainColorMunicipio);
  animation: l15 1s infinite linear;
}
.loader::before,
.loader::after {
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 50%;
  animation: l15 2s infinite;
}
.loader::after {
  margin: 8px;
  animation-duration: 3s;
}
@keyframes l15 {
  100% {
    transform: rotate(1turn);
  }
}

.loader2 {
  width: 50px;
  height: 10px;
  -webkit-mask: conic-gradient(
        from 135deg at top,
        #0000,
        var(--mainColorMunicipio) 0.5deg 90deg,
        #0000 90.5deg
      )
      0 0,
    conic-gradient(
        from -45deg at bottom,
        #0000,
        var(--mainColorMunicipio) 0.5deg 90deg,
        #0000 90.5deg
      )
      0 100%;
  -webkit-mask-size: 25% 50%;
  -webkit-mask-repeat: repeat-x;
  background: linear-gradient(var(--mainColorMunicipio) 0 0) left/0% 100%
    no-repeat #ddd;
  animation: l13 2s infinite linear;
}
@keyframes l13 {
  100% {
    background-size: 100% 100%;
  }
}

.loader3 {
  width: 60px;
  aspect-ratio: 1;
  position: relative;
}
.loader3:before,
.loader3:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 0;
  background: radial-gradient(circle 10px, var(--mainColorMunicipio) 94%, #0000),
    repeating-conic-gradient(
      from -30deg,
      #0000 0 60deg,
      var(--mainColorMunicipio) 61deg 120deg
    );
  -webkit-mask: radial-gradient(
    circle 15px,
    #000 calc(100% - 6px),
    #0000 calc(100% - 5px) 94%,
    #000
  );
}
.loader3:after {
  animation: l4 1s infinite;
  transform: perspective(300px) translateZ(0px);
}
@keyframes l4 {
  to {
    transform: perspective(300px) translateZ(150px);
    opacity: 0;
  }
}
/* Cada item */
.filter-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.4s ease;
  border-radius: 8px;
  position: relative;
}

/* Cabecera */
.filter-header {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  background-color: #e6f4ea;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  color: #194a19;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(25, 74, 25, 0.1);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.filter-item:hover .filter-header {
  background-color: #d9efdf;
  box-shadow: 0 4px 12px rgba(25, 74, 25, 0.15);
}

.filtro-activo {
  font-weight: 600;
  text-decoration: underline;
  background-color: #164816;
  color: #ffffff !important;
  font-weight: 500;
}

/* Dropdown oculto */
.dropdownNormo {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 0;
  overflow: hidden;
  background-color: #f3faf5;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0 0;
  border: none;
  transition: all 0.4s ease;
}

.dropdownNormo.active {
  max-height: 500px;
  padding: 0.5rem 0;
  border: 1px solid #164816;
}
.dropdownNormo li:hover {
  background-color: #f0fdf4;
  padding-left: 1.25rem;
  color: #194a19 !important;
  font-weight: 500;
}

/* Opciones dentro del dropdown */
.dropdownNormo li {
  list-style: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s, padding-left 0.3s;
  color: #333;
}
/* Icono flecha */
.icon {
  transition: transform 0.4s ease;
}

/* Rotación al abrir */
.filter-item.active .icon {
  transform: rotate(180deg);
}
/* Estilos para el Modal */
.modalContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modalContainer.modal-show {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modalContainer.modal-show .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

.modal-body {
  padding: 24px;
}

.funcionario-modal-card {
  display: flex;
  gap: 24px;
  margin: 0;
}

.funcionario-modal-image {
  width: 200px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.funcionario-modal-info {
  flex: 1;
  margin: 0;
}

.funcionario-modal-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 20px 0;
}

.funcionario-modal-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.funcionario-detail {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.detail-value {
  color: #6b7280;
  line-height: 1.5;
}

.detail-email {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.detail-email:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-backdrop {
    padding: 10px;
  }
  
  .funcionario-modal-card {
    flex-direction: column;
    gap: 16px;
  }
  
  .funcionario-modal-image {
    width: 100%;
    height: 100%;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
}