/* =========================
   RESET
========================= */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BODY
========================= */
body{
  font-family: 'Inter', sans-serif;
  background-color: #15151d;
  color: #f2f2f2;
  line-height: 1.8;
}

/* =========================
   SECCIONES GENERALES
========================= */
section{
  padding: 120px 10vw;
}

/* =========================
   HERO
========================= */
#hero{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 4px 4px;

  text-align: center;
}

#hero h1{
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 700;
  color: #b38cff;
}

.tagline{
  margin-top: 20px;
  font-size: 1.4rem;
  color: #e6c8ff;

  border-top: 1px solid rgba(230,200,255,0.4);
  border-bottom: 1px solid rgba(230,200,255,0.4);
  padding: 12px 0;
}

/* =========================
   TEXTO GENERAL
========================= */
.texto{
  max-width: 720px;
  margin: 0 auto;
}

.texto p{
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* =========================
   OBRA / BLOQUES ALTERNADOS
========================= */
#obra{
  display: flex;
  flex-direction: column;
  gap: 160px;
}

.bloque{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.bloque.invertido{
  grid-template-columns: 1fr 1fr;
}

.bloque img{
  width: 100%;
  display: block;
}

.bloque p{
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.8;
}

/* =========================
   INFO DE OBRA
========================= */
.obra-info{
  text-align: center;
  margin-top: 24px;
}

.obra-titulo{
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.obra-detalle{
  font-size: 1rem;
  opacity: 0.7;
}

/* =========================
   SEPARADOR
========================= */
.separador{
  border: none;
  height: 1px;
  background-color: rgba(255, 180, 220, 0.4);
  margin: 160px 10vw 80px;
}

/* =========================
   CONTACTO
========================= */
#contacto{
  text-align: center;
  padding-bottom: 120px;
}

#contacto a{
  color: #f2b3c6;
  text-decoration: none;
  font-size: 1rem;
}

#contacto a:hover{
  opacity: 0.7;
}

/* =========================
   MENU
========================= */
.menu{
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 1000;
}

.menu-btn{
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #e7c6ff;
}

.menu-panel{
  position: absolute;
  top: 40px;
  right: 0;
  background-color: rgba(20, 20, 30, 0.95);
  padding: 20px 28px;
  display: none;
  flex-direction: column;
  gap: 14px;
}

.menu-panel a{
  color: #e7c6ff;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.menu:hover .menu-panel{
  display: flex;
}

/* =========================
   SOBRE MI
========================= */
.sobre-mi{
  max-width: 760px;
  margin: 120px auto;
  padding: 0 24px;
  display: block;
}

.sobre-mi.texto{
  display: block;
}

.sobre-mi .bloque{
  margin-bottom: 64px;
}

.sobre-mi h1{
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 48px;
}

.sobre-mi h2{
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  margin-bottom: 24px;
}

.sobre-mi p{
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 20px;
}

/* =========================
   CATALOGO (OBRAS GRANDES)
========================= */
.catalogo-obras{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 60px;
  padding-top: 120px;
  padding-bottom: 80px;
}

.obra-item img{
  width: 100%;
  display: block;
  border-radius: 6px;
}

.obra-item .obra-info{
  text-align: center;
  margin-top: 18px;
}

/* obras grandes clickeables */
.obra-click{
  cursor: zoom-in;
}

/* =========================
   TITULO SERIE (GRILLA MENSUAL)
========================= */
.serie-titulo{
  text-align: center;
  padding-bottom: 40px;
}

.serie-titulo h2{
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #e6c8ff;
  margin-bottom: 14px;
}

.serie-titulo p{
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  opacity: 0.75;
  line-height: 1.7;
}

/* =========================
   SERIE WRAPPER + FADE BORDES
========================= */
.serie-wrapper{
  position: relative;
  padding: 0;
}

/* fade a los costados para que se vea “carrusel” */
.serie-wrapper::before,
.serie-wrapper::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10vw;
  pointer-events: none;
  z-index: 5;
}

.serie-wrapper::before{
  left: 0;
  background: linear-gradient(to right, #15151d 0%, rgba(21,21,29,0) 100%);
}

.serie-wrapper::after{
  right: 0;
  background: linear-gradient(to left, #15151d 0%, rgba(21,21,29,0) 100%);
}

/* =========================
   GRILLA MENSUAL (2 FILAS ORDENADAS)
========================= */
.grilla-mensual{
  display: grid;

  /* 2 filas */
  grid-template-rows: repeat(2, auto);

  /* orden normal de lectura */
  grid-auto-flow: row;

  /* 6 columnas visibles en desktop */
  grid-template-columns: repeat(6, 1fr);

  gap: 18px;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  scroll-snap-type: x mandatory;
  scroll-padding-left: 10vw;
  scroll-padding-right: 10vw;

  /* margen real */
  padding: 20px 10vw;
}

.mes{
  width: 170px;
  scroll-snap-align: start;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mes img{
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  display: block;

  cursor: pointer;

  transition: transform 0.2s ease, box-shadow 0.2s ease, outline 0.2s ease;
}

.mes img:hover{
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(190, 120, 255, 0.35);
  outline: 1px solid rgba(190, 120, 255, 0.35);
  outline-offset: 2px;
}

.mes span{
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
  line-height: 1.2;
}

/* =========================
   LIGHTBOX (FADE LILA + MUSEO + FADE IN)
========================= */
#lightbox{
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  /* fade lila suave atrás */
  background:
    radial-gradient(circle at 50% 40%, rgba(179, 140, 255, 0.18), rgba(0,0,0,0.88) 60%);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  padding: 60px 22px;

  /* micro fade in */
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#lightbox.activo{
  display: flex;
  opacity: 1;
  transform: scale(1);
}

/* contenedor (tapa menos pantalla en compu) */
#lightbox .lightbox-content{
  max-width: min(900px, 92vw);
  max-height: 82vh;

  background: rgba(10, 10, 18, 0.55);
  border: 1px solid rgba(230, 200, 255, 0.18);
  border-radius: 14px;
  padding: 14px;

  box-shadow: 0 0 40px rgba(179, 140, 255, 0.18);
  overflow: hidden;

  cursor: zoom-in;
}

/* si hay zoom activo (lo va a poner el JS) */
.lightbox-content.zoom-activo{
  cursor: grab;
}
.lightbox-content.zoom-activo:active{
  cursor: grabbing;
}

#lightbox.zoomed .lightbox-content:active{
  cursor: grabbing;
}

#lightbox-img{
  width: 100%;
  height: 100%;
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;

  transform-origin: center center;
  transition: transform 0.06s linear;

  user-select: none;
  -webkit-user-drag: none;
}

/* cerrar */
.cerrar{
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2.4rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  opacity: 0.9;
}
.cerrar:hover{
  opacity: 0.7;
}

/* flechas */
.flecha{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 10px 14px;
  opacity: 0.85;
}
.flecha:hover{
  opacity: 0.65;
}

.flecha.izquierda{
  left: 18px;
}
.flecha.derecha{
  right: 18px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px){
  .bloque{
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #hero h1{
    font-size: 3.4rem;
  }

  .catalogo-obras{
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .mes{
    width: 150px;
  }

  .mes img{
    height: 110px;
  }

  /* lightbox full screen en celu */
  #lightbox{
    padding: 0;
  }

  #lightbox .lightbox-content{
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  #lightbox-img{
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .flecha.izquierda{
    left: 10px;
  }

  .flecha.derecha{
    right: 10px;
  }

  .cerrar{
    top: 10px;
    right: 14px;
  }
}
