/* General */
body {
  margin: 0;
  overflow-x: hidden;
  background-color: AntiqueWhite;
  color: black;
  font-family: 'Press Start 2P', sans-serif, cursive;
  text-align: left;
}

/* Text */

h1 {
  color: black;
  font-size: 48px;
  letter-spacing: 4px;
  text-align: center;
  margin: 5px 0;
}

p {
  font-size: 16px;
  margin: 20px;
}


/* Containers */
.container{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Superior Classes */

.portada{
  background-color: blueviolet;
  padding: 15px;
}

.lista_desplegada {
  align-items: center;
  text-align: center;
  list-style-type: none;
}

.lista_desplegada nav li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.header_buttons,
.header_buttons:visited{
  transition: color 0.3s ease;
  color: white;
  font-family: 'Press Start 2P';
  font-size: clamp(5px, 2.5vw, 16px);
  text-decoration: none;
  margin: 0px clamp(1px, 2.5vw, 500px);
}
.header_buttons:hover{
  transition: color 0.3s ease;
  color: rgb(255, 183, 89);
  font-family: 'Press Start 2P';
  text-decoration: none;
}
.header_buttons:active {
  transition: all 0.3s ease;
  color: #64ff49;
  font-family: 'Press Start 2P';
  text-decoration: none;
  text-align: center;
}

@media (max-width: 768px) {
  .lista_desplegada nav li {
    gap: 10px;
  }

  .header_buttons,
  .header_buttons:visited {
    margin: 0px 4px;
  }

  .lista_desplegada {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer {
    width: auto;
    max-width: 100%;
    margin: 50px auto 0;
  }
}

.footer {
  background-color: rgb(11, 0, 22);
  color: white;
  text-align: center;
  margin-top: 50px;
  font-size: 12px;
  
  display: flex;
  flex-direction: column;
  width: 100%;
}

.p_footer {
  font-size: 9px;
  text-align: center;
}

.p_footer_link{
  color: #ffffff;
  text-decoration: none;
  font-size: 9px;
}

/* Images */

img {
  display: block;
  width: auto;
  margin: 0;
  height: auto;
}

.carousel{
  width: 100%;
  display: flex;
  overflow: hidden;
  touch-action: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel img {
  height: 250px;
  width: auto;
  object-fit: contain;
}

.group_images{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: spin 165s infinite linear;
  padding-right: 1em;
}

@keyframes spin {
  from {translate: 0;}
  to { translate: -100%;}
}

/* Audio */

.audio-container {
  margin: 2% 0%;
  text-align: center;
}

.audio-container h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #9900ff;
}

.audio-container audio {
  width: 300px;
  margin-bottom: 10px;
}

.audio-description {
  font-size: 14px;
  margin-top: 8px;
  color: #9900ff;
}

/* Lightbox base */
#lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;

  width: auto;
  height: auto;

  image-rendering: pixelated;

  transform: scale(0.95);
  transition: transform 0.3s ease;
}
#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

#close-lightbox:hover {
  color: #64ff49;
}

/* General Text */

.text-section {
  font-family: 'Share Tech Mono', sans-serif, cursive; /* fuente pixel-art legible */
  font-size: 14px;              /* tamaño de letra cómodo de leer */
  line-height: 1.3;             /* espacio entre líneas para lectura adecuada */
  color: black;

  margin: 20px auto;            /* separación vertical y centrado */
  padding: 0 20px;              /* espacio interno a los lados */

  max-width: 720px;             /* ancho máximo del texto para buena lectura */
  text-align: left;             /* alineación real a la izquierda */
}

.text-section h1 {
  font-family: 'Press Start 2P', sans-serif, cursive;
  font-size: 25px;
  margin-bottom: 16px;
  text-align: center;
}

.text-section h2 {
  font-family: 'Press Start 2P', sans-serif, cursive;
  color: blueviolet;
  font-weight: bold;
  font-size: 16px;
  margin-top: 30px;
  margin-bottom: 16px;
  text-align: center;
}

.text-section h3 {
  font-family: 'Press Start 2P', sans-serif, cursive;
  color: blueviolet;
  font-weight: bold;
  font-size: 12px;
  margin-top: 40px;
  margin-bottom: 12px;
  text-align: center;
}

.letra_pequeña{
  font-family: 'Share Tech Mono', sans-serif, cursive;
  font-size: 12px;              
  line-height: 1.3;             
  color: black;

  margin: 20px auto;           
  padding: 0 20px;              

  max-width: 720px;            
  text-align: left;        
}

/* Ajuste de párrafos */
.text-section p {
  margin-bottom: 24px;          /* espacio entre párrafos */
  text-align: left;
}

.text-section img{
  display: block;
  margin: 20px auto; 
}

.question {
  margin-top: 50px;
  font-family: 'Press Start 2P', sans-serif, cursive;
  color: blueviolet;
  font-weight: bold;
  font-size: 14px;
  text-align: left;
}

/* Links*/
.color_link,
.color_link:visited{
  transition: color 0.2s ease;
  color: rgb(0, 0, 0);
  font-family: 'Share Tech Mono', sans-serif, cursive;
  text-decoration: underline;
}
.color_link:hover{
  transition: color 0.2s ease;
  color: rgb(225, 0, 255);
}
.color_link:active {
  transition: color 0.1s ease;
  color: #64ff49;
}

.video {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 720px;
  margin: 10px auto;
}

.video iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
}

.video .video_description {
  display: block;
  align-self: center;
  width: auto;
  max-width: 720px;
  margin: 10px auto 0;
  font-size: 7px;
  color: #303030a1;
  text-align: center;
}

.politica,
.politica:visited{
  transition: color 0.2s ease;
  color: #303030a1;
  font-family: 'Press Start 2P';
  text-decoration: none;
  font-size: 6px;
  text-decoration: underline;
}
.politica:hover{
  transition: color 0.2s ease;
  color: #9f00b4a1;
  font-family: 'Press Start 2P';
  text-decoration: none;
  font-size: 6px;
  text-decoration: underline;
}
.politica:active {
  color: #26a100a1;
  text-decoration: underline;
}

.text_link,
.text_link:visited{
  color: black;
  font-family: 'Share Tech Mono', sans-serif, cursive;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: underline;
}
.text_link:hover{
  color: blueviolet;
  font-family: 'Share Tech Mono', sans-serif, cursive;
  text-decoration: none;
  line-height: 1.3;  
  text-decoration: underline;
}
.text_link:active {
  color:  #64ff49;
  font-family: 'Share Tech Mono', sans-serif, cursive;
  text-decoration: none;
  line-height: 1.3;
}

.simple_text_link, /* Lo mismo sin underline*/
.simple_text_link:visited{
  color: black;
  font-family: 'Share Tech Mono', sans-serif, cursive;
  text-decoration: none;
  font-size: 16px;
  text-align: center;
}
.simple_text_link:hover{
  color: blueviolet;
  font-family: 'Share Tech Mono', sans-serif, cursive;
  text-decoration: none;
  font-size: 16px;
  text-align: center;
}
.simple_text_link:active {
  color:  #64ff49;
  font-family: 'Share Tech Mono', sans-serif, cursive;
  text-decoration: none;
  font-size: 16px;
  text-align: center;
}

.team_member,
.team_member:visited,
.team_member:hover,
.team_member:active {
  color: blueviolet;
  font-family: 'Press Start 2P', sans-serif, cursive;
  text-decoration: none;
  font-size: 16px;
  text-align: center;
}

.team_member_image{
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 10px auto;
  display: block;
}

.project_image{
  width: 100%;
  max-width: 550px;
  height: auto;
  margin: 10px auto;
  display: block;
}

.project_section{
  margin-bottom: 20px;
  padding: 20px;
}

.project_section li {
  margin: 20px 0 0 55px;
  align-items: center;
  text-align: left;
  list-style-type:square;
}

.project_section section h2{
  margin-top: 40px;
}

@media (max-width: 768px) {
  .team_member_image {
    max-width: 220px;
  }

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

  .text-section h1 {
    font-size: 20px;
  }

  .text-section p {
    margin: 16px 0;
  }
}
