:root {
  --text-color: white;
  --text-dark-color: #202020;
  --header-height: 100px;
  --burger-width: 30px;
  --font-headings: "Bebas Neue", cursive;

  --bcg-green: #acb7ae;
  --bcg-lightgreen: #a6b3b3;
  --bcg-lightbrown: #b0a7a4;
  --bcg-lightblue: #a3abb1;

  --bcg-loaderblue: #758a94;
  --bcg-loaderbluedark: #566c76;
  --bcg-fill-color: var(--bcg-green);

  --loader-width: 27.36vw;
  --loader-height: 21.6vw;

  --v-spacing: 10vh;
  --h-gutter: 6.6vw;

  --easing: cubic-bezier(0.5, 0.7, 0.4, 1);
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font: 16px/1.7 "Open Sans Condensed", Helvetica, Helvetica Neue, Arial,
    sans-serif;
  color: var(--text-dark-color);
  overflow-x: hidden;
  max-width: 100vw;
}
/* hide page content by default */
.is-loading #main,
.is-loading .logo,
.is-loading .burger,
.is-loading .main-nav,
.is-loading .fill-background {
  display: none;
}
.is-loading {
  background-color: var(--bcg-loaderblue);
}
.is-transitioning {
  pointer-events: none;
  cursor: progress;
}

#viewport {
  overflow: hidden;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
}

/* =Top Nav */
.logo {
  position: fixed;
  left: 0;
  height: var(--header-height);
  width: 280px;
  display: flex;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}
.logo__img {
  width: 75px;
  height: 55px;
  background: url("../img/logo.png") no-repeat center;
  background-size: 75px 55px;
  display: block;
  position: absolute;
  left: 1.2vw;
  transition: opacity 0.3s linear;
  opacity: 0;
}
.logo__text {
  color: var(--text-color);
  font-size: 1.525vw;
  font-family: var(--font-headings);
  letter-spacing: 7px;
  padding-left: var(--h-gutter);
  transition: opacity 0.3s linear;
  opacity: 1;
  text-transform: uppercase;
  display: none;
}

.burger {
  width: var(--burger-width);
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: auto;
  right: var(--h-gutter);
  display: flex;
  align-items: center;
  z-index: 2;
  transition: transform 0.3s var(--easing);
  transform: translateX(0);
}
.burger__open span {
  width: var(--burger-width);
  height: 2px;
  background-color: #fff;
  margin: 4px 0;
  display: block;
}
.burger button {
  position: absolute;
  cursor: pointer;
  border: none;
  padding: 0;
  height: 30px;
  background: none;
}

/* =Main Navigation */
.main-nav {
  position: fixed;
  top: 0;
  right: calc(var(--h-gutter) + 3vw);
  z-index: 3;
}
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}
.main-nav li {
  padding: 0;
  margin-right: 3vw;
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1vw;
  position: relative;
  overflow: hidden;
}
.main-nav a::after {
  display: block;
  content: "";
  height: 2px;
  background-color: var(--text-color);
  position: absolute;
  bottom: 0;
  width: 100%;
  transform: translateX(-101%);
}
.main-nav a:hover::after {
  transition: transform 0.3s var(--easing);
  transform: translateX(0);
}
.main-nav a.animate-out::after {
  transition: transform 0.3s var(--easing);
  transform: translateX(100%);
}

/* Reveal logo and move buger when the user scrolls */
.has-scrolled .burger {
  transform: translateX(100%);
}

/* On mobile, keep burger button visible when scrolling */
@media only screen and (max-width: 767px) {
  .has-scrolled .burger {
    transform: translateX(0); /* Keep burger button in place on mobile */
  }
}
.has-scrolled .logo__img {
  opacity: 1;
}
.has-scrolled .logo__text {
  opacity: 0;
}

/* =Header */
header {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-direction: column;
  perspective: 1000px;
  z-index: 2;
}
header h1 {
  font-family: var(--font-headings);
  font-weight: normal;
  color: #fff;
  font-size: 7vw;
  line-height: 7.4vw;
  z-index: 1;
  margin-bottom: 0;
  pointer-events: none;
}
header h1 span {
  display: block;
}
.subtitle {
  z-index: 1;
  font-size: 1.3vw;
  color: #fff;
  letter-spacing: 0.3vw;
  transform: translateX(-9vw);
  font-weight: 300;
  pointer-events: none;
}
.decor__circle {
  border: 1px white solid;
  border-radius: 100%;
  width: 23vw;
  height: 23vw;
  position: absolute;
  top: 45vh;
  left: 27vw;
  opacity: 0.4;
  pointer-events: none;
}
.cta__circle {
  width: 7.7vw;
  height: 7.7vw;
  position: absolute;
  top: auto;
  bottom: -3.8vw;
  left: 58%;
  background-size: 50% 50%;
  pointer-events: none;
}
.cta__circle--logo {
  width: 7.7vw;
  height: 7.7vw;
  background: url("../img/img_scroll-badge.svg") no-repeat center;
  background-size: 100% 100%;
  animation: rotation 45s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* =Header Gallery (random image proportion) 
  Calculate aspect by setting a width first, then adjust padding bottom.
  Example for image that you want to show as 16/9 - landscape
  width: 24vw, padding-bottom: (9/16) * width = 13.5
  
  Example for image that you want to show as 9/16 - portrait
  width: 24vw, padding-bottom: (16/9) * width = 42.6

  Have fun:)

*/
.hg__image,
.rg__image {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #000000;
  pointer-events: none;
}
.hg__image--l {
  width: 18vw;
  padding-bottom: 26vw;
}
.hg__image--m {
  width: 18vw;
  padding-bottom: 26.55vw;
}
.hg__image--s {
  width: 13vw;
  padding-bottom: 19vw;
}
.hg__image img,
.rg__image img,
.blog__image img,
.stage__image img,
.loader__image img {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0.8;
}
.hg__left .hg__image:nth-child(1) {
  top: 17vh;
  left: 15vw;
}
.hg__left .hg__image:nth-child(2) {
  top: 30vh;
  left: 6vw;
}
.hg__left .hg__image:nth-child(3) {
  top: 56vh;
  left: 14vw;
}
.hg__right .hg__image:nth-child(1) {
  top: 15vh;
  left: auto;
  right: 21vw;
  width: 24vw;
  padding-bottom: 21vw;
}
.hg__right .hg__image:nth-child(2) {
  top: 27vh;
  left: auto;
  right: 10vw;
}
.hg__right .hg__image:nth-child(3) {
  top: 56vh;
  left: auto;
  right: 19vw;
  width: 16vw;
  padding-bottom: 20vw;
  z-index: 1;
}

/* =Reveal Gallery */
.reveal-gallery {
  width: 100vw;
  max-width: 100vw;
  height: 104vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  color: var(--text-color);
  position: relative;
  z-index: 1;
}
.rg__column {
  flex-grow: 1; /* equivalent to 33.33% */
  padding: 2em 1.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.rg__text--heading h3 {
  font-size: 2.2vw;
  line-height: 1.192307692;
}
.rg__text--heading span {
  font-size: 2vw;
  opacity: 0.5;
}
.rg__text--heading h3,
.rg__text--heading span,
.chapter {
  font-family: var(--font-headings);
  font-weight: normal;
}
.rg__text {
  max-width: 17vw;
  z-index: 1;
  position: relative;
}
.rg__text--copy,
.stage__text p {
  font-weight: 300;
  letter-spacing: 0.03vw;
}
.rg__text--copy p {
  margin: 0;
}
.rg__text--heading p {
  margin: 0.3em 0;
}
.rg__text--heading h3 {
  margin-bottom: 0.5em;
}
.rg__column::before {
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  content: "";
  width: 1px;
  height: 20vh;
  transform: translateY(-50%);
  background-color: var(--text-color);
  opacity: 0.4;
}
.rg__image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.rg__image--mask {
  height: 100%;
  overflow: hidden;
}
.rg__image img {
  opacity: 0.6;
}
.rg__text--copy {
  position: absolute;
  overflow: hidden;
}
.rg__text--mask {
  overflow: hidden;
}

/* =Loader */
.loader,
.loader__content {
  min-height: 100vh;
  position: fixed;
  flex-direction: column;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  visibility: hidden;
  overflow: hidden;
}
.loader__mask {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: var(--bcg-loaderblue);
  background-size: 155px 155px;
  overflow: hidden;
}
.loader .inner,
.loader__content .inner {
  width: var(--loader-width);
  height: var(--loader-height);
}
.loader .inner {
  background-color: var(--bcg-loaderbluedark);
  position: relative;
}
.loader .progress {
  background-color: var(--bcg-lightblue);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--loader-width);
  height: var(--loader-height);
}
.loader__content {
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  visibility: hidden; /* hide loader content by default */
}
.loader__title {
  font-size: 7vw;
  line-height: 8vw;
  margin: 0;
  font-family: var(--font-headings);
  color: var(--text-color);
  font-weight: normal;
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.loader__image {
  width: var(--loader-width);
  padding-bottom: var(--loader-height);
  overflow: hidden;
  position: relative;
}
.loader__title--mask {
  overflow: hidden;
}
.loader__title--mask span {
  display: block;
}
.loader__image--mask {
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: absolute;
}

/* =Main */
main {
  z-index: 1;
  position: relative;
}
section {
  position: relative;
}
.with-padding {
  padding: var(--v-spacing) 0;
}
.with-padding-bottom {
  padding-bottom: var(--v-spacing);
}
.chapter {
  position: absolute;
  left: var(--h-gutter);
  top: var(--v-spacing);
  z-index: 2;
  color: var(--text-color);
  font-size: 1.6vw;
}
.chapter span {
  opacity: 0.4;
}

/* =Portfolio */
.portfolio {
  margin-top: var(--v-spacing);
}
.portfolio .chapter {
  color: var(--text-dark-color);
  top: 0;
}
.portfolio__categories {
  display: flex;
  flex-direction: column;
}
.portfolio__categories a {
  font-family: var(--font-headings);
  color: var(--text-dark-color);
  text-decoration: none;
  font-size: 5.4vw;
  margin: auto;
  letter-spacing: 0.2vw;
  line-height: 1.5;
}
.portfolio__categories a:hover {
  z-index: 1;
}
.portfolio__image--l,
.portfolio__image--s {
  pointer-events: none; /* important to be able to hover over links under the image */
  position: absolute;
  width: 28vw;
  top: 11vh;
  left: 24vw;
  overflow: hidden;
  background-color: #000;
  visibility: hidden;
}
.portfolio__image--l {
  padding-bottom: 41.66vw;
}
.portfolio__image--s {
  width: 15vw;
  top: 25vh;
  left: 54vw;
  padding-bottom: 20vw;
}
.image_inside {
  position: absolute;
  opacity: 0.8;
  top: -10%;
  left: 0;
  width: 100%;
  height: 115%;
  background-size: cover;
}
.fill-background {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  will-change: background-color;
  background-color: var(--bcg-fill-color);
  transition: background-color 0.3s linear;
}

/* =Blog */
.blog {
  color: var(--text-color);
}
.blog .chapter,
.contact .chapter {
  top: inherit;
  left: inherit;
  position: relative;
  margin: 0 var(--h-gutter) var(--v-spacing) var(--h-gutter);
}
.blog__image {
  margin: 0 50% 0 16.6%;
  padding-bottom: 50%;
  position: relative;
  overflow: hidden;
}
.blog__image img {
  opacity: 1;
  height: 120%;
  top: -20%;
}
.post__date {
  font-size: 1.6vw;
  opacity: 0.6;
}
.blog__text {
  position: absolute;
  left: calc(50vw + var(--h-gutter));
  right: calc(var(--h-gutter) * 4);
  top: calc(
    50% + (var(--v-spacing) / 2)
  ); /* 50% not 50vh becasue blog is not 100vh */
  transform: translateY(-50%);
}
.blog__text h3 {
  font-family: var(--font-headings);
  font-size: 3.6vw;
  line-height: 1.192307692;
  font-weight: normal;
  letter-spacing: 0.2vw;
}

/* =Contact - same layout as blog, but flipped image and text */
.contact .chapter {
  color: var(--text-dark-color);
}
.is-flipped .blog__image {
  margin: 0 16.6% 0 50%;
}
.is-flipped .blog__text {
  right: calc(50vw + var(--h-gutter));
  left: 16.6%;
}

/* =How we work */
.how-we-work .chapter {
  top: calc(var(--v-spacing) * 2);
}
.fixed-nav {
  position: absolute;
  top: calc(var(--v-spacing) * 3);
  left: var(--h-gutter);
}
.fixed-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fixed-nav li {
  overflow: hidden;
}
.fixed-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-family: var(--font-headings);
  position: relative;
  padding-left: 1.8vw;
  transform: translateX(-1.8vw);
  display: block;
  opacity: 0.4;
  transition: all 0.3s var(--easing);
}

.fixed-nav li a::before {
  content: "";
  display: block;
  height: 2px;
  width: 1.3vw;
  background-color: var(--text-color);
  position: absolute;
  top: 50%;
  left: 0;
}
.fixed-nav li.is-active a {
  transform: translateX(0);
  opacity: 1;
}

.stage__heading {
  font-family: var(--font-headings);
  position: relative;
  z-index: 2; /* fix for Safari */
}
.stage__heading h3,
.stage__heading p {
  position: absolute;
  left: 25vw;
  top: calc(var(--v-spacing) * -1.25);
  font-size: 3.6vw;
  font-weight: normal;
  margin: 0;
  white-space: nowrap;
  color: var(--text-color);
}
.stage__heading p {
  font-size: 1.6vw;
  opacity: 0.4;
  top: calc(var(--v-spacing) * -1.75);
}
.stage__image {
  width: calc(50vw + var(--h-gutter));
  margin: 0 var(--h-gutter) 0 33.33vw;
  padding-bottom: 33.33vw;
  background-color: #000000;
  overflow: hidden;
  position: relative;
  z-index: 1; /* fix for Safari */
}
.stage__image img {
  opacity: 0.9;
  height: 120%;
  top: -20%;
}
.stage__text {
  color: var(--text-color);
  margin: 0 calc(30vw + var(--h-gutter)) var(--v-spacing) 33.33vw;
}
/* =Map */
.map__container {
  width: 100%;
  height: 600px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#map {
  width: 100% !important;
  height: 600px !important;
  min-height: 600px;
  max-height: 600px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

/* Loading state for map */
#map:empty::before {
  content: "Loading map...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #666;
  font-family: Arial, sans-serif;
  font-size: 16px;
  z-index: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* =Footer */

/* ==========================================================================
  Media Queries
 ========================================================================== */

/* Mobile styles */
@media only screen and (max-width: 767px) {
  /* Prevent horizontal scroll on mobile */
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  #viewport {
    overflow-x: hidden;
    max-width: 100vw;
  }

  main {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Hide main navigation on mobile */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 15; /* Increased z-index to ensure it's above other elements */
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
    opacity: 0;
  }

  /* Logo in mobile menu */
  .main-nav .logo {
    position: absolute;
    top: 3rem; /* Moved down from 2rem */
    left: 2rem;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    z-index: 16;
    pointer-events: none;
  }

  .main-nav .logo__text {
    color: white;
    font-size: 1.2rem;
    letter-spacing: 3px;
    opacity: 1;
    display: block;
  }

  .main-nav .logo__img {
    width: 60px;
    height: 45px;
    background: url("../img/logo.png") no-repeat bottom;
    background-size: 60px 45px;
    display: block;
    opacity: 1;
    margin-right: 1rem;
  }

  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 1rem; /* Reduced from 2rem */
  }

  .main-nav li {
    margin-right: 0;
    height: auto;
    padding: 0.5rem 0; /* Reduced from 1rem */
  }

  .main-nav a {
    font-size: 1.5rem; /* Reduced from 2rem */
    letter-spacing: 0.1rem; /* Reduced from 0.2rem */
    color: white;
    position: relative;
    display: block;
    padding: 0.8rem 1.5rem; /* Reduced padding */
    transform: translateY(30px);
    opacity: 0;
    /* Remove transition to avoid conflict with GSAP */
    text-decoration: none; /* Ensure no underlines */
  }

  /* Ensure mobile menu items are always visible when menu is open */
  .main-nav.is-open a {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Remove the CSS animation since JavaScript handles it */
  .main-nav.is-open a {
    /* Let GSAP handle the animation - no CSS needed */
    opacity: 1;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover {
    color: #acb7ae;
    transform: scale(1.05);
  }

  /* Hide El festival menu item on mobile */
  .main-nav li:first-child {
    display: none;
  }

  /* Hamburger button styles */
  .burger {
    z-index: 20; /* Increased z-index to ensure it's above the menu */
    right: 30px; /* Added more margin from the right edge */
    width: 30px;
  }

  .burger__open {
    position: relative;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .burger__open span {
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    position: absolute;
  }

  .burger__open span:nth-child(1) {
    top: 4px;
  }

  .burger__open span:nth-child(2) {
    top: 11px;
  }

  .burger__open span:nth-child(3) {
    top: 18px;
  }

  /* Hamburger animation when menu is open */
  .burger.is-open .burger__open span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
    transition-delay: 0.1s;
  }

  .burger.is-open .burger__open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
    transition-delay: 0.05s;
  }

  .burger.is-open .burger__open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
    transition-delay: 0.1s;
  }

  /* Logo adjustments for mobile */
  .logo {
    width: 200px;
  }

  .logo__text {
    font-size: 1.2rem;
    letter-spacing: 3px;
  }

  /* Header adjustments for mobile */
  header h1 {
    font-size: 4rem;
    line-height: 4.2rem;
  }

  .subtitle {
    font-size: 1rem;
    letter-spacing: 0.2rem;
    transform: translateX(-2rem);
  }

  .reveal-gallery {
    min-height: 250vh;
  }

  /* Hide scroll behavior on mobile menu open */
  body.menu-open {
    overflow: hidden;
  }

  /* Desktop Gallery - default display */
  .rg__desktop {
    display: flex;
  }

  /* Mobile Gallery - default hidden */
  .rg__mobile {
    display: none;
  }

  /* Mobile Gallery Styles */
  .rg__mobile-item {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
  }

  .rg__mobile-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .rg__mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .rg__mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.1) 30%,
      rgba(0, 0, 0, 0.6) 70%,
      rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem 1.5rem;
    z-index: 2;
  }

  .rg__mobile-content {
    color: white;
    width: 100%;
    max-width: 100%;
  }

  .rg__mobile-content h3 {
    font-family: var(--font-headings);
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }

  .rg__mobile-content p {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  }

  .rg__mobile-content p strong {
    font-weight: 700;
    font-size: 1.1rem;
  }

  .rg__mobile-description {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .rg__mobile-description p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
    margin: 0;
  }

  /* Mobile Gallery - show on mobile */
  .rg__desktop {
    display: none;
  }

  .rg__mobile {
    display: block;
    padding: 0;
  }

  /* Mercat/Blog section - mobile friendly layout */
  .blog {
    padding: 2rem 0;
  }

  .blog .chapter {
    margin: 0 1rem 2rem 1rem;
    position: relative;
    font-size: 1.5rem;
  }

  .blog__post {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .blog__image {
    margin: 0;
    padding-bottom: 60%;
    width: 100%;
    order: 1;
  }

  .blog__text {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    order: 2;
    padding: 0;
  }

  .blog__text h3 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .post__date {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .blog__text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  /* Hide El festival section on mobile */
  .portfolio {
    display: none;
  }

  /* Activities section - mobile friendly layout */
  .how-we-work {
    padding: 2rem 0;
  }

  .how-we-work .chapter {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 1rem 2rem 1rem;
    font-size: 1.5rem;
    z-index: 10;
  }

  .fixed-nav {
    display: none; /* Hide activities index on mobile */
  }

  .fixed-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .fixed-nav li {
    overflow: visible;
  }

  .fixed-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-headings);
    position: relative;
    padding: 0.8rem 1rem;
    transform: none;
    display: block;
    opacity: 0.7;
    transition: all 0.3s var(--easing);
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.4;
  }

  .fixed-nav li a::before {
    display: none;
  }

  .fixed-nav li.is-active a {
    transform: none;
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
  }

  .fixed-nav a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
  }

  .stage {
    margin: 2rem 0;
    padding: 0 1rem;
  }

  .stage__image {
    width: 100%;
    margin: 0;
    padding-bottom: 60%;
    order: 1;
  }

  .stage__heading {
    position: relative;
    order: 2;
    margin: 1.5rem 0 1rem 0;
  }

  .stage__heading h3,
  .stage__heading p {
    position: relative;
    left: auto;
    top: auto;
    font-size: 1.5rem;
    font-weight: normal;
    margin: 0 0 0.5rem 0;
    white-space: normal;
    color: var(--text-color);
  }

  .stage__heading p {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
  }

  .stage__text {
    color: var(--text-color);
    margin: 0;
    order: 3;
    font-size: 1rem;
    line-height: 1.6;
  }

  .stage__text p {
    margin-bottom: 1rem;
  }

  /* Header Gallery - Mobile Optimizations */
  .header__gallery {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .hg__left,
  .hg__right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
  }

  .hg__right {
    left: auto;
    right: 0;
  }

  /* Make images much larger on mobile */
  .hg__image--l {
    width: 35vw !important;
    padding-bottom: 50vw !important;
  }

  .hg__image--m {
    width: 30vw !important;
    padding-bottom: 45vw !important;
  }

  .hg__image--s {
    width: 25vw !important;
    padding-bottom: 35vw !important;
  }

  /* Better positioning for mobile - use more of the screen */
  .hg__left .hg__image:nth-child(1) {
    top: 10vh !important;
    left: 5vw !important;
    max-width: calc(100vw - 10vw) !important;
  }

  .hg__left .hg__image:nth-child(2) {
    top: 25vh !important;
    left: 0vw !important;
    max-width: calc(100vw - 5vw) !important;
  }

  .hg__left .hg__image:nth-child(3) {
    top: 45vh !important;
    left: 15vw !important;
    max-width: calc(100vw - 30vw) !important;
  }

  .hg__right .hg__image:nth-child(1) {
    top: 8vh !important;
    right: 5vw !important;
    width: 40vw !important;
    max-width: calc(100vw - 10vw) !important;
    padding-bottom: 55vw !important;
  }

  .hg__right .hg__image:nth-child(2) {
    top: 22vh !important;
    right: 0vw !important;
    max-width: calc(100vw - 5vw) !important;
  }

  .hg__right .hg__image:nth-child(3) {
    top: 43vh !important;
    right: 15vw !important;
    width: 35vw !important;
    max-width: calc(100vw - 30vw) !important;
    padding-bottom: 45vw !important;
  }

  /* Additional mobile optimizations for very small screens */
  @media only screen and (max-width: 480px) {
    .hg__image--l {
      width: 40vw !important;
      max-width: calc(100vw - 10vw) !important;
      padding-bottom: 60vw !important;
    }

    .hg__image--m {
      width: 35vw !important;
      max-width: calc(100vw - 10vw) !important;
      padding-bottom: 50vw !important;
    }

    .hg__image--s {
      width: 30vw !important;
      max-width: calc(100vw - 10vw) !important;
      padding-bottom: 40vw !important;
    }

    /* Adjust positioning for very small screens */
    .hg__left .hg__image:nth-child(1) {
      top: 8vh !important;
      left: 2vw !important;
      max-width: calc(100vw - 4vw) !important;
    }

    .hg__left .hg__image:nth-child(2) {
      top: 20vh !important;
      left: 0vw !important;
      max-width: calc(100vw - 2vw) !important;
    }

    .hg__left .hg__image:nth-child(3) {
      top: 40vh !important;
      left: 12vw !important;
      max-width: calc(100vw - 24vw) !important;
    }

    .hg__right .hg__image:nth-child(1) {
      top: 6vh !important;
      right: 2vw !important;
      width: 45vw !important;
      max-width: calc(100vw - 4vw) !important;
      padding-bottom: 65vw !important;
    }

    .hg__right .hg__image:nth-child(2) {
      top: 18vh !important;
      right: 0vw !important;
      max-width: calc(100vw - 2vw) !important;
    }

    .hg__right .hg__image:nth-child(3) {
      top: 38vh !important;
      right: 12vw !important;
      width: 40vw !important;
      max-width: calc(100vw - 24vw) !important;
      padding-bottom: 50vw !important;
    }
  }

  /* Make all section titles bigger on mobile */
  .chapter {
    font-size: 1.8rem !important;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    max-width: calc(100vw - 2rem);
    word-wrap: break-word;
  }

  .chapter span {
    font-size: 1.8rem;
    opacity: 0.4;
  }

  /* Ensure all sections respect viewport width */
  section {
    max-width: 100vw;
    overflow-x: hidden;
  }

  article {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Map mobile adjustments */
  .map__container {
    height: 400px;
    margin: 0rem;
    border-radius: 4px;
  }

  #map {
    height: 400px !important;
    min-height: 400px;
    max-height: 400px;
    border-radius: 4px;
  }
}

/* Desktop Gallery - show on desktop */
@media only screen and (min-width: 768px) {
  .rg__desktop {
    display: flex;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .rg__mobile {
    display: none;
  }
}

@media only screen and (min-width: 480px) {
}

@media only screen and (min-width: 768px) {
}

@media only screen and (min-width: 1140px) {
}

/* Logos Section */
.logos {
  background-color: var(--bcg-lightgreen);
  padding: var(--v-spacing) var(--h-gutter);
}

.logos__container {
  max-width: 1200px;
  margin: 0 auto;
}

.logos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 5rem;
}

.logo__item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 120px;
}

.logo__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.logo__item img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.logo__item:hover img {
  filter: grayscale(0%);
}

/* Responsive adjustments for logos */
@media only screen and (max-width: 768px) {
  .logos__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .logo__item {
    padding: 1rem;
    min-height: 100px;
  }

  .logo__item img {
    max-height: 60px;
  }
}

@media only screen and (max-width: 480px) {
  .logos__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Contact Section */
.contact {
  background: url("../img/fotos/2/prim.jpg") center/cover no-repeat;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.contact .chapter {
  color: var(--text-color);
  top: var(--v-spacing);
  left: var(--h-gutter);
  position: absolute;
  z-index: 2;
}

.contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--v-spacing) * 2) var(--h-gutter) var(--v-spacing);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.contact__content {
  flex: 1;
  max-width: 600px;
}

.contact__info {
  margin-bottom: 3rem;
}

.contact__info h3 {
  font-family: var(--font-headings);
  font-size: 3.5vw;
  font-weight: normal;
  margin: 0 0 1rem 0;
  letter-spacing: 0.1vw;
  line-height: 1.2;
}

.contact__info p {
  font-size: 1.3vw;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
  font-weight: 300;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__link {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  background: none;
  border-radius: 0;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact__link:hover {
  opacity: 0.8;
}

.contact__icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border-radius: 0;
  margin-right: 1.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact__text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact__label {
  font-size: 0.9rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-weight: 300;
}

.contact__value {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05rem;
}

.contact__decoration {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 0;
}

.contact__circle {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  animation: float 6s ease-in-out infinite;
}

.contact__dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 1rem;
}

.contact__dots span {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.contact__dots span:nth-child(2) {
  animation-delay: 0.5s;
}

.contact__dots span:nth-child(3) {
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Contact Section Mobile Styles */
@media only screen and (max-width: 768px) {
  .contact__container {
    flex-direction: column;
    text-align: left;
    padding: calc(var(--v-spacing) * 1.5) 1rem var(--v-spacing);
  }

  .contact__content {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .contact__info h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
  }

  .contact__info p {
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
  }

  .contact__links {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .contact__link {
    padding: 1.2rem 1.5rem;
    background: none;
    border-radius: 0;
  }

  .contact__icon {
    width: 45px;
    height: 45px;
    margin-right: 1rem;
    background: none;
  }

  .contact__value {
    font-size: 1.1rem;
  }

  .contact__decoration {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 200px;
    height: 200px;
    margin: 2rem 0 0 0;
  }

  .contact .chapter {
    text-align: left;
    left: 1rem;
  }
}

@media only screen and (max-width: 480px) {
  .contact__info h3 {
    font-size: 2rem;
    text-align: left;
  }

  .contact__info p {
    font-size: 1rem;
    text-align: left;
  }

  .contact__link {
    padding: 1rem 1.2rem;
    background: none;
    border-radius: 0;
  }

  .contact__icon {
    width: 40px;
    height: 40px;
    margin-right: 0.8rem;
    background: none;
  }

  .contact__value {
    font-size: 1rem;
  }

  .contact__decoration {
    width: 150px;
    height: 150px;
    margin: 2rem 0 0 0;
  }
}
