body{
    background-color: transparent;
    margin: 0;
    padding: 0;
    border: 0;
}

.nunito-font-letter {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.encabezado{
    width: 100%;
    height: 70px;
    position: fixed; 
    background-color: transparent;
    /* Para poner div lado a lado  */
    display: flex; 
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    flex-wrap: wrap;
    align-items: center;
    top: 0;                /* Lo fija arriba */
    left: 0;
    z-index: 999; 
}

.encabezado.scrolled {
    background-color: #ffffff; /* Nuevo color cuando haces scroll */
    transition: background-color 0.3s ease;
}

#logo-encabezado{
    background-image: url(../img/logo/logo_pactum-removebg.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 30%;
    height: 70px;
}

#menu-encabezado{
    flex-grow: 1;
    text-align: right;
}

.menu-horizontal{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu-horizontal li{
    display: inline-block;
    margin: 0 10px;    
}

a{
    text-decoration: none;
    color: #008080;
    font-size: 1rem;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #008080;
    cursor: pointer;
}

.typewriter {
  border-right: 2px;
  overflow: hidden;
}



#inicio{
    width: 100%;
    height: 690px;
    display: flex; 
    align-items: flex-end;
    background-image: url(../img/bg-inicio.png);
    background-size: 60% 101%;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    background-position: top;
    z-index: 0;
    background-position-x: left;
    
}

/* Modal oculto por defecto */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6); /* Fondo semi-transparente */
}

/* Contenido del modal centrado */
.modal-contenido {
  background-color: #75c2c2;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 720px;
  position: relative;
}

/* Botón de cerrar */
.cerrar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #008080;
  cursor: pointer;
}

.part-left-inicio{
    width: 50%;
    height: -webkit-fill-available;
    text-align: left;
    align-content: center;
    padding: 100px;
}

.part-right-inicio{
    width: 30%;
    height: -webkit-fill-available;
    align-content: space-evenly;
}

h1{
    font-size:xx-large;
}

.inicio-text{
    width: 50%;
}

#servicios{
    position: relative;
    z-index: 3;
    width: 100%;
    height: 190px;
    padding-top: 30px;
    background-image: url(../img/servicio-bg.png);
    background-size:contain;
    background-repeat: no-repeat;
    top: 630px;
}

.titulo-servicios{
    color: #008080;
}

.text-servicios{
    text-align: -webkit-center;
}

.parrafo-servicios{
    width: 50%;
}

.cajas-servicios{
    width: 100%;
    display: flex; 
    align-items: flex-end;
    height: -webkit-fill-available;
    justify-content: space-around;
    gap: 20px;
}

.cajas-servicios-section{
    width: 22%;
    height: -webkit-fill-available;
    border:3px;
    text-align-last: center;
    border-top-right-radius: 60px;
    border-radius: 2% 30% 2% 2%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* sombra suave */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cajas-servicios-section:hover{
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* sombra más fuerte al pasar el mouse */
    transform: translateY(-5px); /* pequeño efecto de elevación */
}

.text-servicios-cajas{
    text-align-last: left;
    padding: 8%;
}

.text-servicios-cajas-ce{
    text-align-last: left;
    padding-left: 8%;
    padding-right: 8%;
}

.img-1{
    background-image: url(../img/iconos/bases-de-datos.png);
    background-size: 20% 30%;
    background-repeat: no-repeat;
    background-position-x: 4%;
    background-position-y: 2%;
} 

.img-2{
    background-image: url(../img/iconos/analitica.png);
    background-size: 20% 30%;
    background-repeat: no-repeat;
    background-position-x: 4%;
    background-position-y: 2%;
} 

.img-3{
    background-image: url(../img/iconos/entrevista.png);
    background-size: 20% 30%;
    background-repeat: no-repeat;
    background-position-x: 4%;
    background-position-y: 2%;
} 

.img-4{
    background-image: url(../img/iconos/estructura-jerarquica.png);
    background-size: 20% 30%;
    background-repeat: no-repeat;
    background-position-x: 4%;
    background-position-y: 2%;
} 

.img-5{
    background-image: url(../img/iconos/capacitacion.png);
    background-size: 20% 30%;
    background-repeat: no-repeat;
    background-position-x: 4%;
    background-position-y: 2%;
} 

#nosotros{
    text-align-last: center;
    display: flex; 
    align-items: flex-end;
    position: relative;
    
}

.titulo-nosotros{
    color: #008080;
}

.section-left-nosotros{
    width: 50%;
    justify-content: space-around;
}

.section-left-nosotros-abajo{
    display: flex; 
    align-items: center;
    text-align: -webkit-center;
    width: -webkit-fill-available;

}

.section-left-nosotros-cajas{
    justify-items: center;
    min-width: fit-content;
}

.text-nosotros-cajas{
    text-align-last: left;
    padding: 8%;
}

.cajas-left-nosotros{
    width: 50%;
    text-align-last: auto;
    border:3px;
    height: max-content;
    margin: 2%;
    border-radius: 10%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* sombra suave */
    transition: box-shadow 0.3s ease, transform 0.3s ease;

}

.cajas-left-nosotros:hover h3{
    color: #008080;
}

.parrafos-nosotros{
    width: 80%;
    text-align: left;
}

.section-right-nosotros{
    width: 50%;
}

#contacto{
    background-image: url(../img/footer-bg.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding-top: 12%;
    position: relative;
}
.titulo-footer{
    color: #008080;
}

.titulo-contact{
    color: white;
}

.contacto-cajas{
    margin: 5%;
}

.contacto-section{
    display: flex; 
    align-items: flex-end;
    width: 100%;
    justify-content: center;
    align-items: center;
    font-size-adjust: from-font;
}

.form {
    width: 340px;
    height: 350px;
    background: #dcf1f1;
    border-radius: 8px;
    box-shadow: 0 0 40px -10px #000;
    padding: 20px 30px;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
    position: relative;
}

.text-form:before{
    content: attr(type);
    display: block;
    margin: 28px 0 0;
    font-size: 14px;
    color: #5a5a5a;
}

.text-form{
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

.input-form{
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    background: none;
    outline: none;
    resize: none;
    border: 0;
    transition: all .3s;
    border-bottom: 2px solid #bebed2;
}

button {
    padding: 8px 12px;
    margin: 8px 0 0;
    border: 2px;
    border-radius: 20%;
    background: 0;
    color: #5a5a6e;
    cursor: pointer;
    transition: all .3s;
}
.info-contact{
    width: initial;
    display: flex;
    flex-direction: column;
    align-items: center;  /* Centra el contenido horizontalmente */
    text-align: center;   /* Centra el texto dentro de cada <p> */
    gap: 15px;
    margin-top: 30px;
}

.iconos-contacto{
    width: 24px;
    vertical-align: middle;
    margin-right: 10px;

}

.text-copyright{
    text-align: center;
    margin-top: 2%;
}

.float-wa{
    position:fixed;
    width:60px;
    height:60px;
    bottom:40px;
    right:40px;
    background-color:#25d366;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    font-size:30px;
    z-index:100;
}

.modal-contenido-correo{
    background-color: #75c2c2;
    margin: 15% auto;
    padding: 30px;
    border-radius: 12px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.cerrar {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}

@media (max-width: 768px) {

    /* ENCABEZADO / MENÚ */
    .menu-toggle {
        display: block;
    }

    #menu-encabezado {
        width: 100%;
        text-align: center;
        display: none;
    }

    #menu-encabezado.active {
        display: block;
    }

    .menu-horizontal {
        display: block;
    }

    .menu-horizontal li {
        display: block;
        margin: 10px 0;
    }

    /* SECCIÓN INICIO */
    #inicio {
        flex-direction: row;
        height: auto;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: left;
        padding: 100px 0;
        align-items: center;
    }

    .part-left-inicio,
    .part-right-inicio {
        width: 90%;
        padding: 20px;
        text-align: center;
    }

    .inicio-text, .part-left-inicio h1, .part-left-inicio p {
        width: 100%;
        text-align: center;
        word-break: normal;
    }

    .part-left-inicio h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .part-left-inicio p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .part-right-inicio img {
        width: 100%;
        height: auto;
    }

    /* SERVICIOS */
    .cajas-servicios {
        flex-direction: column;
        align-items: center;
    }

    .cajas-servicios-section {
        width: 80%;
        margin: 10px 0;
    }

    .parrafo-servicios {
        width: 90%;
    }

    .decorativo {
        display: block;
        margin: 0 auto;
        max-width: 40px;
    }

    /* NOSOTROS */
    #nosotros {
        flex-direction: column;
        top: 550px;
    }

    .section-left-nosotros,
    .section-right-nosotros {
        width: 90%;
        padding: 10px 0;
    }

    .section-right-nosotros img {
        width: 100%;
        height: auto;
    }

    .section-left-nosotros-abajo {
        flex-direction: column;
    }

    .cajas-left-nosotros {
        width: 90%;
        margin: 10px auto;
    }

    /* CONTACTO */
    .contacto-section {
        flex-direction: column;
        align-items: center;
    }

    .info-contact {
        width: 90%;
        text-align: center;
        margin-top: 20px;
    }

    .form {
        width: 90%;
        margin: 20px auto;
    }

    .titulo-contact {
        width: 90% !important;
        text-align: center;
    }

    .iconos-contacto {
        width: 8%;
    }

    section {
        padding: 20px 0;
    }

    #contacto{
        top: inherit;
    }

    #contacto h1{
        color: black;
    }

    #nosotros,
    #contacto {
        padding-top: 270px;
    }

    #servicios{
        top: 550px;
    }
}
