@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap')
;

@import url('https://fonts.googleapis.com/css2?family=Croissant+One&display=swap');

body{
    font-family: "Poppins", sans-serif;
    background-image: url(../img/fondo-servicios-new.png);
    background-size: cover;
}

.title-service h1{
    font-size: 65px !important;
    margin: 0 auto;
}

.title-service{
    max-width: 800px;
    margin: 0 auto;
}

h2.wp-block-heading{
     font-size: 52px !important;
    margin: 40px auto;
       font-family: "Poppins", sans-serif;
    font-weight: 600;
    
}

/* Estilos independientes para cada palabra */
.title-service .word-style-1 {
    font-family: "Poppins", sans-serif;
     font-weight:normal;
}

.title-service .word-style-2 {
      font-family: "Croissant One", serif;
  font-weight:normal;
}

.title-service .word-style-3 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}

.flag-service{
    width: max-content;
    position: absolute;
    top: 130px;
    padding: 0 30px;
    color: #5151c4;
    letter-spacing: 2px;
    font-weight: 600;
}

.content-service{
    padding:130px 0;
    font-size: 18px;
    max-width: 1200px;
    margin: 0 auto;
}


.portafolio-grid .card {
    min-height: 450px;
    width: 100%;
    height: 55vh;
  }

  .my-custom-card {
    position: relative;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(129, 32, 61, 0.9); /* Color de fondo semi-transparente */
    opacity: 0; /* Ocultar por defecto */
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease; /* Transición suave de la opacidad */
    color: #fff;
    padding: 15px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.my-custom-card:hover .overlay-text {
    opacity: 1; /* Mostrar cuando se hace hover */
 
}

.card.my-custom-card .btn{
    background: #fff;
    font-size: 14px;
}

.row.portafolio-grid {
    margin: 0 0 30px 0;
  }

  .row.portafolio-grid .card-title{
    color: white;
  }

  .logo-grid {
    max-width: 150px;
  }

  #img-IMI-mobile{
    display: none;
}

  @media screen and (min-width: 1800px) {
    .banner-full{
      margin-top: 180px;
    }}
@media (max-width: 768px) {
    .content-service {
    padding: 130px 20px;
    font-size: 18px;
    max-width: 1200px;
    margin: 0 auto;
}
.flag-service{
    top: 100px;
}

.title-service h1{
    font-size: 33px!important;
}

.title-service {
    display: flex;
    align-items: center;
    justify-content: center;
}

h2.wp-block-heading {
    font-size:25px!important;
    
}


#img-IMI-mobile{
    display: block;
    margin-top: 30px;
}
 #img-IMI-desktop{
    display: none;
}
}