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

body, html {
  height: 100%;
  font-family: 'Poppins', sans-serif;
}

body {
  background: url('../pics/background.webp') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  color: white;
}

/* ================================ */
/* HEADER - CONSISTENTE EN TODAS LAS PÁGINAS */
/* ================================ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(5px);
  z-index: 10;
  transition: background 0.3s ease;
}

header:hover {
  background: rgba(0, 0, 0, 0.4);
}

header a {
  text-decoration: none;
  color: white;
  font-weight: 300;
  transition: color 0.3s;
}

header a:hover {
  color: #ddd;
}

/* ================================ */
/* VARIANTES DE TEMA - PÁGINAS CLARAS */
/* ================================ */
body.page-obras,
body.page-coleccion,
body.page-bio,
body.page-publicaciones {
  background: #fff !important;
  background-image: none !important;
  color: #111 !important;
}

body.page-obras header,
body.page-coleccion header,
body.page-bio header,
body.page-publicaciones header {
  background: rgba(255, 255, 255, 0.75);
}

body.page-obras header:hover,
body.page-coleccion header:hover,
body.page-bio header:hover,
body.page-publicaciones header:hover {
  background: rgba(255, 255, 255, 0.92);
}

body.page-obras header a,
body.page-coleccion header a,
body.page-bio header a,
body.page-publicaciones header a {
  color: #111;
}

body.page-obras header a:hover,
body.page-coleccion header a:hover,
body.page-bio header a:hover,
body.page-publicaciones header a:hover {
  color: #333;
}

/* ================================ */
/* MAIN - PÁGINA DE INICIO */
/* ================================ */
main {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* ================================ */
/* BOTONES */
/* ================================ */
.btn {
  padding: 0.8rem 2rem;
  background-color: white;
  color: black;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #ddd;
}

/* ================================ */
/* PÁGINA BIO */
/* ================================ */
.bio {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.95);
}

.bio-container {
  max-width: 800px;
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  color: #111;
  font-weight: 300;
  line-height: 1.6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bio-container h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.bio-container p {
  color: #111;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.perfil {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.perfil img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
}

img {
  border-radius: 50%;
}

/* ================================ */
/* PÁGINA CONTACTO */
/* ================================ */
.contacto {
  padding: 8rem 1rem 4rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: white;
}

.contacto h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contacto p {
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.formulario-container {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.formulario-contacto {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  color: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.formulario-contacto textarea {
  resize: none;
  min-height: 120px;
}

.formulario-contacto .btn {
  background: linear-gradient(145deg, #ffffff, #e0e0e0);
  color: black;
  font-weight: bold;
  padding: 1rem;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.formulario-contacto .btn:hover {
  background: linear-gradient(145deg, #f0f0f0, #cccccc);
  transform: translateY(-1px);
}

.datos-contacto {
  margin-top: 2rem;
  text-align: center;
}

.datos-contacto p {
  font-weight: 300;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.datos-contacto a {
  color: #eee;
  text-decoration: underline;
  font-weight: 300;
}

.datos-contacto a:hover {
  color: #fff;
}

/* ================================ */
/* PÁGINA PUBLICACIONES */
/* ================================ */
.publicaciones {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  padding: 6rem 1rem 3rem;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  gap: 30px;
  max-width: 1000px;
}

.publicaciones h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #111;
}

.publicaciones > .btn {
  display: block;
  padding: 10px 20px;
  background-color: #8fa0b3;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-align: center;
  width: 100%;
  max-width: 400px;
  text-transform: none;
  font-weight: 300;
}

.publicaciones > .btn:hover {
  background-color: #0056b3;
}

.video-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 900px;
  text-align: left;
  margin-bottom: 20px;
}

.video-description {
  flex: 1;
  padding-right: 10px;
  display: flex;
  align-items: center;
  height: 100%;
}

.video-description h4 {
  font-weight: bold;
  margin: 0;
  font-size: 1.1rem;
  color: #111;
  line-height: 1.4;
}

.video-content {
  flex: 0 0 560px;
  position: relative;
  padding-bottom: 315px;
  height: 0;
  overflow: hidden;
  background-color: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-content iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-content .btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 300px;
  padding: 15px 30px;
  font-size: 1.1em;
  background-color: #ff0000;
  color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.video-content .btn:hover {
  background-color: #cc0000;
}

/* ================================ */
/* PÁGINA OBRAS Y COLECCIONES */
/* ================================ */
.galeria {
  display: block;
  height: auto;
  width: 100%;
  padding: 8rem 2rem 4rem;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  color: white;
  text-align: center;
}

body.page-obras .galeria,
body.page-coleccion .galeria {
  background: transparent;
  backdrop-filter: none;
  color: #111;
}

.galeria h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.galeria p {
  font-weight: 300;
  margin-bottom: 3rem;
}

.grid-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.grid-galeria a {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-galeria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.grid-galeria a:hover img {
  transform: scale(1.05);
}

.grid-galeria a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.coleccion {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coleccion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  border-radius: 14px;
}

.coleccion .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: opacity 0.4s ease;
}

.coleccion h2 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.coleccion p {
  font-weight: 300;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.coleccion:hover img {
  transform: scale(1.05);
}

.coleccion:hover .overlay {
  opacity: 1;
}

.coleccion:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* ================================ */
/* LIGHTBOX GLIGHTBOX */
/* ================================ */
.glightbox-container .gslide-inner-content,
.glightbox-container .ginner-container,
.glightbox-container .gslide-media {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.glightbox-container .gslide-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.glightbox-container .gslide-image img {
  display: block;
  margin: 0 auto;
  width: auto !important;
  height: auto !important;
  max-width: min(92vw, 1400px) !important;
  max-height: 84vh !important;
  object-fit: contain !important;
  user-select: none;
}

.glightbox-container .gslide-description.description-bottom {
  position: fixed !important;
  left: 50% !important;
  bottom: 18px !important;
  transform: translateX(-50%) !important;
  width: min(92vw, 860px) !important;
  margin: 0 !important;
  z-index: 99998 !important;
  pointer-events: none;
}

.slide-counter {
  position: fixed !important;
  top: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 99999 !important;
  background: rgba(0, 0, 0, 0.85) !important;
  color: #fff !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  min-width: 54px;
  text-align: center;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 0.03em !important;
  pointer-events: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.gdesc-inner {
  background: rgba(0, 0, 0, 0.65) !important;
  color: #f5f5f5 !important;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.6;
  padding: 1.2em;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto !important;
  text-align: center !important;
}

.glightbox-clean .gdesc-inner .gdesc-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #fff;
  text-align: center;
  margin-bottom: 0.5em;
}

.glightbox-clean .gdesc-inner .gdesc-text {
  text-align: center;
  color: #e6e6e6;
}

.glightbox-clean .gslide-description {
  background: transparent !important;
}

.glightbox-clean .gdesc {
  background: transparent !important;
}

/* ================================ */
/* RESPONSIVE - Tablets */
/* ================================ */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.2rem;
  }
  
  .bio-container {
    padding: 1.5rem 1.8rem;
  }
  
  .formulario-container {
    padding: 1.5rem;
  }
  
  .grid-galeria {
    gap: 1.2rem;
  }
  
  .video-content {
    flex: 0 0 450px;
    padding-bottom: 253px;
  }
}

/* ================================ */
/* RESPONSIVE - Celulares */
/* ================================ */
@media (max-width: 768px) {
  header {
    padding: 0.9rem 0.6rem;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  
  header a {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }
  
  main {
    padding: 1.5rem;
    height: auto;
    min-height: 100vh;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  .bio {
    padding: 5rem 0.8rem 2rem;
  }
  
  .bio-container {
    padding: 1.2rem 1rem;
    margin: 0 0.5rem;
  }
  
  .bio-container h2 {
    font-size: 1.5rem;
  }
  
  .perfil img {
    width: 150px;
    height: 150px;
  }
  
  .contacto {
    padding: 6rem 0.8rem 2rem;
  }
  
  .contacto h1 {
    font-size: 1.8rem;
  }
  
  .formulario-container {
    padding: 1.2rem;
    margin: 0 0.5rem;
    max-width: 100%;
  }
  
  .formulario-contacto input,
  .formulario-contacto textarea {
    padding: 0.8rem;
    font-size: 0.95rem;
  }
  
  .publicaciones {
    padding: 5rem 0.8rem 2rem;
    gap: 20px;
  }
  
  .publicaciones h2 {
    font-size: 1.5rem;
  }
  
  .publicaciones > .btn {
    max-width: 100%;
    font-size: 0.9rem;
  }
  
  .video-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  
  .video-description {
    min-width: unset;
    padding-right: 0;
    width: 100%;
    height: auto;
    display: block;
  }
  
  .video-description h4 {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .video-content {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    flex: unset;
  }
  
  .video-content .btn {
    position: static;
    transform: none;
    width: 80%;
    margin: 0 auto;
  }
  
  .galeria {
    padding: 6rem 1rem 2rem;
  }
  
  .galeria h1 {
    font-size: 1.8rem;
  }
  
  .grid-galeria {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .coleccion .overlay h2 {
    font-size: 1.1rem;
  }
  
  .coleccion .overlay p {
    font-size: 0.75rem;
  }
}

/* ================================ */
/* RESPONSIVE - Celulares chicos */
/* ================================ */
@media (max-width: 480px) {
  header {
    gap: 0.4rem;
    padding: 0.7rem 0.4rem;
  }
  
  header a {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .grid-galeria {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .coleccion .overlay {
    opacity: 1;
  }
  
  .coleccion .overlay h2 {
    font-size: 1rem;
  }
  
  .bio-container {
    padding: 1rem 0.8rem;
  }
  
  .perfil img {
    width: 120px;
    height: 120px;
  }
}
