/* ========== ESTILOS PREMIUM PARA PAQUETES ========== */

/* Package Cards Container */
.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

/* Package Card Base */
.package-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%);
    /* removed backdrop-filter */
    -webkit-/* removed backdrop-filter */
    border-radius: 20px;
    padding: 24px;
    border: 2px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.package-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.6s ease;
}

.package-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.3);
    border-color: currentColor;
}

.package-card:hover::before {
    top: -20%;
    right: -20%;
}

.package-card.highlighted {
    border-width: 3px;
    box-shadow: 0 8px 30px -5px rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

.package-card.highlighted::after {
    content: '⭐ Recomendado';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

.package-card.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(236,253,245,0.95) 0%, rgba(209,250,229,0.9) 100%);
}

.package-card.selected::after {
    content: '✓ Seleccionado';
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Package Badge */
.package-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Package Name */
.package-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

/* Package Price */
.package-price {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: price-glow 2s ease-in-out infinite;
}

@keyframes price-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Package Divider */
.package-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
    margin: 20px 0;
}

/* Package Items List */
.package-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.package-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    background: rgba(248,250,252,0.6);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.package-item:hover {
    background: rgba(239,246,255,0.8);
    transform: translateX(4px);
}

.package-item .material-symbols-outlined {
    font-size: 24px;
    color: #6366f1;
    flex-shrink: 0;
}

.item-name {
    font-weight: 700;
    color: #334155;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.item-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

/* Select Package Button */
.btn-select-package {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.btn-select-package::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-select-package:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn-select-package:hover::before {
    width: 300px;
    height: 300px;
}

.btn-select-package:active {
    transform: translateY(0);
}

/* Glassmorphism Enhancement */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    .package-card {
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* Skeleton Loader (for future use) */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .rec-grid {
        grid-template-columns: 1fr;
    }
    
    .package-card.highlighted {
        transform: scale(1);
    }
    
    .package-price {
        font-size: 1.8rem;
    }
}

.step-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.step-badge.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.18);
}

.ai-sales-steps .step-badge {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .step-badge {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

.premium-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: white;
}

.premium-input.compact {
    padding: 10px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.premium-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.lifestyle-grid-mini {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.ls-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.ls-option .material-symbols-outlined {
    font-size: 26px;
}

.ls-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -12px rgba(2, 6, 23, 0.35);
}

.ls-option.active {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.10));
    color: #4338ca;
    box-shadow: 0 10px 24px -14px rgba(99, 102, 241, 0.45);
}

.comparison-container {
    width: 100%;
    height: 250px;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
}

.split-view {
    display: flex;
    width: 100%;
    height: 100%;
}

.view-half {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
}

.view-half span {
    background: rgba(0, 0, 0, 0.64);
    color: white;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    /* removed backdrop-filter */
    -webkit-/* removed backdrop-filter */
}

.view-half.blur {
    background-image: url('https://images.unsplash.com/photo-1548504769-900b70ed122e?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
    filter: blur(4px);
}

.view-half.clear {
    background-image: url('https://images.unsplash.com/photo-1548504769-900b70ed122e?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
}

.ai-sales-section-title {
    color: #334155;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -0.015em;
}

.ai-sales-quickrow {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ai-sales-quickbtn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

.ai-sales-quickbtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -14px rgba(2, 6, 23, 0.35);
}

.ai-sales-quickbtn:active {
    transform: translateY(0);
}

.ai-sales-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.ai-sales-quickbtn--low {
    background: #e0f2fe;
    color: #075985;
    border-color: #bae6fd;
}

.ai-sales-dot--low {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.ai-sales-quickbtn--med {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.ai-sales-dot--med {
    background: #eab308;
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.18);
}

.ai-sales-quickbtn--high {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.ai-sales-dot--high {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.ai-sales-generate-btn {
    position: relative;
    overflow: hidden;
}

.ai-sales-generate-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.ai-sales-generate-btn:hover::before {
    transform: translateX(120%);
}

.ai-sales-generate-btn.is-loading {
    opacity: 0.85;
    pointer-events: none;
}

.ai-sales-generate-btn.is-loading::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.55);
    border-top-color: rgba(255,255,255,1);
    transform: translateY(-50%);
    animation: ai-spin 0.9s linear infinite;
}

@keyframes ai-spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.ai-sales-pitch {
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
    box-shadow: 0 8px 18px -16px rgba(2, 6, 23, 0.35);
    animation: ai-slide-in 0.25s ease-out;
}

@keyframes ai-slide-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
