@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poetsen+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins: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');

@import url(spots_root.css);
@import url(spots_animations.css);

/* =============================================================================
   1) Base / Reset
============================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  line-height: clamp(1.4rem, 1vw + 1rem, 2.4rem);
}

html,
body {
  overflow-x: hidden;
}

main {
  margin-bottom: 3rem;
}

.hide {
  display: none !important;
}

/* =============================================================================
   2) Typography
============================================================================= */
p {
  max-width: 95%;
  margin: 0 auto;

  color: var(--customBlackText);
  font-family: var(--familyTexGen);
  font-size: large;
  font-weight: 600;
  text-align: justify;

  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;

  overflow-wrap: normal;
  word-break: normal;
}

ul li {
  font-family: var(--familyTexGen);
  font-size: medium;
  font-weight: 500;
}

.caption p {
  color: var(--customWhiteText);
}

/* =============================================================================
   3) Links / Nav base
============================================================================= */
a {
  display: flex;
  align-items: center;
  height: 100%;

  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
}

a li {
  padding: 0 20px;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  height: 100%;

  list-style: none;

  font-weight: 700;
}

nav .navegadores li {
  padding: 10px;
}

nav .navegadores li:hover {
  background-color: var(--customRed);
}

/* =============================================================================
   4) Page shells
============================================================================= */
.page-index {
  width: 100%;
  height: 100vh;

  background-color: var(--customBlack);
}

footer {
  position: fixed;
  bottom: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 3rem;
  padding: 0.5rem;

  opacity: 0.7;

  color: var(--customWhite);
  background-color: var(--customBlack);
}

footer p {
  margin: 0.5rem;

  color: var(--customWhite);
  font-family: var(--familyTitulo);
  font-size: 1rem;
}

/* =============================================================================
   5) Header / Menus
============================================================================= */
.botonesIdioma {
  margin: 5px;
}

/* Header (parallax style) */
.headerPrlx {
  position: fixed;
  z-index: 10;

  width: 100%;

  background-color: var(--customRed);
  background-position: center;
  background-size: cover;
}

/* Menu inside headerPrlx */
.headerPrlx .menu {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 75%;
  height: 50px;
  margin-left: 20%;

  font-family: var(--familyTitulo);

  background-color: var(--customRed);
}

/* Menu list items (more specific than ul li) */
.menu ul li {
  font-family: var(--familyTexGen);
  font-size: 1.6rem;
  font-weight: 600;
}

/* Hover links in menu */
.menu a:hover {
  cursor: pointer;

  color: var(--customWhite);
  background-color: var(--customRed);
}

/* Extra hover override for headerPrlx menu links */
.headerPrlx .menu ul a:hover {
  background-color: var(--customBlack);
}

/* Logo */
.headerPrlx #logo {
  position: absolute;
  top: 0;
  left: 0;

  display: flex;
  align-items: center;

  width: 10vw;
  min-width: 100px;
  height: min(50px, 10vh);
  padding: 35px 30px 50px 20px;
  margin-top: 20px;
  margin-bottom: 20px;

  background-color: var(--customRed);
  border-radius: 0 0 90% 0 / 0 0 90% 0;
}

.headerPrlx #logo img {
  width: 80%;
  z-index: 11;
}

/* Language button area */
.headerPrlx #botonIdioma {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 40px;
}

.headerPrlx .botonesIdioma,
header.fixed .botonesIdioma {
  width: 40px;
  height: 25px;

  color: var(--customWhite);
  font-family: var(--familyTexGen);

  background-color: var(--customRed);
  border: 1px solid var(--customWhite);
}

.headerPrlx .botonesIdioma {
  border-radius: 10px;
}

header.fixed .botonesIdioma {
  border-radius: 8px;
}

.headerPrlx .botonesIdioma:hover,
.fixed .botonesIdioma:hover {
  color: rgb(255, 0, 0);
  background-color: #e8e8e8;
}

/* Header fixed (on scroll) */
header.fixed {
  position: fixed;
  z-index: 3;

  display: grid;
  grid-template-columns: 5fr 10fr 5fr;
  grid-template-rows: 1fr;

  width: 100%;

  background-image: url(../assets/img/templates/fondo4.jpg);
}

header.fixed .menu {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  font-family: var(--familyTitulo);
}

header.fixed #logo {
  display: flex;
  justify-content: center;

  height: 50px;
}

header.fixed #logo img {
  width: 45px;
}

/* Secondary per-page menu */
.menuPropio {
  position: fixed;
  top: 3rem;

  width: 100%;

  text-align: center;
  font-family: var(--familyTitulo);

  background-color: var(--customBlack);
}

.menuPropio ul a li {
  font-family: var(--familyTitulo);
  font-size: clamp(1rem, 1vw + 0.5rem, 2.5rem);
}

/* Parallax utility */
.prlx {
  position: relative;

  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* =============================================================================
   6) Index: map + presentation
============================================================================= */
#info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  width: 100vw;
  height: 99vh;

  text-align: center;
  font-family: var(--familyTexGen);
  color: var(--customBlack);

  background-image: url("../assets/img/templates/fondo000.jpg");

  box-sizing: border-box;
}

.firstPlane {
  top: 240px;
}

#mapa {
  position: absolute;
  top: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100vw;
  height: 100%;
  gap: 10px;

  pointer-events: none;

  box-sizing: border-box;
}

#mapeo {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  overflow-x: auto;

  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  pointer-events: none;
}

#mapeo a {
  position: absolute;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  width: 100%;
  height: 100%;
}

#mapeo a .redButton {
  width: 100%;
  height: 100%;

  cursor: pointer;
  pointer-events: auto;

  filter: grayscale(1);
  z-index: 5;

  background-color: var(--customRed);
}

#mapeo a .redButton:hover {
  filter: grayscale(0);
}

#mapeo a .redButton img {
  width: 50%;
  height: 60%;
}

.zoomInRedButton {
  animation: redButtonZoomIn 600ms ease-in-out forwards;
}

.zoomOutRedButton {
  animation: redButtonZoomOut 600ms ease-in-out forwards;
}

/* Category buttons */
#botonesMapa {
  position: fixed;
  top: 110px;
  left: 1vw;
  z-index: 10;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-around;
  gap: 10px;

  margin: 0 10px;
}

#botonesMapa .btn:hover {
  border: 3px solid var(--customBlack);
  filter: grayscale(0);
}

/* Hidden when not over map */
#mapa #mapeo #botonesMapa.isHidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
}

.categoria {
  display: flex;
  flex-direction: column;
  gap: 5px;

  pointer-events: auto;
}

.categoria span {
  padding: 5px;

  text-align: center;
  font-family: "Montserrat";

  color: #ffffff;
  background-color: #000099;

  border-radius: 10px;

  visibility: hidden;
}

/* Category selector button */
.btnSelect {
  width: 25%;
  padding: 10px;

  color: var(--customMediumGray);
  font-family: var(--familyTexGen);

  background-color: var(--customRed);
  border-radius: 10px;
}

/* Presentation block */
#presentacion {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;

  width: 100vw;
  padding: 10px;

  color: var(--customWhite);
  background-color: var(--customBlue);

  box-sizing: border-box;
}

#presentacion h3 {
  text-align: center;
  font-family: var(--familyTitulo);
  font-size: 1.5rem;
}

/* =============================================================================
   7) Index: games carousel
============================================================================= */
#carrJuego {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 30vh;
}

.juegos-items {
  display: flex;
  gap: 20px;

  overflow-x: hidden;
}

.juegos-item {
  min-width: 300px;
  max-width: 300px;
  height: 250px;
}

.juegos-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.juegos-item:hover {
  transform: scale(1.2);
}

/* =============================================================================
   8) Buttons: Nav "sitios"
============================================================================= */
.sitios {
  position: relative;

  height: 50px;
  padding: 0 1.5em;

  font-family: var(--familyTitulo);
  font-size: 0.8em;
  color: var(--customWhite);

  cursor: pointer;

  background: var(--customRed);
  border: none;
  outline: none;

  transition: 800ms ease all;
}

.sitios:hover {
  color: var(--customRed);
  background: #ffffff8a;
}

.sitios::before,
.sitios::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  width: 0;
  height: 2px;

  background: var(--customRed);

  transition: 400ms ease all;
}

.sitios::after {
  top: auto;
  right: auto;
  left: 0;
  bottom: 0;
}

.sitios:hover::before,
.sitios:hover::after {
  width: 100%;
  transition: 800ms ease all;
}

/* =============================================================================
   9) Index: animated paragraph
============================================================================= */
.parMovi {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.6);
}

.parMovi h1 > span {
  position: relative;

  display: inline-block;
  height: 1.25em;
  margin-left: 1rem;

  overflow: hidden;
  vertical-align: bottom;

  color: var(--customRed);
}

.parMovi h1 > span > span {
  display: block;

  text-align: left;
    padding : 18px 0;
  animation: anim 5s infinite ease;
}

/* =============================================================================
   10) Sections / Panels (places)
============================================================================= */
.secciones {
  padding-top: calc(9em);
}

.secciones section {
  min-height: 80vh;
  height: auto;

  font-family: var(--familyTexRedu);
}

.secciones section.panel {
  display: none;
  padding: 1em;
}

.secciones section.panel:target {
  display: block;
  place-items: center;
}

.secciones section > h2,
.secciones section > h3 {
  text-align: center;
  font-family: var(--familyTitulo);
}

/* =============================================================================
   11) Content blocks
============================================================================= */
.introContenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;

  width: 90vw;
  padding: 1rem;
  margin: 20px;

  background-color: var(--customMediumGray);
  border-radius: 20px;
}

.introContenido h2 {
  text-align: center;
  font-family: var(--familyTitulo);
}

div h3,
.contenido div h2 {
  margin: 1rem;
}

.contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  width: 90vw;
  padding: 10px;
  margin: 20px;

  background-color: var(--customMediumGray);
  border-radius: 20px;
}

.contenido:nth-child(even) {
  flex-direction: row-reverse;
}

.contenido img {
  width: 30vw;
  max-width: 400px;
  height: auto;

  object-fit: cover;

  border-radius: 1rem;
}

.contenido p,
.contenido .listaLugar {
  width: 70%;
  margin: 1rem;
  line-height: clamp(1.4rem, 1vw + 1rem, 2.4rem);
}

/* =============================================================================
   12) Gallery (small)
============================================================================= */
.galeria-wrapper {
  position: relative;

  width: 90vw;
  padding: 1rem;

  overflow: hidden;

  background: var(--customMediumGray);
  border-radius: 1rem;
}

.listaImg {
  display: flex;
  gap: 1%;

  cursor: pointer;

  scroll-behavior: smooth;
  transition: transform 0.5s ease;

  user-select: none;
}

.listaImg .card {
  min-width: 33%;

  object-fit: cover;

  border-radius: 15px;
  filter: brightness(0.7);
}

.listaImg .card:hover {
  filter: brightness(1);
}

.galeria-wrapper button {
  position: absolute;
  top: 50%;
  z-index: 1;

  padding: 0.8rem;

  font-size: 0.8rem;
  color: #fff;

  cursor: pointer;

  background: var(--customGreen);
  border: none;
  border-radius: 5px;

  transform: translateY(-50%);
}

.galeria-wrapper button:hover {
  background: var(--customGreen-ligth);
}

.galeria-wrapper .prev {
  left: 8px;
}

.galeria-wrapper .next {
  right: 8px;
}

/* =============================================================================
   13) Carousel with caption
============================================================================= */
.carousel {
  position: relative;

  min-width: 80vw;
  padding: 0.5rem;

  overflow: hidden;

  background-color: var(--customMediumGray);
  border-radius: 10px;
}

.slides {
  display: flex;
  gap: 2%;

  min-width: 35%;

  transition: transform 0.5s ease;
}

.slide {
  position: relative;

  min-width: 49%;

  overflow: hidden;

  text-align: center;
  font-family: var(--familyTexRedu);
}

.slide img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 10px;

  transition: transform 0.4s ease;
}

.caption {
  position: absolute;
  bottom: 0;

  width: 100%;
  padding: 15px;

  color: #fff;
  background: rgba(0, 0, 0, 0.596);

  border-radius: 0 0 10px 10px;

  transform: translateY(100%);
  transition: transform 0.3s ease;

  box-sizing: border-box;
}

.slide:hover .caption {
  transform: translateY(0);
}

.slide:hover img {
  transform: scale(1);
}

#prev,
#next {
  position: absolute;
  top: 50%;

  padding: 10px 15px;

  font-size: 1.2rem;
  color: var(--customMediumGray2);

  cursor: pointer;

  background: var(--customGreen);
  border: none;
  border-radius: 5px;

  transform: translateY(-50%);
}

#prev {
  left: 10px;
}

#next {
  right: 10px;
}

/* =============================================================================
   14) Carousel hover scale
============================================================================= */
.carruselHover {
  display: flex;

  width: 80vw;
  height: 50vh;
  margin: 1rem;
}

.carruselHover img {
  flex: 0.3;

  width: 10px;
  height: 100%;

  cursor: pointer;

  object-fit: cover;

  transition: flex 0.5s ease, transform 0.5s ease;
}

.carruselHover:hover img {
  flex: 0.1;
  filter: brightness(0.3);
}

.carruselHover img:hover {
  flex: 4;
  filter: brightness(1);
  transform: scale(1);
}

/* =============================================================================
   15) Browser menu (glass panels)
============================================================================= */
#infoHorario {
  font-family: var(--familyTexGen);
}

.browserMenu {
  display: flex;
  margin-top: 1rem;
}

#menuPanelGlass {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  gap: 20px;

  height: 60vh;
  padding: 1rem;

  font-size: 1rem;
}

#menuPanelGlass input[type="radio"] {
  display: none;
}

#menuPanelGlass label {
  display: flex;
  gap: 0.2rem;
  justify-content: center;
  align-items: flex-start;
}

#menuPanelGlass img {
  width: 2rem;
}

#menuPanelGlass span {
  min-width: 8vw;
  padding: 4px;

  cursor: pointer;

  color: var(--customWhite);

  background: #000;

  border: 1px solid #fff;
  border-radius: 0.5rem;
}

.panelGlass {
  display: none;

  width: 70vw;
  margin: 1rem;

  background-image: url(https://cdn.pixabay.com/photo/2013/06/07/10/15/gijon-117908_1280.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.panelGlass h2 {
  margin: 2rem;
}

.panelGlass p {
  margin: 2rem;
  padding: 1rem;

  color: var(--customWhite);

  background-color: var(--customBlack);
  border-radius: 10px;
}

.panelGlass a {
  height: 80px;
  padding: 1rem;

  color: var(--customWhite);

  background-color: var(--customRed);
  border-radius: 10px;
}

.panelGlass table {
  width: 70vw;
  padding: 2rem;

  background: rgba(173, 160, 160, 0.1);

  border-radius: 0.5rem;

  box-shadow: -11px 19px 18px -5px rgba(0, 0, 0, 0.21);
  -webkit-box-shadow: -11px 19px 18px -5px rgba(0, 0, 0, 0.21);
  -moz-box-shadow: -11px 19px 18px -5px rgba(0, 0, 0, 0.21);

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.panelGlass table th,
.panelGlass table td {
  padding: 10px;
}

.panelGlass tr:hover {
  cursor: pointer;
  color: var(--customWhite);
}

.panelGlass .btnTienda {
  padding: 0.5rem;

  font-size: 1rem;
  color: var(--customBlack);

  background-color: #80808021;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.5rem;
}

table .descentrado {
  text-align: left;
}

#sec1 .only,
#sec2 .acuBot,
#sec3 .labBot {
  height: 30%;
  font-size: 1rem;
}

#sec4 img {
  width: 60vw;
  border: 1px solid #6b5d5d44;
}

/* Show panel when the corresponding radio is checked */
#menuPanelGlass:has(#radio-sec1:checked) ~ #sec1,
#menuPanelGlass:has(#radio-sec2:checked) ~ #sec2,
#menuPanelGlass:has(#radio-sec3:checked) ~ #sec3,
#menuPanelGlass:has(#radio-sec4:checked) ~ #sec4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  margin: 2rem;

  text-align: center;

  border-radius: 0.5rem;
}

/* =============================================================================
   16) Game section placeholder
============================================================================= */
.gameSection {
  height: 15vh;
  background-color: #6b5d5d;
}

/* =============================================================================
   17) Cards / Listings (DARIO section)
============================================================================= */
.titleMenu {
  width: 200px;
  padding: 1rem;
  margin-top: 1.5rem;
  margin-left: 1rem;

  text-align: center;
  font-family: var(--familyTitulo);
  color: var(--customWhite);

  background-color: var(--customBlack);
  border-radius: 1rem;

  box-sizing: border-box;
}

.imgButton {
  width: 200px;
}

.listado {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 1rem;

  color: var(--customBlue);
  font-size: 1.5rem;
  text-decoration: none;
}

.listado p {
  width: 200px;
  height: 80px;
  padding: 0.5rem;

  text-align: center;
  font-family: var(--familyTitulo);
  font-style: italic;
  font-weight: 800;
  font-optical-sizing: auto;

  color: var(--customWhite);
  background-color: var(--customBlack);

  border-radius: 0 0 1rem 1rem;

  box-sizing: border-box;
}

.listado:hover {
  color: var(--customBlack);
}

.sitiosGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.sitiosGrid .sitio {
  width: 200px;
  height: 295px;
  border-radius: 1rem;
}

#spot01 { background-color: var(--colorSpot01); }
#spot02 { background-color: var(--colorSpot02); }
#spot03 { background-color: var(--colorSpot03); }
#spot04 { background-color: var(--colorSpot04); }
#spot05 { background-color: var(--colorSpot05); }
#spot06 { background-color: var(--colorSpot06); }
#spot07 { background-color: var(--colorSpot07); }
#spot08 { background-color: var(--colorSpot08); }
#spot09 { background-color: var(--colorSpot09); }
#spot10 { background-color: var(--colorSpot10); }
#spot11 { background-color: var(--colorSpot11); }
#spot12 { background-color: var(--colorSpot12); }
#spot13 { background-color: var(--colorSpot13); }
#spot14 { background-color: var(--colorSpot14); }
#spot15 { background-color: var(--colorSpot15); }
#spot16 { background-color: var(--colorSpot16); }
#spot17 { background-color: var(--colorSpot17); }
#spot18 { background-color: var(--colorSpot18); }
#spot19 { background-color: var(--colorSpot19); }
#spot20 { background-color: var(--colorSpot20); }

/* =============================================================================
   18) Language picker (progressive enhancement)
============================================================================= */
@supports (appearance: base-select) {
  .lang,
  .lang::picker(select) {
    appearance: base-select;
  }

  .lang {
    width: 72px;
    height: 48px;
    padding: 0;

    cursor: pointer;

    background: #aa0101;
    border-radius: 12px;

    box-sizing: border-box;
  }

  .lang > button.lang__btn {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;

    width: 100%;
    height: 100%;
    padding: 0;

    background: transparent;
    border: 0;

    box-sizing: border-box;
  }

  .lang selectedcontent.lang__selected {
    display: flex;
    width: 100%;
    height: 100%;
  }

  .lang::picker-icon {
    display: none;
  }

  .lang__chev {
    width: 10px;
    height: 10px;
    margin: 6px;

    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);

    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .lang:open .lang__chev {
    transform: rotate(-135deg);
  }

  .lang__flag {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
  }

  .lang::picker(select) {
    width: 72px;
    min-width: 68px;
    max-width: 72px;
    padding: 6px;

    overflow: auto;
    scrollbar-gutter: stable;

    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
  }

  .lang option {
    display: grid;
    place-items: center;

    width: 100%;
    height: 40px;
    padding: 0;

    box-sizing: border-box;

    color: #fff;

    border-radius: 10px;
  }

  .lang option img {
    border-radius: 6px;
  }

  .lang option::checkmark {
    content: "";
  }

  .lang::picker(select) .lang__flag {
    width: 34px;
    height: 34px;

    object-fit: cover;

    border-radius: 6px;
  }
}

.lang:focus-visible {
  outline-offset: 0;
}

/* =============================================================================
   19) Map overlay controls (buttons + SVG zones)
============================================================================= */
.container {
  position: relative;
  overflow: hidden;
}

.buttons {
  position: absolute;
  left: 1vw;
  top: calc(var(--vpUnit) + 1vw);

  display: flex;
  gap: 12px;

  transform: translate(-50%, -50%);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.buttons.expanded {
  animation: buttonsShowUp 500ms ease-out forwards;
}

.buttons.shrinked {
  top: 50%;
  animation: buttonsHideDown 500ms ease-in forwards;
}

.btn {
  width: 55px;
  height: 55px;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  opacity: 0;
  transform: scale(0);

  background: red;
  border: 3px solid transparent;
  border-radius: 30%;

  transition:
    transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.4s ease,
    border 0.3s ease;
}

.buttons.expanded .btn {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

#botonesMapa .btn:checked {
  filter: grayscale(0%);
}

#botonesMapa .categoria .btn:checked + span {
  display: block;
  visibility: visible;
}

#botonesMapa .categoria :not(.btn:checked) + span {
  display: block;
  visibility: hidden;
}

#botonesMapa .btn:active {
  transform: scale(0.92);
}

/* Map wrapper + SVG overlay */
.mapWrap {
  position: relative;
  width: 100%;
}

.mapWrap > img {
  display: block;
  width: 100%;
  height: auto;
}

#mapOverlay.overlay {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
}

.zone {
  cursor: pointer;
  z-index: 5;

  fill: rgba(43, 43, 43, 0.18);
  stroke: rgba(43, 43, 43, 0.9);
  stroke-width: 2;

  vector-effect: non-scaling-stroke;
}

#mapOverlay a .zone:hover {
  stroke-width: 6;
}

/* Zone categories */
.zone.cat-nature {
  fill: var(--colorCatNature);
  fill-opacity: 0.6;
  stroke: var(--colorCatStrokeNature);
  stroke-opacity: 0.9;
  stroke-width: 3;
}

.zone.cat-history {
  fill: var(--colorCatHistory);
  fill-opacity: 0.6;
  stroke: var(--colorCatStrokeHistory);
  stroke-opacity: 0.9;
  stroke-width: 3;
}

.zone.cat-park {
  fill: var(--colorCatPark);
  fill-opacity: 0.6;
  stroke: var(--colorCatStrokeNature);
  stroke-opacity: 0.9;
  stroke-width: 3;
}

.zone.cat-sport {
  fill: var(--colorCatSport);
  fill-opacity: 0.6;
  stroke: var(--colorCatStrokeSport);
  stroke-opacity: 0.9;
  stroke-width: 3;
}

.zone.cat-art {
  fill: var(--colorCatArt);
  fill-opacity: 0.6;
  stroke: var(--colorCatStrokeArt);
  stroke-opacity: 0.9;
  stroke-width: 3;
}

.zone.cat-museum {
  fill: var(--colorCatMuseum);
  fill-opacity: 0.6;
  stroke: var(--colorCatStrokeMuseum);
  stroke-opacity: 0.9;
  stroke-width: 3;
}

.zone.cat-leisure {
  fill: var(--colorCatLeisure);
  fill-opacity: 0.6;
  stroke: var(--colorCatStrokeLeisure);
  stroke-opacity: 0.9;
  stroke-width: 3;
}

/* Category button skins */
#cat-nature,
#cat-history,
#cat-park,
#cat-sport,
#cat-art,
#cat-museum,
#cat-leisure {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;

  filter: grayscale(100%) invert(1);
}

#cat-nature {
  background-image: url("../assets/img/logos/categorias/cat-nature.svg");
  background-color: var(--colorCatNature);
  border: 3px solid var(--colorCatStrokeNature);
}

#cat-history {
  background-image: url("../assets/img/logos/categorias/cat-history.svg");
  background-color: var(--colorCatHistory);
  border: 3px solid var(--colorCatStrokeHistory);
}

#cat-park {
  background-image: url("../assets/img/logos/categorias/cat-park.svg");
  background-color: var(--colorCatPark);
  border: 3px solid var(--colorCatStrokePark);
}

#cat-sport {
  background-image: url("../assets/img/logos/categorias/cat-sport.svg");
  background-color: var(--colorCatSport);
  border: 3px solid var(--colorCatStrokeSport);
}

#cat-art {
  background-image: url("../assets/img/logos/categorias/cat-art.svg");
  background-color: var(--colorCatArt);
  border: 3px solid var(--colorCatStrokeArt);
}

#cat-museum {
  background-image: url("../assets/img/logos/categorias/cat-museum.svg");
  background-color: var(--colorCatMuseum);
  border: 3px solid var(--colorCatStrokeMuseum);
}

#cat-leisure {
  background-image: url("../assets/img/logos/categorias/cat-leisure.svg");
  background-color: var(--colorCatLeisure);
  border: 3px solid var(--colorCatStrokeLeisure);
}

/* =============================================================================
   20) Tooltips
============================================================================= */
.map-tooltip {
  position: fixed;
  z-index: 10;

  padding: 6px 10px;

  pointer-events: none;

  opacity: 0;
  transition: opacity 0.2s ease;

  color: #fff;
  background: rgba(0, 0, 0, 0.85);

  border-radius: 6px;

  font-size: 14px;
}

.tooltip {
  padding: 1.5rem;

  cursor: pointer;

  color: #000099;
  background: #ffffff;

  border: 3px solid #000099;
  border-radius: 20px;

  font-size: 2em;
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
}

.tooltip::after,
.tooltip::before {
  position: absolute;
  left: 50%;
  z-index: 10;

  opacity: 0;

  transform: translateX(-50%) translateY(-150px);
}

.tooltip::after {
  content: attr(data-tooltip);

  padding: 0.5em;

  color: #ffffff;
  background: rgb(0, 0, 170);

  border-radius: 10px;

  font-size: 1em;

  white-space: nowrap;
}

.tooltip::before {
  content: "";

  border: 15px solid transparent;
  border-top: 15px solid rgb(0, 0, 170);

  bottom: 39%;
}

/* =============================================================================
   21) Spot selector (custom dropdown)
============================================================================= */
.spotSel {
  position: relative;
  font-family: system-ui, Segoe UI, Roboto, Arial;
}

.spotBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 100%;
  height: 50px;
  padding: 10px 12px;

  cursor: pointer;

  color: #fff;
}

.spotMain {
  display: flex;
  align-items: center;
  gap: 10px;

  min-width: 0;
}

.spotLogo {
  flex: 0 0 auto;

  width: 45px;
  height: 45px;

  object-fit: cover;

  border-radius: 8px;
}

.spotText {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.spotTitle {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotDesc {
  font-size: 12px;
  line-height: 1.2;
  color: #57606a;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotChevron {
  width: 18px;
  height: 18px;

  flex: 0 0 auto;

  opacity: 0.75;
}

.spotMenu {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;

  display: none;

  max-height: 190px;
  padding: 6px;

  overflow-x: hidden;
  overflow-y: auto;

  background: #dad9d9;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.spotSel[data-open="true"] .spotMenu {
  display: block;
}

.spotOpt {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;

  width: 100%;
  margin-bottom: 5px;

  cursor: pointer;

  background: transparent;
  border: 0;
  border-radius: 10px;

  text-align: left;
}

.spotOpt:hover {
  background: #f6f8fa;
}

.spotOpt[aria-selected="true"] {
  background: #eef6ff;
}

.spotOpt .spotLogo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.spotMeta {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.spotMeta strong {
  font-size: 16px;
  line-height: 1.2;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotMeta span {
  font-size: 12px;
  color: #57606a;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================================================
   22) Marquee (spots row)
============================================================================= */
.spotsMarquee {
  width: 100%;
  overflow: hidden;
}

.spotsMarquee__track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;

  width: max-content;

  will-change: transform;

  animation: spotsMarqueeLeft 50s linear infinite;
}

.spotsMarquee:hover .spotsMarquee__track {
  animation-play-state: paused;
}

.spotsMarquee__track > img {
  flex: 0 0 auto;
  width: 80px;
  height: auto;
}

@keyframes spotsMarqueeLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes spotsMarqueeRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* =============================================================================
   23) Map hover card + spot icons
============================================================================= */
.mapSpotHoverCard {
  position: absolute;
  z-index: 20;

  display: none;

  max-height: 50px;

  pointer-events: auto;

  opacity: 0.9;

  background: rgba(255, 255, 255, 1);
  border: 2px solid rgba(32, 32, 32, 0.9);
  border-radius: 14px;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transform: translateZ(0);
}

.mapSpotHoverCard.is-visible {
  display: block;
}

.mapSpotHoverCard__row {
  display: flex;
  align-items: center;
  gap: 10px;

  height: 100%;

  margin-right: 15px;
}

.mapSpotHoverCard__icons {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;

  height: 100%;

  align-items: center;
}

.mapSpotHoverCard__spotIcon {
  width: 38px;
  height: 100%;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.08);
}

.mapSpotHoverCard__catIcon {
  width: 50px;
  height: 100%;

  padding: 0 12px;

  opacity: 0.95;

  border-radius: 12px 0 0 12px;
}

.mapSpotHoverCard__title {
  font-size: 14px;
  line-height: 1.15;
  font-weight: 600;

  color: var(--customBlack);
}

.mapSpotHoverCard__hint {
  margin-top: 6px;

  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.mapSpotHoverCard__cover {
  width: 100%;
  height: 110px;
  margin-top: 10px;

  overflow: hidden;

  border-radius: 12px;
}

.mapSpotHoverCard__coverImg {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* IMPORTANT: el padre de #spotsMaped debe ser position:relative y tener el mismo tamaño que el mapa */
#spotsMaped {
  position: absolute;
  inset: 0;
  z-index: 4;

  pointer-events: none;
}

.spotIcon {
  position: absolute;

  width: 42px;
  height: 42px;

  cursor: pointer;
  pointer-events: auto;

  transform: translate(-50%, -100%);
}

#spotsLines {
  position: absolute;
  inset: 0;
  z-index: 2;

  pointer-events: none;

  opacity: 0;
  transition: opacity 180ms ease;
}

#spotsLines .spotLine {
  stroke-width: 16;
  stroke-linecap: round;

  opacity: 0;
  transition: opacity 180ms ease;
}

#spotsMaped .spotIcon {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

#spotsMaped .spotIcon.isVisible {
  opacity: 1;
  pointer-events: auto;
}

#spotsLines .spotLine.isVisible {
  opacity: 0.75;
}
