/*
 * precios.css
 * Glassmorphism light — fit 100vh, no scroll.
 * Requiere variables.css cargado antes.
 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Variables locales ────────────────────────────────────────────── */
.pricing-page {
    --pc-card:         rgba(255, 255, 255, 0.52);
    --pc-card-border:  rgba(255, 255, 255, 0.72);
    --pc-card-shadow:  0 4px 24px rgba(41,58,112,0.07);
    --pc-feat-bg:      rgba(255, 255, 255, 0.82);
    --pc-feat-border:  rgba(255, 255, 255, 0.92);
    --pc-feat-shadow:  0 8px 40px rgba(69,96,186,0.16);
    --pc-text:         var(--sapphire-700);
    --pc-text-muted:   rgba(41,58,112,0.58);
    --pc-text-dim:     rgba(41,58,112,0.40);
}

/* ── Reset + base ─────────────────────────────────────────────────── */
.pricing-page {
    background: linear-gradient(135deg, #c8d4ee 0%, #e2e9f8 45%, #d4dcf0 100%);
    color: var(--pc-text);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ── Background blobs ─────────────────────────────────────────────── */
.pc-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.60;
}
.pc-blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(100,130,220,0.50) 0%, rgba(130,90,210,0.20) 45%, transparent 70%);
    top: -180px; left: -120px;
}
.pc-blob-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(80,150,230,0.38) 0%, rgba(160,100,200,0.18) 40%, transparent 70%);
    bottom: -120px; right: -120px;
}

/* ── Nav ──────────────────────────────────────────────────────────── */
.pc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 48px;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}
.pc-nav__logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}
.pc-nav__logo img {
    height: 30px;
    width: auto;
}
.pc-nav__logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sapphire-700);
    letter-spacing: -0.2px;
}
.pc-nav__links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.pc-nav__links a {
    color: var(--pc-text-muted);
    text-decoration: none;
    font-size: 0.87rem;
    font-weight: 500;
    transition: color 0.2s;
}
.pc-nav__links a:hover { color: var(--pc-text); }

.pc-nav__btn {
    background: rgba(255,255,255,0.65) !important;
    border: 1.5px solid rgba(69,96,186,0.22) !important;
    color: var(--pc-text) !important;
    padding: 7px 18px;
    border-radius: 9px;
    font-weight: 600 !important;
    font-size: 0.84rem !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.18s;
}
.pc-nav__btn:hover {
    border-color: var(--sapphire-500) !important;
    background: rgba(255,255,255,0.90) !important;
    color: var(--sapphire-500) !important;
}
.pc-nav__btn--accent {
    background: var(--sapphire-500) !important;
    border-color: var(--sapphire-500) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(69,96,186,0.30) !important;
}
.pc-nav__btn--accent:hover {
    background: var(--sapphire-700) !important;
    border-color: var(--sapphire-700) !important;
    color: #ffffff !important;
}
button.pc-nav__btn {
    cursor: pointer;
    font-family: inherit;
    line-height: normal;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.pc-hero {
    text-align: center;
    padding: 6px 20px 4px;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}
.pc-hero__title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 5px;
    line-height: 1.1;
    color: var(--pc-text);
}
.pc-hero__title .text-gradient {
    background: linear-gradient(135deg, var(--sapphire-500) 0%, var(--sapphire-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pc-hero__sub {
    font-size: 0.90rem;
    color: var(--pc-text-muted);
}

/* ── Period toggle ────────────────────────────────────────────────── */
.pc-toggle-wrap {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    margin-bottom: 14px;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}
.pc-period-toggle {
    display: inline-flex;
    background: rgba(255,255,255,0.48);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.68);
    border-radius: 40px;
    padding: 3px;
    gap: 2px;
}
.pc-period-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 7px 18px;
    border-radius: 36px;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--pc-text-muted);
    transition: all 0.2s;
    font-family: 'DM Sans', system-ui, sans-serif;
    white-space: nowrap;
}
.pc-period-btn.active {
    background: rgba(255,255,255,0.90);
    color: var(--pc-text);
    font-weight: 600;
    box-shadow: 0 1px 6px rgba(41,58,112,0.10);
}
.pc-badge-save {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 6px;
    margin-left: 5px;
    vertical-align: middle;
    letter-spacing: 0.03em;
}

/* ── Plans grid ───────────────────────────────────────────────────── */
.pc-plans-grid {
    display: grid;
    gap: 14px;
    padding: 0 48px 14px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
    flex: 1;
    min-height: 0;
    align-items: stretch;
}
.pc-plans-grid--2col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 860px;
}
.pc-plans-grid--4col {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1240px;
}

/* ── Card ─────────────────────────────────────────────────────────── */
.pc-card {
    background: var(--pc-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--pc-card-border);
    border-radius: 20px;
    padding: 22px 20px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--pc-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(41,58,112,0.12);
}
.pc-card--featured {
    background: var(--pc-feat-bg);
    border-color: var(--pc-feat-border);
    box-shadow: var(--pc-feat-shadow);
}
.pc-card--featured:hover {
    box-shadow: 0 14px 50px rgba(69,96,186,0.22);
}

/* ── Badge ────────────────────────────────────────────────────────── */
.pc-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sapphire-500);
    color: #ffffff;
    font-size: 0.63rem;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Plan name ────────────────────────────────────────────────────── */
.pc-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.pc-name--free     { color: #0284c7; }
.pc-name--premium  { color: var(--sapphire-500); }
.pc-name--gestor   { color: #0284c7; }
.pc-name--comercio { color: #0369a1; }
.pc-name--negocio  { color: var(--sapphire-500); }
.pc-name--empresa  { color: var(--sapphire-700); }

/* ── Plan desc ────────────────────────────────────────────────────── */
.pc-desc {
    font-size: 0.78rem;
    color: var(--pc-text-muted);
    line-height: 1.45;
    margin-bottom: 12px;
}

/* ── Precio ───────────────────────────────────────────────────────── */
.pc-pricing { margin-bottom: 12px; }
.pc-price {
    display: flex;
    align-items: flex-start;
    line-height: 1;
    margin-bottom: 2px;
}
.pc-price__currency {
    font-size: 1rem;
    font-weight: 500;
    color: var(--pc-text-muted);
    margin-top: 6px;
    margin-right: 2px;
}
.pc-price__amount {
    font-size: 2.6rem;
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    color: var(--pc-text);
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}
.pc-price__freq {
    font-size: 0.72rem;
    color: var(--pc-text-dim);
}
.pc-price__note {
    font-size: 0.70rem;
    color: var(--pc-text-dim);
    margin-top: 2px;
    font-style: italic;
}

/* ── Botones CTA ──────────────────────────────────────────────────── */
.pc-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.18s ease;
    margin-bottom: 14px;
}
.pc-btn--primary {
    background: var(--sapphire-500);
    color: #ffffff;
    box-shadow: 0 3px 14px rgba(69,96,186,0.32);
}
.pc-btn--primary:hover {
    background: var(--sapphire-700);
    box-shadow: 0 5px 22px rgba(69,96,186,0.42);
    transform: translateY(-1px);
    color: #ffffff;
}
.pc-btn--ghost {
    background: rgba(255,255,255,0.55);
    color: var(--pc-text);
    border: 1.5px solid rgba(69,96,186,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pc-btn--ghost:hover {
    background: rgba(255,255,255,0.85);
    border-color: rgba(69,96,186,0.32);
    color: var(--sapphire-700);
}

/* ── Features ─────────────────────────────────────────────────────── */
.pc-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0;
    padding: 0;
}
.pc-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.79rem;
    color: rgba(41,58,112,0.82);
    line-height: 1.35;
    padding: 7px 0;
    border-bottom: 1px solid rgba(41,58,112,0.07);
}
.pc-features li:last-child { border-bottom: none; }
.pc-features li.pc-feat--off { color: rgba(41,58,112,0.35); }
.pc-features li.pc-feat--inherit {
    color: rgba(41,58,112,0.50);
    font-style: italic;
    font-size: 0.75rem;
    border-bottom: 1px dashed rgba(41,58,112,0.12);
}
.pc-feat-icon { flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────────────────────── */
.pc-footer {
    text-align: center;
    padding: 8px 20px 12px;
    color: var(--pc-text-dim);
    font-size: 0.80rem;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}
.pc-footer a {
    color: var(--sapphire-500);
    text-decoration: none;
    font-weight: 500;
}
.pc-footer a:hover { text-decoration: underline; }
.pc-footer__sep { margin: 0 10px; opacity: 0.4; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .pc-plans-grid--4col {
        grid-template-columns: repeat(2, 1fr);
        max-width: 760px;
    }
    .pricing-page {
        height: auto;
        overflow-y: auto;
    }
}
@media (max-width: 720px) {
    .pricing-page { height: auto; overflow-y: auto; }
    .pc-nav { padding: 12px 20px; }
    .pc-plans-grid,
    .pc-plans-grid--2col,
    .pc-plans-grid--4col {
        grid-template-columns: 1fr;
        padding: 0 16px 16px;
        max-width: 440px;
        flex: none;
    }
    .pc-hero { padding: 14px 20px 8px; }
    .pc-hero__title { letter-spacing: -1px; }
    .pc-toggle-wrap { margin-bottom: 10px; }
}
@media (max-width: 480px) {
    .pc-nav__links a:not(.pc-nav__btn) { display: none; }
    .pc-period-btn { padding: 6px 12px; font-size: 0.78rem; }
    .pc-nav { padding: 10px 14px; }
    .pc-nav__links { gap: 8px; }
    .pc-nav__btn { padding: 6px 11px; font-size: 0.78rem !important; }
    .pc-nav__logo-text { font-size: 0.95rem; }
}
