/* Purchase and Subscription Styles - Exapuni */
/* Styles for subscription plans, premium content, and purchase modals */

/* Premium Content Indicators */
.premium-content-indicator {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.premium-lock-overlay {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Full Access Container */
.full-access {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 20px;
    padding: 2.5rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.25);
    position: relative;
    overflow: hidden;
}

.full-access::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.premium-access-consolidated {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 20px;
    padding: 2.5rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.25);
    position: relative;
    overflow: hidden;
}

.premium-access-consolidated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.premium-access-container {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 20px;
    padding: 2.5rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.25);
    position: relative;
    overflow: hidden;
}

.premium-access-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Access Badges */
.access-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-badge-consolidated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Access Titles */
.access-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.premium-title-consolidated {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.premium-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.topic-name {
    color: #fbbf24;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-name {
    color: #fbbf24;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.access-subtitle-consolidated {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.premium-subtitle-consolidated {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.premium-subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

/* Blocked Content Preview */
.blocked-content-preview {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.blocked-content-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.blocked-content-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.blocked-content-item.more-content {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    font-weight: 600;
}

/* Subscription Options */
.purchase-options {
    margin: 2rem 0;
}

.purchase-options .row {
    align-items: stretch;
}

.subscription-options {
    margin: 2rem 0;
}

/* Subscription Cards */
.purchase-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    color: #333;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.purchase-card .plan-header {
    flex: 0 0 auto;
    margin-bottom: 1rem;
}

.purchase-card .plan-features {
    flex: 0 0 auto;
    margin-bottom: 1rem;
}

.purchase-card .custom-plans-list {
    flex: 1;
    margin-bottom: 1rem;
}

.purchase-card .btn-purchase,
.purchase-card .text-center {
    margin-top: auto;
}

.purchase-card .text-center.mt-auto {
    margin-top: auto !important;
    margin-bottom: 0;
}

.subscription-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    color: #333;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.purchase-card:hover,
.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.purchase-card.monthly-plan {
    position: relative;
    border: 2px solid #ffd700 !important;
}

.purchase-card.custom-plan {
    position: relative;
}

.custom-plan {
    position: relative;
    border: 2px solid #ffd700 !important;
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgb(255, 107, 107), rgb(255, 142, 83));
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #333;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

/* Plan Headers */
.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.plan-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* Plan Pricing */
.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
    margin: 1rem 0;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
}

.amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
}

.period {
    font-size: 1rem;
    color: #666;
}

/* Plan Features */
.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.plan-features .bi-check-circle-fill {
    color: #28a745;
    font-size: 1rem;
}

/* Subscribe Buttons */
.btn-purchase {
    width: 100%;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-purchase.monthly {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
}

.btn-purchase.monthly:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.btn-purchase.custom {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
}

.btn-purchase.custom:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.btn-subscribe {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-purchase:hover,
.btn-subscribe:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Small Subscribe Buttons */
.btn-subscribe-small {
    background: #667eea;
    border: none;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-subscribe-small:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* Feature Preview */
.feature-preview-consolidated {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.feature-preview {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.feature-item {
    margin-bottom: 1rem;
}

.feature-icon {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Guarantee Notice */
.guarantee-notice {
    opacity: 0.8;
}

/* Unlock Modal Styles moved from aprender.css */
.subscription-options-unlock {
    margin: 1.5rem 0;
}

.subscription-card-unlock {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    color: #333;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.subscription-card-unlock:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.subscription-card-unlock.monthly-plan {
    position: relative;
    border: 2px solid #ffd700 !important;
}

.subscription-card-unlock.custom-plan {
    position: relative;
}

.popular-badge-unlock {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
}

.subscription-card-unlock .plan-header {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.subscription-card-unlock .plan-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.subscription-card-unlock .plan-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

.subscription-card-unlock .plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
    margin: 0.8rem 0;
}

.subscription-card-unlock .currency {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
}

.subscription-card-unlock .amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
}

.subscription-card-unlock .period {
    font-size: 0.9rem;
    color: #666;
}

.subscription-card-unlock .plan-features {
    margin-bottom: 1rem;
}

.subscription-card-unlock .plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subscription-card-unlock .plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.subscription-card-unlock .plan-features .bi-check-circle-fill {
    color: #28a745;
    font-size: 0.9rem;
}

.btn-subscribe-unlock {
    width: 100%;
    border: none;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-subscribe-unlock.monthly {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-subscribe-unlock.monthly:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    color: white;
}

.btn-subscribe-unlock.custom {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
}

.btn-subscribe-unlock.custom:hover {
    background: linear-gradient(135deg, #e8850a 0%, #e55a2b 100%);
    transform: translateY(-2px);
    color: white;
}

/* Custom Plans */
.custom-plans-list {
    margin-top: 1rem;
}

.custom-plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 1rem;
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.plan-duration {
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.plan-price-custom {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
    flex-shrink: 0;
}

.plan-price-custom .currency {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
}

.plan-price-custom .amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

/* Desktop specific styling */
@media (min-width: 769px) {
    .purchase-options .row {
        display: flex;
        align-items: stretch;
    }

    .purchase-card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .purchase-card .btn-purchase {
        margin-top: auto;
        align-self: stretch;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .full-access,
    .premium-access-consolidated {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .access-title,
    .premium-title-consolidated {
        font-size: 1.5rem;
    }
    
    /* Asegurar espacio para el badge en mobile */
    .purchase-options {
        margin-top: 2rem;
    }
    
    /* Badge coverage fix for mobile */
    .popular-badge {
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        color: #1f2937;
        padding: 0.4rem 1.2rem;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
        white-space: nowrap;
        z-index: 10;
        min-width: max-content;
    }
    
    /* Ajuste del header en mobile para el badge */
    .purchase-card .plan-header {
        margin-top: 0;
        margin-bottom: 1rem;
        padding-top: 0.75rem;
    }
    
    /* Features in column for mobile */
    .purchase-card .plan-features .row {
        flex-direction: column;
        gap: 0;
        margin: 0;
    }
    
    .purchase-card .plan-features .col-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .purchase-card .plan-features .bi-check-circle-fill {
        color: #28a745;
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    /* Price and duration fix for mobile */
    .custom-plan-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1rem;
    }
    
    .plan-info {
        display: flex;
        align-items: center;
        flex: 1;
    }

    .plan-duration {
        font-size: 0.9rem;
    }

    .custom-plan-item .btn-subscribe-small {
        width: 100%;
        margin-top: 0.5rem;
    }

    .plan-price-custom {
        flex-shrink: 0;
        display: flex;
        align-items: baseline;
        gap: 0.1rem;
    }

    .plan-price-custom .currency {
        font-size: 0.8rem;
    }

    .plan-price-custom .amount {
        font-size: 1.1rem;
    }

    /* Card adjustments for mobile */
    .purchase-card {
        margin-bottom: 1rem;
        padding: 1.2rem;
    }

    .blocked-content-item:hover {
        transform: none;
    }

    .content-item.locked-content:hover {
        transform: none;
    }
}