/**
 * Promotions Section - Diseño Profesional
 * Academia Alexander Fleming
 */

/* ==========================================
   PROMOTIONS SECTION
   ========================================== */

.promotions-section {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.promotions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
    background-size: 50px 50px;
    opacity: 0.3;
}

.promotions-container {
    position: relative;
    z-index: 1;
}

/* Header */
.promotions-header {
    text-align: center;
    margin-bottom: 40px;
}

.promotions-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.promotions-badge span {
    font-size: 20px;
}

.promotions-badge p {
    margin: 0;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promotions-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
}

.promotions-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* ==========================================
   PROMOTIONS GRID
   ========================================== */

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.promotion-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
}

.promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.promotion-card.featured {
    border-color: #DC2626;
    background: rgba(255, 255, 255, 1);
    padding-top: 44px;
}

.promotion-card.featured::before {
    content: 'MÁS POPULAR';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    color: white;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    z-index: 10;
    border-radius: 13px 13px 0 0;
    text-transform: uppercase;
}

/* Card Header */
.promotion-header {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid #E5E7EB;
}

.promotion-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.promotion-name {
    font-size: 22px;
    font-weight: 800;
    color: #1F2937;
    margin-bottom: 6px;
}

.promotion-description {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

/* Price Display */
.promotion-price {
    text-align: center;
    margin: 16px 0;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promotion-price-amount {
    font-size: 42px;
    font-weight: 900;
    color: #1E3A8A;
    line-height: 1;
    margin-top: 6px;
}

.promotion-price-amount .currency {
    font-size: 22px;
    vertical-align: super;
}

.promotion-price-detail {
    font-size: 13px;
    color: #6B7280;
    margin-top: 6px;
    font-weight: 500;
}

.promotion-price-breakdown {
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 4px;
}

/* Benefits List */
.promotion-benefits {
    margin: 16px 0;
}

.promotion-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
}

.promotion-benefit::before {
    content: '✓';
    font-size: 14px;
    font-weight: 900;
    color: #10B981;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promotion-benefit strong {
    color: #1F2937;
}

/* Countdown Timer */
.promotion-countdown {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    border-radius: 10px;
    padding: 14px;
    margin: 14px 0;
    border: 3px solid #991B1B;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.promotion-countdown-label {
    font-size: 12px;
    font-weight: 800;
    color: #FEF2F2;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    text-align: center;
}

.promotion-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.countdown-unit {
    text-align: center;
}

.countdown-unit-number {
    font-size: 26px;
    font-weight: 900;
    color: #FFFFFF;
    display: block;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.countdown-unit-label {
    font-size: 11px;
    color: #FEF2F2;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
}

/* CTA Button */
.promotion-cta {
    margin-top: 16px;
}

.promotion-cta .btn {
    width: 100%;
    background: #1E3A8A;
    color: white;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.promotion-cta .btn:hover {
    background: #1E40AF;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 58, 138, 0.3);
}

.promotion-card.featured .promotion-cta .btn {
    background: #10B981;
}

.promotion-card.featured .promotion-cta .btn:hover {
    background: #059669;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

/* Important Note */
.promotions-note {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.promotions-note p {
    margin: 0;
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.promotions-note strong {
    color: #FDE68A;
    font-weight: 800;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .promotions-section {
        padding: 36px 0;
    }

    .promotions-title {
        font-size: 24px;
    }

    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .promotion-card {
        padding: 20px;
    }

    .promotion-name {
        font-size: 18px;
    }

    .promotion-price-amount {
        font-size: 36px;
    }

    .promotion-card.featured::before {
        font-size: 11px;
        padding: 7px 16px;
    }
}

@media (max-width: 480px) {
    .promotions-title {
        font-size: 20px;
    }

    .promotion-price-amount {
        font-size: 32px;
    }

    .countdown-unit-number {
        font-size: 18px;
    }
}


/* ==========================================
   ENHANCED PROMOTIONAL ELEMENTS
   High-conversion design patterns
   ========================================== */

/* Discount Badge - Top Corner */
.promo-discount-badge {
    position: absolute;
    top: 50px;
    right: -8px;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px 0 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    z-index: 5;
}

.promo-discount-badge::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    border-style: solid;
    border-width: 8px 8px 0 0;
    border-color: #7F1D1D transparent transparent transparent;
}

.discount-percent {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.discount-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Gift Badge */
.promo-gift-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    color: white;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 13px 13px 0 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.gift-icon {
    font-size: 18px;
}

.gift-text {
    font-size: 13px;
    text-transform: uppercase;
}

.promotion-card.promo-gift {
    border-color: #7C3AED;
    padding-top: 44px;
}

/* Tagline Styling */
.promotion-tagline {
    font-size: 14px;
    color: #10B981;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animated Icons */
.pulse-icon {
    animation: pulse 2s ease-in-out infinite;
}

.bounce-icon {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Price Comparison */
.price-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.price-was {
    font-size: 24px;
    font-weight: 700;
    color: #9CA3AF;
    text-decoration: line-through;
    text-decoration-color: #DC2626;
    text-decoration-thickness: 3px;
}

.price-arrow {
    font-size: 20px;
    color: #10B981;
    font-weight: 900;
}

.highlight-price {
    color: #10B981 !important;
}

/* Savings Pill */
.savings-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: #047857;
    padding: 8px 16px;
    border-radius: 50px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #10B981;
}

.savings-icon {
    font-size: 18px;
}

/* Highlighted Benefit */
.promotion-benefit.highlight-benefit {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    padding: 8px 12px;
    border-radius: 8px;
    margin: 0 -12px 4px;
    border-left: 4px solid #10B981;
}

/* Social Proof */
.promo-social-proof {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FEF3C7;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 12px 0;
    border: 2px solid #F59E0B;
}

.proof-icon {
    font-size: 20px;
}

.proof-text {
    font-size: 13px;
    font-weight: 600;
    color: #92400E;
}

/* Gift Highlight Box */
.gift-highlight {
    margin-top: 12px;
}

.gift-highlight-inner {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    animation: giftPulse 2s ease-in-out infinite;
}

@keyframes giftPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3); }
    50% { box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5); }
}

.gift-emoji {
    font-size: 22px;
}

.gift-main-text {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
}

.gift-sub-text {
    font-size: 12px;
    opacity: 0.9;
}

/* Stock Warning */
.stock-warning {
    background: #FEF2F2;
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
    border: 2px solid #FECACA;
}

.stock-bar {
    height: 6px;
    background: #FEE2E2;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.stock-bar-fill {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, #DC2626 0%, #EF4444 100%);
    border-radius: 4px;
    animation: stockPulse 1.5s ease-in-out infinite;
}

@keyframes stockPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stock-text {
    font-size: 13px;
    font-weight: 700;
    color: #991B1B;
    display: block;
    text-align: center;
}

/* Value Proposition */
.value-proposition {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    padding: 12px;
    border-radius: 10px;
    margin: 12px 0;
    border: 2px solid #86EFAC;
}

.value-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: #374151;
}

.value-item.gift-value {
    color: #7C3AED;
    font-weight: 600;
}

.value-label {
    font-weight: 500;
}

.value-amount {
    font-weight: 700;
}

.value-total {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    margin-top: 6px;
    border-top: 2px dashed #86EFAC;
    font-size: 15px;
    font-weight: 800;
    color: #047857;
}

.value-pay {
    text-align: center;
    margin-top: 8px;
    padding: 8px;
    background: #10B981;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

/* Animated CTA Buttons */
.btn-cta-animated {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    position: relative;
    overflow: hidden;
}

.btn-cta-animated::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.btn-gift-cta {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%) !important;
    position: relative;
    overflow: hidden;
}

.btn-gift-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 2s infinite;
}

.btn-gift-cta:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #4C1D95 100%) !important;
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.4);
}

/* Responsive Adjustments for New Elements */
@media (max-width: 768px) {
    .promo-discount-badge {
        top: 38px;
        padding: 5px 10px;
    }

    .discount-percent {
        font-size: 18px;
    }

    .price-was {
        font-size: 18px;
    }

    .savings-pill {
        font-size: 12px;
        padding: 6px 14px;
    }

    .gift-main-text {
        font-size: 16px;
    }

    .value-proposition {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .promo-discount-badge {
        top: 34px;
        right: -4px;
    }

    .discount-percent {
        font-size: 16px;
    }

    .price-comparison {
        flex-direction: column;
        gap: 4px;
    }

    .price-was {
        font-size: 16px;
    }

    .gift-highlight-inner {
        padding: 10px 14px;
    }

    .gift-main-text {
        font-size: 14px;
    }
}
