﻿/* ============================================
   Pro.css — Vista paywall TraduceHombres Pro
   Variables globales desde layout-index-theme.css
   ============================================ */

/* ─── Página ──────────────────────────────── */
.pro-page {
    padding: 40px 0 60px;
    position: relative;
    overflow: hidden;
    background: #fdf0f7;
}

/* ─── Blobs decorativos ───────────────────── */
.pro-bg-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--th-primary);
    top: -100px;
    right: -100px;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--th-purple);
    bottom: -80px;
    left: -80px;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -20px) scale(1.05);
    }
}

/* ─── Wrapper centrado ────────────────────── */
.pro-wrapper {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* ─── Badge ───────────────────────────────── */
.pro-badge {
    background: var(--th-gradient);
    color: white;
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    animation: fadeInDown 0.5s ease both;
}

/* ─── Header ──────────────────────────────── */
.pro-header {
    text-align: center;
    animation: fadeInUp 0.5s ease 0.1s both;
}

.pro-title {
    font-size: 2rem;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 12px;
}

.pro-title-highlight {
    background: var(--th-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pro-subtitle {
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

/* ─── Card ────────────────────────────────── */
.pro-card {
    width: 100%;
    background: white;
    border-radius: var(--th-radius-lg);
    padding: 32px;
    box-shadow: var(--th-shadow-lg);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease 0.2s both;
}

    .pro-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--th-gradient);
        transition: height 0.3s ease;
    }

    .pro-card:hover::before {
        height: 6px;
    }

/* ─── Card header ─────────────────────────── */
.pro-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pro-crown {
    font-size: 2rem;
}

.pro-plan-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
}

    .pro-plan-name span {
        background: var(--th-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

/* ─── Precio ──────────────────────────────── */
.pro-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 24px;
}

.pro-price-amount {
    font-size: 3rem;
    font-weight: 900;
    background: var(--th-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pro-price-period {
    font-size: 1rem;
    color: #999;
}

/* ─── Beneficios ──────────────────────────── */
.pro-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .pro-benefits li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

.benefit-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.pro-benefits strong {
    display: block;
    font-size: 0.95rem;
    color: #1a1a2e;
    font-weight: 700;
}

.pro-benefits span {
    font-size: 0.82rem;
    color: #999;
}

/* ─── Divider ─────────────────────────────── */
.pro-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 24px 0;
}

/* ─── Formulario Stripe ───────────────────── */
.pro-form {
    margin-bottom: 20px;
}

.pro-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-card-element {
    padding: 14px 16px;
    border: 1.5px solid #e8e8e8;
    border-radius: var(--th-radius-sm);
    background: #fafafa;
    transition: var(--th-transition);
}

    .pro-card-element:focus-within {
        border-color: var(--th-primary);
        background: white;
        box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.08);
    }

.pro-card-errors {
    margin-top: 8px;
    font-size: 0.82rem;
    color: #ef4444;
    min-height: 20px;
}

/* ─── Botón pago ──────────────────────────── */
.pro-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--th-gradient);
    color: white;
    border: none;
    border-radius: var(--th-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--th-transition);
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.35);
}

    .pro-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(233, 30, 140, 0.45);
        color: white;
        text-decoration: none;
    }

.pro-btn-icon {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.pro-btn:hover .pro-btn-icon {
    transform: translateX(4px);
}

/* ─── Loading ─────────────────────────────── */
.pro-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    color: #888;
    font-size: 0.9rem;
}

.pro-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f0f0f0;
    border-top-color: var(--th-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Nota cancelación ────────────────────── */
.pro-cancel-note {
    text-align: center;
    font-size: 0.78rem;
    color: #bbb;
    margin: 16px 0 0;
}

/* ─── Social proof ────────────────────────── */
.pro-social-proof {
    text-align: center;
    animation: fadeInUp 0.5s ease 0.4s both;
}

.pro-avatars {
    display: flex;
    justify-content: center;
    gap: -8px;
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.pro-social-proof p {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* ─── Animaciones ─────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 576px) {
    .pro-page {
        padding: 24px 0 40px;
    }

    .pro-card {
        padding: 24px 20px;
    }

    .pro-title {
        font-size: 1.6rem;
    }

    .pro-price-amount {
        font-size: 2.4rem;
    }
}
