@import '/styles/components/images-gallery.css';


:root {
  --cream-color: #FBF5EB;
  --dark-color: #1B1B1B;
  --third-color: #bc9d83;
  --montserrat: 'Montserrat', sans-serif;
  --roboto: 'Roboto', sans-serif;
}

.project-section {
  border: 5px solid var(--dark-color);
  padding-bottom: 80px;
}

.project-head {
  width: 100%;
  height: 120px;
  padding: 0 60px;
  margin-bottom: 40px;
  background-color: var(--dark-color);
}

.titulos,
.titulos-sin-subtitulo,
.titulos-con-subtitulo,
.titulos-secundarios,
.subtitulos {
  color: var(--cream-color);
}

.titulos-sin-subtitulo {
  padding-top: 40px;
}

.titulos-con-subtitulo {
  padding-top: 25px;
}

.titulos-secundarios {
  font-weight: bold;
  margin-bottom: 3px;
}

.subtitulos {
  font-weight: lighter;
}

.project-info {
  width: 100%;
  padding: 0 60px;
}

/* ----- Imagen principal y boton -----*/

.media-section {
  background-color: var(--dark-color);
  border-radius: 0 0 15px 15px;
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.main-image-container {
  position: relative;
  margin-bottom: 40px;
}

.main-image-container img {
  width: 100%;
  height: 100%;
}

.button-itchio {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1B1B1B;
  color: #FBF5EB;
  width: 170px;
  height: 40px;

  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  font-weight: 700;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 3px;

}

.button-itchio .arrow {
  font-size: 24px;
  font-weight: 400;
  margin-left: 8px;
  display: inline-block;
  transform: translateY(-2px);
}

.button-itchio:hover {
  background-color: #4e4e4e;
  /* ligero cambio al hacer hover */
}

/* ----- video principal -----*/
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  margin-bottom: 40px;
}

.video-container .video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /*debajo de la imagen y el botón de play */
}

.video-container .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.25);
}

.video-container .video-overlay .video-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  /* por encima del iframe, pero detrás del play-button */
}

.video-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  /* por encima del iframe, pero detrás del play-button */
}

.video-container .video-overlay .play-button {
  position: relative;
  z-index: 3;
  /* Tamaño fijo (círculo) */
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background-color: var(--cream-color);
  box-shadow: 0px 0px 45px var(--dark-color);
  /* Centrado de la flecha dentro del círculo */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--dark-color);
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  line-height: 0;
  padding-left: 8px;
}

.video-container.playing .video-overlay {
  display: none;
}

.video-container .video-iframe {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container.playing .video-iframe {
  opacity: 1;
}

/* ----- Botones de refes externas -----*/
.buttons-section {
  display: flex;
  gap: 10px;
  width: 95%;
  margin: 20px auto 0 auto;
}


/* ----- Textos simple -----*/
.text-section {
  width: 100%;
  margin-top: 40px;
  color: var(--dark-color);
  font-size: 16px;
}

.text-section:nth-of-type(1) {
  margin: 0;
}

.text-section h5 {
  font-family: var(--roboto);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.text-section p {
  font-family: var(--montserrat);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 20px;
}

.text-section ul {
  font-family: var(--montserrat);
  font-weight: 400;
  margin-left: 20px;
  list-style-type: square;
  margin-top: -10px;
}

.text-section ul li {
  margin-bottom: 7px;
  line-height: 150%;
  margin-right: 100px;
}


.code-lines {
  font-family: var(--roboto) !important;
  padding-left: 40px;
  font-style: italic;
}

/* ----- Textos con una imagen -----*/
.text-with-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.text-with-image>div:first-child {
  width: 60%;
  padding-right: 20px;
}


.text-with-image>img {
  width: 40%;
  height: auto;
}

/* ----- Textos con fondo oscuro -----*/
.text-dark-container {
  background-color: var(--dark-color);
  color: var(--cream-color);
  margin: 40px -60px 0 -60px;
  padding: 40px 60px 0px 60px;
}

.text-dark-container h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

.dark {
  color: var(--cream-color) !important;
}

.images-dark-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 0px 20px 0px;
  gap: 5%;
}

.images-dark-container:last-child {
  padding: 10px 0px 60px 0px;
}

.images-dark-container>div {
  width: 100%;
  height: auto;
  background-color: var(--cream-color);
  padding: 8px 8px 4px 8px;
}

.images-dark-container img {
  width: 100%;
  height: auto;
  min-width: 255px;
}


/* ----- Tabla -----*/
.task-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Montserrat', sans-serif;
  margin: 20px 0;
}

thead th {
  background-color: var(--third-color);
  color: var(--dark-color);
  text-align: left;
  padding: 6px;
  font-weight: 500;
  border: 2px solid var(--dark-color);
  font-size: 14px;

}

thead tr:first-child th {
  background-color: var(--dark-color);
  color: var(--cream-color);
  padding-top: 8px;
  text-align: center;
  font-weight: 500;

}

tbody td {
  padding: 7px;
  vertical-align: top;
  border: 2px solid var(--dark-color);
}

.table-row-empty {
  border-style: solid;
  border-width: 2px 0 0 0;
  border-color: var(--dark-color);
}

.table-row-empty td {
  border-style: solid;
  border-width: 2px 0 0 0;
  border-color: var(--dark-color);
  padding: 8px 0;
}








@media (max-width: 1024px) {

  .project-head,
  .project-info {
    padding: 0 40px 0 40px;
  }

  .text-section ul li {
    margin-right: 0;
  }

  .text-dark-container {
    margin: 40px -40px 0 -40px;
    padding: 40px 40px 0px 40px;
  }

  .images-dark-container {
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 10px;
  }
}

@media (max-width: 660px) {
  .project-head {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: auto;
    margin-bottom: 0;
    gap: 5px
  }

  .titulos-sin-subtitulo {
    margin: auto 0;
    font-size: 24px;
    padding: 0;
    margin: 24px;
  }

  .titulos-con-subtitulo {
    padding: 0;
    font-size: 24px;
    margin-left: 24px;
    margin-top: 18px;
  }

  .subtitulos {
    font-size: 20px;
    margin-left: 24px;
    margin-bottom: 18px;
  }

  .main-image-container {
    padding: 0;
    margin-bottom: 0px;
  }


  .video-container,
  .main-image-container img {
    width: 90%;
    height: 90%;
    margin: 10px 24px 0 24px;
  }

  .project-info {
    padding: 0;
  }

  .text-section h5 {
    font-size: 20px;
    margin-top: 40px;
  }

  .text-section h5:first-of-type {
    margin-top: -10px;
  }

  .text-section ul li {
    font-size: 16px;
    margin-right: 0;
  }

  .text-section {
    padding: 0 24px;
  }

  .text-dark-container {
    margin: 40px 0px 0 0px;
    padding: 40px 12px 0px 12px;
  }

  .images-dark-container {
    gap: 10px;
    padding-bottom: 0px;
  }

  .images-dark-container>div {
    padding: 4px 4px 0px 4px;
  }

  .images-dark-container img {
    width: 100%;
    height: auto;
    min-width: 0px;
  }

  .mini-gallery-container {
    width: 90%;
    height: 90%;
    margin-left: 24px;
    margin-right: 24px;
  }

  .buttons-section {
    margin-left: 24px;
    margin-right: 24px;
  }

  .media-section {
    padding-bottom: 20px !important;
  }
}