﻿/* ============================================================
   SERVICES.CSS — SG Informática
   ============================================================ */

.sv-section {
    background: #ffffff;
    padding: 80px 0 72px;
}

.sv-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Encabezado ── */
.sv-head {
    text-align: center;
    margin-bottom: 56px;
}

.sv-head__tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6C63FF;
    background: #f0effe;
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 16px;
}

.sv-head__title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    line-height: 1.2;
}

.sv-head__sub {
    font-size: 1.05rem;
    color: #5a5a7a;
    margin: 0;
}

/* ── Grid ── */
.sv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* ── Card base ── */
.sv-card {
    background: #ffffff;
    border: 1.5px solid #e8eaf0;
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

    .sv-card:hover {
        box-shadow: 0 12px 40px rgba(108,99,255,0.10);
        transform: translateY(-3px);
    }

/* ── Card destacada ── */
.sv-card--featured {
    border-color: #6C63FF;
    box-shadow: 0 8px 32px rgba(108,99,255,0.15);
}

    .sv-card--featured:hover {
        box-shadow: 0 16px 48px rgba(108,99,255,0.22);
    }

.sv-card__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6C63FF, #8B5CF6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(108,99,255,0.35);
}

/* ── Colores de acento por card ── */
.sv-card--blue .sv-card__icon {
    background: #e8f0ff;
    color: #3b6fd4;
}

.sv-card--violet .sv-card__icon {
    background: #f0effe;
    color: #6C63FF;
}

.sv-card--amber .sv-card__icon {
    background: #fff8e6;
    color: #d97706;
}

/* ── Header de la card ── */
.sv-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sv-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sv-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9090b0;
    margin-bottom: 3px;
}

.sv-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.25;
}

/* ── Descripción ── */
.sv-card__desc {
    font-size: 0.9rem;
    color: #5a5a7a;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f5;
}

/* ── Lista de features ── */
.sv-feat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .sv-feat-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

.sv-feat__icon {
    font-size: 1rem;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fb;
    border-radius: 8px;
    margin-top: 1px;
}

.sv-feat-list li > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sv-feat-list strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
}

.sv-feat-list span {
    font-size: 0.82rem;
    color: #6a6a8a;
    line-height: 1.5;
}

/* ── CTA ── */
.sv-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid currentColor;
    margin-top: auto;
    align-self: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.sv-card--blue .sv-card__cta {
    color: #3b6fd4;
}

.sv-card--violet .sv-card__cta {
    color: #6C63FF;
    background: #f0effe;
    border-color: #6C63FF;
}

.sv-card--amber .sv-card__cta {
    color: #d97706;
}

.sv-card__cta:hover {
    background: currentColor;
    color: #ffffff !important;
}

.sv-card--blue .sv-card__cta:hover {
    background: #3b6fd4;
}

.sv-card--violet .sv-card__cta:hover {
    background: #6C63FF;
}

.sv-card--amber .sv-card__cta:hover {
    background: #d97706;
}

/* ── Tablet (< 1024px): 2 columnas, Restó/Bar abajo completo ── */
@media (max-width: 1023px) {
    .sv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sv-card:last-child {
        grid-column: 1 / -1;
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ── Mobile (< 640px): 1 columna ── */
@media (max-width: 639px) {
    .sv-section {
        padding: 56px 0 48px;
    }

    .sv-container {
        padding: 0 16px;
    }

    .sv-head {
        margin-bottom: 36px;
    }

    .sv-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sv-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .sv-card {
        padding: 22px 18px;
    }
}
