.granular-layout {
    width: 100%;
    font-family: sans-serif;
}

.granular-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 3rem auto 2rem;
    padding: 0 1rem;
}

.bloque {
    width: 100%;
    background: transparent;
    padding: 3rem 1rem;
}

.bloque.par {
    background: #e9efff;
    border-radius: 20px;
}

.bloque .inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.bloque .inner.reverse {
    flex-direction: row-reverse;
}

.bloque .imagen {
    flex: 1;
    min-width: 300px;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}
.bloque .contenido ul{
    text-align: left;
}
.bloque .contenido {
    flex: 1;
    min-width: 280px;
}

.bloque .contenido h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.bloque .contenido p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Enlaces inferiores */
.granular-links {
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 0 1rem;
}

.granular-links h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

.link-grid a {
    display: block;
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background 0.3s;
}

.link-grid a:hover {
    background: #dce6ff;
}

/* Responsive */
@media (max-width: 768px) {
    .bloque .inner,
    .bloque .inner.reverse {
        flex-direction: column !important;
    }

    .bloque .imagen {
        order: -1;
        width: 100%;
    }

    .bloque .contenido {
        text-align: center;
    }
}
