/* =========================
   BASE + PALETA
========================= */
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root{
  --bg: #0B0D0F;
  --panel: rgba(10, 18, 26, .55);
  --panel2: rgba(8, 12, 18, .72);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);

  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.16);

  --gold: #F4B446;
  --shadow: 0 18px 55px rgba(0,0,0,.48);
  --shadow2: 0 10px 25px rgba(0,0,0,.35);

  --r14: 14px;
  --r18: 18px;
  --r24: 24px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

html{
  scrollbar-width: none;
  scroll-behavior: smooth;
}

body{
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* grid + glow suave */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .10;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
}

body::after{
  content:"";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(700px 500px at 15% 0%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(700px 500px at 85% 10%, rgba(244,180,70,.10), transparent 65%),
    radial-gradient(900px 600px at 50% 100%, rgba(255,255,255,.06), transparent 60%);
}

/* =========================
   HEADER + PARALLAX
========================= */
.header{
  position: relative;
  display: flex;
  flex-direction: column;
}

.parallax-container{
  transform: translateY(-249px);
  position: relative;
  width: 100%;
  height: 1300px;
  perspective: 1000px;
  overflow: hidden;
}

.parallax-layer{
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: transform .12s ease-out;
}

#layer1{ z-index: -1; transition: transform .3s ease-out; }
#layer2{ z-index: -2; transition: transform .3s ease-out; }
#layer3{ z-index: -3; transition: transform .3s ease-out; }
#layer4{ z-index: -4; transition: transform .3s ease-out; }

.parallax-layer img{
  display: block;
  width: 100%;
  height: auto;
}

.parallax-layer h1{
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 155px;
  color: #fff;
  text-align: center;
  transform: translateY(-55px);
  mix-blend-mode: screen;
  text-shadow: 0 18px 65px rgba(0,0,0,.35);
}

/* =========================
   NAVBAR (NO CAMBIO ESTRUCTURA, SOLO ESTILO)
========================= */
.navbar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 10px 22px;
  background: transparent;
}

.navbar .logo img{
  width: 200px;
  transition: transform .2s var(--ease);
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
}

.navbar .logo img:hover{
  transform: scale(1.06);
}

.navbar .search-container{
  position: relative;
  display: flex;
  align-items: center;
}

.navbar .search-container input{
  padding: 8px 14px;
  width: 120px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  outline: none;
  background: rgba(255,255,255,.06);
  color: #fff;
  transition: width .35s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  backdrop-filter: blur(6px);
}

.navbar .search-container input:hover{
  width: 190px;
}

.navbar .search-container input:focus{
  width: 220px;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}

.navbar .search-container input::placeholder{
  color: rgba(255,255,255,.70);
  font-weight: 200;
}

.search-results{
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,.85);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  overflow: hidden;
  max-height: 320px;
  display: none;
  flex-direction: column;
  z-index: 1002;
  box-shadow: var(--shadow2);
}

.search-results a{
  padding: 10px 12px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  transition: background .15s var(--ease);
}

.search-results a:hover,
.search-item.active{
  background: rgba(255,255,255,.12);
}

.overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.navbar .nav-links{
  display: flex;
  gap: 22px;
}

.navbar .nav-links a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 8px 0;
  transition: opacity .15s var(--ease);
}

.navbar .nav-links a:hover{
  opacity: 1;
}

.navbar .nav-links a::after{
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 3px;
  left: 0;
  background: linear-gradient(90deg, rgba(244,180,70,.0), rgba(244,180,70,.85), rgba(244,180,70,.0));
  transition: width .25s var(--ease);
}

.navbar .nav-links a:hover::after{
  width: 100%;
}

/* Hamburger */
.hamburger{
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}


.hamburger span {
  height: 3px;
  width: 25px;
  background: white;
  border-radius: 5px;
  transition: all 0.5s cubic-bezier(0.455, 0.03, 0.515, 1.955);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  scale: 0.2;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-50deg) translate(5px, -5px);
}

/* Responsive */
@media screen and (max-width: 1000px) {
  .nav-links {
    position: absolute;
    top: 52px;
    right: 0;
    background: #111111bb;
    flex-direction: column;
    width: 20px;
    padding: 5px;
    border-radius: 25px 0px 0px 25px;
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    opacity: 0;
    z-index: 1001;
    border-left: solid 1px #ffffff67;
  }


  .nav-links.show{
    transform: translateX(0);
    opacity: 1;
    width: 230px;
    padding: 18px;
    gap: 14px;
  }

  .hamburger{ display: flex; }

  .navbar .logo img{
    width: 50px;
    scale: 1.5;
    content: url(../img/logo-small.png);
  }
}

/* =========================
   ANIMACIONES / TIMELINE
========================= */
@keyframes marco-hs{
  from{
    scale: .4;
    opacity: 0;
    transform: translateY(14px);
  }
  to{
    scale: 1;
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   GRID DE FOTOS (REDISEÑO)
========================= */
.grid-container{
  display: grid;
  gap: 18px;
  justify-content: center;
  align-items: center;
  grid-template-areas:
    "a b c"
    "d b e";
  transform: translateY(-450px);
  z-index: 2;
  position: relative;
}

.grid-item{
  width: 250px;
  height: 250px;
  border-radius: var(--r18);
  background: url(../img/img11.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);
  transition: transform .25s var(--ease), filter .25s var(--ease);
  filter: saturate(1.05) contrast(1.05);
}

.grid-item:hover{
  transform: translateY(-12px);
  filter: saturate(1.12) contrast(1.08);
}

/* Areas + fotos */
.grid-item:nth-child(1){
  grid-area: a;
  transform: translateX(95px);
}
.grid-item:nth-child(1):hover{
  transform: translateX(95px) translateY(-12px);
}

.grid-item:nth-child(2){
  grid-area: b;
  width: 350px;
  height: 750px;
  background: url(../img/img17.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.grid-item:nth-child(3){
  grid-area: c;
  width: 300px;
  height: 350px;
  background: url(../img/img21.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.grid-item:nth-child(4){
  grid-area: d;
  width: 350px;
  height: 300px;
  background: url(../img/img5.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.grid-item:nth-child(5){
  grid-area: e;
  background: url(../img/img19.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* =========================
   MAIN (TÍTULO + PÁRRAFOS)
========================= */
.main{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-200px);
  position: relative;
  z-index: 2;
}

.titulo{
  display: flex;
  text-align: center;
  font-size: 74px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-weight: 900;
  color: rgba(255,255,255,.92);

  text-shadow: 0 18px 65px rgba(0,0,0,.35);

  view-timeline-name: --image;
  view-timeline-axis: block;
  animation-timeline: --image;
  animation-name: marco-hs;
  animation-range: entry 0% cover 40%;
  animation-fill-mode: both;
}

.parrafos{
  color: rgba(255,255,255,.92);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
  row-gap: 18px;
  margin-top: 18px;
  width: min(980px, 92vw);
}

.parrafos p{
  opacity: .78;
  text-align: center;
  padding: 18px 16px;

  view-timeline-name: --image;
  view-timeline-axis: block;
  animation-timeline: --image;
  animation-name: marco-hs;
  animation-range: entry 0% cover 30%;
  animation-fill-mode: both;
}

/* =========================
   MISION Y VISION
========================= */
.titulo-container-horarios{
  display: flex;
  justify-content: center;
  margin-top: 90px;
  margin-bottom: -220px;

  view-timeline-name: --image;
  view-timeline-axis: block;
  animation-timeline: --image;
  animation-name: marco-hs;
  animation-range: entry 0% cover 50%;
  animation-fill-mode: both;
}

.titulo-horario{
  color: rgba(255,255,255,.92);
  text-align: center;
}

.titulo-horario h2{
  font-size: 45px;
  transform: translateX(5%);
  color: var(--gold);
}

.titulo-horario h1{
  font-size: 155px;
  color: transparent;
  transform: translateY(-155px);
  -webkit-text-stroke: 2px #BCC4CD;
  text-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.misionyvision{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 35px 0 0;
}

.misionyvision .parrafos{
  width: min(980px, 92vw);
}

.misionyvision .parrafos p{
  view-timeline-name: --image;
  view-timeline-axis: block;
  animation-timeline: --image;
  animation-name: marco-hs;
  animation-range: entry 0% cover 50%;
  animation-fill-mode: both;
}

/* =========================
   BANNER 2024
========================= */
.marco-img-2024{
  width: 100%;
  height: 800px;
  background: url(../img/img2.webp);
  background-size: cover;
  background-position: center;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 9999px rgba(0,0,0,.10);
}



/* =========================
   FOOTER (MISMO, MÁS PRO)
========================= */
footer{
  background: #030303;
  padding: 25px;
  margin-top: 15%;
  border-top: 1px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 2;
}

.container-footer{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  text-align: center;
  gap: 10px;
}

.titulo-footer{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.titulo-footer h1{
  font-family: "Anton", sans-serif;
  font-weight: 400;
  color: #fff;
  font-size: 8px;
  scale: 6;
}

.titulo-footer p{
  color: rgba(255,255,255,.86);
  font-size: 15px;
}

.footer-nav{
  margin-top: 28px;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a{
  text-decoration: none;
  color: rgba(255,255,255,.90);
  opacity: .8;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
}

.footer-nav a:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.social-titulo{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 10px;
}

.social-titulo h3{
  color: rgba(255,255,255,.50);
  font-weight: 600;
}

.social-footer{
  display: flex;
  padding: 15px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
  border-bottom: solid 1px rgba(255,255,255,.28);
}

.social-footer a img{
  max-width: 50px;
  filter: invert(1);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
  opacity: .9;
}

.social-footer a img:hover{
  transform: scale(1.15);
  opacity: 1;
}

.creditos{
  margin-top: 55px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.creditos h3,
.creditos a{
  color: rgba(255,255,255,.60);
  font-weight: 300;
  font-size: 15px;
  text-decoration: none;
}

/* =========================
   MOBILE (490px)
========================= */
@media (max-width: 490px){
  .parallax-container{
    height: 800px;
  }

  .parallax-layer h1{
    font-size: 55px;
  }

  .grid-container{
    gap: 10px;
    transform: translateY(-550px);
  }

  .grid-item{
    width: 100px;
    height: 150px;
  }

  .grid-item:hover{
    transform: translateY(0px);
  }

  .grid-item:nth-child(1){
    transform: translateX(0px);
  }
  .grid-item:nth-child(1):hover{
    transform: translateX(0px) translateY(-10px);
  }

  .grid-item:nth-child(2){
    width: 150px;
    height: 300px;
  }

  .grid-item:nth-child(3){
    width: 100px;
    height: 150px;
  }

  .grid-item:nth-child(4){
    width: 100px;
    height: 100px;
  }

  .main{
    transform: translateY(-350px);
  }

  .titulo{
    font-size: 54px;
    padding: 0 10px;
  }

  .parrafos{
    grid-template-columns: 1fr 1fr;
    font-size: 15px;
    padding: 12px;
    row-gap: 10px;
    column-gap: 10px;
    width: min(980px, 96vw);
  }

  .titulo-horario h2{
    font-size: 35px;
    transform: translateY(-200px);
  }

  .titulo-horario h1{
    font-size: 35px;
    transform: translateY(-240px);
    -webkit-text-stroke: 1.5px rgba(244,180,70,.95);
  }

  .content{
    width: 320px;
    height: 190px;
  }

  .marco-img-2024{
    height: 420px;
  }

  .footer-nav{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    text-align: center;
  }
}








/* ===== CONTENEDOR ===== */
.gallery-wrapper{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

/* ===== CARD ===== */
.photo-card{
  width: min(280px, 90vw);
  cursor: pointer;
  text-align: center;
  font-family: system-ui, sans-serif;
}

.photo-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow:
    0 18px 40px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.08);
}

.photo-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.photo-card:hover img{
  transform: scale(1.08);
}

/* ===== TEXTO ===== */
.photo-title{
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #e4dfdf;
}

/* ===== MODAL ===== */
.photo-modal{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(0.5px);
  z-index: 9999;
  transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-modal.active{
  display: grid;
  backdrop-filter: blur(20.5px);
}

.photo-modal-img{
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

