/* Estilos Específicos para Pricing Dark Mode */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: var(--font-main);
}

.pricing-container {
    width: 100%;
    max-width: 1000px;
    /* Ampliado para 2 tarjetas */
    padding: 2rem;
    text-align: center;
    margin: auto;
}

.pricing-header {
    margin-bottom: 2.5rem;
}

.pricing-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Contenedor de las dos tarjetas */
.pricing-cards-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    /* Para responsive */
}

/* Tarjeta Premium */
.plan-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    flex: 1;
    /* Para que ocupen el mismo ancho */
    min-width: 300px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
}

/* Plan Básico borde normal */
.plan-card:not(.highlighted-plan)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--text-muted);
}

/* Plan Avanzado Destacado */
.highlighted-plan {
    border: 1px solid rgba(59, 130, 246, 0.3);
    transform: scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(59, 130, 246, 0.4);
}

.highlighted-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.recommended-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--primary);
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Media Query Responsive */
@media (max-width: 768px) {
    .pricing-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .highlighted-plan {
        transform: scale(1);
    }
}

.plan-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--info);
    /* Cyan/Azul brillante para resaltar */
    line-height: 1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Lista de beneficios */
.plan-benefits {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.plan-benefits li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.plan-benefits li i {
    color: var(--success);
    /* Check verde */
    margin-top: 4px;
    /* Alinear con primera línea de texto */
    font-size: 1rem;
}

/* Botón de Pago */
.btn-pay {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.btn-pay:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Elementos de Confianza */
.trust-badges {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.secure-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.secure-text i {
    color: var(--success);
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0.6;
    /* Monocromático visual */
    filter: grayscale(100%);
    transition: opacity 0.3s;
}

.payment-logos:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.payment-logos i {
    font-size: 1.5rem;
    color: #fff;
}

#premium-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logout-link {
    margin-top: 2rem;
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dashed var(--text-muted);
    padding-bottom: 2px;
}

.logout-link:hover {
    color: var(--text-main);
    border-bottom-style: solid;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: white;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

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