/* ==================== MAIN ====================*/
.content {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 20px;
  padding: 40px 230px;
}

/* ==================== TÍTULOS Y TEXTOS ====================*/

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 400;
  margin-bottom: 25px;
}

p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 340;
  margin-bottom: 20px;
  line-height: 1.6;
}

.important-text {
  font-weight: 500;
  color: #dcdcdc;
}

/* ==================== PRIMER BLOQUE ====================*/

.first-block {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.first-block img {
  width: 350px;
  height: 280px;
  border-radius: 5px;
  object-fit: cover;
}

.first-block-text {
  flex: 1;
  padding: 10px 10px 10px 40px;
  text-align: left;
}

/* ==================== SEGUNDO BLOQUE ====================*/

.second-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}


/* Línea gradiente al lado del título */
.gradient-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 500;
  margin: 40px 0;
  text-align: center;
}

.gradient-title::before,
.gradient-title::after {
  content: "";
  display: block;
  width: 130px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #007bff, #6a0dad);
}

.gradient-title::before {
  margin-left: 40px;
}

.gradient-title::after {
  margin-left: 40px;
}


/* ===================== TERCER BLOQUE ====================*/

.third-block {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.third-block-text {
  flex: 1;
  padding: 10px 40px 10px 10px;
  text-align: left;
}

.third-block img {
  width: 330px;
  height: 270px;
  border-radius: 5px;
  object-fit: cover;
}

/* ==================== CUARTO BLOQUE ====================*/

.fourth-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

/* ==================== BOTON "EMPIEZA AHORA" ====================*/

.info-button {
  display: inline-block;
  margin: 0 auto;
  padding: 15px 50px;
  font-size: 1.1rem;
  color: #fff;
  background-color: transparent;
  border-color: #007bff;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.info-button:hover {
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
  transform: scale(1.04);
}

/* ==================== MEDIA QUERIES ====================*/

/* Ajustes para pantallas pequeñas (Móviles) */
@media (max-width: 768px) {
  .content {
    padding: 20px;
    gap: 15px;
  }

  /* Bloques principales en columna */
  .first-block,
  .third-block {
    flex-direction: column;
    text-align: center;
  }

  /* Imágenes */
  .first-block img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 15px;
  }

  .third-block img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 25px 0 15px 0;
  }

  /* Textos */
  .first-block-text,
  .third-block-text {
    padding: 0;
    text-align: center;
  }

  .second-block,
  .fourth-block {
    text-align: center;
  }

  /* Ajustes línea gradiente */
  .gradient-title {
    flex-direction: column;
    ;
  }

  .gradient-title::before,
  .gradient-title::after {
    width: 60%;
    margin: 25px 0 20px 0;
  }

  /* Botón centrado más pequeño */
  .info-button {
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 15px;
  }
}

/* Ajustes para pantallas muy grandes (Escritorios) */
@media (min-width: 1920px) {
  .content {
    padding: 40px 350px;
  }

  /* Imágenes */
  .first-block img {
    width: 400px;
    height: 320px;
  }

  .third-block img {
    width: 380px;
    height: 300px;
  }

  /* Ajustes línea gradiente */
  .gradient-title::before,
  .gradient-title::after {
    margin: 35px;
  }
}