/* ///////////////// COPYRIGHT ///////////////// */
#copyrightModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  z-index: 999999;
  padding: 20px;
}
#copyrightModal.active {
  opacity: 1;
  visibility: visible;
}
.copyright-box {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0,0,0,.25);
  transform: translateY(20px);
  transition: transform .3s ease;
  font-family: Arial, sans-serif;
  border-top: solid 10px #c62828;
}
#copyrightModal.active .copyright-box {
  transform: translateY(0);
}
.copyright-icon {
  font-size: 42px;
  margin-bottom: 15px;
}
.copyright-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #c62828;
}
.copyright-text {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}
.copyright-btn {
  display: inline-block;
  background: #c62828;
  color: #fff;
  border: 0;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: .3s ease;
  font-size: 14px;
}
.copyright-btn:hover {
  opacity: .85;
}
@media (max-width: 600px) {
  .copyright-box {
      padding: 22px;
  }

  .copyright-title {
      font-size: 20px;
  }

  .copyright-text {
      font-size: 14px;
  }
}
/* ///////////////// CARRUSEL ///////////////// */
.carrusell section,.carrusell-iner {
  position: relative;
  overflow: hidden;
  }
  .carrusell-iner {
  width: 100%;
  }
  .carrusell-iten {
  display: none;
  position: relative;
  width: 100%;
  margin: 10px 0;
  backface-visibility: hidden;
  }
  .carrusell:not(.carrusell-desactivado) .carrusell-iten {
  box-sizing: border-box;
  }
  .carrusell-iten.active,.carrusell-iten-next,.carrusell-iten-prev {
  display: block;
  }
  .carrusell.slide .carrusell-iten {
  transition: transform .6s ease;
  }
  .carrusell.slide .carrusell-iten-next,.carrusell.slide .carrusell-iten-prev {
  position: absolute;
  top: 0;
  left: 0;
  }
  .carrusell.slide .carrusell-iten-next,.carrusell.slide .carrusell-iten.active.carrusell-iten-right {
  transform: translate3d(100%, 0, 0);
  }
  .carrusell.slide .carrusell-iten-prev,.carrusell.slide .carrusell-iten.active.carrusell-iten-left {
  transform: translate3d(-100%, 0, 0);
  }
  .carrusell.slide .carrusell-iten-next.carrusell-iten-left,.carrusell.slide .carrusell-iten-prev.carrusell-iten-right {
  transform: translate3d(0, 0, 0);
  }
  .carrusell.fade .carrusell-iner {
  position: relative;
  }
  .carrusell.fade .carrusell-iten {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: none !important;
  transition: opacity .6s ease,visibility 0s linear .6s;
  }
  .carrusell.fade .carrusell-iten.active {
  position: relative;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .6s ease,visibility 0s linear 0s;
  }
  .carrusell.fade .carrusell-iten.carrusell-iten-next,.carrusell.fade .carrusell-iten.carrusell-iten-prev {
  visibility: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease,visibility 0s linear 0s;
  }
  .carrusell.fade .carrusell-iten.carrusell-iten-fade-in {
  visibility: visible;
  opacity: 1;
  }
  .carrusell.fade .carrusell-iten.active.carrusell-iten-fade-out {
  opacity: 0;
  }
  .carrusell-iten span del {
  margin: var(--margenes-2xsmall) 0;
  }
  .carrusell .arrows {
  position: absolute;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 90%;
  pointer-events: none;
  }
  .carrusell .arrows a {
  background: var(--col-blanco, #fff);
  border: 0;
  box-shadow: 0 2px 14px 7px rgb(0 0 0 / 14%),0 3px 1px -2px rgb(0 0 0 / 12%),0 1px 5px rgb(0 0 0 / 20%);
  cursor: pointer;
  opacity: 0;
  pointer-events: auto;
  transition: opacity .3s ease;
  }
  .carrusell .arrows:hover a,.carrusell .arrows a:focus-visible {
  opacity: 1;
  }
  .carrusell .arrows a:active {
  box-shadow: none;
  }
  .carrusell .arrows svg {
  display: block;
  width: 40px;
  height: 60px;
  padding: 15px 0;
  filter: var(--svg-gris30);
  }
  .carrusell-balls {
  display: flex;
  justify-content: center;
  margin: 20px;
  list-style: none;
  }
  .carrusell-balls li {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin: 5px;
  border-radius: 50%;
  background: rgb(181 181 181 / 87%);
  cursor: pointer;
  }
  .carrusell-reset {
  margin: 5px;
  }
  .carrusell-reset li {
  flex: 0 0 15px;
  height: 10px;
  margin: 5px!important;
  border-radius:0!important;
  background: rgb(181 181 181 / 87%);
  cursor: pointer;
  }
  .carrusell-balls li.active {
  background: #c62828;
  }
  @media (max-width: 600px) {
  .carrusell-desactivado section,.carrusell-desactivado .carrusell-iner {
  overflow: visible;
  }
  .carrusell-desactivado .carrusell-iner {
  display: grid;
  height: auto !important;
  gap: var(--espacio-small);
  }
  .carrusell-desactivado .carrusell-iten {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
  transform: none !important;
  transition: none !important;
  }
  .carrusell-desactivado>section>.arrows,.carrusell-desactivado>.carrusell-balls {
  display: none;
  }
  }
  /* ///////////////// SCROLLYTELLING ///////////////// */
  .scrollytelling {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: inline;
  }
  .scrollytelling-viewport {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: -1;
  }
  .scrollytelling-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  filter: brightness(50%);
  }
  .scrollytelling-text {
  color: #fff;
  text-shadow: 0 2px 4px rgb(0 0 0 / 30%);
  position: relative;
  z-index: 1;
  margin-bottom: 100vh!important;
  }
  .scrollytelling-text:first-of-type {
  margin-top: -33vh;
  }
  .scrollytelling-text:last-of-type {
  padding-bottom: 66vh;
  margin-bottom: 0;
  }
  .scrollytelling-fade figure {
  opacity: 0;
  position:initial!important;
  display: initial!important;
  -webkit-transition: all 0.35s ease-in-out;
  transition: all 0.35s ease-in-out;
  }
  .scrollytelling-fade figure:before {
  content: "";
  display: initial!important;
  }
  .scrollytelling-fade figure:first-of-type {
  opacity: 1;
  }
  /* ///////////////// TEXTO SCROLL FADE ///////////////// */
  .reveal-wrapper {
  overflow: visible;
  }
  .reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
  }
  .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  }
  @media (prefers-reduced-motion: reduce) {
  .reveal {
  transition: none;
  transform: none;
  opacity: 1;
  }
  }
  /* ///////////////// PARALLAX ///////////////// */
  .parallax{
  position:relative;
  width:100%;
  height:900px;
  overflow:hidden;
  }
  .parallax img{
  position:absolute;
  left:50%;
  top:50%;
  width:100%;
  min-width:100%;
  min-height:100%;
  object-fit:cover;
  object-position:center center;
  transform:translate(-50%,-50%) scale(1.00);
  will-change:transform;
  }
  .parallax::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.25);
  }
  .parallax span{
  position:absolute;
  inset:0;
  display:flex;
  justify-content:center;
  align-items:center;
  color:#fff;
  font-weight:bold;
  z-index:1;
  text-shadow:0 3px 8px rgba(0,0,0,.6);
  }
  .parallax span ul{
    display: flex;
    justify-content: space-evenly;
    height: 100%;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
  }
  .parallax span .portada{
  height: 100vw;
  display: flex;
  flex-direction: column;
  position: relative;
  }
  .parallax span .portada article{
  height: 100vw;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-evenly;
  }
  .parallax span .portada article h1{
  font-size: clamp(1.90rem, 3.60vw, 3.20rem);
  line-height: clamp(2.00rem, 1.80rem + 1.00vw, 3.40rem);
  }
  /* ///////////////// SLIDER FULLSCREEN ///////////////// */
  .parallax.slider-fullscreen {
    height:100vh;
  isolation: isolate;
  min-height: 100svh;
  background: #041b2a;
  }
  .parallax.slider-fullscreen .slide-img {
  opacity: 0;
  /* filter: grayscale(100%) contrast(1.12) brightness(.72);
  mix-blend-mode: luminosity; */
  transition: opacity 1.4s ease-in-out, filter .6s ease;
  }
  .parallax.slider-fullscreen .slide-img.active {
  opacity:0.6;
  }
  .parallax.slider-fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
  /* linear-gradient(135deg, rgba(8, 124, 191, .92) 0%, rgba(8, 124, 191, .62) 34%, rgba(249, 96, 0, .62) 68%, rgba(201, 77, 0, .92) 100%),
  radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .16), transparent 36%),
  linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, .72) 100%); */
  mix-blend-mode: multiply;
  }
  .parallax.slider-fullscreen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
  /* linear-gradient(90deg, rgba(8, 124, 191, .30) 0%, transparent 42%, rgba(249, 96, 0, .18) 66%, rgba(201, 77, 0, .34) 100%),
  linear-gradient(0deg, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .18) 48%, rgba(0, 0, 0, .12) 100%); */
  }
  .parallax.slider-fullscreen .contenido {
  z-index: 2;
  width: 100%;
  padding: clamp(24px, 5vw, 72px) var(--espacio-small);
  }
  .parallax.slider-fullscreen .contenido .portada {
  width: 100%;
  height: auto;
  min-height: calc(100svh - clamp(48px, 10vw, 144px));
  display: flex;
  justify-content: center;
  }
  .parallax.slider-fullscreen .contenido .portada article {
  width: 100%;
  height: auto;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  text-align: center;
  }
  .parallax.slider-fullscreen .contenido .portada article>span:first-child {
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(18px, 4vw, 48px);
  }
  .parallax.slider-fullscreen .contenido .portada article>span:first-child svg {
  width: min(100%, 220px);
  max-height: 86px;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, .28)) var(--svg-blanco);
  }
  .parallax.slider-fullscreen .contenido .portada article>span:last-child {
  width: min(100%, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  padding: clamp(18px, 3vw, 36px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(3, 22, 34, .18), rgba(3, 22, 34, .38));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
  backdrop-filter: blur(4px);
  }
  .parallax.slider-fullscreen .contenido .portada h1 {
  max-width: 900px;
  margin: 0;
  text-wrap: balance;
  font-size: clamp(2rem, 5vw, 4.0rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  }
  .parallax.slider-fullscreen .contenido .portada small {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, .94);
  text-wrap: balance;
  }
  @media only screen and (max-width:600px) {
  .parallax.slider-fullscreen {
  min-height: 100svh;
  height: auto;
  }
  .parallax.slider-fullscreen .contenido {
  position: relative;
  min-height: 100svh;
  padding: 72px 18px 38px;
  }
  .parallax.slider-fullscreen .contenido .portada {
  min-height: calc(100svh - 110px);
  }
  .parallax.slider-fullscreen .contenido .portada article {
  min-height: inherit;
  justify-content: center;
  gap: 30px;
  }
  .parallax.slider-fullscreen .contenido .portada article>span:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  }
  .parallax.slider-fullscreen .contenido .portada article>span:first-child svg {
  width: min(68vw, 210px);
  max-height: 72px;
  }
  .parallax.slider-fullscreen .contenido .portada article>span:last-child {
  width: 100%;
  padding: 22px 18px;
  border-radius: 20px;
  }
  .parallax.slider-fullscreen .contenido .portada h1 {
  font-size: clamp(2rem, 10vw, 3rem);
  line-height: 1.05;
  }
  .parallax.slider-fullscreen .contenido .portada small {
  font-size: clamp(.98rem, 4.4vw, 1.12rem);
  line-height: 1.45;
  }
  }
  @media only screen and (max-width:380px) {
  .parallax.slider-fullscreen .contenido {
  padding-inline: 14px;
  }
  .parallax.slider-fullscreen .contenido .portada article>span:first-child svg {
  width: min(72vw, 190px);
  }
  }
  
   /* //////// BOTÓN SCROLL DOWN (hero) //////// */
   .scroll-down-btn {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 1; 
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--col-blanco, #fff);
    background: var(--trans-20negro, rgba(0,0,0,.2));
    text-decoration: none;
    cursor: pointer;
    animation: scrollBounce 1.6s ease-in-out infinite;
    transition: background .25s ease, border-color .25s ease;
  }
  .scroll-down-btn:hover {
    background: var(--trans-40negro, rgba(0,0,0,.4));
  }
  .scroll-down-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--col-blanco, #fff);
    pointer-events: none; /* el click siempre lo toma el <a> */
  }
  @keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .scroll-down-btn {
      animation: none;
    }
  }
  
  
  /* ///////////// hscroll lateral ///////////// */
  .hscroll-shell {
  position: relative;
  }
  .hscroll-outer {
  position: relative;
  }
  .hscroll-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  }
  .hscroll-track {
  display: flex;
  height: 100%;
  will-change: transform;
  }
  .hscroll-titular{
  position: absolute;
  z-index: 1;
  margin: auto;
  text-align: center;
  width: 100%;
  color: var(--col-blanco);
  font-size: var(--fontsize-xlarge);
  background: #00000026;
  padding: var(--espacio-4xlarge) 20px 10px 20px;
  }
  .hslide {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  }
  .hslide__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  }
  .hslide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.02);
  }
  .hslide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
  to top,
  rgba(10,9,7,0.92) 0%,
  rgba(10,9,7,0.55) 28%,
  rgba(10,9,7,0.05) 55%,
  rgba(10,9,7,0.25) 100%
  );
  }
  .hslide__num {
  position: absolute;
  top: 2.2rem;
  left: 2.2rem;
  z-index: 2;
  font-style: italic;
  font-size: 0.95rem;
  color: #d9a441;
  letter-spacing: 0.02em;
  }
  .hslide__copy {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 6vw, 6rem) clamp(3rem, 8vh, 6rem);
  max-width: 620px;
  opacity: 1;
  transform: translateY(0) scale(1);
  will-change: transform, opacity;
  }
  .hslide__media img {
  transition: none;
  transform: scale(1);
  will-change: transform, opacity;
  }
  .hslide__eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d9a441;
  margin-bottom: 0.8em;
  }
  .hslide__title {
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.12;
  margin: 0 0 0.6em;
  color:var(--col-blanco);
  }
  .hslide__text {
  font-size: 0.98rem;
  line-height: 1.65;
  color:var(--col-blanco);
  margin: 0;
  }
  .hscroll-index {
  position: absolute;
  right: 2.2rem;
  bottom: 2.2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  }
  .hscroll-index__count {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color:var(--col-blanco);
  min-width: 3.4em;
  }
  .hscroll-index__count b { color: #f2ede3; font-weight: 600; }
  .hscroll-dots {
  display: flex;
  gap: 0.3rem;
  }
  .hscroll-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background:rgba(242,237,227,0.18);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  }
  .hscroll-dots button.is-active {
  background: #d9a441;
  transform: scale(1.6);
  }
  .hscroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: #d9a441;
  z-index: 5;
  transition: width 0.05s linear;
  }
  .hscroll-hint {
  position: absolute;
  top: 2.2rem;
  right: 2.2rem;
  z-index: 3;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a297;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  }
  .hscroll-hint svg {
  width: 14px; height: 14px;
  }
  @media (max-width: 640px) {
  .hscroll-hint { display: none; }
  .hslide__copy { padding-bottom: 2.4rem; }
  }
  @media (prefers-reduced-motion: reduce) {
  .hscroll-outer { scroll-behavior: auto; }
  .hslide__copy { animation: none; opacity: 1; transform: none; }
  }
  
  .hscroll-index {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  }
  .hscroll-index.is-visible {
  opacity: 1;
  pointer-events: auto;
  }
  /* Título superior centrado, visible mientras se recorren las imágenes */
  .hscroll-title-fixed {
  position: fixed;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: #f2ede3;
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
  max-width: 88vw;
  text-shadow: 0 2px 10px rgba(10,9,7,0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  }
  .hscroll-title-fixed.is-visible {
  opacity: 1;
  }
  /* Flechas direccionales a los costados */
  .hscroll-arrow {
  position: fixed;
  padding: inherit;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(242,237,227,0.35);
  background: rgba(10,9,7,0.4);
  color: #f2ede3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  }
  .hscroll-arrow:hover {
  background: rgba(10,9,7,0.65);
  border-color: #d9a441;
  }
  .hscroll-arrow:disabled {
  opacity: 0 !important;
  pointer-events: none !important;
  }
  .hscroll-arrow.is-visible {
  opacity: 1;
  pointer-events: auto;
  }
  .hscroll-arrow--left { left: 1.4rem; }
  .hscroll-arrow--right { right: 1.4rem; }
  .hscroll-arrow svg { width: 20px; height: 20px; }
  /* Botón para saltar la galería y continuar el scroll vertical */
  .hscroll-skip {
  position: fixed;
  bottom: 2.2rem;
  left: 2.2rem;
  z-index: 4;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a297;
  background: rgba(10,9,7,0.35);
  border: 1px solid rgba(168,162,151,0.4);
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, color 0.2s ease, border-color 0.2s ease;
  }
  .hscroll-skip:hover {
  color: #f2ede3;
  border-color: #d9a441;
  }
  .hscroll-skip.is-visible {
  opacity: 1;
  pointer-events: auto;
  }
  
  @media (max-width: 640px) {
  .hscroll-arrow--left { left: 0.6rem; }
  .hscroll-arrow--right { right: 0.6rem; }
  .hscroll-title-fixed { top: 1.1rem; font-size: 0.85rem; }
  .hscroll-skip { left: 1rem; bottom: 1rem; font-size: 0.62rem; padding: 0.45rem 0.8rem; }
  .hscroll-index { right: 1rem; bottom: 1rem; }
  }
  
  @media (prefers-reduced-motion: reduce) {
  .hscroll-arrow, .hscroll-skip, .hscroll-title-fixed, .hscroll-index {
  transition: none;
  }
  }