@media (min-width: 768px) {
    .logo img {
        margin-top: -50px;
        width: 250px;
    }

    .text {
        display: flex; 
        justify-content: center;   /* Centra horizontalmente */
        align-items: center; 
        margin-bottom: -870px;
    }

    .ullist {
        gap: 0px;
        list-style: none;
        margin-top: -70px; 
    }

    .text1 {
        font-size: 70px;
        white-space: nowrap; /* Evita saltos de línea */
    }

    .text1::after {
        content: ''; /* Limpia si hay algún salto implícito */
    }

    .text2 {
        text-align: center;
        font-size: 20px;
    }

    .button {
        padding: 18px 43px;        /* Tamaño del botón (ajusta según necesites) */
        font-size: 25px;           /* Tamaño del texto */
        border-radius: 20px;       /* Bordes redondeados */
        margin-bottom: 160px;
    }

    .aboutustittle {
        font-size: 40px;
    }


    .footerfondo {
        margin-top: 90px;
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        padding: 40px;
    }

    .contact {
        width: 100%; /* Asegura que "Contáctanos" tome todo el ancho disponible */
        margin-bottom: 0px;
        font-size: 40px;
        font-weight: bold;
    }

    .footerinfo {
        flex: 1;
        min-width: 300px;
    }

    .form {
        flex: 1;
        margin-top: 50px;
        min-width: 300px;
        max-width: 700px;
        margin-left: -100px;
        margin-right: 100px;
    }

    .textmedia {
        list-style: none;
        padding: 0;
    }

    .textmedia li {
        margin-bottom: 50px;
        font-size: 25px;
    }

    .footer {
        display: none;
    }




    .logopanels {
        grid-column: span 4; /* Ocupa todo el ancho */
        text-align: center;
        margin-top: -190px;
    }
    
    .imgpanels img {
        width: 140px;
        margin-left: 75px;
        height: auto;
        margin-bottom: 30px;
    }
    
    .card {
        padding: 20px;
        border-radius: 10px;
        position: relative;
        display: flex;
        align-items: end;
        justify-content: space-between;
        font-weight: bold;
    }

    .panelcontainer {
        display: flex;
        justify-content: center;
    }

    .container {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 columnas */
        gap: 20px;
        padding: 40px;
        max-width: 100%;
        width: 80vw;
        height: auto;
        box-sizing: border-box;
    }
    
    .dark {
        background-color: #0f283d;
        color: #ffffff;
        margin-bottom: 0px;
    }
    
    .dark1 {
        background-color: #0f283d;
        color: #ffffff;
        margin-top: 0px;
    }
    
    .gold {
        background-color: #e0ac53;
        color: white;
        margin-bottom: 0px;
    
    }
    
    .light {
        background-color: #d9d9d9;
        color: #333333;
        margin-top: 00px;
        padding-top: 0px;
        margin-bottom: 0px;
    }
    
    .gray {
        background-color: #333333;
        color: #ffffff;
        margin-top: 0px;
        padding-top: 0px;
    }
    
    .black {
        background-image: url('img/estrategiasimg.png');  /* Ruta de la imagen */
        filter: grayscale(100%);
        color: white;
        background-size: cover;  /* Asegura que la imagen cubra toda la pantalla */
        background-position: center; /* Centra la imagen */
        background-repeat: no-repeat; /* Evita que la imagen se repita */
    }

    .plus {
        font-size: 40px;
        position: absolute;
        top: 10px;
        right: 25px;
    }

    .arrow {
        font-size: 35px;
        right: 20px;
    }

    /* Estilos del modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;

}

/* Contenedor del contenido del modal */
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
    font-family: 'Belleza';
    font-size: 20px;
}




    .formulario {
        max-width: 600px;
        margin: 0 auto;
        padding: 40px;
        box-sizing: border-box;
    }
    

    .aboutlist {
        list-style: none;
        padding: 0 10%;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .card.black {
        background-size: cover;
        background-position: center;
    }    

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }    

    .card {
        padding: 20px;
        border-radius: 10px;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        font-weight: bold;
        height: 200px;
        box-sizing: border-box;
    }



    .aboutlist {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 50px;
        padding: 0 10%;
        margin-top: 40px;
      }
      
      .aboutlist li {
        flex: 1;
        position: relative;
        overflow: hidden;
        height: 350px; /* Puedes ajustar esta altura */
        cursor: pointer;
      }
      
      .aboutlist li::before {
        content: '';
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        filter: brightness(0.6);
        transition: filter 0.5s ease;
        z-index: 1;
      }
      
      .despacholi::before {
        background-image: url('img/despachoimg.png');
      }
      
      .estrategiasli::before {
        background-image: url('img/estrategiasimg.png');
      }
      
      .compromisoli::before {
        background-image: url('img/compromisoimg.png');
      }
      
      .despacho,
      .estrategias,
      .compromiso {
        position: relative;
        z-index: 2;
        opacity: 0;
        padding: 20px;
        color: white;
        font-size: 1.5rem;
        text-align: justify;
        transition: opacity 0.5s ease;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -20px;
        background-image: none;
      }
      
      /* Mostrar texto y difuminar imagen al pasar el mouse */
      .aboutlist li:hover::before {
        filter: blur(4px) brightness(0.4);
      }
      
      .aboutlist li:hover .despacho,
      .aboutlist li:hover .estrategias,
      .aboutlist li:hover .compromiso {
        opacity: 1;
      }
}
