/* ============================================================
   orderFormEngine.css — SocialBoost Pro
   Estilos para el motor de formularios dinámicos de pedido
   ============================================================ */

/* ── Grupos y Etiquetas ──────────────────────────────────── */
.ofe-group { margin-bottom: 18px; }
.ofe-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: var(--dark, #0f172a);
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.4px;
}
.ofe-req { color: #ef4444; font-size: 14px; }
.ofe-price-tag {
    margin-left: auto; font-size: 11px; font-weight: 600;
    color: var(--primary, #6C47FF); background: #f5f3ff;
    padding: 2px 8px; border-radius: 12px;
}
.ofe-help {
    font-size: 11px; color: #64748b; margin-top: 5px;
    display: flex; align-items: center; gap: 4px;
}

/* ── Inputs ─────────────────────────────────────────────── */
.ofe-input-wrap { position: relative; }
.ofe-input-icon {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%); color: #94a3b8; font-size: 16px;
    pointer-events: none;
}
.ofe-input {
    width: 100%; padding: 11px 12px;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 10px; font-size: 14px; color: var(--dark, #0f172a);
    background: #f8fafc; outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.ofe-input-wrap .ofe-input { padding-left: 36px; }
.ofe-input:focus {
    border-color: var(--primary, #6C47FF);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108, 71, 255, .12);
}
.ofe-textarea { resize: vertical; min-height: 80px; }

/* ── Paquetes ─────────────────────────────────────────────── */
.ofe-pkg-group { display: flex; flex-wrap: wrap; gap: 8px; }
.ofe-pkg-btn {
    padding: 8px 16px;
    border: 2px solid var(--border, #e2e8f0);
    border-radius: 8px; background: #f8fafc;
    font-size: 14px; font-weight: 600; color: #475569;
    cursor: pointer; transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}
.ofe-pkg-btn.active {
    border-color: var(--primary, #6C47FF);
    color: var(--primary, #6C47FF);
    background: rgba(108, 71, 255, .08);
}
@media (hover: hover) {
    .ofe-pkg-btn:not(.active):hover {
        border-color: rgba(108, 71, 255, 0.5);
        color: var(--primary, #6C47FF);
        background: rgba(108, 71, 255, .03);
    }
}
.ofe-pkg-btn:active {
    transform: scale(0.96);
    opacity: 0.85;
}

/* ── Selector Visual (radio_toggle) ─────────────────────────── */
.ofe-radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.ofe-radio-btn {
    flex: 1; min-width: 110px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 14px;
    border: 2px solid var(--border, #e2e8f0);
    border-radius: 10px; cursor: pointer;
    font-size: 13px; font-weight: 600; color: #475569;
    transition: all .15s; user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.ofe-radio-btn input[type=radio] { display: none; }
.ofe-radio-btn.active {
    border-color: var(--primary, #6C47FF);
    color: var(--primary, #6C47FF);
    background: rgba(108, 71, 255, .08);
}
/* Feedback táctil al presionar */
.ofe-radio-btn:active {
    transform: scale(0.96);
    opacity: 0.85;
}

/* ── Fecha + Hora + Zona Horaria ─────────────────────────── */
.ofe-datetime-wrap { display: flex; flex-direction: column; gap: 8px; }
.ofe-datetime-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ofe-tz-wrap { position: relative; }
.ofe-tz-wrap > i {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%); color: #94a3b8; z-index: 1; pointer-events: none;
}
.ofe-tz-select { padding-left: 32px !important; }
.ofe-tz-note {
    font-size: 11px; color: #059669; margin-top: 5px;
    background: #ecfdf5; border: 1px solid #a7f3d0;
    border-radius: 6px; padding: 6px 10px;
    display: flex; align-items: center; gap: 5px;
}

/* ── Módulo Add-on ───────────────────────────────────────── */
.ofe-addon-box {
    border: 2px dashed var(--border, #e2e8f0);
    border-radius: 12px; padding: 16px;
    background: #fafbfc; transition: border-color .2s;
}
.ofe-addon-box:has(.ofe-addon-toggle:checked) {
    border-color: var(--primary, #6C47FF);
    background: rgba(108, 71, 255, .03);
}
.ofe-addon-header {
    display: flex; align-items: center;
    justify-content: space-between; cursor: pointer;
}
.ofe-addon-label {
    font-size: 14px; font-weight: 600; color: var(--dark, #0f172a);
    display: flex; align-items: center; gap: 8px;
}
.ofe-toggle-wrap {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #94a3b8;
}
.ofe-toggle-switch {
    display: inline-flex; align-items: center; cursor: pointer;
}
.ofe-toggle-switch input { display: none; }
.ofe-toggle-slider {
    width: 44px; height: 24px;
    background: #e2e8f0; border-radius: 12px;
    position: relative; transition: background .2s;
}
.ofe-toggle-slider::after {
    content: ''; position: absolute;
    left: 3px; top: 3px;
    width: 18px; height: 18px;
    background: #fff; border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.ofe-toggle-switch input:checked ~ .ofe-toggle-slider {
    background: var(--primary, #6C47FF);
}
.ofe-toggle-switch input:checked ~ .ofe-toggle-slider::after {
    transform: translateX(20px);
}
.ofe-addon-body {
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--border, #e2e8f0);
}
.ofe-addon-sub-fields { display: flex; flex-direction: column; gap: 12px; }

/* ── Resumen de precio con add-ons ──────────────────────── */
.ofe-price-summary {
    background: linear-gradient(135deg, rgba(108,71,255,.08), rgba(108,71,255,.04));
    border: 1.5px solid rgba(108,71,255,.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ofe-price-summary .ofe-ps-label {
    font-size: 12px; color: var(--primary, #6C47FF); font-weight: 600;
}
.ofe-price-summary .ofe-ps-note {
    font-size: 10px; color: #94a3b8; margin-top: 2px;
}
.ofe-price-summary .ofe-ps-val {
    font-size: 20px; font-weight: 800; color: var(--primary, #6C47FF);
}

/* ── Link Analyzer Widget ─────────────────────────── */
.analyzer-widget {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(108, 71, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    display: none;
    animation: fadeIn 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.analyzer-widget.active {
    display: flex;
    align-items: center;
    gap: 15px;
}
.analyzer-widget.error-state {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}
.analyzer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary, #6C47FF);
}
.analyzer-info {
    flex: 1;
}
.analyzer-username {
    font-weight: 700;
    color: var(--dark, #0f172a);
    margin-bottom: 2px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.analyzer-stats {
    font-size: 13px;
    color: #64748b;
}
.analyzer-projection {
    font-weight: 600;
    color: var(--primary, #6C47FF);
    margin-top: 4px;
    font-size: 14px;
}
.analyzer-badge {
    background: #10b981;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}
.analyzer-badge.error {
    background: #ef4444;
}
.analyzer-loading {
    display: none;
    font-size: 13px;
    color: var(--primary, #6C47FF);
    margin-top: 10px;
    font-weight: 500;
}
.analyzer-loading i {
    animation: spin 1s linear infinite;
    margin-right: 5px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

 / *    % %  i O S   S t y l e   P i c k e r   W h e e l    % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %  * / 
 . o f e - p i c k e r - w h e e l - w r a p   { 
         b a c k g r o u n d :   # f 8 f a f c ; 
         b o r d e r :   1 . 5 p x   s o l i d   v a r ( - - b o r d e r ,   # e 2 e 8 f 0 ) ; 
         b o r d e r - r a d i u s :   1 2 p x ; 
         p a d d i n g :   1 2 p x ; 
         m a r g i n - b o t t o m :   1 5 p x ; 
         b o x - s h a d o w :   i n s e t   0   2 p x   1 0 p x   r g b a ( 0 , 0 , 0 , 0 . 0 2 ) ; 
 } 
 . o f e - p i c k e r - c o l u m n s   { 
         d i s p l a y :   f l e x ; 
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
         g a p :   8 p x ; 
         h e i g h t :   1 4 0 p x ; 
         p o s i t i o n :   r e l a t i v e ; 
         o v e r f l o w :   h i d d e n ; 
 } 
 . o f e - p i c k e r - c o l u m n   { 
         f l e x :   1 ; 
         d i s p l a y :   f l e x ; 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         o v e r f l o w - y :   s c r o l l ; 
         s c r o l l - s n a p - t y p e :   y   m a n d a t o r y ; 
         s c r o l l b a r - w i d t h :   n o n e ;   / *   F i r e f o x   * / 
         - m s - o v e r f l o w - s t y l e :   n o n e ;   / *   I E   * / 
         p o s i t i o n :   r e l a t i v e ; 
         p a d d i n g :   5 5 p x   0 ;   / *   C r e a t e s   s p a c e   f o r   s c r o l l i n g   t o   t h e   t o p / b o t t o m   e l e m e n t   * / 
 } 
 . o f e - p i c k e r - c o l u m n : : - w e b k i t - s c r o l l b a r   {   d i s p l a y :   n o n e ;   } 
 
 . o f e - p i c k e r - i t e m   { 
         h e i g h t :   3 5 p x ; 
         l i n e - h e i g h t :   3 5 p x ; 
         t e x t - a l i g n :   c e n t e r ; 
         s c r o l l - s n a p - a l i g n :   c e n t e r ; 
         f o n t - s i z e :   1 6 p x ; 
         f o n t - w e i g h t :   6 0 0 ; 
         c o l o r :   # 9 4 a 3 b 8 ; 
         t r a n s i t i o n :   a l l   0 . 2 s   c u b i c - b e z i e r ( 0 . 4 ,   0 ,   0 . 2 ,   1 ) ; 
         u s e r - s e l e c t :   n o n e ; 
         c u r s o r :   p o i n t e r ; 
 } 
 . o f e - p i c k e r - i t e m . a c t i v e   { 
         c o l o r :   v a r ( - - p r i m a r y ,   # 6 C 4 7 F F ) ; 
         f o n t - s i z e :   1 8 p x ; 
         f o n t - w e i g h t :   8 0 0 ; 
         t r a n s f o r m :   s c a l e ( 1 . 0 5 ) ; 
 } 
 / *   G l a s s m o r p h i s m   S e l e c t i o n   H i g h l i g h t   * / 
 . o f e - p i c k e r - h i g h l i g h t   { 
         p o s i t i o n :   a b s o l u t e ; 
         t o p :   5 0 % ; 
         l e f t :   1 0 p x ; 
         r i g h t :   1 0 p x ; 
         h e i g h t :   3 5 p x ; 
         m a r g i n - t o p :   - 1 7 p x ; 
         b a c k g r o u n d :   r g b a ( 1 0 8 ,   7 1 ,   2 5 5 ,   0 . 0 8 ) ; 
         b o r d e r - t o p :   1 p x   s o l i d   r g b a ( 1 0 8 ,   7 1 ,   2 5 5 ,   0 . 2 ) ; 
         b o r d e r - b o t t o m :   1 p x   s o l i d   r g b a ( 1 0 8 ,   7 1 ,   2 5 5 ,   0 . 2 ) ; 
         b o r d e r - r a d i u s :   6 p x ; 
         p o i n t e r - e v e n t s :   n o n e ; 
         z - i n d e x :   2 ; 
 } 
 / *   F a d i n g   e d g e s   * / 
 . o f e - p i c k e r - f a d e   { 
         p o s i t i o n :   a b s o l u t e ; 
         t o p :   0 ;   l e f t :   0 ;   r i g h t :   0 ;   b o t t o m :   0 ; 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( t o   b o t t o m ,   
                 r g b a ( 2 4 8 , 2 5 0 , 2 5 2 , 1 )   0 % ,   
                 r g b a ( 2 4 8 , 2 5 0 , 2 5 2 , 0 )   2 5 % ,   
                 r g b a ( 2 4 8 , 2 5 0 , 2 5 2 , 0 )   7 5 % ,   
                 r g b a ( 2 4 8 , 2 5 0 , 2 5 2 , 1 )   1 0 0 % ) ; 
         p o i n t e r - e v e n t s :   n o n e ; 
         z - i n d e x :   3 ; 
 } 
 . o f e - p i c k e r - c o l - t i t l e   { 
         t e x t - a l i g n :   c e n t e r ; 
         f o n t - s i z e :   1 1 p x ; 
         t e x t - t r a n s f o r m :   u p p e r c a s e ; 
         f o n t - w e i g h t :   7 0 0 ; 
         c o l o r :   # 6 4 7 4 8 b ; 
         m a r g i n - b o t t o m :   8 p x ; 
         l e t t e r - s p a c i n g :   0 . 5 p x ; 
 }  
 