* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f6fb;
    color: #333;
}

/* HEADER */
.header {
    height: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: white;

    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 50%;
}

.logo img {
    width: auto;
    height: 150px;
    object-fit: contain;
    background: transparent; 
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.logo h1 {
    color: #1f4e8c;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    
    white-space: nowrap;
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: #1f4e8c;
}

@media (max-width: 768px) {

    .header{
        padding: 15px 20px; /* menos espacio a los lados */
        display: flex;
        justify-content: space-between;
        align-items: center;
        
        flex-direction: column;
        height: auto;
        text-align: center;
    }

    .logo{
        justify-content: center;
        gap: 0px; /* logo pegado a la izquierda */
       
        width: 100%;
        margin-bottom: 0px;
    }

    .logo img{
        height: 100px; /* logo más pequeño en celular */
    }

    .logo h1{
        font-size: 16px;
        
        line-height: 1.2;
        max-width: 95%;
        white-space: normal;
        word-break: break-word;
    }


    nav{
        width: 100%;
        margin-top: -10px;
    }

    nav ul{
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;

        padding: 0;
    }

    nav a {
        font-size: 12px

    }

        
}

/* HERO */
.hero-nosotros {
    text-align: center;
    padding: 20px 20px;
    background: linear-gradient(135deg, #173a66, #1f4e8c, #3a6fb3);

    
}

.hero-nosotros h2 {
    font-size: 40px;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    color: white;
}

.hero-nosotros p {
    font-size: 18px;
    color: white;
}

@media (max-width:768px){

    .hero-nosotros{
        padding: 15px 15px;
    }

    /* h */
    .hero-nosotros h2{
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    /* Subtitulos */
    .hero-nosotros h3{
        font-size: 16px;
    }

    /* P */
    .hero-nosotros p{
        font-size: 12px;
        line-height: 1.6;
    }
}


/* CONTENIDO */
.nosotros-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    padding: 60px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 30px;
    width: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card p,
.card ul li{
    text-align: justify;
    line-height: 1.5;
    margin-bottom: 8px;
    text-justify: inter-word;
}

.card:hover {
    transform: translateY(-8px);
}

.card h3 {
    margin-bottom: 15px;
    color: #1f4e8c;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card ul li {
    margin-bottom: 10px;
}

@media(max-width:768px){

    /* CONTENEDOR */
    .nosotros-container{
        flex-wrap: wrap;
        gap: 20px;
        padding: 40px 15px;
        justify-content: center;
    }

    /* CARDS */
    .card{
        width: 100%;
        max-width: 320px;
        padding: 25px 20px;
    }

    /* h */
    .card h2{
        font-size: 26px;
    }

    /* Subtitulos */
    .card h3{
        font-size: 16px;
        margin-bottom: 12px;
    }

    /* P */
    .card p,
    .card ul li{
        font-size: 12px;
        line-height: 1.6;
    }
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #173a66, #1f4e8c, #3a6fb3);
    margin-top: 40px;
}

footer p{
    color: white;
}

/* RESPONSIVO */
@media (max-width: 768px){

    /* FOOTER */
    footer{
        padding: 25px 15px;
        margin-top: 30px;
        text-align: center;
    }

    /* h */
    footer h1,
    footer h2{
        font-size: 26px;
        line-height: 1.3;
    }

    /* Subtitulos */
    footer h3{
        font-size: 16px;
    }

    /* P */
    footer p{
        font-size: 12px;
        line-height: 1.6;
        color: white;
    }
}