/* ================================================================
   IMPULSOWEB — PREMIUM CAMPAIGN ORDER CONFIGURATOR
   Design System: UI/UX Pro Max · Frontend-Design
   Author: ImpulsoWeb Dev Team
   ================================================================ */

/* ── Container principal del configurador ── */
.iw-configurator-box {
    width: 100%;
    margin-top: 18px;
    padding: 18px 16px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(241, 245, 249, 0.96) 100%);
    border: 1.5px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .iw-configurator-box {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.45);
}

/* Decoración sutil de fondo */
.iw-configurator-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B 0%, #3B82F6 50%, #10B981 100%);
    opacity: 0.85;
}

/* ── Header con etiqueta ── */
.iw-cfg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 2px;
}

.iw-cfg-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #64748b);
}

.iw-cfg-label svg {
    color: #F59E0B;
}

.iw-cfg-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
    letter-spacing: 0.02em;
}

[data-theme="dark"] .iw-cfg-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}

/* ── Stepper táctil ( - [ 1.000 ] + ) ── */
.iw-stepper-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1.5px solid rgba(203, 213, 225, 0.85);
    border-radius: 14px;
    padding: 5px 6px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .iw-stepper-wrap {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.iw-stepper-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    border: none;
    background: rgba(241, 245, 249, 0.9);
    color: #0F172A;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    touch-action: manipulation;
}

.iw-stepper-btn:hover {
    background: #F59E0B;
    color: #0A0A0F;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.iw-stepper-btn:active {
    transform: scale(0.92);
}

[data-theme="dark"] .iw-stepper-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #F8FAFC;
}

[data-theme="dark"] .iw-stepper-btn:hover {
    background: #F59E0B;
    color: #0A0A0F;
}

.iw-stepper-val {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.iw-stepper-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    color: #0F172A;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .iw-stepper-number {
    color: #F8FAFC;
}

.iw-stepper-unit {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

[data-theme="dark"] .iw-stepper-unit {
    color: #94A3B8;
}

/* ── Chips Preset (1.000, 2.000, 5.000...) ── */
.iw-presets-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.iw-preset-chip {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 20px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    touch-action: manipulation;
}

.iw-preset-chip:hover {
    border-color: #F59E0B;
    color: #B45309;
    background: rgba(245, 158, 11, 0.08);
    transform: translateY(-1px);
}

.iw-preset-chip.active {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #0A0A0F;
    border-color: #D97706;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
    transform: scale(1.04);
}

[data-theme="dark"] .iw-preset-chip {
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    color: #94A3B8;
}

[data-theme="dark"] .iw-preset-chip:hover {
    border-color: #FBBF24;
    color: #FDE68A;
    background: rgba(245, 158, 11, 0.15);
}

[data-theme="dark"] .iw-preset-chip.active {
    color: #0A0A0F;
    border-color: #F59E0B;
}

/* ── Panel de Precio ── */
.iw-price-display-box {
    padding: 8px 12px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

[data-theme="dark"] .iw-price-display-box {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.25);
}

.iw-price-amount {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.55rem;
    font-weight: 900;
    color: #1E40AF;
    letter-spacing: -0.01em;
    line-height: 1.1;
    transition: transform 0.2s ease;
}

[data-theme="dark"] .iw-price-amount {
    color: #60A5FA;
}

.iw-price-subtext {
    font-size: 0.72rem;
    color: var(--text-muted, #64748B);
    font-weight: 500;
}

/* ── Botón CTA Activar Campaña (100% responsive, nunca se corta) ── */
.iw-cta-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: #0A0A0F !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    user-select: none !important;
}

.iw-cta-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.45) !important;
    background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%) !important;
}

.iw-cta-btn:active {
    transform: translateY(1px) scale(0.99) !important;
}

.iw-cta-text {
    font-weight: 800 !important;
    color: #0A0A0F !important;
    white-space: nowrap !important;
}

.iw-cta-tag {
    font-size: 0.73rem !important;
    font-weight: 700 !important;
    background: rgba(0, 0, 0, 0.16) !important;
    color: #0A0A0F !important;
    padding: 3px 9px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    white-space: nowrap !important;
}

.iw-cta-arrow {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    stroke: #0A0A0F !important;
    transition: transform 0.2s ease !important;
}

.iw-cta-btn:hover .iw-cta-arrow {
    transform: translateX(4px) !important;
}

/* ── Botón Compartir Cotización ── */
.iw-share-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    padding: 9px 14px !important;
    min-height: 40px !important;
    border-radius: 10px !important;
    border: 1.5px dashed rgba(148, 163, 184, 0.6) !important;
    background: transparent !important;
    color: #475569 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.01em !important;
    box-sizing: border-box !important;
    user-select: none !important;
}

.iw-share-btn:hover {
    border-color: #2563EB !important;
    color: #2563EB !important;
    background: rgba(37, 99, 235, 0.06) !important;
    transform: translateY(-1px) !important;
}

.iw-share-btn.copied {
    background: #10B981 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
    border-style: solid !important;
}

[data-theme="dark"] .iw-share-btn {
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #94A3B8 !important;
}

[data-theme="dark"] .iw-share-btn:hover {
    border-color: #60A5FA !important;
    color: #93C5FD !important;
    background: rgba(37, 99, 235, 0.15) !important;
}

/* ── Animación cuando la cotización se abre por URL compartida ── */
@keyframes iw-highlight-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); transform: scale(1); }
    50%  { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); transform: scale(1); }
}

.iw-box-highlighted {
    animation: iw-highlight-pulse 1.4s ease 2;
    border-color: #F59E0B !important;
}

/* Ocultar elementos obsoletos dentro del card para evitar duplicaciones */
.banner-card .pricing-action {
    display: none !important;
}
