/* Reseteo básico y tipografía */
:root {
    --primary-color: #00254A;
    --secondary-color: #006B9F;
    --text-color: #575757;
    --link-color: #337ab7;
    --bg-dark: #222;
    --white: #fff;
    --font-roboto: 'Roboto', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-roboto);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--link-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Encabezado y Navegación */
.header-v3 {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top,
.header-bottom,
.primary-menu > ul,
.header-top-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.header-top,
.header-bottom {
    padding: 1rem 0;
    max-width: 1140px;
    margin: 0 auto;
}

.header-top-info p {
    margin: 0 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.header-logo {
    text-align: center;
}

.page-category {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-weight: 500;
}

.primary-menu ul {
    list-style: none;
}

.primary-menu li {
    margin: 0 1rem;
}

.primary-menu a {
    color: var(--text-color);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Título de la página y migas de pan */
.page-header-v1 {
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
}

.page-header-v1 h1 {
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--white);
    font-size: 0.9rem;
}

.separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Sección principal */
.intro-3 {
    font-size: 1rem;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 500;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.margin {
    display: flex;
    flex-direction: column;
    max-width: 1140px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.s-12, .s-6, .s-5, .s-3 {
    flex-basis: 100%;
}

.post-1, .post-2, .post-3, .post-4, .post-6 {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.post-image {
    flex: 1;
}

.post-text, .post-text-2 {
    flex: 1;
    padding: 1.5rem;
}

.post-text h3, .post-text-2 h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.post-2.right-align, .post-4.right-align {
    flex-direction: column-reverse;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.card-content {
    padding-top: 1rem;
    text-align: center; 
}

/* Barra lateral */
aside {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #fafafa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

aside .aside-block {
    margin-bottom: 1.5rem;
}

aside h3 {
    color: var(--primary-color);
    margin-top: 1rem;
    font-weight: 400;
}

/* Pie de página */


/* Responsive Design */
@media (min-width: 768px) {
    .margin {
        flex-direction: row;
        gap: 2rem;
    }

    .s-12.m-7 {
        flex-basis: 66.666667%;
    }

    .s-12.m-5 {
        flex-basis: 33.333333%;
    }

    .post-1, .post-2, .post-3, .post-4, .post-6 {
        flex-direction: row;
        gap: 1.5rem;
    }

    .post-2.right-align, .post-4.right-align {
        flex-direction: row-reverse;
    }
}

@media (min-width: 992px) {
    .s-12.l-9 {
        flex-basis: 75%;
    }

    .s-12.l-3 {
        flex-basis: 25%;
    }

    .post-1, .post-2, .post-3, .post-4, .post-6 {
        flex-direction: row;
        align-items: center;
    }

    .post-image {
        flex-basis: 50%;
    }

    .post-text, .post-text-2 {
        flex-basis: 50%;
    }


}