﻿/* ============================================================
   PRICING.CSS — SG Informática
   ============================================================ */

.pr-section {
    background: #ffffff;
    padding: 80px 0 72px;
}

.pr-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Encabezado ── */
.pr-head {
    text-align: center;
    margin-bottom: 56px;
}

.pr-tag {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6C63FF;
    background: #f0effe;
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 14px;
}

.pr-head__title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    line-height: 1.2;
}

.pr-head__sub {
    font-size: 1rem;
    color: #5a5a7a;
    margin: 0;
}

/* ── Grid 3 cards ── */
.pr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 20px;
}

/* ── Card base ── */
.pr-card {
    background: #ffffff;
    border: 1.5px solid #e8eaf0;
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

    .pr-card:hover {
        box-shadow: 0 12px 40px rgba(108,99,255,0.10);
        transform: translateY(-3px);
    }

/* Línea de color en el tope de cada card */
.pr-card--slate {
    border-top: 3px solid #64748b;
}

.pr-card--violet {
    border-top: 3px solid #6C63FF;
}

.pr-card--amber {
    border-top: 3px solid #f59e0b;
}

/* ── Card destacada ── */
.pr-card--featured {
    border-color: #6C63FF;
    background: linear-gradient(180deg, #faf9ff 0%, #ffffff 100%);
    box-shadow: 0 8px 32px rgba(108,99,255,0.16);
}

    .pr-card--featured:hover {
        box-shadow: 0 16px 48px rgba(108,99,255,0.24);
    }

.pr-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6C63FF, #8B5CF6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 5px 16px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(108,99,255,0.35);
}

/* ── Header de card ── */
.pr-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pr-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pr-card__icon--slate {
    background: #f1f5f9;
    color: #475569;
}

.pr-card__icon--violet {
    background: #f0effe;
    color: #6C63FF;
}

.pr-card__icon--amber {
    background: #fff8e6;
    color: #d97706;
}

.pr-card__icon--sky {
    background: #e0f2fe;
    color: #0284c7;
}

.pr-card__icon--neutral {
    background: #f1f5f9;
    color: #64748b;
}

.pr-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9090b0;
    margin-bottom: 2px;
}

.pr-card__name {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
}

/* ── Precio ── */
.pr-card__price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 20px;
}

.pr-card__currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: #6C63FF;
    line-height: 1;
}

.pr-card__amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a2e;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* ── Divider ── */
.pr-card__divider {
    height: 1px;
    background: #f0f0f8;
    margin-bottom: 18px;
}

/* ── Lista features ── */
.pr-feat {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

    .pr-feat li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.88rem;
        color: #3a3a5a;
        font-weight: 500;
    }

        .pr-feat li span {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #f0effe;
            color: #6C63FF;
            font-size: 0.65rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

/* ── Botones ── */
.pr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pr-btn--solid {
    background: linear-gradient(135deg, #6C63FF, #8B5CF6);
    color: #fff;
    border: none;
    box-shadow: 0 6px 20px rgba(108,99,255,0.35);
}

    .pr-btn--solid:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(108,99,255,0.45);
        color: #fff;
    }

.pr-btn--outline {
    color: #6C63FF;
    border: 1.5px solid rgba(108,99,255,0.35);
    background: transparent;
}

    .pr-btn--outline:hover {
        background: #f0effe;
        border-color: #6C63FF;
        color: #6C63FF;
    }

.pr-btn--outline-amber {
    color: #d97706;
    border: 1.5px solid rgba(217,119,6,0.35);
    background: transparent;
}

    .pr-btn--outline-amber:hover {
        background: #fff8e6;
        border-color: #d97706;
        color: #d97706;
    }

.pr-btn--outline-sky {
    color: #0284c7;
    border: 1.5px solid rgba(2,132,199,0.35);
    background: transparent;
}

    .pr-btn--outline-sky:hover {
        background: #e0f2fe;
        border-color: #0284c7;
        color: #0284c7;
    }

/* ── Fila inferior: addons ── */
.pr-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.pr-addon {
    background: #f8f9fb;
    border: 1.5px solid #e8eaf0;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: box-shadow 0.2s ease;
}

    .pr-addon:hover {
        box-shadow: 0 8px 24px rgba(108,99,255,0.08);
    }

.pr-addon__left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.pr-addon__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9090b0;
    margin-bottom: 2px;
}

.pr-addon__name {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.pr-addon__desc {
    display: block;
    font-size: 0.78rem;
    color: #8a8aaa;
}

.pr-addon__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.pr-addon__price {
    font-size: 1.2rem;
    font-weight: 900;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

/* ── Nota al pie ── */
.pr-note {
    text-align: center;
    font-size: 0.88rem;
    color: #8a8aaa;
    margin: 0;
}

    .pr-note a {
        color: #6C63FF;
        font-weight: 600;
        text-decoration: none;
    }

        .pr-note a:hover {
            text-decoration: underline;
        }

/* ── Tablet (< 1024px) ── */
@media (max-width: 1023px) {
    .pr-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pr-card:last-child {
        grid-column: 1 / -1;
        max-width: 440px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ── Mobile (< 640px) ── */
@media (max-width: 639px) {
    .pr-section {
        padding: 56px 0 48px;
    }

    .pr-container {
        padding: 0 16px;
    }

    .pr-head {
        margin-bottom: 36px;
    }

    .pr-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pr-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .pr-row2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pr-addon {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .pr-addon__right {
        align-items: flex-start;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        width: 100%;
    }

    .pr-addon__price {
        font-size: 1.1rem;
    }

    .pr-card__amount {
        font-size: 1.9rem;
    }
}
