/* https://www.w3schools.com/howto/howto_css_two_columns.asp */
/* https://developer.mozilla.org/es/docs/Web/CSS/box-sizing */
/* Así definimos el comportamiento de caja para todos los elementos */
* {
  box-sizing: border-box;
}

/* Crear columnas de ancho diferente que se colocan una a continuación de la otra */

body {
  background-image: url('fondo.jpg');
  background-size: cover;
  /* Ajusta la imagen al tamaño de la pantalla */
  background-attachment: fixed;
}

.contenedor-proyectos {
    display: flex;
    flex-wrap: wrap;       /* Permite que las cartas salten de línea */
    justify-content: center; /* Centra las cartas en la pantalla */
    gap: 30px;             /* Espacio entre cada carta */
    margin: 40px auto;     /* Centra el bloque entero */
    padding: 20px;

}

.proyecto-item {
    display: flex;
    background: rgba(202, 77, 233, 0.95);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.proyecto-item .button {
    display: inline-block; /* Permite que el tamaño lo defina el contenido */
    align-self: center;    /* Centra el botón horizontalmente en el flujo flex del texto */
    width: fit-content;    /* Se ajusta estrictamente al ancho del texto */
    margin: 20px auto;     /* Asegura margen y centrado extra */
    padding: 12px 25px;    /* Espacio interno para que respire el texto */
    background-color: #7fd6ff;
    color: #000;
    text-decoration: none;
    border-radius: 50px;   /* Estilo redondeado moderno */
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.proyecto-item .button:hover {
    background-color: #357aa8;
    color: #fff;
    transform: scale(1.05); /* Efecto de crecimiento al pasar el ratón */
}


.proyecto-imagen {
    width: 35%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 50px;
}


.proyecto-texto {
    width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proyecto-texto h2 {
    font-size: 2.2rem;    /* Nombres de proyectos todavía más grandes */
    color: #8b0085;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.proyecto-texto p {
    font-size: 1.5rem;  /* Texto de descripción gigante */
    font-family: 'Arial', sans-serif;
    line-height: 1.1;
    color: #000;
}

/* Estilos para el menú de navegación superior */
.menu-superior {
  background-color: rgba(255, 255, 255, 0.2); /* Bloque distinto al fondo (blanco traslúcido) */
  backdrop-filter: blur(5px);                /* Efecto de desenfoque moderno */
  border-bottom: 2px solid rgba(208, 63, 221, 0.8); /* Subrayado del bloque */
  padding: 15px 0;
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-item {
  text-decoration: none;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-item:hover {
  background-color: rgba(208, 63, 221, 0.8);
  color: #fff;
}

.columna {
  float: left;
  padding: 10px;
  min-height: 500px;

}

.izquierda {
  width: 22%;
  min-height: 500px;
  text-align: left;
  align-items: center;
  margin: 10px;

}

.izquierda2 {
  width: 40%;
  min-height: 500px;
  text-align: left;
  margin: 10px;
}

.izquierda3 {
  width: 32%;
  min-height: 500px;
  text-align: left;
  margin: 5px;
  margin-bottom: 100px;
}


.derecha {
  width: 70%;
  margin: 10px;
}

.derecha2 {
  width: 100%;
  margin: 2px;
}

.fila {
  display: flex;
  flex-wrap: wrap;
  /* para que las columnas bajen en móvil */
  gap: 20px;
  /* espacio entre columnas */
}

.fila-centro {
  justify-content: center;
  /* centra horizontalmente las 3 columnas */
}


#c1 {
  background-color: rgba(208, 63, 221, 0.8);
  border-radius: 5px;
  margin-right: 5px;

}

#c2 {
  background-color: rgba(177, 79, 216, 0.8);
  border-radius: 5px;
  margin-right: 5px;

}

#c3 {
  background-color: rgba(196, 45, 201, 0.5);
  border-radius: 5px;
  margin-right: 5px;

}

#c3:hover {
  background-color: rgba(196, 45, 201, 0.9);
  border-radius: 5px;
  margin-right: 5px;
}

#c4 {
  background-color: rgba(196, 45, 201, 0.5);
  border-radius: 5px;
  margin-right: 5px;
}

#c4:hover {
  background-color: rgba(196, 45, 201, 0.9);
  transform: scale(1.02);
  transition: opacity 0.3s ease;
}

#c5 {
  background-color: rgba(196, 45, 201, 0.5);
  border-radius: 5px;
  margin-right: 5px;
}

#c5:hover {
  background-color: rgba(196, 45, 201, 0.9);
  transform: scale(1.02);
  transition: opacity 0.3s ease;
}

#c6 {
  background-color: rgba(196, 45, 201, 0.5);
  border-radius: 5px;
  margin-right: 5px;
}

#c6:hover {
  background-color: rgba(196, 45, 201, 0.9);
  transform: scale(1.02);
  transition: opacity 0.3s ease;
}

#c7 {
  background-color: rgba(196, 45, 201, 0.5);
  border-radius: 5px;
  margin-right: 5px;
}

iframe {
  width: 80%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  display: block;
  margin: 15px auto;
}

/* estilos para imágenes https://www.w3schools.com/css/css3_images.asp */
/* posicionamiento de imágenes https://www.w3schools.com/css/css_positioning.asp */



#img1 {
  width: 145%;
  height: auto;
  border-radius: 10px;
}

#img2 {
  width: 145%;
  height: auto;
  border-radius: 5px;
}

img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.familia {
  width: 30%;
  height: 40%;
  border-radius: 50%;
  margin-left: 33%;
  margin-right: 33%;
}

.iresponsive {
  padding: 0 6px;
  width: 70%;
  margin: 0 auto;
}

.iresponsive1 {
  padding: 0 6px;
  width: 70%;
}

.contenedor {
  display: flex;
  align-items: center;
  gap: 20px;

  border-radius: 5px;
  transition: transform 0.3s ease-in-out;
}

.contenedor:hover {
  transform: scale(1.1);
}

.foto1,
.foto2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 70px;
  transition: opacity 0.3s ease;

}

.foto2 {
  position: absolute;
  top: 1px;
  left: 1px;
  ;
  opacity: 0;
  width: 80px;


}

.solapar {
  position: relative;
  width: 70px;
  height: 70px;
  margin-left: 30px;
}

.solapar1 {
  margin: 0 auto;
  position: relative;
  width: 70px;
  height: 70px;
  margin-left: 5%;

}

.contenedor:hover .foto1 {
  opacity: 0;

}

.contenedor:hover .foto2 {
  opacity: 1;
}

.button {
  background-color: rgb(127, 214, 255);
  padding: 5px 10px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.4s ease-in-out;
}

.button1 {
  background-color: rgb(127, 182, 255);
  padding: 5px 10px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.4s ease-in-out;
}

button:hover {
  background-color: #357aa8;
}

.center {
  text-align: center;
}

/* Responsive layout - cuando el ancho de pantalla es menor a 600px, muestra las columnas apiladas. */
/* Así conseguimos que el contenido se vea bien en dispositvos móviles */

@media screen and (max-width: 855px) {
  .columna {
    width: 100%;


  }

  #c1 {
    background-color: #c46aa9b6;
    border-radius: 40px;
    margin: auto;

  }

  #c2 {
    background-color: #8a5887b9;
    border-radius: 40px;
    margin: auto;
    margin-top: 20px;
  }

  #c3 {
    background-color: rgba(196, 45, 201, 0.5);
    border-radius: 40px;
    margin: auto;

  }

  #c4 {
    background-color: rgba(196, 45, 201, 0.5);
    border-radius: 40px;
    margin-top: 20px;
    margin: auto;
  }

  #c5 {
    background-color: rgba(196, 45, 201, 0.5);
    border-radius: 40px;
    margin: auto;
    margin-top: 20px;
  }

  #c6 {
    background-color: rgba(196, 45, 201, 0.5);
    border-radius: 40px;
    margin: auto;
    margin-top: 20px;
  }

  iframe {
    width: 426px;
    height: 240px;
    border-radius: 5px;
    margin-left: 0px;
    max-width: 85%;
  }

  .solapar1 {
    position: relative;
    width: 70px;
    height: 70px;
    margin-left: 33%;
  }

  body {
    background-image: url('fondo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }

  .iresponsive {
    width: 100%;
    margin: 0 auto;
  }

  .iresponsive1 {
    width: 100%;
    margin: 0 auto;
    align-items: center;
  }

  #img2 {
    width: 100%;   
    height: auto;
    border-radius: 5px;
  }

}

/* Más sobre diseño web responsive https://www.w3schools.com/css/css_rwd_intro.asp */