:root {
  --tx-color: #1d1e34;
  --inst-color: #005AAA;
  --alternative-color: #F5821F;
  --section-color: #008296;
  --footer-color: #1d1e34;
  --backgorund-color: white;
  --dark-color: white; /*floating box bar*/
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: 'Montserrat', Arial, system-ui, sans-serif;
  font-size: small;
  font-size-adjust: 0.45;  
  color: var(--tx-color);
}
/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --tx-color: white;
    --inst-color: #2BC5FF;
    --alternative-color: #F5821F;
    --section-color: #008296;
    --footer-color: #1d1e34;
    --dark-color: #1d1e34;
  }

  body {
    background-color: #212121;
    color: var(--tx-color);
  }
  
  .slide-box {
    background: var(--backgorund-color);
    color: var(--tx-color);
  }
  
  h1, h2, h3, h4, h5, p {
    color: var(--tx-color);
  }

  .wave-top {
   content: url("Assets/edge-dark-top.svg");
  }

  .wave-bottom {
   content: url("Assets/edge-dark-top.svg");
  }
  .blue .wave-bottom {
    content: url(Assets/edge-blue-top.svg) !important;
  }

  @media (max-width: 768px) {
      .wave-top {
        content: url(Assets/edge_dark_mobile.svg) !important;
      }
      .wave-bottom {
        content: url(Assets/edge_dark_mobile.svg) !important;
      }
      .blue .wave-bottom {
        content: url(Assets/edge_blue_mobile.svg) !important;
      }
  }
  .logo_opening {
    content: url("Assets/logo_blancoblanco.svg");
  }
  .picto_1 {
    content: url("Assets/pictogramas_turquesa-02.webp");
  }
  .picto_2 {
    content: url("Assets/pictogramas_turquesa.webp");
  }
  .picto_3 {
    content: url("Assets/pictogramas_turquesa-03.webp");
  }
  #instalaciones {
    background-color: white !important;
  }
}

.bowlby-one-sc-regular {
  font-family: "Bowlby One SC", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.montserrat {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-style: normal;
}

h1  {
    font-family: "Bowlby One SC", sans-serif;
    font-size: 2.84rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2.375rem;
    color: var(--inst-color);
    padding-top: 6%;
  } 

h2  {
    font-family: "Bowlby One SC", sans-serif;
    font-weight: 300;
    font-size: 2.3rem;
    line-height: 0.8;
    color: var(--inst-color);
    }

h3  {
    font-family: "Bowlby One SC", sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 100%;
    text-wrap: balance;
}

h4  {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 140%;
  color: var(--tx-color);
  padding-top: 15px;
}

h5  {
  font-family: "Bowlby One SC", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.5rem;
  text-wrap: balance;
}

h6 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  text-wrap: wrap;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--inst-color);
}

p {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 150%;
  text-wrap: wrap;
  font-weight: 450;
}

a {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--alternative-color);
}

/* --- NAV BAR --- */
.menu-trigger {
  position: fixed;
  top: 20px;
  left: 40px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 9999; 
  text-align: center;
  pointer-events: auto;
  transition: transform 0.3s ease;
}

.menu-trigger .circle-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  background: var(--footer-color);
  border-radius: 50%;
  box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: background-color 0.3s ease;
}
.menu-trigger:hover .circle-bg {
  transform: scale(1.12); 
}

.menu-trigger .menu-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 0.85rem;
  letter-spacing: 1px;
  font-weight: 700;
  color: white;
  pointer-events: none;
}

.menu-trigger.active .menu-text {
      opacity: 0;
}

.menu-trigger::after {
      content: 'X';
      position: absolute;
      top: 65%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0);
      font-size: 3rem;
      font-weight: 100;
      color: white;
      z-index: 3;
      transition: transform 0.3s ease;
      line-height: 1;
}

    .menu-trigger.active::after {
       transform: translate(-50%, -75%) scale(1);
}

/* --- MENÚ DESPLEGADO --- */
.side-menu {
  position: fixed;
  top: 0;
  left: -450px; 
  width: 450px;
  height: 100%;
  background: #0F5395;
  color: white;
  padding: 22vh 10% 70px 60px; 
  transition: left 0.35s ease;
  z-index: 9000; 
  box-shadow: 2px 0 4px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-bottom li {
  margin: 10px 0 !important; 
}

/* Menú abierto */
.side-menu.active {
  left: 0;
}

/* Estilos nav bar */
.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  margin: 1rem 0;
}

.side-menu a {
  color: white;
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: 200;
  text-transform: uppercase;
  line-height: 120%;
}

.side-menu a.minor {
  font-size: 1.12rem;
  font-weight: 600;
  align-items: end;
}
.side-menu a:hover {
  /*color: var(--footer-color);*/
  background-color: var(--footer-color);
  transition: all 0.3s ease;
  padding: 0px 5px;
}
.current-page {
  background-color: var(--footer-color);
  padding: 0 5px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .side-menu {
    width: 100vw;
    left: -100vw;
  }

  .container {
  padding-left: 5%;
  padding-right: 5%;
  }  

  .parallax {
    background-attachment: scroll !important;
    } 

}

/* BOTONERA lateral */
.floating-buttons {
  position: fixed;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 8000;
  box-shadow: -1px 1px 8px 0px rgba(0, 0, 0, 0.2);
}

/* Botones */
.floating-buttons .btn {
  width: 50px;
  height: 50px;
  border-radius: 0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
}

.btn.whatsapp { background: #25D366; }
.btn.instagram { background: #E10040; }
.btn.email { background: var(--inst-color); }
.btn.maps { background: var(--footer-color); }

/* --- Mobile --- */
@media (max-width: 768px) {
  .floating-buttons {
    position: fixed;
    bottom: 0px;
    top: auto;
    left: 0px;
    transform: none;
    width: 100vw;
    height: 60px;
    flex-direction: row;
  }

  .floating-buttons .btn {
    width: 25%;
    height: 60px;
    font-size: 24px;
  }
}

.menu-trigger,
.side-menu,
.floating-buttons {
  transform: translateZ(0);
  will-change: transform;
}


footer {
  background-color: var(--footer-color);
  color: white;
  padding-top: 30px;
  padding-bottom: 20px;
  height: auto;
  box-shadow: 0px -2px 2px rgba(11,48,81,0.25);
  line-height: 110%;
}
footer p {
font-size: 0.85rem;
}

footer a {
  color: white;
  text-decoration: none;

}

footer a:hover {
  color: #ff1053;
}

#back {
  text-align: right;
  font-size: 0.85rem;
}

#back a:hover {
  color: var(--section-color) !important ;
}

/* ESTILOS PARTICULARES */
.hero {
  height: 90vh;
  background: url("Assets/hero_img.webp") center/cover no-repeat;
  background-color: #1d1e34 0.5;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.18); 
  z-index: 1; 
}

.hero > * {
  position: relative;
  z-index: 2;
}
.col-md-4 p {
  max-width: 280px; 
  margin-left: auto;
  margin-right: auto;
  text-align: center; 
}

.hero .logo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40vw;
  min-width: 250px;
}


/* PARALLAX */
.parallax {
  position: relative;
  height: 600px;
  background: center/cover no-repeat fixed;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* --- Borde superior --- */
.wave-top {
  position: absolute;
  top: -18px;
  left: 0px;
  width: 100%;
  display: block;
  transform: rotate(180deg);
  z-index: 3;
  overflow: hidden;
}

/* --- Borde inferior --- */
.wave-bottom {
  position: absolute;
  bottom: -18px;
  left: 0px;
  width: 100%;
  display: block;
  z-index: 3;
  overflow: hidden;
}

#parallax1 {
  background-image: "Assets/parallax1.webp";
}

@media (max-width: 768px) {

  .wave-top {
    top: -5px;
  }
  .wave-bottom {
    bottom: -2px;
  }
  .hero .logo-center {
  width: 85vw;
  }
  .parallax {
    height: 350px;
    background-attachment: scroll;
  }
  .parallax .wave-top {
    content: url(Assets/edge_white_mobile.svg);
  }
  .wave-bottom {
    content: url(Assets/edge_white_mobile.svg);
  }
  .blue .wave-bottom {
    content: url(Assets/edge_blue_mobile.svg) !important;
  }
}



#valores .row {
 min-height: 50vh;
 align-content: center;
}

#rio-img {
  width: 400px;
  align-self: center;
}


/* CUADRO SOBRE FONDO */
.floating-box {
  background-color: var(--dark-color);
  padding: 30px;
  max-width: 350px;
  border-radius: 20px;
}

.parallax-slideshow {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: slideBg 9s infinite linear;
}

@keyframes slideBg {
    0%   { background-image: url("Assets/bar_1.webp"); }
    33%  { background-image: url("Assets/bar_2.webp"); }
    66%  { background-image: url("Assets/bar_3.webp"); }
    100% { background-image: url("Assets/bar_1.webp"); }
}

.logo-resto {
    content: url("Assets/bar_logo.webp");
}


#plano {
  max-width: 1000px;
}

/* Dark mode logo azopardo*/
@media (prefers-color-scheme: dark) {
    .logo-resto {
        content: url("Assets/bar_logo_dark.webp");
    }
}

#rio {
  max-width: 600px;
}

#rio-section {
  background-color: var(--section-color);
  color: white;
  /*min-width: 80vh;*/
  padding-top: 6%;
  padding-bottom: 6%;
}
#rio-section .container {
  max-width: 900px;
}
#rio-section h6 {
  color: white;
}

/*Pag actividades*/
.logo_opening {
  width: 250px;
}

.actividades-section {
  width: 100vw;            
  max-width: 850px;    
  margin: 0 auto;        
  position: relative;
  /*min-height: 700px;*/  
  padding: 2% 0px 20px 0px;
}

.actividades-wrapper {
  overflow: visible !important;
}

.color_azoparditos {
  color: var(--inst-color);
}

/*actividades en la home*/
.actividades-home {
  padding: 6% 0;
  max-width: 100vw;
  /*overflow: hidden;*/
}

.actividades-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.actividades-header h2 {
  margin: 0;
}

.ver-todas {
  font-size: 0.95rem;
  font-weight: 400;
}


.actividades-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 26vw; 
    gap: 16px;
    padding-bottom: 10px;
    cursor: grab;
    /*user-select: none;*/
    overflow-x: scroll;
  }

  .actividad-item {
    scroll-snap-align: start;
  }

  .actividades-grid::-webkit-scrollbar {
   display: none;
  }

.actividad-item {
  position: relative;
  aspect-ratio: 1 / 1;
  text-decoration: none;
}

.actividad-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*display: block;*/
}

/* overlay negro */
.actividad-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* hover out */
.actividad-item:hover::before {
  opacity: 0;
}

.actividad-item:hover span {
  border: white solid 2px;
}

/* título actividad */
.actividad-item span {
  position: absolute; 
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  color: white;
  padding: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.4rem;
  z-index: 2;
}

/*apertura historia*/
.historia {
  height: 88vh;
  background: url("Assets/parallax_historia.png") center/cover no-repeat;
  background-color: #1d1e34 0.5;
  position: relative;
}

.historia::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.18); 
  z-index: 1; 
}
.historia > * {
  position: relative;
  z-index: 2;
}



@media (max-width: 768px) {
  .asociate-wrapper {
  text-align: center;
  justify-content: center;
  margin: auto;
  padding: 0;
  }
  #rio-section {
  padding-left: 6%;
  padding-right: 6%;
  }
  #plano {
  max-width: 100%;
  margin: auto;
  position: relative;
  }
  #botella {
  display: none;
  }
  .actividades-grid {
    grid-auto-columns: 300px;
    -webkit-overflow-scrolling: touch;   
  }

  .actividades-header {
    flex-direction: column;
    align-items: center;
    padding-top: 25px;
    text-align: center;
  }

}

/*Pag Actividades*/
#asociate-section {
  background-color: var(--section-color);
  color: white;
}

/* Wrapper */
.asociate-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.columna-medio {
  max-width: 60vw;
  margin: auto;
  padding: auto;
}

.btn_asociate {
  font-size: 1.2rem;
  color: white;
  font-family: "Bowlby One SC", sans-serif;
  font-weight: 400;
  border: 1px solid var(--backgorund-color);
  padding: 10px 35px;
  justify-self: center;
}

.btn_asociate:hover {
  border: 2px solid #1d1e34;
  color: #1d1e34;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.18);
}
.texto {
  max-width: 40vw;
  margin: 0 auto;
}
@media (max-width: 1500px) {
  .texto {
  max-width: 45vw;
  margin: 0 auto;
}
}
@media (max-width: 1360px) {
  .texto {
  max-width: 55vw;
  margin: 0 auto;
}
}
@media (max-width: 768px) {
  .texto {
  max-width: 100%;
  margin: 0 auto;
}
  
}
/*PAGINA ERROR*/
.error-404 {
  text-align: center;
  height: 68vh;
  padding-top: 12vh;
}

.error-404 h1 {
  font-size: 6rem;
  margin: 0;
}

.error-404 p {
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
  padding-top: 2%;
}

.error-404 a {
  color:var(--inst-color);
  text-decoration: none;
  border: 1px solid var(--inst-color);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
}


