body {
    font-family: 'Times New Roman', Times, serif, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #553285;
    background-color: white;
}

header {

    background-color: white;
    color: #553285;
    padding: 1rem 0;
    text-align: center;
    position: relative;
}

header .logo {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: 130px; ;
}

header .logo .logoImg{
    max-height:100%; 
    max-width:100%;
    object-fit: contain;
}

header h1 {
    margin-top: 50px;
}

nav {
    display: flex;
    justify-content: center;
    background-color: #553285;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

.hero-section {
    position: relative;
    height: 100vh;
    background: url('edificio.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.hero-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-overlay p {
    font-size: 1.25rem;
    margin: 0;
}

@media (max-width: 768px) {
    .hero-overlay h2 {
        font-size: 2rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.section {
    margin: 2rem 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: white;
    background-color: #553285;
}

.section p{
    color: #553285
}
#about h4{
    color: #553285;
}
footer {
    background-color: #553285;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}
footer a{
    color: white;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background-color: #553285;
    color: white;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#contact p {
    color: #553285;
}



.contact-form button:hover {
    background-color: #756785;
    color: white;
}

/* Estilos para los cuadros en las secciones "Quiénes Somos" y "Servicios Legales" */
.about-boxes, .services-boxes {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.about-box, .service-box {
    background-color: #f4f4f4;
    padding: 1.5rem;
    border-radius: 5px;
    width: 48%;
}

.about-box h3, .service-box h3 {
    color: #553285;
    margin-bottom: 1rem;
}

/* Estilos para la sección "Misión y Visión" */
.mission-vision-boxes {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.mission-box, .vision-box {
    background-color: #f4f4f4;
    padding: 1.5rem;
    border-radius: 5px;
    width: 48%;
}

.mission-box h3, .vision-box h3 {
    color: #553285;
    margin-bottom: 1rem;
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 0.5rem 0;
    }

    .about-boxes, .services-boxes, .mission-vision-boxes {
        flex-direction: column;
    }

    .service-box, .mission-box, .vision-box {
        width: 100%;
    }

    .section h2 {
        font-size: 1.5rem;
    }
}
@media (max-width: 555px) {

    header .logo {
        max-width: 100px;
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
    }

    .contact-form button {
        padding: 0.8rem;
    }

    footer p {
        font-size: 0.8rem;
    }

}
@media (max-width: 438px) {

    header .logo {
        max-width: 80px;
    }
}
