* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {font-family: Arial, sans-serif;}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(60, 78, 114);
    color: white;
    padding: 15px 70px;
    position: relative;
    width: 100%;
}
.logo {
    font-size: 20px;
    color: white; /* Color del logo */
}
.nav {display: flex; /* Mostrar el menú siempre */}
.nav ul {
    display: flex;
    list-style: none;
    padding: 0;
}
.nav ul li {margin: 10px 15px;}
.nav ul li a {
    color: white; /* Color de los enlaces */
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
}
.menu-toggle {
    font-size: 24px;
    cursor: pointer;
    display: none; /* Ocultar el botón en pantallas grandes */
}

.blog-section {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}
h1{text-align: center;}
.main-image {
    width: 100%;
    height: 340px;
}
p{line-height: 1.6;}
.image-text-left, .image-text-right {
    display: flex;
    align-items: center;
    margin: 20px 0;
}
.image-text-left .text-content, .image-text-right .text-content {margin-left: 20px;}
.image-text-right {flex-direction: row-reverse;}
.side-image {
    width: 200px;
    height: auto;
    border-radius: 8px;
}
/* Acordeon Preguntas */
.accordion {
    width: 90%;
    max-width: 1000px;
    margin: 2rem auto;
}
.accordion-item {
    background-color: #fff;
    color: #111;
    margin: 1rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.25);
}
.accordion-item-header {
    padding: 0.5rem 3rem 0.5rem 1rem;
    min-height: 3.5rem;
    line-height: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}
.accordion-item-header::after {
    content: "\002B";
    font-size: 2rem;
    position: absolute;
    right: 1rem;
}
.accordion-item-header.active::after {content: "\2212";}
.accordion-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}
.accordion-item-body-content {
    padding: 1rem;
    line-height: 1.5rem;
    border-top: 1px solid;
    border-image: linear-gradient(to right, transparent, #34495e, transparent) 1;
}
/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 60px; /* Ajustar según la altura del header */
        left: 0;
        height: 100vh;
        width: 100%;
        background-color: #3e3e3e;

        padding: 20px;
        display: flex; /* Ocultar el menú por defecto */
        transform: translateX(-100%); /* Ocultar el menú fuera de la vista */
        transition: transform 0.3s ease;
    }
    .nav.active {
        display: flex; /* Mostrar el menú */
        transform: translateX(0); /* Mostrar el menú */
    }
    .menu-toggle {display: block; /* Mostrar el botón en pantallas pequeñas */}
    .nav ul{flex-direction: column;}

    .image-text-left, .image-text-right {
        flex-direction: column;
        align-items: flex-start;
    }
    .image-text-left .text-content, .image-text-right .text-content {
        margin-left: 0;
        margin-top: 10px;
    }
}