/* =========================================================
   CERNUNNOS · precios.css
   Sección Planes / Precios
   ========================================================= */

.precios-section {
    background: #f4f7fb;
}

.precios-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.precios-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.precios-header p {
    color: #4a5568;
    max-width: 52ch;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 16px;
}

/* ── Grid de 3 columnas ───────────────────────────────── */
.precios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: center;
}

/* ── Tarjeta base ─────────────────────────────────────── */
.precio-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 36px 28px 32px;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.precio-card:hover {
    box-shadow: 0 10px 36px rgba(0, 31, 63, 0.10);
    transform: translateY(-5px);
}

/* ── Tarjeta destacada (Pro) ──────────────────────────── */
.precio-card--featured {
    border-color: var(--color-secondary);
    border-width: 2px;
    box-shadow: 0 8px 40px rgba(57, 255, 20, 0.14), 0 2px 12px rgba(0, 31, 63, 0.08);
    transform: scale(1.04);
    z-index: 1;
}

.precio-card--featured:hover {
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 16px 52px rgba(57, 255, 20, 0.20), 0 4px 18px rgba(0, 31, 63, 0.10);
}

/* ── Badge "Más popular" ──────────────────────────────── */
.precio-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secondary);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ── Nombre del plan ──────────────────────────────────── */
.precio-name {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    opacity: 0.5;
    margin-bottom: 14px;
}

/* ── Precio ───────────────────────────────────────────── */
.precio-amount {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.precio-amount sup {
    font-size: 0.42em;
    vertical-align: super;
    font-weight: 700;
}

.precio-period {
    font-size: 12px;
    color: #718096;
    margin-bottom: 24px;
}

/* ── Separador ────────────────────────────────────────── */
.precio-divider {
    border: none;
    border-top: 1px solid #e8edf4;
    margin: 0 0 22px;
}

/* ── Lista de características ─────────────────────────── */
.precio-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.precio-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #2d3748;
    line-height: 1.5;
}

.precio-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-secondary);
    filter: drop-shadow(0 0 4px rgba(57,255,20,0.4));
}

/* ── Botones CTA ──────────────────────────────────────── */
.precio-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px 20px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.precio-cta--outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.precio-cta--outline:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.precio-cta--featured {
    background: var(--color-secondary);
    color: var(--color-primary);
    border: 2px solid var(--color-secondary);
    box-shadow: 0 4px 18px rgba(57, 255, 20, 0.30);
}

.precio-cta--featured:hover {
    background: #2de610;
    box-shadow: 0 6px 24px rgba(57, 255, 20, 0.45);
}

.precio-cta--solid {
    background: var(--color-primary);
    color: #ffffff;
    border: 2px solid var(--color-primary);
}

.precio-cta--solid:hover {
    background: #002d5a;
}

/* ── Nota inferior ────────────────────────────────────── */
.precios-nota {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: 13px;
    color: #718096;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
    .precios-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .precio-card--featured {
        transform: none;
        order: -1;
    }

    .precio-card--featured:hover {
        transform: translateY(-5px);
    }
}
