/* Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    z-index: 9999;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.14);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:root {
    --pricing-primary: #2563eb;
    --pricing-secondary: #1d4ed8;
    --pricing-accent: #00d4ff;
    --pricing-accent-deep: #0ea5e9;
    --pricing-ink: #0f172a;
    --pricing-ink-soft: #334155;
    --pricing-surface: #f4f8ff;
    --pricing-card: #ffffff;
    --pricing-border: rgba(37, 99, 235, 0.16);
    --pricing-shadow: 0 16px 42px rgba(15, 23, 42, 0.1);
    --pricing-shadow-hover: 0 24px 56px rgba(15, 23, 42, 0.16);
}

#main-content {
    background: radial-gradient(circle at 12% -10%, rgba(0, 212, 255, 0.08), transparent 42%),
        radial-gradient(circle at 95% 20%, rgba(37, 99, 235, 0.09), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, var(--pricing-surface) 100%);
}

.hero-pricing {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: clamp(96px, 14vw, 140px) 0 clamp(72px, 10vw, 108px);
    background-image: url("https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?auto=format&fit=crop&w=1920&h=1080&q=80");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.hero-pricing::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(122deg, rgba(8, 15, 31, 0.9) 0%, rgba(17, 34, 68, 0.84) 50%, rgba(13, 92, 136, 0.72) 100%);
    z-index: 1;
}

.hero-pricing::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 22% 15%, rgba(0, 212, 255, 0.2) 0%, transparent 46%),
        radial-gradient(circle at 84% 72%, rgba(59, 130, 246, 0.26) 0%, transparent 48%);
    z-index: 1;
}

.hero-pricing .container {
    position: relative;
    z-index: 2;
}

.hero-pricing h1 {
    font-size: clamp(2.3rem, 5.6vw, 4.1rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.1rem;
    text-wrap: balance;
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-pricing .lead {
    max-width: 650px;
    margin: 0;
    color: rgba(248, 250, 252, 0.9);
    font-size: clamp(1.04rem, 2vw, 1.27rem);
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.pricing-hero-icon {
    font-size: clamp(2.8rem, 6.2vw, 4.6rem);
    color: rgba(248, 250, 252, 0.72);
    filter: drop-shadow(0 8px 18px rgba(8, 15, 31, 0.42));
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.pricing-section {
    padding: clamp(62px, 8vw, 92px) 0;
}

.pricing-section h2 {
    color: var(--pricing-ink);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.pricing-section .lead {
    color: var(--pricing-ink-soft);
}

.pricing-info-card {
    position: relative;
    border-radius: 22px;
    padding: clamp(1.7rem, 3.5vw, 2.6rem);
    background: linear-gradient(134deg, #0f172a 0%, #1e3a8a 56%, #0f4d6a 100%);
    color: #e2e8f0;
    border: 1px solid rgba(0, 212, 255, 0.28);
    box-shadow: 0 26px 58px rgba(15, 23, 42, 0.22);
}

.pricing-info-card h3 {
    color: #f8fafc;
    margin-bottom: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.pricing-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 22px;
    border: 1px solid var(--pricing-border);
    background: linear-gradient(164deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.98) 100%);
    box-shadow: var(--pricing-shadow);
    padding: clamp(1.6rem, 3.2vw, 2.35rem);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.38s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card .btn-pricing {
    margin-top: auto;
}

.pricing-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.34) 24%, rgba(0, 212, 255, 0.78) 50%, rgba(37, 99, 235, 0.34) 76%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.pricing-card:hover {
    transform: translateY(-9px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--pricing-shadow-hover);
}

.pricing-card:hover::after {
    opacity: 1;
}

.pricing-card.recommended {
    border-color: rgba(0, 212, 255, 0.48);
    box-shadow: 0 24px 62px rgba(29, 78, 216, 0.24);
}

.pricing-card.recommended::before {
    content: "Mas elegido";
    position: absolute;
    top: 22px;
    right: -32px;
    width: 130px;
    padding: 0.38rem 0;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    color: #f8fafc;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.3);
}

.price-header {
    margin-bottom: 1.35rem;
    padding-bottom: 1.2rem;
    text-align: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.price-title {
    margin-bottom: 0.65rem;
    color: var(--pricing-ink);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.price-amount {
    display: inline-flex;
    align-items: baseline;
    gap: 0.12em;
    line-height: 1;
    font-size: clamp(2.35rem, 4.8vw, 3.35rem);
    font-weight: 800;
    color: var(--pricing-primary);
    letter-spacing: -0.03em;
}

.price-currency {
    font-size: 0.72em;
    color: var(--pricing-accent-deep);
    font-weight: 700;
}

.price-period {
    margin-top: 0.7rem;
    color: #64748b;
    font-size: 0.9rem;
}

.price-usd {
    display: inline-block;
    margin-top: 0.82rem;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.25);
    background: rgba(14, 165, 233, 0.08);
    color: #0f4d6a;
    font-size: 0.84rem;
    font-weight: 600;
}

.pricing-card p.text-muted {
    color: #475569 !important;
}

.features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.74rem;
    padding: 0.78rem 0;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.14);
    color: #1e293b;
    line-height: 1.4;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    margin-top: 0.15rem;
    color: var(--pricing-secondary);
}

.btn-pricing {
    width: 100%;
    margin-top: 1.7rem;
    padding: 0.82rem 1.2rem;
    border: 0;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #f8fafc;
    background: linear-gradient(135deg, var(--pricing-primary) 0%, var(--pricing-accent-deep) 100%);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.btn-pricing:hover {
    color: #f8fafc;
    filter: brightness(1.04);
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.32);
}

.comparison-table {
    border-radius: 20px;
    border: 1px solid var(--pricing-border);
    background: #ffffff;
    box-shadow: var(--pricing-shadow);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table table {
    min-width: 620px;
    margin: 0;
}

.comparison-table th {
    padding: 1rem 0.75rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #f8fafc;
    font-weight: 700;
    border: 0;
    text-align: center;
    white-space: nowrap;
}

.comparison-table td {
    padding: 1rem 0.75rem;
    border-color: rgba(15, 23, 42, 0.08);
    vertical-align: middle;
    text-align: center;
}

.comparison-table tbody tr:nth-child(even) {
    background: #f8fbff;
}

.comparison-table .feature-name {
    position: sticky;
    left: 0;
    z-index: 1;
    text-align: left;
    font-weight: 600;
    color: var(--pricing-ink);
    background: #eef4ff;
}

.comparison-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
}

.check-icon {
    color: #10b981;
}

.cross-icon {
    color: #ef4444;
}

.pricing-process {
    margin: clamp(2.4rem, 6vw, 4.2rem) 0;
    padding: 0;
    background: transparent;
}

.process-step {
    height: 100%;
    border-radius: 18px;
    border: 1px solid var(--pricing-border);
    background: #ffffff;
    box-shadow: var(--pricing-shadow);
    padding: 1.4rem 1rem 1.2rem;
    text-align: center;
    transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--pricing-shadow-hover);
}

.process-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.95rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    font-size: 1.52rem;
    background: linear-gradient(135deg, var(--pricing-primary) 0%, var(--pricing-accent-deep) 100%);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.process-step h5 {
    color: var(--pricing-ink);
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.process-step p {
    margin: 0;
    color: #475569;
}

.contact-cta-pricing {
    position: relative;
    overflow: hidden;
    margin-top: clamp(2.6rem, 6vw, 4.3rem);
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 28px;
    padding: clamp(1rem, 3vw, 1.4rem);
    background:
        radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.18) 0%, transparent 34%),
        radial-gradient(circle at 88% 72%, rgba(59, 130, 246, 0.24) 0%, transparent 38%),
        linear-gradient(135deg, #0b1220 0%, #12336b 52%, #0b7ea3 100%);
    color: #f8fafc;
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.24);
}

.contact-cta-pricing::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%, rgba(255, 255, 255, 0.05) 100%),
        radial-gradient(circle at 18% 24%, rgba(0, 212, 255, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 82% 78%, rgba(125, 211, 252, 0.18) 0%, transparent 45%);
    pointer-events: none;
}

.contact-cta-pricing::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.contact-cta-pricing .container {
    position: relative;
    z-index: 1;
}

.pricing-cta-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: clamp(2.4rem, 6vw, 4.2rem) clamp(1.3rem, 4vw, 3.6rem);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.pricing-cta-shell::before {
    content: "";
    position: absolute;
    inset: auto auto -60px -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 68%);
    pointer-events: none;
}

.contact-cta-pricing h2 {
    font-size: clamp(2rem, 4.8vw, 2.9rem);
    max-width: none;
    margin: 0 auto 0.8rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
    white-space: nowrap;
}

.contact-cta-pricing .lead {
    color: rgba(248, 250, 252, 0.9);
}

.pricing-cta-lead {
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(1.03rem, 2vw, 1.18rem);
    text-wrap: balance;
}

.pricing-cta-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin: 1.8rem auto 0;
    max-width: 860px;
}

.pricing-cta-point {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(8, 15, 31, 0.16);
    color: rgba(248, 250, 252, 0.94);
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
}

.pricing-cta-point i {
    color: #7dd3fc;
}

.pricing-cta-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 280px));
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pricing-cta-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-height: 84px;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    text-align: left;
    text-decoration: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

.pricing-cta-button:hover {
    transform: translateY(-4px);
}

.pricing-cta-button--whatsapp {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(145deg, rgba(232, 244, 255, 0.96) 0%, rgba(214, 234, 255, 0.92) 100%);
    color: #12336b;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
}

.pricing-cta-button--whatsapp:hover {
    color: #0f2a52;
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.26);
}

.pricing-cta-button--mail {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(15, 23, 42, 0.12) 100%);
    color: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.pricing-cta-button--mail:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.32);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(15, 23, 42, 0.16) 100%);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
}

.pricing-cta-button-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.28rem;
}

.pricing-cta-button--whatsapp .pricing-cta-button-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    color: #1d4ed8;
}

.pricing-cta-button--mail .pricing-cta-button-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #bfdbfe;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-cta-button-copy {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.pricing-cta-button-label {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pricing-cta-button-meta {
    font-size: 0.88rem;
    color: inherit;
    opacity: 0.76;
}

.pricing-cta-note {
    margin-top: 1.35rem;
    color: rgba(248, 250, 252, 0.72);
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .hero-pricing .lead {
        margin-bottom: 1.2rem;
    }

    .pricing-card.recommended::before {
        top: 20px;
        right: -34px;
        width: 128px;
    }

    .process-step {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-pricing {
        text-align: center;
        padding-top: 88px;
        padding-bottom: 70px;
    }

    .hero-pricing .lead {
        margin: 0 auto 0.75rem;
    }

    .pricing-card {
        padding: 1.55rem;
        border-radius: 18px;
    }

    .comparison-table {
        border-radius: 16px;
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem 0.6rem;
    }

    .comparison-table .feature-name {
        min-width: 160px;
    }

    .contact-cta-pricing {
        border-radius: 18px;
        padding: 0.8rem;
    }

    .pricing-cta-shell {
        border-radius: 18px;
        padding: 2rem 1rem;
    }

    .contact-cta-pricing h2 {
        white-space: normal;
    }

    .pricing-cta-points {
        gap: 0.7rem;
    }

    .pricing-cta-point {
        justify-content: center;
        width: 100%;
        border-radius: 16px;
    }

    .pricing-cta-actions {
        grid-template-columns: 1fr;
    }

    .pricing-cta-button {
        min-height: 78px;
    }

    .pricing-cta-button-label {
        font-size: 1.05rem;
    }
}
