/* ===============================
   GALERÍA VV_CMBAJAMAR
   Estilo editorial moderno y fluido
   =============================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f5f7f9;
  color: #1e1e1e;
  overflow-x: hidden;
}

/* -------- HERO -------- */
.ga-hero {
  background: url('../img/bajamarola.webp') center center / cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ga-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.ga-hero-contenido {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
}

.ga-hero-titulo {
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.5rem;
  position: relative;
  margin-top: 7rem;
}

.ga-hero-titulo::after {
  content: '';
  display: block;
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, #0033A0 0%, #ffffff 50%, #FFD100 100%);
  margin: 1rem auto 2rem;
  border-radius: 1px;
  opacity: 0.8;
}

.ga-hero-sub {
    font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: inline-flex; /* mantiene la forma sin romper layout */
}

/* -------- GRID -------- */
.ga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ga-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ga-item:hover {
  transform: scale(1.02);
}

.ga-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ga-item:hover img {
  transform: scale(1.05);
}

/* -------- TEXTO INTERMEDIO -------- */
.ga-texto {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 2rem 2rem 0;
  max-width: 800px;
  margin: 0 auto;
  color: #0a82a1;
}


/* -------- CTA FINAL PREMIUM -------- */
.ga-cta {
  background: linear-gradient(180deg, #052c45 0%, #0a82a1 50%, #cbd3da 100%);
  color: #ffffff;
  text-align: center;
  padding: 2rem 2rem 5rem;
  margin-top: 4rem;
}

/* Título con línea estilo bandera canaria */
.ga-cta-titulo {
  font-size: 2rem;
  font-weight: 600;
  margin: 2rem auto;
  position: relative;
  display: inline-block;
}

.ga-cta-titulo::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.8rem;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  border-radius: 3px;
  background: linear-gradient(90deg, #0033A0 0%, #ffffff 50%, #FFD100 100%);
}

/* Texto */
.ga-cta-texto {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Botón premium */
.ga-cta-boton {
  background: transparent;
  color: #ffffff;
  padding: 1rem 2.2rem;
  border: 1.5px solid #ffffff;
  border-radius: 35px;
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(255, 255, 255, 0.05);
  margin-bottom: 8rem;
}

.ga-cta-boton:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* -------- LIGHTBOX -------- */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
}

#lightbox-overlay.active {
  display: flex;
}

#lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#lightbox-prev,
#lightbox-next,
#lightbox-close {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10000;
  transition: opacity 0.2s ease;
}

#lightbox-prev { left: 2rem; top: 50%; transform: translateY(-50%); }
#lightbox-next { right: 2rem; top: 50%; transform: translateY(-50%); }
#lightbox-close { top: 1rem; right: 2rem; font-size: 2rem; }

#lightbox-prev:hover,
#lightbox-next:hover,
#lightbox-close:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  #lightbox-prev,
  #lightbox-next {
    display: none !important;
  }
}


/* -------- RESPONSIVE -------- */
@media (max-width: 600px) {
  .ga-hero-titulo {
    font-size: 2rem;
  }

  .ga-cta-titulo {
    font-size: 1.6rem;
  }

  .ga-cta-boton {
    padding: 0.7rem 1.5rem;
  }

  #lightbox-prev,
  #lightbox-next {
    font-size: 2rem;
  }
}

/* =============================== */
/* RESPONSIVE TELÉFONO < 600px    */
/* =============================== */
@media (max-width: 600px) {
  /* HERO */
  .ga-hero {
    height: 60vh;
    /*padding-top: 4rem;*/
  }

  .ga-hero-contenido {
    padding: 0 1rem;
  }

  .ga-hero-titulo {
    font-size: 1.8rem;
    margin-top: 5rem;
    letter-spacing: 0.5px;
  }

  .ga-hero-titulo::after {
    width: 60px;
    margin-top: 1rem;
  }

  .ga-hero-sub {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 2rem;
    border-radius: 0.4rem;
  }

  /* GRID DE IMÁGENES */
  .ga-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 1rem;
  }

  .ga-item {
    border-radius: 10px;
  }

  /* TEXTO INTERMEDIO */
  .ga-texto {
    font-size: 1rem;
    padding: 1.5rem 1rem 0;
  }

  /* CTA FINAL */
  .ga-cta {
    padding: 2rem 1rem 4rem;
    margin-top: 3rem;
  }

  .ga-cta-titulo {
    font-size: 1.5rem;
    margin: 1.5rem auto;
  }

  .ga-cta-titulo::after {
    width: 60px;
    bottom: -0.6rem;
  }

  .ga-cta-texto {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .ga-cta-boton {
    font-size: 0.95rem;
    padding: 0.6rem 1.4rem;
    margin-bottom: 6rem;
  }

  /* LIGHTBOX */
  #lightbox-overlay {
    padding: 1rem;
  }

  #lightbox-image {
    max-width: 95vw;
    max-height: 70vh;
  }

  #lightbox-prev,
  #lightbox-next {
    font-size: 1.8rem;
    left: 1rem;
    right: 1rem;
  }

  #lightbox-close {
    font-size: 1.8rem;
    right: 1rem;
    top: 0.7rem;
  }
}

