section{
    position: relative;
    display: flexbox;
    justify-content: center;
    align-items: center;
    margin-top: 8.5rem;
    margin-bottom: 20px;
    overflow: hidden;
    color: white;
    font-size: 3rem;
    background-image: url(/Img/Television_fondo.png);
    background-repeat: no-repeat;
    background-size: cover;
    width:90%;
    height: 40rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 1.5rem;
}

.bienvenida{
    color: white;
    font-family: Mukta Vaani;
    text-align: center;
    margin-top: 10rem;
    font-size: 3rem;
    margin-bottom: 2rem;
    animation: entrada 1s ease-out;
}
.subtitulo{
    margin-left: 4rem;
    margin-right: 4rem;
    font-size: 1.3rem;
    text-align: left;
    line-height: 1.5;
    margin-bottom: 7rem;  
    animation: entrada 1s ease-out; 
}
h2{
    text-align: center;
    font-size: 3rem;
    margin-top: 8rem;
    font-weight: bold;
    font-family: Mukta Vaani;
    margin-bottom: 2rem;
}
.servicio{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    flex-grow: 1;
    width: 95%;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 3rem;
}

.card{
    background-image: url(/Img/Television_1.png);
    background-repeat: no-repeat;
    background-size: 300%;
    color: white;
    box-sizing: border-box;
    width: calc(33% - 2rem);    
    justify-content: center;
    text-align: center;
    margin: 0;
    background-color: rgb(75, 75, 75);
    border-radius: 1rem;
}
.card:hover{
    box-shadow: 1px 1px 5px 1px rgb(175, 172, 172);
    opacity: 1;

}
.card:nth-child(1) {
  background-position: left center;
}

.card:nth-child(2) {
  background-position: center center;
}

.card:nth-child(3) {
  background-position: right center;
}

.card h3{
  font-size: 1.5rem;
  margin-bottom: 1.7rem;
}

.card p{
    margin-left: 2rem;
    margin-right: 2rem;
    font-size: 1.3rem;
    text-align: left;
    line-height: 1.7;
    margin-bottom: 2rem;
}


@media screen and (max-width: 768px) {
    section {
      width: 95%;
      height: 30rem;      
      margin-top: 9rem;    
      border-radius: 1rem; 
      background-size: cover;
    }

    .bienvenida {
      font-size: 2rem;     
      margin-top: 6rem;
      margin-bottom: 1rem;
    }
    .subtitulo {
      margin-left: 1rem;
      margin-right: 1rem;
      font-size: 1rem;   
      margin-bottom: 3rem;
      text-align: center;
    }

    h2 {
      font-size: 2.5rem;
      margin-top: 4rem;
      margin-bottom: 1rem;
    }
      .servicio {
      flex-direction: column;
      gap: 10px;
      margin-left: 1rem;
      margin-right: 1rem;
      justify-content: center;
    }
    .card {
      width: 100%;        
      margin: 0 auto 1.2rem 0; 
      padding: 1rem;
      width: calc(100% - .5rem); /* Adjust width for smaller screens */
    }
  
    .card h3 {
      font-size: 1.3rem;
      margin-bottom: 1.5rem;
      text-align: center;
    }
  
    .card p {
      font-size: 1rem;
      margin: 0 1rem 1rem;
      text-align: left;
    }
  }