/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ===========================
   BODY
=========================== */

body{
    font-family: Arial, sans-serif;
    background-color:#f5ede8;
    color:#333;
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

/* ===========================
   HEADER (IGUAL AL INDEX)
=========================== */

header{
    background-color:#2aa8a8;
    display:flex;
    align-items:center;
    gap:16px;
    padding:14px 28px;
}

header img{
    width:80px;
    height:80px;
    border-radius:50%;
    object-fit:cover;
}

header h1{
    color:white;
    font-size:1.8rem;
}

header p{
    color:white;
    font-style:italic;
    font-size:1rem;
}

/* ===========================
   NAV (IGUAL AL INDEX)
=========================== */

nav{
    background-color:white;
    border-bottom:3px solid #2aa8a8;
    display:flex;
    justify-content:center;
    gap:10px;
    padding:10px;
}

nav a{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
    text-decoration:none;
    color:#1a7a7a;
    font-weight:bold;
    font-size:.9rem;
    padding:8px 16px;
    border-radius:6px;
    transition:background .3s;
}

nav a img{
    width:32px;
    height:32px;
    object-fit:contain;
}

nav a:hover,
nav a.active{
    background-color:#2aa8a8;
    color:white;
}

/* ===========================
   BANNER
=========================== */

.banner{
    background-color:#2aa8a8;
    color:white;
    text-align:center;
    padding:44px 20px;
}

.banner h1{
    font-size:2rem;
    margin-bottom:8px;
}

.banner p{
    font-size:1rem;
    opacity:.85;
    font-style:italic;
}

/* ===========================
   CONTENEDOR
=========================== */

.nosotros-container{
    width:90%;
    max-width:1100px;
    margin:40px auto;
    flex:1;
}

/* ===========================
   TARJETAS
=========================== */

.tarjeta{
    background:white;
    padding:30px;
    border-radius:12px;
    box-shadow:0 4px 14px rgba(0,0,0,.09);
    margin-bottom:28px;
}

.tarjeta h2{
    color:#2aa8a8;
    margin-bottom:15px;
    border-bottom:2px solid #2aa8a8;
    padding-bottom:8px;
}

.tarjeta p{
    text-align:justify;
    line-height:1.8;
    color:#161616;
    font-size:18px;
}

/* ===========================
   VALORES
=========================== */

.valores{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-top:20px;
}

.valor{
    background:#f8fafa;
    border-left:6px solid #2aa8a8;
    padding:20px;
    border-radius:10px;
    transition:.3s;
}

.valor:hover{
    transform:translateY(-5px);
    box-shadow:0 5px 12px rgba(0,0,0,.12);
}

.valor h3{
    color:#1a7a7a;
    margin-bottom:10px;
}

.valor p{
    line-height:1.8;
    font-size:18px;
}

/* ===========================
   FOOTER (IGUAL AL INDEX)
=========================== */

footer{
    background-color:#2aa8a8;
    color:white;
    text-align:center;
    padding:18px;
    font-size:.88rem;
    margin-top:auto;
}

footer p{
    margin:0;
}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:768px){

    nav{
        flex-wrap:wrap;
    }

    .valores{
        grid-template-columns:1fr;
    }

    .banner h1{
        font-size:2rem;
    }

    .banner p{
        font-size:1rem;
    }

    header{
        flex-direction:column;
        text-align:center;
    }
}