/* Estilos generales */
.main-content {
    background-color: #f9f9f9;
}

.section-padded {
    max-width: 1800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Encabezado de la página */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Bloque de contenido principal (texto + imagen) */
.content-block {
    display: flex;
    align-items: center;
    gap: 3rem;
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.structure-block {
    flex-direction: row-reverse; 
}


.text-content {
    flex: 1;
}

.text-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.text-content h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.text-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    text-align: justify;
    margin-bottom: 1rem; 
}
.text-content p:last-child {
    margin-bottom: 0;
}

.image-content {
    flex: 1;
    text-align: center;
}

.image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.8rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Grid de componentes */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.component-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.component-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.component-card h4 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.component-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    .content-block {
        /* Fuerza la pila vertical en móvil (por defecto) */
        flex-direction: column; 
    }
    
    /* Asegura que el bloque invertido (structure-block) también se comporte como columna en móvil */
    .structure-block {
        flex-direction: column;
    }
}