/* =============================================
   SECCIONES "QUÉ HACEMOS" + NEWSLETTER
   Layout del original mgenia.com
   ============================================= */

/* ─── About Block (texto + imagen lado a lado) ─── */
.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

.about-block:last-child {
    margin-bottom: 0;
}

.about-block.reverse {
    direction: rtl;
}

.about-block.reverse>* {
    direction: ltr;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.about-text p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 12px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-img {
    overflow: hidden;
    border-radius: 16px;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.about-img img:hover {
    transform: scale(1.03);
}

/* ─── Service Items Compact ─── */
.service-item-compact {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: default;
}

.service-item-compact:hover {
    transform: translateX(8px);
}

.service-item-compact:last-child {
    border-bottom: none;
}

.service-item-compact h5 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.service-item-compact p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── Newsletter Block ─── */
.newsletter-block {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-block h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.newsletter-block>p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.newsletter-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.newsletter-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input:focus {
    border-color: var(--teal);
}

.newsletter-form button {
    align-self: center;
    margin-top: 8px;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 768px) {
    .about-block {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-block.reverse {
        direction: ltr;
    }

    .about-text h3 {
        font-size: 24px;
    }
}