@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Nanum+Pen+Script|Roboto");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1e1e1e;
  overflow-x: hidden;
}

/* CABECERA DE GALERÍA */
.galeria-header {
  text-align: center;
  color: #fff;
  padding: 80px 20px 40px;
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
 
}

.galeria-header h2 {
  font-size: 2.8rem;
  color: #f5c400;
  margin-bottom: 15px;
  font-weight: bold;
}

.galeria-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
  color: #ddd;
  line-height: 1.6;
}

.btn-volver {
  display: inline-block;
  padding: 12px 28px;
  background: #f5c400;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-volver:hover {
  background: #ffd84d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 196, 0, 0.4);
}

/* CONTENEDOR PRINCIPAL */
#gallery-main-container {
  min-height: 60vh;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* GRID DE CARTAS */
.gallery-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARTA INDIVIDUAL */
.gallery-card {
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.gallery-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(245, 196, 0, 0.3);
}

.gallery-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-image img {
  transform: scale(1.15);
}

.gallery-card-content {
  padding: 25px;
  text-align: center;
}

.gallery-card-content h3 {
  font-size: 1.6rem;
  color: #f5c400;
  margin-bottom: 12px;
  font-weight: bold;
}

.gallery-card-content p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* BOTÓN VER MÁS */
.btn-ver-mas {
  padding: 12px 30px;
  background: #f5c400;
  color: #000;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ver-mas:hover {
  background: #ffd84d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 196, 0, 0.5);
}

/* BREADCRUMB */
.gallery-breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding: 15px 20px;
  background: #2a2a2a;
  border-radius: 8px;
  grid-column: 1 / -1;
}

.btn-back {
  padding: 10px 20px;
  background: #f5c400;
  color: #000;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: #ffd84d;
  transform: translateX(-3px);
}

.gallery-breadcrumb span {
  color: #ccc;
  font-size: 1rem;
}

/* OCULTAR SECCIONES */
.hidden {
  display: none !important;
}

/* VIDEO GRID */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 20px;
}

.video-card {
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-card iframe {
  border-radius: 8px;
  margin-bottom: 15px;
}

.video-card p {
  color: #f5c400;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
}

/* ESTILO VINTALIGHT ORIGINAL (para nivel 3) */
.vintalight {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 90%;
  max-width: 1200px;
  padding: 50px 0;
  margin: 0 auto;
}

.vintalight__container {
  position: relative;
  width: 90%;
  max-width: 10.5em;
  height: 12.25em;
  background-color: #fff;
  font-size: 30px;
  box-shadow: 0 2px 6px 1px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.075, 0.82, 0.165, 1), box-shadow 0.5s, margin 0.5s;
}

@media screen and (max-width: 500px) {
  .vintalight__container {
    max-width: 7.35em;
    height: 8.575em;
  }
}

.vintalight__container:nth-child(2) {
  transform: translate(40px, 30px) rotate(-30deg);
  z-index: 40;
}

.vintalight__container:nth-child(2):hover {
  transform: scale(1.15) translate(40px, 30px) rotate(0);
}

.vintalight__container:nth-child(3) {
  transform: translate(30px, 20px) rotate(7deg);
  z-index: 50;
}

.vintalight__container:nth-child(3):hover {
  transform: scale(1.15) translate(30px, 20px) rotate(0);
}

.vintalight__container:nth-child(4) {
  transform: translate(-20px, 20px) rotate(20deg);
  z-index: 40;
}

.vintalight__container:nth-child(4):hover {
  transform: scale(1.15) translate(-20px, 20px) rotate(0);
}

.vintalight__container:hover {
  box-shadow: 0 4px 8px 3px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.vintalight__container:hover .vintalight__photo::before {
  transform: scale(1);
}

.vintalight__container.active,
.vintalight__container.active:hover {
  transform: rotate(0) scale(1.25);
}

.vintalight__container.active .vintalight__photo {
  cursor: default;
}

.vintalight__container.active .vintalight__photo::before {
  display: none;
}

.vintalight__photo {
  position: relative;
  width: 9.25em;
  height: 9.25em;
  margin: 0.625em auto 0;
  overflow: hidden;
  cursor: pointer;
}

@media screen and (max-width: 500px) {
  .vintalight__photo {
    width: 6.475em;
    height: 6.475em;
    margin: 0.4375em auto 0;
  }
}

.vintalight__photo::before {
  content: "Ver foto";
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1em;
  font-family: "Roboto", sans-serif;
  transform: scale(0);
  transition: all 0.25s;
}

.vintalight__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vintalight__caption {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 2.375em;
}

.vintalight__text {
  color: #222;
  font-size: 1em;
  font-family: "Nanum Pen Script", cursive;
}

.vintalight-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  opacity: 0;
  z-index: 10000;
  transition: opacity 0.5s;
  top: 0;
  left: 0;
}

.vintalight-overlay.active {
  opacity: 1;
}

.vintalight__button {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background-color: #f53d3d;
  border: 3px solid #fff;
  border-radius: 50%;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  box-shadow: -2px 2px 1px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .galeria-header h2 {
    font-size: 2.2rem;
  }

  .gallery-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .vintalight__container:nth-child(n) {
    transform: translate(0) rotate(-10deg);
  }

  .vintalight__container:nth-child(n):hover {
    transform: scale(1.1) translate(0) rotate(0);
  }
}

@media (max-width: 600px) {
  .galeria-header {
    padding: 60px 15px 30px;
  }

  .galeria-header h2 {
    font-size: 1.8rem;
  }

  .galeria-header p {
    font-size: 1rem;
  }

  .gallery-cards-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .gallery-card-image {
    height: 200px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .vintalight {
    padding: 30px 0;
  }
}
