main {
    margin-top: 80px;
}

@media (max-width: 767px) {
  main {
    margin-top: 65px;
  }
}
.material-symbols-outlined {
    font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}
.topo-bg {
    background-image: radial-gradient(circle at 2px 2px, #5b403a 1px, transparent 0);
    background-size: 32px 32px;
}
.topo-blue-bg {
    background-image: radial-gradient(circle at 2px 2px, #004C69 1px, transparent 0);
    background-size: 32px 32px;
}
.text-glow {
    text-shadow: 0 0 15px rgba(255, 180, 164, 0.4);
}
.bento-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card:hover .project-overlay {
    opacity: 1;
}
.mosaic-item {
    position: relative;
    overflow: hidden;
    background: #171f33;
}
.mosaic-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}
.mosaic-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0) brightness(1.1);
}
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
}
.masonry-item-large {
    grid-row: span 2;
    grid-column: span 2;
}
.masonry-item-tall {
    grid-row: span 3;
}
.masonry-item-wide {
    grid-column: span 2;
}
.masonry-item-square {
    grid-row: span 2;
    grid-column: span 1;
}
@media (max-width: 768px) {

    .masonry-item-large,
    .masonry-item-tall,
    .masonry-item-wide,
    .masonry-item-square {
        grid-row: span 1;
        grid-column: span 1;
    }
}
.fade-bottom {
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.topo-grid {
    background-image: radial-gradient(circle, #222a3d 1px, transparent 1px);
    background-size: 32px 32px;
}
.text-vertical {
    writing-mode: vertical-rl;
}

/******  CAROUSEL  *****/
.carousel-container {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.carousel-item {
    flex: 0 0 100%;
    flex-shrink: 0;
    width: 50%;
    padding: 0 0.5rem;
}
@media (max-width: 768px) {
    .carousel-item { width: 100%; }
}
.expand-cursor {
    cursor: zoom-in;
}

@media (min-width: 769px) {
  .carousel-item {
    flex: 0 0 50%;
  }
}

/******  LIGHTBOX  *****/
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 14, 32, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
#lightbox.active {
    display: flex;
    opacity: 1;
}
#lightbox img {
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#lightbox.active img {
    transform: scale(1);
}
.pagination-dot.active {
    background-color: #ff5733;
    width: 1.5rem;
}


/**     HEADER    **/
/*******************/

.header {
  width: 100%;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000000;
  height: 80px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0 70px 0 70px;
  -webkit-transition: height 0.3s, -webkit-box-shadow 0.3s;
  transition: height 0.3s, -webkit-box-shadow 0.3s;
  transition: height 0.3s, box-shadow 0.3s;
  transition: height 0.3s, box-shadow 0.3s, -webkit-box-shadow 0.3s;
  -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
          transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}
@media (max-width: 767px) {
  .header {
    height: 65px;
  }
}
.header--container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  width: 100%;
}
@media (max-width: 1023px) {
  .header--container {
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
}
@media (max-width: 540px) {
  .header--logo img {
    max-width: 110px;
  }
}
.header nav {
  position: fixed;
  top: 100px;
  right: 25px;
  width: 400px;    
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  gap: 10px;
  -webkit-transform: translate(0, -120%);
          transform: translate(0, -120%);
  padding: 50px 40px 50px 40px;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 1.2s, -webkit-transform 1s;
  transition: opacity 1.2s, -webkit-transform 1s;
  transition: transform 1s, opacity 1.2s;
  transition: transform 1s, opacity 1.2s, -webkit-transform 1s;
  -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
          transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}
.header nav.open {
  -webkit-transform: translate(0, 0);
          transform: translate(0, 0);
  opacity: 1;
  pointer-events: auto;
  -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
          box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
          
}
@media (max-width: 767px) {
  .header nav {
    width: 86%;
    right: 7%;
    height: auto;
    top: 85px;
    padding: 25px 25px 25px 25px;
    justify-content: flex-start;
    gap: 0;
  }
}
.header nav .menu--item {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  margin: 15px 0;
  line-height: 1;
  position: relative;
  outline: none;
  overflow: hidden;
}
@media (max-width: 1023px) {
  .header nav .menu--item:before, .header nav .menu--item:after {
    display: none;
  }
}
.header nav .menu--item-name {
  font-size: 1.5rem;
  font-weight: 700;
  overflow: hidden;
  padding: 0 5px 0 5px;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  -webkit-transition: color 0.7s;
  transition: color 0.7s;
  -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
          transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}
.header nav .menu--item-name:before, .header nav .menu--item-name:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ff5733;
  -webkit-transform: translate3d(-100%, 0, 0) translate3d(-1px, 0, 0);
          transform: translate3d(-100%, 0, 0) translate3d(-1px, 0, 0);
  -webkit-transition: -webkit-transform 0.7s;
  transition: -webkit-transform 0.7s;
  transition: transform 0.7s;
  transition: transform 0.7s, -webkit-transform 0.7s;
  -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
          transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}
.header nav .menu--item-name:after {
  top: calc(50% - 2px);
  height: 4px;
}
.header nav .menu--item-label {
  font-size: 1rem;
  margin: 5px 0 0 0;
  padding: 5px;
  color: #630E00;
  -webkit-transition: color 1s;
  transition: color 1s;
  -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
          transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
  position: relative;
}
.header nav .menu--item-label:after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b1326;
  -webkit-transform: translate3d(100%, 0, 0);
          transform: translate3d(100%, 0, 0);
  -webkit-transition: -webkit-transform 0.8s;
  transition: -webkit-transform 0.8s;
  transition: transform 0.8s;
  transition: transform 0.8s, -webkit-transform 0.8s;
  -webkit-transition-timing-function: cubic-bezier(0.8, 0, 0.2, 1);
          transition-timing-function: cubic-bezier(0.8, 0, 0.2, 1);
}
.header nav .menu--item:hover, .header nav .menu--item.selected {
  color: #d49653;
  position: relative;
}
.header nav .menu--item:hover .menu--item-name:before, .header nav .menu--item.selected .menu--item-name:before {
  -webkit-transform: translate3d(100%, 0, 0) translate3d(1px, 0, 0);
          transform: translate3d(100%, 0, 0) translate3d(1px, 0, 0);
}
.header nav .menu--item:hover .menu--item-name:after, .header nav .menu--item.selected .menu--item-name:after {
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
}
.header nav .menu--item:hover .menu--item-label, .header nav .menu--item.selected .menu--item-label {
  color: #ff5733;
}
.header nav .menu--item:hover .menu--item-label:after, .header nav .menu--item.selected .menu--item-label:after {
  -webkit-transform: translate3d(-100%, 0, 0);
          transform: translate3d(-100%, 0, 0);
}
@media (max-width: 767px) {
  .header nav .menu--item-name {
    font-size: 1.2rem;
  }
  .header nav .menu--item-name {
    font-size: 1.2rem;
  }
  .header nav .menu--item-label {
    font-size: 0.9rem;
  }
}
.header--button {
  margin-left: 0;
  margin-top: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  gap: 10px;
}
@media (max-width: 767px) {
  .header--button {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    width: 100%;
    gap: 20px;
  }
}
.header--button .btn {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 auto;
          flex: 1 0 auto;
}
@media (max-width: 767px) {
  .header--button .btn {
    width: 100%;
    padding: 12px 40px 12px 40px;
    font-size: 1rem;
    line-height: 1.5;
  }
}
.header .menu--toggle {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 40px;
  height: 28px;
  cursor: pointer;
  gap: 6px;
  margin: 0;
  -webkit-transition: margin 1s, -webkit-transform 1s;
  transition: margin 1s, -webkit-transform 1s;
  transition: margin 1s, transform 1s;
  transition: margin 1s, transform 1s, -webkit-transform 1s;
  -webkit-transition-timing-function: cubic-bezier(0.8, 0, 0.2, 1);
          transition-timing-function: cubic-bezier(0.8, 0, 0.2, 1);
}
.header .menu--toggle span {
  height: 3px;
  border-radius: 3px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.header .menu--toggle span:nth-child(1), .header .menu--toggle span:nth-child(2), .header .menu--toggle span:nth-child(3) {
  width: 100%;
}
.header .menu--toggle.active {
  margin: 200px 0 0 0;
  -webkit-transform: scale(0.8);
          transform: scale(0.8);
}
.header .menu--toggle.active span:nth-child(1) {
  -webkit-transform: rotate(45deg) translateY(10px);
          transform: rotate(45deg) translateY(10px);
}
.header .menu--toggle.active span:nth-child(2) {
  opacity: 0;
}
.header .menu--toggle.active span:nth-child(3) {
  -webkit-transform: rotate(-45deg) translateY(-13px);
          transform: rotate(-45deg) translateY(-13px);
}

@media (max-width: 767px) {
    .header .menu--toggle {
        gap: 5px;
        width: 35px;
    }
    .header .menu--toggle.active {
        margin: 175px 2% 0 0;
    }
}


.header .menu-bg {
  background-color: rgb(20, 13, 5, 0.75);
  left: 0;
  opacity: 0;
  padding: 2rem;
  pointer-events: auto;
  position: fixed;
  top: 80px;
  visibility: hidden;
  width: 100%;
  height: 100vh;
  -webkit-transition: opacity 1.2s, visibility 1.2s;
  transition: opacity 1.2s, visibility 1.2s;
  -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
          transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}
.header .menu-bg.open {
  visibility: inherit;
  opacity: 1;
}
.header.scrolled nav .menu--item {
  font-size: 0.875rem;
}
.header.scrolled nav .menu--item:before {
  top: calc(100% - 10px);
  left: calc(50% - 3px);
  border-width: 6px 6px 6px 0px;
}
@media (max-width: 1023px) {
  .header.scrolled nav .menu--item:before {
    display: none;
  }
}
@media (max-width: 767px) {
  .header .menu-bg {
    top: 65px;
  }
}

/**   END   ***   HEADER  **/
/***************************/


/**      ANIMACIONES      **/
/***************************/
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}
.reveal.top-reveal {
  transform: translateX(32px);
  transform: translateY(0);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }
.reveal-delay-3 { transition-delay: 360ms; }
.reveal-delay-4 { transition-delay: 480ms; }
.reveal-delay-5 { transition-delay: 600ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/**  END  ***  ANIMACIONES **/
/***************************/

.page-privacidad p {
    font-weight: lighter;
    margin-bottom: 10px;
    font-size: 16px;
}
.page-privacidad p.list {
    margin-bottom: 0;
}


/**      COOKIES      **/
/***************************/

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    background: rgba(11, 19, 38, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    color: #f5f2eb;
}
.cookie-banner {
  display: none;
}
.cookie-banner__content {
    max-width: 60%;
}
.cookie-banner__eyebrow {
    margin: 0 0 8px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
}
.cookie-banner__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(245, 242, 235, 0.88);
}
.cookie-banner__text a {
    color: #ff5733;
    text-decoration: none;
}
.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-width: max-content;
}
.cookie-btn {
    appearance: none;
    border: 1px solid transparent;
    padding: 12px 20px;
    min-width: 132px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 180ms ease;
    font-weight: bold;;
}
.cookie-btn--primary {
    background: #ff5733;
    color: #0b1326;
    border-color: #ff5733;
}
.cookie-btn--secondary {
    background: transparent;
    color: #f5f2eb;
    border-color: rgba(245, 242, 235, 0.24);
}
.cookie-btn--primary:hover {
    background: #630e00;
    color: #ff5733;
    border-color: #ff5733;
 }
.cookie-btn--secondary:hover {
    background-color: rgb(45 52 73 / 0.9);
    border-color: rgba(245, 242, 235, 0.9);
 }

@media (max-width: 900px) {
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }
    .cookie-banner__actions {
        min-width: 0;
        width: 100%;
    }
    .cookie-btn {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .cookie-banner__content {
        max-width: 100%;
    }
}



/**  END  ***  ANIMACIONES **/
/***************************/