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

/* ESTILOS GLOBALES */
body {
  font-family: Verdana, sans-serif;
  background: #fff;
  color: #111;
  min-height: 100vh;
  overflow-x: hidden;
}

/* MENÚ FLOTANTE */
nav {
	 position: fixed;
   top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255,255, 255, 1);
  color: #eee;
  padding: 32px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.6);
  z-index: 999;
}


  nav .logo { font-size: 2rem; font-weight: 300; color: rgba(0, 0, 0, 0); }
  nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
  nav ul li a {
    color: #ccc; text-decoration: none; font-weight: 100;
    transition: color 0.3s;
  }


  .subtitle {
	  font-family: verdana, sans-serif;
  font-size: 1.8rem;
  font-weight: 100;
  margin-left: 8px;
  color:rgba(0, 0, 0, 0);
}


/* enlaces normales + visitados */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a:link,
nav ul li a:visited {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 100;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color:rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid #fff;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: rgba(0, 0, 0, 0.8);
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: rgba(0, 0, 0, 0.5);
}

.lang-selector {
	  display: flex;
  gap: 10px;
}

.lang-selector button {
  background: #fff;
  border: 1px solid #333;
  color: #333;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border 0.3s;
}

.lang-selector button:hover {
  background: #333;
  color: #fff;
  border: 1px solid #333;
}

/* DESPLAZAMIENTO PARA CONTENIDO */
.main-content {
  padding: 40px;
  min-height: 60vh; /* O ajusta según tu preferencia */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra verticalmente */
  align-items: center;     /* Centra horizontalmente */
  text-align: center;      /* Centra el texto dentro del bloque */
}

/* CARRUSEL (index.html) */
.portfolio-overlay {
  position: fixed;
  top: 64px;
  left: 420px;
  transform: translateX(-50%);
  z-index: 20;
  color: rgba(0, 0, 0, 0.7);
  font-size: 1rem;
  font-weight: normal;
  font-family: verdana, serif;
  background: rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
   z-index: 1200;
  backdrop-filter: blur(2px);
  pointer-events: none;
}


/* INDEX.HTML: carrusel principal */
.carousel {
  position: absolute;
  
  top: 62px;       /* justo bajo el nav de 80px de alto */
  bottom: 0;       /* hasta el final de la ventana */
  width: 100%;
  overflow: hidden;
}

/* SOBRE.HTML: carrusel histórico */
.carousel-container {
  position: absolute;
  top: 62px;       /* debajo del nav */
  bottom: 0;       /* llega hasta abajo */
  width: 100%;
  overflow: hidden;
}


.slide {
  position: absolute;
  top: 10%; left: 15%;
  width: 70%;
  height: 85%;
  background-size: cover;
  background-position: center;
  opacity: 0;
   transition: opacity 1s ease-in-out;
    box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.6);
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.caption {
  position: absolute;
  bottom: 10%;
  left: 65%;
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  font-family: verdana, serif;
  background: rgba(0, 0, 0, 0.4);
  padding: 15px 25px;
  border-radius: 6px;
}

.caption-text {
  margin-top: 8px;
  font-size: 1.4rem;
  font-weight: 200;
  line-height: 1.6rem;
  color: #ddd;
  max-width: 500px;
  word-wrap: break-word;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 2;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  z-index: 2;
}

.arrow.left { left: 20px; }
.arrow.right { right: 20px; }

.dots {
  position: absolute;
  bottom: 50px;
  width: 100%;
  text-align: center;
  z-index: 999;
}

.dot {
  display: inline-block;
  width: 10px; height: 10px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #fff;
}

/* GALERÍA (galeria.html) */
.gallery-wrapper {
  position: absolute;
  top: 70px;    /* deja espacio para nav + indicadores superiores */
  bottom: 40px;  /* deja espacio para el indicador de página */
  left: 40;
  right: 40;
  padding: 80px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  overflow-y: auto;
}


.gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 6px 9px 10px rgba(0, 0, 0, 0.5);
  user-select: none;
  object-fit: contain;
}

.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 0.3em 0.5em;
  cursor: pointer;
  display: none;
  z-index: 2;
}


.gallery-item.paused .video-play-btn {
  display: block;
}

.file-date {
  margin-top: 6px;
  font-size: 1.2rem;
  color: #555;
}

.icon-overlay {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 1rem;
}


.page-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  font-size: 1.3rem;
  color: #444;
  background: #fff; /* o transparente si prefieres */
  text-align: center;
  box-shadow: 0 -6px 6px rgba(0,0,0,0.5);
}

.zoom-lens {
  position: absolute;
  width: 400px; height: 400px;
  border: 2px solid #000;
  background-repeat: no-repeat;
  background-size: 400%;
  border-radius: 4px;
  pointer-events: none;
  display: none;
  z-index: 2000;
}



.nav-arrows {
  position: fixed;
  top: 50%; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 1000;
}

.nav-arrows button {
  pointer-events: all;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 15px 15px;
  border-radius: 10%;
  cursor: pointer;
}

@media (hover: none) {
  .zoom-lens { display: none !important; }
}

/* CONTACTO (contact.html) */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 200px;
  gap: 40px;
}

.contact-form {
  width: 50%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

.contact-form button {
  padding: 12px;
  font-size: 1rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

.contact-photo {
  width: 50%;
  max-width: 500px;
}

.contact-photo img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.5);
}



.carousel-image {
  position: absolute;
  bottom: 15%; left: 10%;
  width: 40%; height: 59.3%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
}

.overlay-text {
  position: absolute;
  left: 50%; bottom: 15%;
  width: 40%;
  background: rgba(0, 0, 0,1);
  padding: 30px;
  border-radius: 0px;
  z-index: 10;
}

.overlay-text p {
  font-size: 1.6rem;
  line-height: 2rem;
  color: #fff;
}


/* BOOK.HTML: contenedor del PDF */
.pdf-container {
  position: absolute;
  top: 72px;    /* justo debajo del menú */
  bottom: 0;    /* hasta el fondo de la ventana */
  left: 0;
  right: 0;
  padding: 0 0px;  /* mantiene el padding lateral que tenías */
}

.pdf-container iframe {
  width: 100%;
  height: 99%;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}


.book-overlay  {
  position: fixed;
  top: 98px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  font-weight: bold;
  font-family: verdana, serif;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 40px;
  backdrop-filter: blur(2px);
  pointer-events: none;
}



/* GRACIAS (gracias.html) */
.main-content a {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

/* DROP-DOWN EN MENÚ */
nav ul li.dropdown {
  position: relative;
}

nav ul li.dropdown ul {
  display: none;            /* oculto por defecto */
  position: absolute;
  top: 100%; left: 0;        /* justo debajo del enlace padre */
  background: rgba(255,255,255,0.9);
  list-style: none;
  margin: 0;
  padding: 0.5em 0;
  min-width: 160px;
  z-index: 1000;
}

nav ul li.dropdown:hover > ul {
  display: block;           /* se muestra al hacer hover */
}

nav ul li.dropdown ul li {
  margin: 0;
}

nav ul li.dropdown ul li a {
  display: block;
  padding: 0.5em 1em;
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

nav ul li.dropdown ul li a:hover {
  background: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}



/* Estilo mínimo para dropdown tipo galería */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 160px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 0;
  margin: 0;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content li {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dropdown-content li a {
  display: block;
  padding: 8px 14px;
  color: #222;
  text-decoration: none;
}
.dropdown-content li a:hover {
  background: #f0f0f0;
}

.book-image { width: 100%; max-width: 100vw; display: block; margin-bottom: 10px; }
.book-wrapper { max-width: 50vw; margin: 0 auto; padding: 72px  10px 0 10px; }


.logo-overlay {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1999; /* Por encima del nav */
  background: #fff;
  border: 0px solid #000;
  border-radius: 0px;
   box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.6);
  padding: 0px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;
  /* Opcional: puedes probar con backdrop-filter si tu logo tiene transparencia */
  /* backdrop-filter: blur(1px); */
}
.logo-overlay img {
  display: block;
  max-height: 150px;  /* Ajusta según tamaño del logo */
  max-width: 300px;
  object-fit: contain;
}


/* Botón PDF general */
#pdf-download-btn {
  margin: 40px auto 24px auto;
  text-align: center;
  transition: opacity 0.3s;
}

#pdf-download-btn {
  position: fixed;
  top:110px; /* debajo del menú, ajusta según altura de tu nav */
  left: 70%;
  
  text-align: center;
  z-index: 4000;
  pointer-events: auto;
}


/* Botón PDF general  block  o none  para mostrar ocultar*/
.pdf-btn-visible { display: none; }




.pdf-btn-hidden { display: block; }

.pdf-download {
  background: #212121;
  color: #fff;
  padding: 14px 14px;
  border-radius: 2px;
  border: 1px solid #333;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 200;
  text-decoration: none;
  letter-spacing: 1px;
  box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  display: inline-block;
  margin: 0 auto;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.pdf-download:hover,
.pdf-download:focus {
  background: #fff;
  color: #212121;
  border: 2px solid #212121;
}
