@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(team_root.css);
@import url(team_animations.css);

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

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

html,
body {
    overflow-x: hidden;
}

main {
    margin-bottom: 3rem;
}

.hide {
    display: none;
    /* display: none !important; */
}

/* =============================================================================
   2) Typography
============================================================================= */
#memberPage 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;
}
#teamPage p {
    max-width: 95%;
    margin: 0 auto;

    color: var(--customBlackText);
    font-family: var(--familyTexGen);
    font-size: large;
    font-weight: 400;
    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;
    z-index: 2;
}

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: min(3vh,3vw);
    text-align: center;
      white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================================================
   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;
    pointer-events: none;
}  
/* Solo la parte visible/interactiva SÍ intercepta clics */
.headerPrlx .clickable,
.headerPrlx button,
.headerPrlx a,
.headerPrlx input,
.headerPrlx [data-clickable="true"] {
  pointer-events: auto;
}

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

    width: 100%;
    height: 70px;
    /* margin-left: 20%; */

    font-family: var(--familyTitulo);
  pointer-events: none;

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

/* Menu list items (more specific than ul li) */
.menu ul a 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);
}


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

    height: 40px;
    z-index: 11;
}

.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);
}



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

    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: calc(100vh - 3rem);

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

    filter: contrast(1.25) saturate(1.35);

    box-sizing: border-box;

    position: relative;
    overflow: hidden;
}


/* fondo (2 capas) */
#info .bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* por debajo del contenido */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 800ms ease;
    will-change: opacity;
}

#info .bg.is-active {
    opacity: 1;
}

/* todo el contenido real por encima */
#info> :not(.bg) {
    position: relative;
    z-index: 1;
}

#info #memberCover {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 10%;
    left: 50%;
    /* height: min(60vw, 60vh); */
    height: auto;
    transform: translate(-50%, 0);
    padding: 15px;
    opacity: 0.8;
    border-radius: min(60px,5vw);
    box-sizing: border-box;
    /* corner-shape: squircle; */
}

#info #memberCover img {

    height: min(40vw, 40vh);
    width: min(40vw, 40vh);
}
#info a #memberName {

    font-size: min(2.5vw,2.5vh);
    left: 50%;
    /* transform: translate(-50%, 0%); */
    text-align: center;
    /* width: max(auto,50vw, 50vh); */
    opacity: 0.7; 


}

.firstPlane {
    top: 240px;
}

.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 */
.mapWrap #mapa #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(--customMediumGrey);
    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(6em);
}

.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(--customMediumGrey);
    border-radius: 20px;
}

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

#teamPage 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(--customMediumGrey);
    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(--customMediumGrey);
    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: 10;

    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(--customMediumGrey);
    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(--customMediumGrey2);

    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;
}

#member01 {
    background-color: var(--colorMember01);
}

#member02 {
    background-color: var(--colorMember02);
}

#member03 {
    background-color: var(--colorMember03);
}

#member04 {
    background-color: var(--colorMember04);
}

#member05 {
    background-color: var(--colorMember05);
}

#member06 {
    background-color: var(--colorMember06);
}

#member07 {
    background-color: var(--colorMember07);
}

#member08 {
    background-color: var(--colorMember08);
}

#member09 {
    background-color: var(--colorMember09);
}

#member10 {
    background-color: var(--colorMember10);
}

#member11 {
    background-color: var(--colorMember11);
}

#member12 {
    background-color: var(--colorMember12);
}

#member13 {
    background-color: var(--colorMember13);
}

#member14 {
    background-color: var(--colorMember14);
}

#member15 {
    background-color: var(--colorMember15);
}

#member16 {
    background-color: var(--colorMember16);
}

#member17 {
    background-color: var(--colorMember17);
}

#member18 {
    background-color: var(--colorMember18);
}

#member19 {
    background-color: var(--colorMember19);
}

#member20 {
    background-color: var(--colorMember20);
}

/* =============================================================================
   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) Member selector (custom dropdown)
============================================================================= */
.memberSel {
    position: relative;
    font-family: system-ui, Segoe UI, Roboto, Arial;
}

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

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

    cursor: pointer;

    color: #fff;
}

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

    min-width: 0;
}

.memberLogo {
    flex: 0 0 auto;

    width: 45px;
    height: 45px;

    object-fit: cover;

    border-radius: 8px;
}

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

    min-width: 0;
}

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

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

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

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

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

    flex: 0 0 auto;

    opacity: 0.75;
}

.memberMenu {
    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;
}

.memberSel[data-open="true"] .memberMenu {
    display: block;
}

.memberOpt {
    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;
}

.memberOpt:hover {
    background: #f6f8fa;
}

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

.memberOpt .memberLogo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

    min-width: 0;
}

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

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

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

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

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

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

    width: max-content;

    will-change: transform;

    animation: membersMarqueeLeft 50s linear infinite;
}

.membersMarquee:hover .membersMarquee__track {
    animation-play-state: paused;
}

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

@keyframes membersMarqueeLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes membersMarqueeRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* =============================================================================
   23) Map hover card + member icons
============================================================================= */
.mapMemberHoverCard {
    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);
}

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

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

    height: 100%;

    margin-right: 15px;
}

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

    height: 100%;

    align-items: center;
}

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

    border-radius: 10px;

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

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

    padding: 0 12px;

    opacity: 0.95;

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

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

    color: var(--customBlack);
}

.mapMemberHoverCard__hint {
    margin-top: 6px;

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

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

    overflow: hidden;

    border-radius: 12px;
}

.mapMemberHoverCard__coverImg {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

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

    pointer-events: none;
}

.memberIcon {
    position: absolute;

    width: 42px;
    height: 42px;

    cursor: pointer;
    pointer-events: auto;

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

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

    pointer-events: none;

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

#membersLines .memberLine {
    stroke-width: 16;
    stroke-linecap: round;

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

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

#membersMaped .memberIcon.isVisible {
    opacity: 1;
    pointer-events: auto;
}

#membersLines .memberLine.isVisible {
    opacity: 0.75;
}



/* ////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////// */

/* Oculta el select real pero deja accesible para JS/lectores si quieres */
.langReal {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.langSelect {
    position: relative;
    display: inline-block;
    margin-right: 20px;
    margin-top: -20px;
    width: 100px;
    box-sizing: border-box;
    z-index: 11;
    height: 40px;
      pointer-events: auto;

}

.langBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 10px;
    background: var(--customRed);
    color: var(--customWhite);
    /* border: 1px solid #fff; */
    border-radius: 10px;
    cursor: pointer;
}

.langBtn:focus {
    outline: none;
}

.langFlag {
    width: 30px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

.langMenu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    /* min-width: 140px; */
    padding: 6px;
    background: var(--customBlack);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    z-index: 9999;
}

.langOption {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: transparent;
    color: var(--customWhite);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
}

#langLabel,
.langOption {
    font-weight: 700;
    font-family: "Montserrat";
}

.langOption:hover {
    background: rgba(255, 255, 255, .12);
}

#desplazMembers .prev,
#desplazMembers .next {
    /* width: 30px; */
}

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

    display: flex;
    align-items: center;

    width: 9vw;
    height: 8vw;
    padding: 20px 50px 35px 20px;

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


#teamPage .headerPrlx #logoMembers {
    position: absolute;
    box-sizing: border-box;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;

    background-color: var(--customRed);
    z-index: 11;

    height: 70px;
    padding: 0 30px 0 20px;
        
    border-radius: 0 0 90% 0 / 0 0 90% 0;
    pointer-events: auto;

}

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

.headerPrlx #logo:hover {
    background-color: var(--customBlack);
}


/* IF viewport <= 768px */
@media (max-width: 1390px) {
    #mainHeader #logo img {
        content: url("../../spots/assets/img/logos/00_X_Logos/alt-blanco/x-altwhite.svg");
        width: 3vw;
        height: 3vw;
        min-width: 30px;
        min-height: 30px;


    }

    .headerPrlx #logo {

        width: 8vw;
        height: 8vw;
        /* padding: 0x 0px 0px 10px; */
        background-color: var(--customRed);
        border-radius: 0 0 90% 0 / 0 0 90% 0;
        min-width: 85px;
        min-height: 85px;
        /* padding: 35px 30px 40px 20px; */
        /* padding: 20px; */
        /* padding: 10px; */
    }

}

#mainHeader #logoMembers img {

        content: url("../../spots/assets/img/logos/00_X_Logos/alt-blanco/x-altwhite.svg");
    width: 3vw;
    height: 3vw;
    max-width: 25px;
    max-height: 25px;
    min-width: 20px;
    min-height: 20px;
}

.headerPrlx #logoMembers {
    position: absolute;
    box-sizing: border-box;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;

    background-color: var(--customRed);
    z-index: 11;

    height: 50px;
    padding: 0 30px 0 30px;

}

#langBtn:hover,
#teamPage .headerPrlx #logoMembers:hover {
    background-color: var(--customBlack);
}




.memberLogoBox{
width:56px;
height:56px;
border-radius:14px;
display:grid;
place-items:center;
background:rgba(0,0,0,.06);
overflow:hidden;
cursor:pointer;
user-select:none;
}
.memberLogoBox img{
width:80%;
height:80%;
object-fit:contain;
display:block;
}

.slides .slide #caption p{
    color: white;
}
#teamPage::before {
    height: 100vh;
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../../spots/assets/img/portadas/18_1920x1080_portada.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.10;
    filter: blur(8px);
    /* transform: scale(1.05); */
    z-index: 0;
}

body .headerPrlx #logoMembers {
    position: absolute;
    box-sizing: border-box;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;

    background-color: var(--customRed);
    z-index: 11;

    height: 70px;
    padding: 0 30px 0 20px;
        
    border-radius: 0 0 90% 0 / 0 0 90% 0;

}
body .headerPrlx #logoMembers:hover {

    background-color: var(--customBlack);


}