.color {
  background-color: var(--blue-color);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.general {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.item:nth-child(1) {
  grid-column: 1/1;
  grid-row: 1/1;
  overflow: hidden;
  padding: 40px 1rem;
}

.item:nth-child(1) h1 {
  color: white;
  text-align: center;
  font-size: 30px;
  margin-bottom: 20px;
}

.item:nth-child(1) p {
  color: white;
  margin-bottom: 20px;
}

/*estilos del boton conoce mas*/
.item:nth-child(1) button {
  font-size: 20px;
  text-align: center;
  font-weight: 700;
  padding: 10px 30px;
  background-color: transparent;
  border-radius: 10px;
  border: 1px var(--gold-color) solid;
  color: var(--gold-color);
  transition: all 0.2s linear;
  width: 100%;
  align-self: center;
  max-width: 400px;
}

.item:nth-child(1) button:hover {
  background-color: var(--gold-color);
  color: white;
}

.item:nth-child(2) {
  grid-column: 1/1;
  grid-row: 2/2;
  overflow: hidden;
  display: flex; /* Flexbox para centrar el contenido */
  justify-content: center; /* Centra la imagen horizontalmente */
  align-items: center; /* Centra la imagen verticalmente */
  width: 100%;
  aspect-ratio: 1/1;
}

.item:nth-child(2) img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
/*estilos de la versioj web*/
@media (min-width: 768px) {
  .general {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1280px;
    place-items: center;
  }

  .item:nth-child(1) {
    grid-column: 2/2;
    grid-row: 1/1;
    max-width: 100%;
    overflow: hidden;
    place-items: center;
  }

  .item:nth-child(1) h1 {
    color: white;
    text-align: center;
    font-family: "Inter", sans-serif;
    font-size: 50px;
    margin: 0;
    padding: 1rem 1rem;
  }

  .item:nth-child(1) p {
    color: white;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    text-align: left;
    padding: 1rem 1rem;
    margin: 0;
  }

  .item:nth-child(2) {
    grid-column: 1/1;
    grid-row: 1/1;
    margin: 0 auto;
    overflow: hidden;
  }

  .item:nth-child(2) img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }
}


.boton {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #00395b;
  color: white;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
.boton:hover {
  background-color: #005fa3;
}


/* Estilos del botón Conoce más adaptado para enlaces */
.item:nth-child(1) .boton {
  font-size: 20px;
  text-align: center;
  font-weight: 700;
  padding: 10px 30px;
  background-color: transparent;
  border-radius: 10px;
  border: 1px var(--gold-color) solid;
  color: var(--gold-color);
  transition: all 0.2s linear;
  width: 100%;
  align-self: center;
  max-width: 400px;
  display: inline-block;
  text-decoration: none;
}

.item:nth-child(1) .boton:hover {
  background-color: var(--gold-color);
  color: white;
}
