*{
    padding: 0;
    margin: 0;
}

body {
     background-color: #003d4d;
    }
    main{
      background-color: #f9f9f9;
       font-family: Arial, sans-serif;
      line-height: 1.6;
      margin: 3rem auto 5rem auto;
      color: #333;
      width: 85%;
      border-radius: 20px;
    }
    .background-top{
        padding: 0rem;
        width: 85%;
        height: 300px;
        margin: auto;
        background: url("https://searchengineland.com/wp-content/seloads/2014/08/seo-idea-lightbulbs-ss-1920.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        position: absolute;
    }
    .image-top > img {
      width: 200px;
      height: 200px;
    }
    section{
        margin-bottom: 1.5rem;
        padding: 2rem;
        display: flex;
        justify-content: space-between;
        gap: 50px;
    }
    .primer-texto{
        position: relative;
        margin:10rem auto 4rem auto;
        width: 75%;
        background-color: rgb(4, 77, 99);
        border-radius: 10px;
        padding: 2rem;
        flex-flow: row nowrap;
        align-items: center;
        transition: all 0.5s ease-in-out;
        color: white;
    }
    .primer-texto:hover{
        transform: translate(0,-10px);
    }
    .botanica-espiritual{
        flex-flow: row-reverse nowrap;
    }
    .raices-indigenas{
        flex-flow: row nowrap;
    }
    .espiritualidad-energia{
        flex-flow: row-reverse nowrap;
    }

    h1.title{
        text-align: center;
        font-size: 2.5rem;
        padding-top: 2rem;
    }
    h1.subtitle{
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    h2 {
        font-size: 1.5rem;
      color: #0074e0;
    }
    a {
      color: #0e84b3f1;
      text-decoration: none;
    }
    a:hover {
      text-decoration: underline;
    }
    strong {
      font-weight: bold;
    }
    .images{
        display: flex;
        justify-content: center;
        flex-flow: row nowrap;
        gap: 5px;
        margin-top: 2rem;
    }
    .first-image{
        border: 3px solid rgb(1, 29, 65);
        width: 250px;
        height: 210px;
        border-radius: 20px;
    }
    .second-image{
        border: 3px solid rgb(24, 87, 158);
    }
    .third-image{
        border: 3px solid rgb(188, 199, 229);
    }
    .four-image{
        border: 3px solid rgba(21, 46, 66, 0.788);
    }
    .images > div > a> img:hover {
        transform: translate(0, 10px);
    }
    .image-wrapper {
    position: relative;
    display: inline-block;
    width: 250px;
    height: 210px;
    border-radius: 20px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.image-wrapper:hover img {
    transform: translate(0, -10px);
}

/* Capa blanca semitransparente */
.image-wrapper::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.4); /* Blanco suave y transparente */
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    
}

.image-wrapper:hover::after {
    opacity: 1;
    cursor: pointer;
    
}

.final > p{
    font-size: 1.5rem;
    font-weight: 600;
    width: 70%;
    margin: 2rem auto 2rem auto;
    text-align: center;
    margin-top: 2rem;
}
/* Laptop promedio (hasta 1024px) */
@media (max-width: 1024px) {
  main, .background-top {
    width: 95%;
  }

  section {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
  }

  .primer-texto {
    width: 90%;
  }

  .images {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Tablets (hasta 768px) */
@media (max-width: 768px) {
  h1.title {
    font-size: 2rem;
  }

  h1.subtitle {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .primer-texto {
    flex-direction: column;
    padding: 1.5rem;
  }

  .background-top {
    height: 200px;
    background-position: center;
  }

  .image-wrapper {
    width: 180px;
    height: 150px;
  }

  .first-image {
    width: 180px;
    height: 150px;
  }

  .final > p {
    font-size: 1.2rem;
    width: 85%;
  }
}

/* Celulares grandes (hasta 480px) */
@media (max-width: 480px) {
  main {
    margin: 2rem auto;
    width: 95%;
    border-radius: 10px;
  }

  section {
    padding: 1rem;
  }

  .background-top {
    height: 150px;
  }

  .primer-texto {
    width: 100%;
    padding: 1rem;
  }

  .image-wrapper {
    width: 100%;
    height: auto;
  }

  .first-image {
    width: 100%;
    height: auto;
  }

  .images {
    flex-direction: column;
    gap: 1rem;
  }

  .final > p {
    font-size: 1rem;
    width: 100%;
    padding: 0 1rem;
  }
}
