/* Plans section - same modern style as landing */
.plans-section {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 80px;
    padding: 0 20px;
    text-align: center;
}

.plans-section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: #373667;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.plans-section-subtitle {
    font-size: 18px;
    color: #4d6697;
    margin: 0 0 48px 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: stretch;
}

.plans-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    opacity: 0;
    transform: translateY(28px);
}

.plans-card-visible {
    animation: plans-card-in 0.6s ease forwards;
}

@keyframes plans-card-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plans-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(102, 126, 234, 0.12);
}

.plans-card-featured {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 247, 255, 0.98) 100%);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15), 0 0 0 1px rgba(102, 126, 234, 0.2);
}

.plans-card-featured:hover {
    box-shadow: 0 28px 64px rgba(102, 126, 234, 0.22), 0 0 0 1px rgba(102, 126, 234, 0.25);
}

.plans-card-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 120%;
    height: 80%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.plans-card-featured .plans-card-glow {
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.15) 0%, transparent 65%);
    opacity: 1;
}

.plans-card:hover .plans-card-glow {
    opacity: 1;
}

.plans-card-inner {
    position: relative;
    z-index: 1;
    padding: 32px 28px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100%;
}

.plans-card-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #667eea;
    background: rgba(102, 126, 234, 0.12);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.plans-badge-pro {
    color: #292866;
    background: rgba(41, 40, 102, 0.1);
}

.plans-card-name {
    font-size: 24px;
    font-weight: 700;
    color: #373667;
    margin: 0 0 16px 0;
    letter-spacing: -0.3px;
}

/* Precios – estilo moderno */
.plans-card-price {
    margin-bottom: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
}

.plans-price-amount {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    color: #373667;
    letter-spacing: -0.04em;
    line-height: 1;
}

.plans-price-currency {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: #373667;
    margin-left: 2px;
    vertical-align: super;
}

.plans-price-period {
    font-size: 15px;
    font-weight: 500;
    color: #4d6697;
    margin-left: 4px;
}

.plans-price-note {
    font-size: 12px;
    color: #7b7a9e;
    margin: 8px 0 0 0;
    font-weight: 500;
    line-height: 1.4;
}

/* Precio tachado (antes) */
.plans-card-price .plans-price-old {
    text-decoration: line-through;
    color: #999;
    font-size: clamp(18px, 2.2vw, 24px);
    margin: 0 0 0.35em 0;
}
.plans-card-price .plans-price-old .plans-price-amount,
.plans-card-price .plans-price-old .plans-price-currency,
.plans-card-price .plans-price-old .plans-price-period {
    color: #999;
    font-size: inherit;
}

/* Oferta: 0.00€ el primer mes – rojo y destacado */
.plans-card-price .plans-price-first-month {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #c41e3a;
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.25;
}
.plans-card-price .plans-price-first-month .amount {
    font-size: 1.15em;
    color: #c41e3a;
    font-weight: 800;
}

.plans-card-price-featured .plans-price-amount {
    background: linear-gradient(135deg, #373667 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plans-card-price-featured .plans-price-currency {
    background: linear-gradient(135deg, #373667 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plans-card-price-custom {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.plans-price-custom-label {
    display: block;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: #373667;
    letter-spacing: -0.02em;
}

.plans-card-desc {
    font-size: 15px;
    color: #4d6697;
    line-height: 1.55;
    margin: 0 0 24px 0;
    max-width: 84%;
}

.plans-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    text-align: left;
    width: 100%;
    flex: 1;
}

.plans-card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #373667;
    line-height: 1.5;
    margin-bottom: 12px;
    padding-left: 4px;
}

.plans-check {
    flex-shrink: 0;
    color: #667eea;
    font-weight: 700;
    font-size: 15px;
}

.plans-card-featured .plans-check {
    color: #292866;
}

.plans-card-cta-wrap {
    width: 100%;
    margin-top: auto;
}

.plans-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.plans-cta-primary {
    background: #292866;
    color: white;
    box-shadow: 0 8px 24px rgba(41, 40, 102, 0.25);
}

.plans-cta-primary:hover {
    background: #373667;
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(41, 40, 102, 0.35);
}

.plans-cta-secondary {
    background: transparent;
    color: #292866;
    border-color: #292866;
}

.plans-cta-secondary:hover {
    background: #292866;
    color: white;
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 968px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: min(520px, 100%);
        margin: 0 auto;
    }

    .plans-card-featured {
        order: -1;
    }

    .plans-section {
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .plans-section-title {
        font-size: 24px;
    }

    .plans-section-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .plans-card-inner {
        padding: 26px 20px 30px;
    }

    .plans-card-name {
        font-size: 22px;
    }

    .plans-card-desc {
        font-size: 14px;
    }
}
