﻿/* ============================================================
   HERO.CSS — SG Informática
   ============================================================ */

.sg-hero {
    background: linear-gradient(160deg, #f4f6ff 0%, #eef0f8 60%, #f8f9fb 100%);
    padding: 72px 0 64px;
    overflow: hidden;
}

.sg-hero__container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* ── Badge + estrellas ── */
.sg-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e4f0;
    border-radius: 999px;
    padding: 6px 14px 6px 10px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(108,99,255,0.08);
}

.sg-hero__stars {
    color: #f59e0b;
    font-size: 0.85rem;
    letter-spacing: 1px;
    line-height: 1;
}

.sg-hero__badge-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #5a5a7a;
    white-space: nowrap;
}

/* ── Título ── */
.sg-hero__title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a2e;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
}

.sg-hero__title-accent {
    color: #6C63FF;
    position: relative;
    display: inline-block;
}

    /* línea decorativa bajo "soluciones" */
    .sg-hero__title-accent::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 3px;
        border-radius: 2px;
        background: linear-gradient(90deg, #6C63FF, #48CFE8);
    }

/* ── Descripción ── */
.sg-hero__desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a4a6a;
    margin: 0 0 28px;
    max-width: 480px;
}

/* ── Lista de features ── */
.sg-hero__features {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .sg-hero__features li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.92rem;
        color: #3a3a5a;
        font-weight: 500;
    }

.sg-hero__feat-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eeeeff;
    color: #6C63FF;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Botones ── */
.sg-hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sg-hero__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6C63FF, #8B5CF6);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(108,99,255,0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    white-space: nowrap;
}

    .sg-hero__btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(108,99,255,0.45);
        color: #fff;
    }

.sg-hero__btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: transparent;
    color: #6C63FF;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1.5px solid rgba(108,99,255,0.3);
    text-decoration: none;
    transition: background 0.22s ease, border-color 0.22s ease;
    white-space: nowrap;
}

    .sg-hero__btn-secondary:hover {
        background: rgba(108,99,255,0.06);
        border-color: rgba(108,99,255,0.5);
        color: #6C63FF;
    }

/* ── Visual / imagen ── */
.sg-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-hero__img-wrap {
    position: relative;
    width: 100%;
    max-width: 580px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 20px 50px rgba(108,99,255,0.12), 0 0 0 1px rgba(108,99,255,0.08);
    background: #ffffff;
}

.sg-hero__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ── Responsive: tablet (< 1024px) ── */
@media (max-width: 1023px) {
    .sg-hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    /* imagen primero en mobile */
    .sg-hero__visual {
        order: -1;
    }

    .sg-hero__badge {
        margin-left: auto;
        margin-right: auto;
    }

    .sg-hero__desc {
        margin-left: auto;
        margin-right: auto;
    }

    .sg-hero__features {
        align-items: center;
    }

        .sg-hero__features li {
            justify-content: center;
        }

    .sg-hero__actions {
        justify-content: center;
    }

    .sg-hero__img-wrap {
        max-width: 460px;
        margin: 0 auto;
    }
}

/* ── Mobile (< 576px) ── */
@media (max-width: 575px) {
    .sg-hero {
        padding: 48px 0 40px;
    }

    .sg-hero__container {
        padding: 0 20px;
        gap: 28px;
    }

    .sg-hero__title {
        font-size: 2rem;
    }

    .sg-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sg-hero__btn-primary,
    .sg-hero__btn-secondary {
        justify-content: center;
        width: 100%;
    }
}
