/* BÁSICOS */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  background: white;
  overflow-x: hidden;
  font-size: 16px;
}

body.invisible {
  opacity: 0;
  transition: opacity 0.5s ease;
}
  #loader-pagina {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
  }
  .loader-spinner {
    width: 48px;
    height: 48px;
    border: 6px solid #eee;
    border-top: 6px solid #fec304;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 18px;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  .loader-texto {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
  }

.leaflet-attribution-flag {
  display: none !important;
}

a {
  text-decoration: none;
}

p {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

p.normal-display {
  line-height: 1.4em;
  hyphens: auto;
  font-size: 1.3em;
  text-align: justify;
  margin: 0,
}


h1 {
  font-family: 'Encode Sans', sans-serif;
  font-size: 4.5em;
  font-weight: bold;
  color: white;
  letter-spacing: 2px;
}

h2 {
  font-family: "Roboto", sans-serif;
  font-size: 1.6em;
  font-weight: 300;
  line-height: 1.4;
  hyphens: auto;
  text-align: justify;
  margin-block-end: 2em;
}

h3 {
  font-family: "Roboto", sans-serif;
  font-size: 1.7em;
  font-weight: 800;
  margin-block-start: 0;
  margin-block-end: 1em;
}

h4 {
  font-family: "Roboto", sans-serif;
  font-size: 1.2em;
  hyphens: auto;
  font-weight: 800;
  margin-block-start: 0;
  margin-block-end: 1em;

}


/* MENÚ */

header {
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: calc(100vw - 10px);
  z-index: 100;
  height: 65px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 1rem;
}

nav {
  display: flex;
  gap: 1.5rem;
  padding-right: 20px;
  font-size: 1em;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  font-weight: bold;
}

/* PORTADA */
#portada {
  position: relative;
  min-height: 1000px;
  z-index: 30;
}

.videoport-section,
.portada-section {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

#portada-wrapper img {
  width: 100%;
  height: 100vh;
  display: block;
  object-fit: cover;
  margin-top: 50px;
}

.leaflet-attribution-flag {
  display: none !important;
}

#port img {
  width: 100%;
  height: 100vh;
  display: block;
  object-fit: cover;
  margin-top: 50px;
}

.video-text {
  position: absolute;
  /* Cambiar de fixed a absolute */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
  pointer-events: none;

}

.video-text.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease;
}

#mensaje-rotativo {
  text-align: CENTER;
  margin: 0;
  transition: opacity 0.5s ease;
  font-size: 2rem;
  font-weight: 200;
}

/* AUDIO PLACEHOLDER     */
.audio-header-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  padding-left: 10px;
}

.audio-header-placeholder .audio-button {
  width: 20px;
  height: 20px;
  margin-right: 0;
}

header .audio-button svg {
  width: 20x;
  height: 20px;
}

/* BLOQUE TEXTO */
.divtexto {
  width: 100%;
  height: auto;
}

.divtexto-container {
  height: auto;
  padding-left: 27%;
  padding-right: 27%;
  padding-top: 100px;
  padding-bottom: 100px;
}

.normal-display {
  line-height: 1.4em;
  hyphens: auto;
  font-size: 1.3em;
  text-align: justify;
}

/* CONTENEDOR DE LA IMAGEN Y LOS CRÉDITOS */
.contenedor-con-creditos {
  position: relative;
  display: inline-block;
  width: 100%;
  vertical-align: top;
}

/* ESTILO DE LA IMAGEN DENTRO DEL CONTENEDOR */
.contenedor-con-creditos img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* BLOQUE DE CRÉDITOS */
/* No se necesita contenedor adicional */
.creditos {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff;
  font-size: 11px;
  text-shadow: 1px 1px 4px #000000cc;
  font-style: italic;
  text-align: center;
  padding-bottom: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.creditos,
.credito-aplicado {
  pointer-events: auto;
}

.credito-aplicado:hover~.creditos,
.creditos:hover {
  opacity: 1;
}

.credito-superior {
    bottom: unset;
    padding-top: 6px;

}
/* AL PASAR EL MOUSE: MOSTRAR */
.contenedor-con-creditos:hover .creditos {
  opacity: 1;
}

/* FOOTER */
.footer {
  width: 100%;
  font-family: 'Roboto', sans-serif;
}

.footer-top {
  background-color: white;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #333;
  padding: 18px 0;
}

.footer-bottom {
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.9rem;
  padding: 15px 0;
}

.footer-col {
  padding: 0 40px;
}

.footer-col.left {
  text-align: left;
}
.footer-col.leftarr {
    text-align: left;
    display: flex;
    align-items: center;
}

.footer-col.center {
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.footer-col.right {
  text-align: right;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 14px;
}
.coln {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap:7px !important;
  font-size:0.8em;
}

.center-d {
  display: flex;
  flex-direction: row;
  gap: 10px;
  font-size: 0.8em;
  padding-top: 10px;
}
-center
.footer p {
  margin: 0.5em 0;
  line-height: 1em;
  color: inherit;
}

.footer-title {
  color: #1171B7;
  font-weight: bold;
  font-size: 1.3em;
  line-height: 1.4em;
}

.icono {
  width: 13px;
  height: 13px;
  vertical-align: middle;
  margin-right: 3px;
}

.logo-muni {
  width: 170px;
  height: auto;
}
.logo {
transition: 3s ease-in-out;
}
.logo:hover {transform: scale(0.9);
opacity: 0.8;}
.logoGT {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 5px;
}
.logo-cfi {
  height: 55px;
  width: auto;
  display: block;
  margin-bottom: 5px;
}
.logo-gba {
  height: 55px;
  width: auto;
  display: block;
  margin-bottom: 5px;
}

.desarrollo p {
  font-size: 0.6em;
  font-weight: 300;
  margin: 0;
}

.ico img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
  display: inline-block;
  vertical-align: middle;
}

.ico:hover img {
  transform: scale(1.2);
}

/* SCROLLBAR*/
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 3px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background-color: #666;
}


.custom-tooltip {
  background-color: #000;
  border: #000;
  color: white;
  font-size: 10px;
  line-height: 12px;
  opacity: 0.8;
  transition: ease-in;
}

.custom-div-icon .circle-icon {
  background-color: black;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  border: 2px solid white;
  box-shadow: 0 0 2px #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Marcador punto 13 */
.marker-red .circle-icon {
  background: #fec304;
  color: #fff;
  border: 2px solid white;
  width: 40px;
  height: 40px;
}
.custom-div-icon .circle-icon:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}

/* ELEMENTOS DE CARRUSEL */

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease 0.5s;
}

.carrusel-btn.prev {
  left: 20px;
}

.carrusel-btn.next {
  right: 20px;
}

.carrusel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carrusel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carrusel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carrusel-indicator.active {
  background: white;
}

/* ESTILOS CALLE SEGÚN ZOOM */
.calle-nombre {
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  font-family: Roboto, sans-serif;
  fill: #292929;
  text-shadow: 5px 3px 5px #FFFFFF;
}

.calle-nombre.zoom165 {
  font-style: italic;
  font-weight: 500;
  font-size: 8px;
  fill: #292929;
  text-shadow: 5px 3px 5px #FFFFFF;
}

.calle-nombre.zoom17 {
  font-style: italic;
  font-weight: 500;
  font-size: 10px;
  fill: #292929;
  text-shadow: 5px 3px 5px #FFFFFF;
}

/* Responsivo */

@media (max-width: 768px) {
  #panel-container {
    flex-direction: column;
  }

  .map-container {
    position: relative;
    width: 100%;
    height: 300px;
    top: auto;
  }

  #cardContainer {
    width: 100%;
    padding: 1rem;
  }
.carrusel-btn {
      font-size: 1rem;
    width: 20px;
    height: 20px;
}
.divtexto-container {
  padding-left:15%;
  padding-right:15%;
}
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background-color: black;
    position: absolute;
    top: 65px; /* altura del header */
    right: 0;
    width: 100%;
    padding: 1rem;
    z-index: 999;
  }

  nav.active {
    display: flex;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background: white;
  }
  .footer-col {
    padding: 20px;
  }
  .footer-top {
    font-size:0.7rem;
  }
  .footer-top .footer-col.right {
    width:100%;
    text-align: center;
    display:inline;
  }
  .footer-top .footer-col.right a {
    padding:0 5px;

  }
}
