:root {
  --secondary-color: #666;
  --front-color: #333;
  --back-color: white;
}

body {
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  color: var(--front-color);
  margin:0;
}

a{color:black;}

h1{font-size: 60px; text-align: center;}
h2{font-size: 50px; text-align: center;}
h4{font-size: 1em; text-decoration: underline;}

.centered{
  max-width: 980px;margin:auto;text-align: center;
  ul{display: inline-block;}
}
.doublespace > p {line-height: 1.5em;}

a.btn-primary {
  display: inline-block;
  background-color: var(--front-color);
  padding: 10px;
  color: var(--back-color);
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease-out, background-color 0.2s ease-out;
  will-change: transform;
}

a.btn-primary:hover {
  transform: scale(1.02);
  background-color: var(--secondary-color);
}

a.btn-primary:active {
  transform: scale(1.0);
}

header {
  width: 100%;

  .header-inner {
    .logo {
      display: flex;
      justify-content: center;
      height: 125px;
      width: auto;
      padding: 50px;
    }

    .nav-wrapper {
      display: flex;
      justify-content: center;
      height: 3em;
      padding-bottom:3em;

      nav {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        flex-grow: 1;
        max-width: 870px;

        a {
          color: black;
          text-decoration: none;
        }
      }
    }
  }

  #lang-menu {
    position: relative;
    right: 50px;
    text-align: right;
    top: 2em;
    pointer-events: none;

    select {
      appearance: base-select;
      padding: 10px;
      border-radius: 0px;
      background-color: white;
      border: 1px solid #ccc;
      font-size: 16px;
      width: 100px;
      pointer-events: all;
    }
  }
}

.margined{
  margin:0 5vw;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;

  .hero {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 1.2em;

    .hero-content {
      display: flex;
      flex-direction: column;
      justify-content: center;
      max-width: 1000px;
      text-align: center;

      h1 {
        font-size: 3em;
      }

      .hero-text {
        font-size: 1.1em;
        line-height: 2rem;
        font-weight: bold;
        font-family: helvetica-w01-bold, helvetica-w02-bold, helvetica-lt-w10-bold, sans-serif;
        margin-bottom: 2em;
      }
    }
  }

   section {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: stretch;
      div.text{
        padding: 0 7vw; text-align: center;line-height: 1.5em; flex-shrink: 10; width: 50%;
        display: flex; flex-direction: column; justify-content: center;
      }
      div.img {
        min-width: 50%;width: 50%;
        img{height: 100%; width: 100%; min-width: 100px;display: flex;}
      }
      p{margin-bottom: 3em;}
      ul{ text-align: left;}
    }
    section:nth-child(even){
      flex-direction: row-reverse;
    }
    
}

footer {
  margin-top: 4em;
  margin-bottom: 1em;
  
  .footer-img {
    img {
      width: 100%;
      height: auto;
    }

    margin-bottom: 2em;
  }

  .copyright, .footer-links{
    text-align: center;
    font-size: small;
    a{ color:grey; text-decoration: underline;}
  }

  .footer-links{ 
    a,span{display: inline-block; width: 150px;}
  }

  .social-links{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  a.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: white;
    margin: 0 10px;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  a.icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
  }
}

/* ─── Gallery ─── */

/* Rejilla de fotos */
.album {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px;
  max-width: 90vw;
  margin: 0 auto;
}

.album .photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.album .photo:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Lightbox / Visor de foto grande */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 88vw;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
  animation: zoomIn 0.2s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.caption {
  margin-top: 1rem;
  color: black;
  font-size: 1rem;
  text-align: center;
  max-width: 80vw;
}

.counter {
  margin-top: 0.4rem;
  color: #999;
  font-size: 0.85rem;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: black;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}

.close:hover {
  color: #ff5c5c;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: black;
  font-size: 2.5rem;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover,
.next:hover {
  color: #4da3ff;
}

@media (max-width: 600px) {
  .prev, .next {
    font-size: 1.8rem;
    padding: 0.3rem 0.6rem;
  }
  .close {
    font-size: 2rem;
    top: 10px;
    right: 15px;
  }
}

/* ─── End of Gallery ─── */



/* ─── SLIDER ─── */
#slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: #1a1a1a;
  grid-template-columns: none;
}

@media (max-width: 768px) {
  #slider {
    aspect-ratio: 4 / 3;
  }
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.slider-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease-in-out;
}

.slider-slide.is-active img {
  transform: scale(1.04);
}

/* Overlay sutil para texto */
.slider-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 40%,
      oklch(0.1 0.01 80 / 0.45) 100%);
  pointer-events: none;
}

/* Caption opcional */
.slide-caption {
  position: absolute;
  bottom: clamp(1rem, 4vw, 2.5rem);
  left: clamp(1rem, 5vw, 3rem);
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 4px oklch(0 0 0 / 0.5);
}

.slide-caption span {
  display: block;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

/* ─── BOTONES PREV / NEXT ─── */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: oklch(1 0 0 / 0.15);
  border: 1px solid oklch(1 0 0 / 0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-btn:hover {
  background: oklch(1 0 0 / 0.3);
  transform: translateY(-50%) scale(1.08);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.slider-btn.prev {
  left: clamp(0.75rem, 2vw, 1.5rem);
}

.slider-btn.next {
  right: clamp(0.75rem, 2vw, 1.5rem);
}

.slider-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── INDICADORES (dots) ─── */
.slider-dots {
  position: absolute;
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  right: clamp(1rem, 3vw, 2rem);
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.slider-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* ─── REDUCIR MOVIMIENTO ─── */
@media (prefers-reduced-motion: reduce) {
  .slider-track {
    transition: none;
  }

  .slider-slide img {
    transition: none;
    transform: none !important;
  }
}