@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap";.company-select{position:relative;margin-bottom:20px;transition:all .3s ease}.company-select-header{padding:0 20px}.company-select-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary);cursor:pointer;transition:all .3s ease;outline:none}.company-select-trigger:hover{background-color:var(--hover-bg);border-color:var(--accent-color)}.company-name{font-size:.9rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;text-align:left}.chevron{transition:transform .3s ease;color:var(--accent-color);flex-shrink:0;margin-left:8px}.chevron.open{transform:rotate(180deg)}.company-dropdown{position:absolute;top:100%;left:20px;right:20px;background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;box-shadow:0 4px 12px var(--shadow);z-index:1001;margin-top:4px;overflow:hidden}.company-list{max-height:200px;overflow-y:auto}.company-option{width:100%;padding:12px 16px;background:none;border:none;color:var(--text-primary);text-align:left;cursor:pointer;transition:all .3s ease;outline:none;border-bottom:1px solid var(--border-color)}.company-option:hover{background-color:var(--hover-bg);color:var(--accent-color)}.company-option.selected{background-color:var(--accent-color);color:var(--bg-primary)}.company-option:last-child{border-bottom:none}.loading-message,.no-companies-message{padding:24px 16px;text-align:center;color:var(--text-secondary);font-size:.9rem;font-weight:500;background-color:var(--bg-tertiary);border-radius:16px;margin:8px;display:flex;flex-direction:column;align-items:center;gap:12px;border:1px solid var(--border-color)}.loading-message{color:var(--accent-color)}.loading-message:before{content:"";width:20px;height:20px;border:2px solid var(--accent-color);border-top:2px solid transparent;border-radius:50%;animation:spin 1s linear infinite}.no-companies-message{color:#333!important;background-color:var(--bg-tertiary);border:1px dashed var(--border-color)}.no-companies-message div{color:#333!important}.no-companies-icon{color:#333!important;opacity:1!important}.add-company-section{border-top:1px solid var(--border-color);padding:12px}.add-company-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;background:none;border:1px dashed var(--accent-color);border-radius:16px;color:var(--accent-color);cursor:pointer;transition:all .3s ease;outline:none;font-size:.9rem}.add-company-btn:hover{background-color:var(--accent-color);color:var(--bg-primary)}.add-company-form{display:flex;flex-direction:column;gap:12px}.company-input{padding:10px 12px;background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary);font-size:.9rem;outline:none;transition:all .3s ease}.company-input:focus{border-color:var(--accent-color)}.company-input::placeholder{color:var(--text-secondary)}.form-actions{display:flex;gap:8px}.save-btn,.cancel-btn{flex:1;padding:8px 12px;border-radius:16px;font-size:.85rem;cursor:pointer;transition:all .3s ease;outline:none}.save-btn{background-color:var(--accent-color);color:var(--bg-primary);border:none}.save-btn:hover{opacity:.9}.cancel-btn{background:none;color:var(--text-secondary);border:1px solid var(--border-color)}.cancel-btn:hover{background-color:var(--hover-bg);color:var(--text-primary)}.company-select.closed .company-select-header{padding:0 10px;margin:0 8px}.company-select.closed .company-select-trigger{padding:15px;justify-content:center;width:auto;min-width:auto}.company-select.closed .company-name{display:none}.company-select.closed .chevron{margin-left:0}.company-select.closed .company-dropdown{left:10px;right:10px}.modal-trigger{justify-content:center!important;color:var(--text-primary)!important;position:relative;overflow:hidden}.modal-trigger:hover{background-color:var(--hover-bg)!important;color:var(--text-primary)!important}@property --angle{syntax: "<angle>"; initial-value: 0deg; inherits: false;}@property --opacity{syntax: "<number>"; initial-value: .8; inherits: false;}@keyframes rotate{to{--angle: 360deg}}@keyframes opacityChange{to{--opacity: 1}}.company-select.closed .company-select-header{position:relative;padding:3px!important;overflow:visible}.company-select.closed .modal-trigger{position:relative;--border-size: 2px;border:none;border-radius:16px;background-color:transparent!important;z-index:1;isolation:isolate;overflow:visible}.company-select.closed .modal-trigger:before{content:"";position:absolute;top:calc(-1 * var(--border-size));left:calc(-1 * var(--border-size));right:calc(-1 * var(--border-size));bottom:calc(-1 * var(--border-size));border-radius:calc(16px + var(--border-size));background:conic-gradient(from var(--angle, 0deg),#ffffff 0deg 90deg,#45A816 90deg 180deg,#ffffff 180deg 270deg,#45A816 270deg 360deg);z-index:0;opacity:0;transition:opacity .3s ease;animation:rotate 4s linear infinite,opacityChange 3s infinite alternate}.company-select.closed .modal-trigger:hover:before{opacity:var(--opacity, 1)}.company-select.closed .modal-trigger:after{content:"";position:absolute;top:var(--border-size);left:var(--border-size);right:var(--border-size);bottom:var(--border-size);border-radius:calc(16px - var(--border-size));background-color:var(--bg-tertiary);z-index:1}.company-select.closed .modal-trigger svg{position:relative;z-index:2}.company-modal-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px;animation:fadeIn .3s ease}.company-modal-overlay.closing{animation:fadeOut .3s ease}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.company-modal-content{background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;width:100%;max-width:400px;max-height:80vh;overflow-y:auto;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;animation:slideUpBounce .4s cubic-bezier(.34,1.56,.64,1)}.company-modal-content.closing{animation:slideDown .3s ease}@keyframes slideUpBounce{0%{opacity:0;transform:translateY(30px) scale(.95)}60%{transform:translateY(-10px) scale(1.02)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes slideDown{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(30px) scale(.95)}}.company-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--border-color)}.company-modal-header h3{color:var(--text-primary);font-size:1.25rem;font-weight:600;margin:0}.company-modal-close{background:none;border:none;color:var(--text-secondary);font-size:24px;cursor:pointer;padding:4px;border-radius:16px;transition:all .3s ease;display:flex;align-items:center;justify-content:center;width:32px;height:32px}.company-modal-close:hover{background-color:var(--hover-bg);color:var(--text-primary)}.company-modal-body{padding:24px}.company-modal-list{margin-bottom:20px}.company-modal-option{width:100%;padding:12px 16px;background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary);font-size:.9rem;font-weight:500;cursor:pointer;transition:all .3s ease;margin-bottom:8px;text-align:left}.company-modal-option:hover{background-color:var(--hover-bg);border-color:var(--accent-color);color:var(--accent-color)}.company-modal-option.selected{background-color:var(--accent-color);border-color:var(--accent-color);color:#fff}.company-modal-add-section{border-top:1px solid var(--border-color);padding-top:20px}.company-modal-add-btn{width:100%;padding:12px 16px;background-color:transparent;border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary);font-size:.9rem;font-weight:500;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:8px}.company-modal-add-btn:hover{background-color:var(--hover-bg);border-color:var(--accent-color);color:var(--accent-color)}.company-modal-add-form{display:flex;flex-direction:column;gap:12px}.company-modal-input{width:100%;padding:12px 16px;background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary);font-size:.9rem;outline:none;transition:all .3s ease}.company-modal-input:focus{border-color:var(--accent-color);box-shadow:0 0 0 3px #45a8161a}.company-modal-input::placeholder{color:var(--text-secondary)}.company-modal-form-actions{display:flex;gap:8px}.company-modal-save-btn{flex:1;padding:10px 16px;background-color:var(--accent-color);border:none;border-radius:16px;color:#fff;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .3s ease}.company-modal-save-btn:hover{opacity:.9;transform:translateY(-1px)}.company-modal-cancel-btn{flex:1;padding:10px 16px;background-color:transparent;border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary);font-size:.9rem;font-weight:500;cursor:pointer;transition:all .3s ease}.company-modal-cancel-btn:hover{background-color:var(--hover-bg);border-color:var(--accent-color);color:var(--accent-color)}.company-modal-list .no-companies-message{margin:0;background-color:var(--bg-tertiary);border:1px dashed var(--border-color);border-radius:16px;padding:32px 24px;color:#333!important}.company-modal-list .no-companies-message div{color:#333!important}@media (max-width: 768px){.company-modal-overlay{padding:10px}.company-modal-content{max-height:90vh}.company-modal-header{padding:16px 20px}.company-modal-body{padding:20px}.company-modal-option,.company-modal-add-btn{padding:10px 14px;font-size:.85rem}}.sidebar{position:fixed;top:0;left:0;height:100vh;background-color:#fff;border-right:1px solid var(--border-color);transition:width .3s ease,background-color .3s ease,border-color .3s ease;z-index:1000;overflow:hidden}.sidebar.open{width:250px}.sidebar.closed{width:70px}.sidebar-header{padding:0 20px;border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:center;transition:border-color .3s ease;height:60px}.company-section{padding:20px 0 0;border-bottom:1px solid var(--border-color);transition:border-color .3s ease}.logo-container{display:flex;align-items:center;justify-content:center;transition:all .3s ease}.logo-img{width:160px;height:60px;object-fit:contain;transition:all .3s ease}.sidebar.closed .logo-img{width:40px;height:40px}.sidebar-nav{padding:20px 0;height:calc(100vh - 140px);overflow-y:auto}.no-company-message{margin:15px 20px;padding:10px 15px;background-color:#fff!important;border:2px dashed #d1d5db!important;border-radius:16px;text-align:center;transition:all .3s ease;height:200px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}.no-company-message:hover{background-color:#f9fafb!important;border-color:var(--accent-color)!important;transform:translateY(-2px);box-shadow:0 4px 12px #45a81626}.no-company-message:hover .no-company-icon{color:var(--accent-color)!important;transform:scale(1.1)}.no-company-message:active{transform:translateY(0)}.no-company-icon{display:flex;align-items:center;justify-content:center;color:#333!important;margin-bottom:6px;opacity:1!important;transition:all .3s ease}.no-company-text p{color:#333!important;font-size:16px!important;margin:0;line-height:1.4}.no-company-subtext{font-size:14px!important;font-weight:400!important}.no-company-message .no-company-text p,.sidebar.open .no-company-message .no-company-text p{font-size:16px!important}.nav-list{list-style:none;margin:0;padding:0}.nav-item{margin:0 0 5px}.nav-separator{margin:16px 0;padding:0 20px}.separator-line{height:1px;background-color:var(--border-color);transition:background-color .3s ease}.nav-link{display:flex;align-items:center;padding:15px 20px;color:var(--text-primary);text-decoration:none;transition:all .3s ease;border-left:3px solid transparent;outline:none;margin:0 12px;border-radius:16px}.nav-link:hover{background-color:#0000000d;border-left-color:transparent;color:var(--text-primary);transform:translate(2px)}[data-theme=dark] .nav-link:hover{background-color:#ffffff0d}.nav-link:hover .nav-icon{color:var(--text-primary)}.nav-link.active{background-color:var(--hover-bg);border-left-color:transparent;color:#000}.nav-link.active .nav-icon{color:#000}.nav-icon{font-size:1.2rem;margin-right:15px;min-width:20px;text-align:center;display:flex;align-items:center;justify-content:center;color:var(--text-primary);transition:color .3s ease}.nav-text{font-size:.9rem;font-weight:500;white-space:nowrap;transition:color .3s ease}.sidebar.closed .nav-text{display:none}.sidebar.closed .nav-link{justify-content:center;padding:15px;margin:0 8px}.sidebar.closed .nav-icon{margin-right:0}.sidebar.closed .nav-separator{padding:0 10px}.sidebar.closed .no-company-message{margin:10px;padding:8px}.sidebar.closed .no-company-icon{margin-bottom:4px}.sidebar.closed .no-company-text p{font-size:16px!important}.sidebar.closed .no-company-subtext{font-size:14px!important;font-weight:400!important}@media (max-width: 768px){.sidebar{transform:translate(-100%)}.sidebar.open{transform:translate(0);width:250px}}.topbar{display:flex;justify-content:space-between;align-items:center;padding:0 20px;height:60px;background-color:#fff;border-bottom:1px solid var(--border-color);position:sticky;top:0;z-index:999;transition:background-color .3s ease,border-color .3s ease}.topbar-left{display:flex;align-items:center;gap:20px}.menu-toggle{background:none;border:none;cursor:pointer;padding:8px;border-radius:16px;transition:all .3s ease;color:var(--text-primary);display:flex;align-items:center;justify-content:center}.menu-toggle:hover{background-color:var(--hover-bg);color:var(--accent-color)}.topbar-right{display:flex;align-items:center;gap:20px}.user-dropdown{position:relative}.user-info{display:flex;align-items:center;gap:10px;background:none;border:none;cursor:pointer;padding:4px 8px;border-radius:16px;transition:all .3s ease}.user-info:hover{background-color:var(--hover-bg)}.user-name{color:var(--text-primary);font-size:.9rem;font-weight:500;transition:color .3s ease}.user-avatar{width:32px;height:32px;background-color:#6b7280;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem;transition:background-color .3s ease,color .3s ease}.user-info:hover .user-avatar{background-color:#9ca3af}.notification-btn{background:none;border:none;cursor:pointer;padding:8px;border-radius:16px;transition:all .3s ease;color:var(--text-primary);display:flex;align-items:center;justify-content:center}.notifications{position:relative}.notification-btn:hover{background-color:var(--hover-bg);color:var(--accent-color)}.user-dropdown-menu{position:absolute;top:calc(100% + 8px);right:0;background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;box-shadow:0 4px 12px var(--shadow);min-width:200px;z-index:1001;overflow:hidden}.user-dropdown-option{width:100%;display:flex;align-items:center;gap:12px;padding:12px 16px;background:none;border:none;color:var(--text-primary);text-align:left;cursor:pointer;transition:all .3s ease;outline:none;border-bottom:1px solid var(--border-color);font-size:.9rem}.user-dropdown-option:last-child{border-bottom:none}.user-dropdown-option:hover{background-color:var(--hover-bg);color:var(--accent-color)}.user-dropdown-option.logout-option:hover{background-color:#ef44441a;color:#ef4444}.user-dropdown-option svg{flex-shrink:0}.timbres-section{display:flex;align-items:center;gap:12px}.timbres-info{display:flex;align-items:center;gap:8px;background:linear-gradient(135deg,#667eea,#764ba2);padding:8px 12px;margin:0;border-radius:14px;box-shadow:0 4px 15px #667eea66;border:none;transition:all .3s ease;position:relative;overflow:hidden;cursor:pointer}.timbres-info:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.timbres-info:hover:before{left:100%}.timbres-info:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea99}.timbres-icon{display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:16px}.timbres-info .timbres-label{color:#fff!important;font-size:.65rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;line-height:1;text-shadow:0 1px 2px rgba(0,0,0,.3);opacity:1!important;margin-top:4px}.timbres-count{color:#fff;font-size:18px;font-weight:700;line-height:1;text-shadow:0 2px 4px rgba(0,0,0,.3)}.timbres-breakdown{display:flex;flex-direction:column;align-items:center;gap:2px}.total-timbres{font-size:18px;font-weight:700}.timbres-detail{font-size:12px;font-weight:500;opacity:.8;text-shadow:0 1px 2px rgba(0,0,0,.2)}.plan-info-badge{display:flex;align-items:center;gap:6px;background:transparent;padding:8px 12px;border-radius:14px;box-shadow:none;border:1px solid var(--border-color);transition:all .3s ease;cursor:pointer}.plan-info-badge:hover{transform:translateY(-2px);box-shadow:0 2px 8px #0000001a;border-color:var(--accent-color);background-color:#4b55630d}.company-count{color:#374151;font-size:16px;font-weight:700;text-shadow:none}.separator{color:#6b7280;font-size:16px;font-weight:400}.company-limit{color:#374151;font-size:16px;font-weight:700;text-shadow:none}.plan-label{color:#374151;font-size:.65rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-left:2px;text-shadow:none}.tipo-timbre-dropdown{position:relative;min-width:200px;margin-left:12px}.tipo-timbre-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background-color:#fff;border:1px solid var(--border-color);border-radius:16px;color:#333;cursor:pointer;transition:all .3s ease;outline:none;gap:8px}.tipo-timbre-trigger:hover{background-color:#fff;border-color:var(--accent-color)}.tipo-timbre-left{display:flex;align-items:center;gap:8px;flex:1}.add-timbre-btn-inline{width:20px;height:20px;background-color:var(--accent-color);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}.tipo-timbre-label{font-size:.85rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;color:#333}.tipo-timbre-label.placeholder{color:#9ca3af;font-weight:400}.tipo-timbre-chevron{transition:transform .3s ease;color:var(--accent-color);flex-shrink:0}.tipo-timbre-chevron.open{transform:rotate(180deg)}.tipo-timbre-options{position:absolute;top:calc(100% + 4px);left:0;right:0;background-color:#fff;border:1px solid var(--border-color);border-radius:16px;box-shadow:0 4px 12px #00000026;z-index:1001;max-height:300px;overflow-y:auto}.tipo-timbre-option{width:100%;padding:10px 12px;background:none;border:none;color:#333;text-align:left;cursor:pointer;transition:all .3s ease;outline:none;border-bottom:none;font-size:.85rem}.tipo-timbre-option:hover{background-color:#f3f4f6;color:var(--accent-color)}.tipo-timbre-option.selected{background-color:var(--accent-color);color:#fff}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}@media (max-width: 768px){.topbar{padding:0 15px}.page-title{font-size:1.2rem}.user-name{display:none}.timbres-info{padding:8px 12px;gap:6px}.timbres-info .timbres-label{color:#fff!important;font-size:.7rem;opacity:1!important}.timbres-count{font-size:16px}.timbres-details{gap:1px}.plan-info-badge{padding:8px 12px;gap:5px}.company-count,.company-limit{font-size:15px}.plan-label{font-size:.6rem}.tipo-timbre-dropdown{min-width:180px}.tipo-timbre-trigger{padding:6px 10px}.tipo-timbre-label{font-size:.8rem}}@media (max-width: 480px){.timbres-section{order:-1;flex-wrap:wrap}.timbres-info{padding:8px 12px;gap:4px}.timbres-info .timbres-label{color:#fff!important;font-size:.65rem;opacity:1!important}.timbres-count{font-size:16px}.plan-info-badge{padding:8px 12px;gap:4px}.company-count,.company-limit{font-size:14px}.plan-label{font-size:.6rem}.tipo-timbre-dropdown{min-width:160px}.tipo-timbre-trigger{padding:5px 8px}.tipo-timbre-label{font-size:.75rem}.timbres-section{flex-wrap:wrap;gap:8px}}.admin-layout{display:flex;height:100vh;background-color:#f8f9fa;color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;width:100vw;overflow-x:visible;overflow-y:hidden;transition:background-color .3s ease,color .3s ease}.main-content{flex:1;display:flex;flex-direction:column;transition:margin-left .3s ease;background-color:#f8f9fa;min-width:0;width:100%}.main-content.sidebar-open{margin-left:250px;width:calc(100vw - 250px)}.main-content.sidebar-closed{margin-left:70px;width:calc(100vw - 70px)}.content{flex:1;padding:20px;background-color:#f8f9fa;margin:10px;border-radius:16px;border:1px solid transparent;overflow-y:auto;overflow-x:visible;width:calc(100% - 20px);max-width:100%;box-sizing:border-box;transition:background-color .3s ease,border-color .3s ease}@media (max-width: 768px){.main-content.sidebar-open,.main-content.sidebar-closed{margin-left:0}}.configuracion-container{padding:20px;min-height:100vh;background-color:var(--bg-primary);transition:background-color .3s ease}.configuracion-header{margin-bottom:30px}.configuracion-header h1{color:var(--text-primary);margin-bottom:10px;font-size:2rem;font-weight:700;transition:color .3s ease}.configuracion-header p{color:var(--text-secondary);font-size:1rem;margin:0;transition:color .3s ease}.message{padding:15px 20px;border-radius:16px;margin-bottom:20px;font-weight:500;transition:all .3s ease}.configuracion-layout{display:flex;flex-direction:column;gap:30px;min-height:600px}.configuracion-sidebar{background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;padding:15px 20px;transition:all .3s ease}.config-nav{display:flex;flex-direction:row;gap:12px;justify-content:flex-start;flex-wrap:wrap}.config-nav-item{display:flex;align-items:center;gap:8px;padding:12px 20px;background:none;border:none;border-radius:16px;cursor:pointer;transition:all .3s ease;text-align:center;width:auto;color:var(--text-secondary);font-size:.9rem;font-weight:500;white-space:nowrap}.config-nav-item:hover{background-color:var(--hover-bg);color:var(--accent-color);transform:translateY(-2px)}.config-nav-item.active{background-color:var(--accent-color);color:#fff;box-shadow:0 4px 12px #45a8164d}.config-nav-icon{font-size:1.1rem;min-width:20px;display:flex;align-items:center;justify-content:center}.config-nav-text{font-weight:500}.config-nav-item.active .config-nav-icon,.config-nav-item.active .config-nav-text{color:#fff}.configuracion-content{background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;padding:30px;transition:all .3s ease;width:100%}.config-section{max-width:1000px;margin:0 auto}.section-header{display:flex;justify-content:space-between;align-items:center;margin:0!important;padding:0!important;gap:2rem;border:none!important;border-bottom:none!important}.section-header h2{color:var(--text-primary);margin:0!important;padding:0!important;font-size:1.5rem;font-weight:600;transition:color .3s ease}.section-header p{color:var(--text-secondary);margin:0!important;padding:0!important;font-size:.95rem;transition:color .3s ease}.warning-message{background-color:#fff3cd;color:#856404;padding:12px 16px;border-radius:16px;border:1px solid #ffeaa7;margin-top:15px;font-size:.9rem;font-weight:500;display:flex;align-items:center;gap:8px}.config-form{display:flex;flex-direction:column;gap:25px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;padding-left:0;padding-right:0}.input-with-icon{position:relative;display:flex;align-items:center}.input-with-icon input{flex:1;padding-right:40px}.security-icon{position:absolute;right:12px;color:#9ca3af;pointer-events:none;transition:color .3s ease}.input-with-icon input:focus~.security-icon{color:var(--accent-color, #45A816)}.form-group label{color:var(--text-primary);font-weight:600;font-size:.9rem;transition:color .3s ease}.form-group input,.form-group select{padding:12px 16px;border:1px solid var(--border-color);border-radius:16px;background-color:var(--bg-primary)!important;color:var(--text-primary)!important;font-size:.95rem;transition:all .3s ease;outline:none}.form-group input.error{border-color:#e53e3e;box-shadow:0 0 0 3px #e53e3e1a}.input-icon{position:absolute;right:12px;display:flex;align-items:center;justify-content:center;pointer-events:none;transition:all .3s ease}.input-icon.success{color:var(--accent-color)}.input-icon.error{color:#e53e3e}.error-message{color:#e53e3e;font-size:.8rem;margin-top:4px;font-weight:500;display:block}.form-group input[type=file]{padding:8px 12px;background-color:var(--bg-tertiary);cursor:pointer}.form-group small{color:var(--text-secondary);font-size:.8rem;margin-top:4px;transition:color .3s ease}.form-section{margin-top:30px;padding-top:25px;padding-left:0;padding-right:0;border-top:1px solid var(--border-color)}.form-section h3{color:var(--text-primary);margin:0 0 10px;padding:0;font-size:1.2rem;font-weight:600;transition:color .3s ease;display:flex;align-items:center;gap:10px}.form-section .section-description{color:var(--text-secondary);font-size:.9rem;margin:0 0 20px;line-height:1.5;transition:color .3s ease}.form-actions{display:flex;justify-content:flex-end;gap:15px;padding-top:20px;border-top:1px solid var(--border-color)}.btn-primary{background-color:var(--accent-color);color:#fff;border:none;padding:14px 24px;border-radius:16px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease;outline:none;display:flex;align-items:center;justify-content:center;gap:8px;height:48px;white-space:nowrap}.btn-primary:hover:not(:disabled){background-color:#4a9c1a;transform:translateY(-2px);box-shadow:0 4px 12px #45a8164d}.btn-primary:disabled{background-color:#a0a0a0;cursor:not-allowed;transform:none;box-shadow:none}.btn-dark{background:#1f2937;color:#fff;border:none;padding:14px 24px;border-radius:16px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease;outline:none;display:flex;align-items:center;justify-content:center;gap:8px;height:48px;box-shadow:0 4px 12px #0003}.no-company-message{text-align:center;padding:40px 20px;color:var(--text-secondary);background-color:var(--bg-tertiary);border:1px dashed var(--border-color);border-radius:16px;font-size:.95rem;transition:all .3s ease}.no-company-message p{margin:0;font-weight:500}.subscription-section{display:flex;flex-direction:column;gap:30px}.current-plan-card{background:linear-gradient(135deg,var(--bg-secondary) 0%,var(--bg-tertiary) 100%);border:2px solid var(--accent-color);border-radius:16px;padding:24px;transition:all .3s ease;box-shadow:0 4px 12px #45a8161a}.plan-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-left:0;padding-right:0}.plan-card-header h3{color:var(--text-primary);margin:0;padding:0;font-size:1.2rem;font-weight:600;transition:color .3s ease}.plan-status{padding:6px 12px;border-radius:20px;font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.plan-status.active{background:linear-gradient(135deg,#45a816,#3a8b00);color:#fff}.plan-card-content{margin-top:20px}.plan-info-main{display:flex;flex-direction:column;gap:16px}.plan-name-large{font-size:2rem;font-weight:700;color:var(--text-primary);margin-bottom:8px;transition:color .3s ease}.plan-details{display:flex!important;align-items:center;justify-content:flex-start!important;gap:1rem;order:1!important}.plan-detail-item{display:flex;flex-direction:column;gap:8px}.detail-label{color:var(--text-secondary);font-size:.85rem;font-weight:500;transition:color .3s ease}.detail-value{color:var(--text-primary);font-size:1rem;font-weight:600;transition:color .3s ease}.subscription-actions{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;padding:24px;transition:all .3s ease}.action-group h4{color:var(--text-primary);margin:0 0 8px;font-size:1.1rem;font-weight:600;transition:color .3s ease}.action-group p{color:var(--text-secondary);margin:0 0 20px;font-size:.9rem;transition:color .3s ease}.action-buttons{display:flex;gap:16px;flex-wrap:wrap}.btn-secondary{background:linear-gradient(135deg,#45a816,#3a8b00);color:#fff;border:none;padding:14px 24px;border-radius:16px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:8px;height:48px;white-space:nowrap}.btn-secondary:hover{background:linear-gradient(135deg,#4bb91a,#3a8b00);transform:translateY(-2px)}.btn-danger{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border:none;padding:14px 24px;border-radius:16px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:8px;height:48px;white-space:nowrap}.btn-danger:hover{background:linear-gradient(135deg,#f87171,#dc2626);transform:translateY(-2px);box-shadow:0 4px 12px #ef44444d}.btn-tertiary{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff;border:none;padding:14px 24px;border-radius:8px!important;font-size:14px!important;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:8px;height:48px;white-space:nowrap}.btn-tertiary:hover{background:linear-gradient(135deg,#818cf8,#6366f1);transform:translateY(-2px);box-shadow:0 4px 12px #6366f14d}@media (max-width: 1024px){.config-nav{gap:10px}.config-nav-item{padding:10px 16px;font-size:.85rem}.configuracion-content{padding:20px}}@media (max-width: 768px){.configuracion-container{padding:15px}.config-nav{overflow-x:auto;gap:8px;padding-bottom:5px}.config-nav-item{padding:10px 15px;font-size:.85rem}.config-nav-icon{font-size:1rem}.configuracion-content{padding:20px 15px}.form-grid{grid-template-columns:1fr;gap:15px}.form-actions{justify-content:center}.plan-details{grid-template-columns:1fr}.action-buttons{flex-direction:column;width:100%}.btn-secondary,.btn-danger,.btn-tertiary{width:100%;justify-content:center}}@media (max-width: 480px){.configuracion-header h1{font-size:1.75rem}.section-header h2{font-size:1.3rem}.config-nav-item{padding:8px 12px;font-size:.85rem}.form-group input,.form-group select{padding:10px 12px;font-size:.9rem}.btn-primary{padding:10px 20px;font-size:.9rem}}.modal-overlay{position:fixed;inset:0;background-color:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-content{background:var(--bg-primary);border-radius:16px;padding:40px;padding-top:30px!important;max-width:520px;width:100%;box-shadow:0 20px 60px #0000004d;animation:modalSlideIn .3s ease-out;border:1px solid var(--border-color)}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}}.modal-content h2{color:var(--text-primary);margin-bottom:8px;margin-top:0;font-size:1.75rem;font-weight:700}.modal-content p{color:var(--text-secondary);margin-bottom:24px;margin-top:8px;line-height:1.6;font-size:.95rem}.modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:32px;padding-top:24px;border-top:1px solid var(--border-color)}.modal-actions button{padding:14px 28px;font-size:.95rem;border-radius:12px;cursor:pointer;transition:all .3s ease;font-weight:600;border:none;min-width:120px}.modal-warning-box{background:linear-gradient(135deg,#fff9e6,#fffbf0);border-left:4px solid #ffc107;border-radius:12px;padding:20px;margin:24px 0}.modal-warning-box strong{color:#856404;font-size:1rem;font-weight:600;display:block;margin-bottom:12px}.modal-warning-list{margin:0;padding-left:24px;color:#664d03}.modal-warning-list li{margin:8px 0;line-height:1.5;font-size:.9rem}.btn-success{background:linear-gradient(135deg,#45a816,#66c91a);color:#fff;border:none;padding:14px 24px;border-radius:16px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:8px}.btn-success:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #45a8164d}.btn-success:disabled{opacity:.6;cursor:not-allowed}.plan-status.canceled{background:#dc3545;color:#fff}.login-page{min-height:100vh;background:linear-gradient(135deg,#00060f,#0d111c);display:flex;align-items:center;justify-content:center;padding:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.login-container{width:100%;max-width:400px}.login-card{background:#0d111cf2;border:1px solid #1D212B;border-radius:16px;padding:40px;box-shadow:0 20px 40px #0000004d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:relative;overflow:hidden}.login-card:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,#45A816,transparent)}.login-header{text-align:center;margin-bottom:32px}.login-logo{width:180px;height:60px;margin-bottom:4px;filter:drop-shadow(0 4px 8px rgba(69,168,22,.3))}.login-header h1{color:#fff;font-size:1.8rem;font-weight:600;margin:0 0 8px;background:linear-gradient(135deg,#fff,#45a816);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.login-header p{color:#9ca3af;font-size:.95rem;margin:0;line-height:1.5}.login-form{margin-bottom:24px}.error-message{background:#ef44441a!important;border:1px solid rgba(239,68,68,.3)!important;border-left:3px solid #EF4444!important;border-radius:8px!important;padding:10px 14px!important;margin:0 0 16px!important;color:#fee2e2!important;font-size:.85rem!important;text-align:left!important;line-height:1.4!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;animation:slideDown .3s ease-out;min-height:auto!important}.error-message svg{color:#fca5a5!important;flex-shrink:0!important;width:18px!important;height:18px!important;margin:0!important}.error-message span{flex:1!important;margin:0!important;padding:0!important}.form-label{display:block;color:#fff;font-size:.9rem;font-weight:500;margin-bottom:8px}.password-wrapper{position:relative;display:flex;align-items:center}.form-group input,.form-group textarea{width:100%;padding:12px;background-color:var(--bg-primary)!important;border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary)!important;font-size:.9rem;outline:none;transition:all .3s ease;box-sizing:border-box}.form-group input:focus,.form-group textarea:focus{background-color:var(--bg-primary)!important;color:var(--text-primary)!important;border-color:#45a816;box-shadow:0 0 0 3px #45a8161a}.form-group input::placeholder,.form-group textarea::placeholder{color:var(--text-secondary)!important}.password-toggle{position:absolute;right:12px;background:none;border:none;color:#6b7280;cursor:pointer;padding:4px;border-radius:16px;transition:all .3s ease;z-index:1}.password-toggle:hover{color:#45a816;background:#45a8161a}.form-options{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.checkbox-wrapper{display:flex;align-items:center;cursor:pointer}.checkbox{width:16px;height:16px;margin-right:8px;accent-color:#45A816}.checkbox-label{color:#9ca3af;font-size:.9rem;-webkit-user-select:none;user-select:none}.forgot-password{color:#45a816;text-decoration:none;font-size:.9rem;transition:color .3s ease}.forgot-password:hover{color:#66c91a}.login-button{width:100%;padding:14px;background:linear-gradient(135deg,#45a816,#66c91a);border:none;border-radius:16px;color:#fff;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;position:relative;overflow:hidden}.login-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 25px #45a8164d}.login-button:active:not(:disabled){transform:translateY(0)}.login-button:disabled{opacity:.7;cursor:not-allowed;transform:none}.login-button:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s ease}.login-button:hover:before{left:100%}.login-footer{text-align:center;padding-top:20px;border-top:1px solid #374151}.demo-credentials{color:#6b7280;font-size:.85rem;line-height:1.4;margin:0}.demo-credentials strong{color:#9ca3af}@media (max-width: 480px){.login-page{padding:16px}.login-card{padding:32px 24px}.login-logo{width:150px;height:50px}.login-header h1{font-size:1.5rem}.login-header p{font-size:.9rem}}.login-card{animation:fadeInUp .6s ease-out}.login-card:hover{transform:translateY(-2px);box-shadow:0 25px 50px #0006;transition:all .3s ease}.forgot-password-page{min-height:100vh;background:#000;display:flex;align-items:center;justify-content:center;padding:20px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-weight:400}.forgot-password-container{width:100%;max-width:400px}.forgot-password-card{background:#0d111cf2;border:1px solid #1D212B;border-radius:16px;padding:40px;box-shadow:0 20px 40px #0000004d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:relative;overflow:hidden}.forgot-password-header{text-align:center;margin-bottom:30px}.forgot-password-logo{height:50px;margin-bottom:20px}.forgot-password-header h1{color:#fff;font-size:24px;font-weight:600;margin:0 0 10px}.forgot-password-header p{color:#b0b0b0;font-size:14px;margin:0;line-height:1.5}.forgot-password-form,.form-group{margin-bottom:20px}.form-input{width:100%;padding:12px 16px;background:#1a1a1a;border:1px solid #404040;border-radius:16px;color:#fff;font-size:14px;transition:all .3s ease;box-sizing:border-box}.forgot-password-button{width:100%;padding:12px;background:#45a816;color:#fff;border:none;border-radius:16px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s ease}.forgot-password-button:hover:not(:disabled){background:#3a8a12;transform:translateY(-1px)}.forgot-password-button:disabled{background:#666;cursor:not-allowed;transform:none}.forgot-password-footer{text-align:center}@media (max-width: 480px){.forgot-password-card{padding:30px 20px}.forgot-password-header h1{font-size:20px}}.reset-password-page{min-height:100vh;background:#000;display:flex;align-items:center;justify-content:center;padding:20px}.reset-password-container{width:100%;max-width:400px}.reset-password-card{background:#0d111cf2;border:1px solid #1D212B;border-radius:16px;padding:40px;box-shadow:0 20px 40px #0000004d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:relative;overflow:hidden}.reset-password-header{text-align:center;margin-bottom:30px}.reset-password-logo{height:50px;margin-bottom:20px}.reset-password-header h1{color:#fff;font-size:24px;font-weight:600;margin:0 0 10px}.reset-password-header p{color:#b0b0b0;font-size:14px;margin:0;line-height:1.5}.reset-password-form,.form-group{margin-bottom:20px}.password-wrapper{position:relative}.form-input{width:100%;padding:12px 50px 12px 16px;background:#1a1a1a;border:1px solid #404040;border-radius:16px;color:#fff;font-size:14px;transition:all .3s ease;box-sizing:border-box}.form-input:focus{outline:none;border-color:#45a816;box-shadow:0 0 0 3px #45a8161a}.form-input::placeholder{color:#666}.password-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;color:#666;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;transition:color .3s ease}.password-toggle:hover{color:#45a816}.reset-password-button{width:100%;padding:12px;background:#45a816;color:#fff;border:none;border-radius:16px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s ease}.reset-password-button:hover:not(:disabled){background:#3a8a12;transform:translateY(-1px)}.reset-password-button:disabled{background:#666;cursor:not-allowed;transform:none}.reset-password-footer{text-align:center}.back-to-login{color:#45a816;text-decoration:none;font-size:14px;transition:color .3s ease}.back-to-login:hover{color:#3a8a12;text-decoration:underline}.success-message{background:#d4edda;color:#155724;padding:12px 16px;border-radius:16px;border:1px solid #c3e6cb;margin-bottom:20px;font-size:14px;text-align:center}.error-message{background:#f8d7da;color:#721c24;padding:12px 16px;border-radius:16px;border:1px solid #f5c6cb;margin-bottom:20px;font-size:14px;text-align:center}.loading{color:#fff;text-align:center;font-size:16px}@media (max-width: 480px){.reset-password-card{padding:30px 20px}.reset-password-header h1{font-size:20px}}.dashboard{padding:20px}.promotional-banner{background:linear-gradient(135deg,#45a8161a,#3a8b0026);border:1px solid rgba(69,168,22,.2);border-radius:16px;padding:20px 24px;margin:20px 0 32px;position:relative;overflow:hidden;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:all .3s ease}.promotional-banner:hover{background:linear-gradient(135deg,#45a81626,#3a8b0033);border-color:#45a8164d;transform:translateY(-2px);box-shadow:0 8px 25px #45a81626}.banner-content{display:flex;align-items:center;gap:16px;max-width:100%}.banner-icon{color:#45a816;background:#45a8161a;border-radius:16px;padding:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.banner-text{flex:1;min-width:0}.banner-text h3{color:var(--text-primary);font-size:1.1rem;font-weight:600;margin:0 0 4px;transition:color .3s ease}.banner-text p{color:var(--text-secondary);font-size:.9rem;margin:0;line-height:1.4;transition:color .3s ease}.banner-cta{background:linear-gradient(135deg,#45a816,#3a8b00);color:#fff;border:none;border-radius:16px;padding:10px 20px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .3s ease;flex-shrink:0;white-space:nowrap}.banner-cta:hover{background:linear-gradient(135deg,#4bb91a,#3a8b00);transform:translateY(-1px);box-shadow:0 4px 15px #45a8164d}.banner-close{position:absolute;top:12px;right:12px;background:none;border:none;color:var(--text-secondary);font-size:1.2rem;cursor:pointer;padding:4px;border-radius:16px;transition:all .3s ease;opacity:.7}.banner-close:hover{color:var(--text-primary);background:#0000000d;opacity:1}@media (max-width: 768px){.promotional-banner{padding:16px 20px;margin:16px 0 24px}.banner-content{flex-direction:column;align-items:flex-start;gap:12px}.banner-text{width:100%}.banner-cta{width:100%;text-align:center}.banner-close{top:8px;right:8px}}@media (max-width: 480px){.banner-text h3{font-size:1rem}.banner-text p{font-size:.85rem}.banner-cta{padding:12px 20px;font-size:.85rem}}.no-company-welcome,.no-company-selected{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;text-align:center;padding:40px 20px}.welcome-icon{color:var(--text-secondary);margin-bottom:24px;opacity:.8}.no-company-welcome h2,.no-company-selected h2{color:var(--text-primary);font-size:2rem;font-weight:700;margin:0 0 16px}.no-company-welcome p,.no-company-selected p{color:var(--text-secondary);font-size:.95rem;margin:0 0 12px;max-width:500px;line-height:1.6}.no-company-welcome p:last-of-type,.no-company-selected p:last-of-type{margin-bottom:32px}.create-first-company-btn,.create-company-btn{display:inline-flex;align-items:center;gap:12px;padding:16px 32px;background:transparent;border:2px dashed var(--border-color);border-radius:16px;color:var(--text-primary);font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s ease}.create-first-company-btn:hover,.create-company-btn:hover{border-color:var(--accent-color);color:var(--accent-color);transform:translateY(-2px)}.create-first-company-btn:active,.create-company-btn:active{transform:translateY(0)}.dashboard h2{color:var(--text-primary);margin-bottom:30px;font-size:2rem;transition:color .3s ease}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-bottom:30px}.dashboard-card{background-color:#fff;border:1px solid var(--border-color);border-radius:16px;padding:20px;transition:transform .3s ease,box-shadow .3s ease,background-color .3s ease,border-color .3s ease}.dashboard-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px var(--shadow)}.dashboard-card h3{color:var(--text-secondary);font-size:.9rem;margin:0 0 16px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;transition:color .3s ease;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif}.dashboard-card .card-number{font-size:40px!important;color:var(--text-secondary, #6b7280)!important;font-family:inter!important;margin:0 0 4px!important;font-weight:800!important;line-height:1!important}.card-change{font-size:.85rem;margin:0;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif}.card-change.positive{color:#4ade80}.card-change.negative{color:#f87171}.shortcode-section{margin-top:40px}.shortcode-section h3{color:var(--text-primary);margin-bottom:20px;font-size:1.5rem;font-weight:600;transition:color .3s ease}.shortcode-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}.shortcode-card{display:flex;align-items:center;padding:20px;border-radius:16px;text-decoration:none;transition:all .3s ease;position:relative;overflow:hidden;border:1px solid transparent}.shortcode-card:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#ffffff1a,#ffffff0d);opacity:0;transition:opacity .3s ease}.shortcode-card:hover:before{opacity:1}.shortcode-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px #00000026;border-color:#fff3}.shortcode-icon{margin-right:16px;display:flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:16px;background:#ffffff80;color:#374151;transition:all .3s ease}.shortcode-card:hover .shortcode-icon{transform:scale(1.1)}.shortcode-content h4{color:#374151;font-size:1.1rem;font-weight:600;margin:0 0 4px;transition:color .3s ease}.shortcode-content p{color:#6b7280;font-size:.9rem;margin:0;transition:color .3s ease}.shortcode-card.mi-pagina{background:linear-gradient(135deg,#b4b8f5,#d4c5e8)}.shortcode-card.facturas{background:linear-gradient(135deg,#f8d4fb,#ffb8c9)}.shortcode-card.pedidos{background:linear-gradient(135deg,#a8dfff,#b3f0ff)}.shortcode-card.clientes{background:linear-gradient(135deg,#a8f5c8,#a8f0e5)}.shortcode-card.productos{background:linear-gradient(135deg,#ffbdd4,#fff0b8)}.shortcode-card.reportes{background:linear-gradient(135deg,#d4f6f4,#ffe8f0)}.shortcode-card.suscripcion{background:linear-gradient(135deg,#c8cbfa,#e4d9f3)}.shortcode-card.timbres{background:linear-gradient(135deg,#b8e6a0,#a8d890)}[data-theme=dark] .shortcode-card{border-color:#ffffff1a}[data-theme=dark] .shortcode-card:hover{border-color:#ffffff4d;box-shadow:0 8px 25px #0000004d}[data-theme=light] .shortcode-card{border-color:#0000001a}[data-theme=light] .shortcode-card:hover{border-color:#0003;box-shadow:0 8px 25px #0000001a}@media (max-width: 768px){.dashboard-grid{grid-template-columns:1fr}.dashboard-card .card-number{font-size:36px!important}.shortcode-grid{grid-template-columns:1fr}.shortcode-card{padding:16px}.shortcode-icon{width:50px;height:50px;margin-right:12px}.shortcode-content h4{font-size:1rem}.shortcode-content p{font-size:.85rem}}.facturas-page{padding:20px;height:100%;display:flex;flex-direction:column;gap:20px}.filters-section{background-color:#fff;border:1px solid var(--border-color);border-radius:16px;padding:20px;display:flex;justify-content:space-between;align-items:center;gap:20px}.filter-actions{display:flex;align-items:center;gap:12px}.filter-toggle{display:flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:14px;color:var(--text-primary)}.filter-toggle input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:var(--accent-color)}.search-input-wrapper{position:relative;flex:1;max-width:400px;display:flex;align-items:center;gap:8px}.search-loading{color:var(--text-secondary);font-size:.85rem;font-style:italic;white-space:nowrap}.facturas-table{width:100%;border-collapse:collapse}.facturas-table th{background-color:var(--bg-tertiary);color:#949bac;font-weight:600;padding:16px 12px;text-align:left;border-bottom:1px solid var(--border-color);font-size:.9rem}.facturas-table td{padding:16px 12px;border-bottom:1px solid var(--border-color);color:var(--text-primary);font-size:.9rem}.facturas-table tr:hover{background-color:var(--hover-bg)}.factura-id{font-weight:600;color:var(--accent-color)}.monto{font-weight:600;color:var(--accent-color)}.estado{padding:4px 8px;border-radius:16px;font-size:.8rem;font-weight:500;text-transform:uppercase}.estado-pagada{background-color:#22c55e1a;color:#22c55e}.estado-pendiente{background-color:#fbbf241a;color:#fbbf24}.estado-vencida{background-color:#ef44441a;color:#ef4444}.estado-cancelada,.estado-archivada{background-color:#6b72801a;color:#6b7280}@media (max-width: 768px){.facturas-page{padding:15px}.header-content{flex-direction:row!important;gap:16px;align-items:center!important;flex-wrap:wrap}.search-container{flex-direction:column;align-items:stretch}.search-input-wrapper{max-width:none}.facturas-table{font-size:.8rem}.facturas-table th,.facturas-table td{padding:12px 8px}}.factura-detail-modal-overlay{position:fixed;inset:0;background:#000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1001;padding:20px;animation:fadeIn .3s ease}.factura-detail-modal-content{background:var(--bg-primary);border-radius:16px;max-width:700px;width:100%;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 48px #0000004d;border:1px solid var(--border-color);animation:slideUp .3s ease}.factura-detail-modal-header{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;padding:24px 28px;background:var(--bg-secondary);border-bottom:1px solid var(--border-color)}.factura-detail-modal-header h3{margin:0;font-size:24px;font-weight:700;color:var(--text-primary)}.factura-detail-modal-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:32px;padding:8px;border-radius:8px;transition:all .2s ease;display:flex;align-items:center;justify-content:center;width:40px;height:40px;line-height:1}.factura-detail-modal-close:hover{background:var(--hover-bg);color:var(--text-primary)}.factura-detail-modal-body{flex:1;overflow-y:auto;padding:24px;background:var(--bg-primary)}.factura-detail-modal-footer{display:flex;gap:12px;justify-content:flex-end;align-items:center;flex-shrink:0;padding:20px 28px;margin:0;background:var(--bg-secondary);border-top:none;width:100%;box-sizing:border-box}.factura-info-section,.pedido-linked-section{margin-bottom:30px}.archivos-section{margin-bottom:0}.factura-info-section h4,.pedido-linked-section h4,.archivos-section h4{color:var(--text-primary);font-size:1.1rem;font-weight:600;margin:0 0 16px}.factura-info-section .detail-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px;border:none!important;border-bottom:none!important}.factura-info-section .detail-item{display:flex;flex-direction:column;gap:8px;padding:0!important;background:transparent!important;border-radius:0!important;border:none!important;align-items:flex-start;width:100%;box-shadow:none!important}.factura-info-section .detail-item label{color:var(--text-secondary);font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:0;text-align:left;width:100%}.factura-info-section .detail-value{background:var(--bg-tertiary);padding:16px;border-radius:12px;color:var(--text-primary);font-size:.95rem;font-weight:500;border:none;display:flex;align-items:center;text-align:left;word-wrap:break-word;overflow-wrap:break-word;min-height:48px;width:100%;justify-content:flex-start}.factura-info-section .detail-value.estado-badge{font-weight:600;justify-content:center}.factura-info-grid{display:grid;grid-template-columns:1fr;gap:16px}.info-item{display:flex;flex-direction:column;gap:6px}.info-item label{color:var(--text-secondary);font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.info-item span{color:var(--text-primary);font-size:1rem;font-weight:500}.info-item .factura-id{color:var(--accent-color);font-weight:600;font-size:1.1rem}.info-item .cliente{font-weight:600}.info-item .monto{color:var(--accent-color);font-weight:600;font-size:1.2rem}.info-item .estado{padding:6px 12px;border-radius:16px;font-size:.85rem;font-weight:500;text-transform:uppercase;display:inline-block;width:fit-content}.info-item .tipo{font-weight:500;color:var(--text-primary)}.pedido-linked-card{background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:16px;padding:20px}.pedido-linked-header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.pedido-icon{color:var(--accent-color);font-size:20px}.pedido-linked-header .pedido-id{color:var(--accent-color);font-weight:600;font-size:1.1rem}.pedido-estado{padding:4px 8px;border-radius:16px;font-size:.8rem;font-weight:500;text-transform:uppercase}.pedido-linked-info{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;margin-bottom:16px}.pedido-info-item{display:flex;flex-direction:column;gap:4px}.pedido-info-item label{color:var(--text-secondary);font-size:.8rem;font-weight:500;text-transform:uppercase}.pedido-info-item span{color:var(--text-primary);font-size:.9rem;font-weight:500}.pedido-monto{color:var(--accent-color);font-weight:600}.pedido-pago-section{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;padding-top:16px;border-top:1px solid var(--border-color)}.pedido-pago-section label{color:var(--text-secondary);font-size:.8rem;font-weight:500;text-transform:uppercase}.estado-pago-select{padding:10px 12px;border:1px solid var(--border-color);border-radius:8px;font-size:.9rem;background-color:var(--bg-primary);color:var(--text-primary);cursor:pointer;transition:all .3s ease}.estado-pago-select:hover{border-color:var(--accent-color)}.estado-pago-select:focus{outline:none;border-color:var(--accent-color);box-shadow:0 0 0 3px #45a8161a}.btn-link{background:none;border:none;color:var(--accent-color);font-size:.9rem;font-weight:500;cursor:pointer;padding:4px 8px;border-radius:16px;transition:all .3s ease;text-decoration:none;display:inline-flex;align-items:center;gap:4px}.btn-link:hover{background-color:#45a8161a;color:var(--accent-color);transform:translate(2px)}.archivos-grid{display:grid;grid-template-columns:1fr;gap:16px}.archivo-item{display:flex;align-items:center;padding:16px;background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:16px;transition:all .3s ease}.archivo-item:hover{background-color:var(--hover-bg);border-color:var(--accent-color)}.archivo-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:16px;margin-right:16px;flex-shrink:0}.archivo-icon.pdf{background-color:#ef44441a;color:#ef4444}.archivo-icon.xml{background-color:#3b82f61a;color:#3b82f6}.archivo-info{flex:1}.archivo-info h5{color:var(--text-primary);font-size:1rem;font-weight:600;margin:0 0 4px}.archivo-info p{color:var(--text-secondary);font-size:.9rem;margin:0}.archivo-actions{display:flex;gap:8px}.btn-action-small{background:none;border:1px solid var(--border-color);border-radius:16px;padding:6px;cursor:pointer;color:var(--text-secondary);transition:all .3s ease;display:flex;align-items:center;justify-content:center;width:32px;height:32px}.btn-action-small:hover{background-color:var(--hover-bg);color:var(--accent-color);border-color:var(--accent-color)}.estado-pagado{background-color:#22c55e1a;color:#22c55e}.estado-pendiente-pago{background-color:#fbbf241a;color:#fbbf24}.estado-cancelado{background-color:#ef44441a;color:#ef4444}.estado-reembolsado{background-color:#8b45131a;color:#8b4513}@media (max-width: 768px){.factura-detail-modal-overlay{padding:10px}.factura-detail-modal-content{max-width:100%;border-radius:0;height:100vh}.factura-detail-modal-header{padding:16px 20px;border-radius:12px 12px 0 0}.factura-detail-modal-body{padding:20px}.factura-info-section,.pedido-linked-section,.archivos-section{margin-bottom:24px}.factura-info-section .detail-row{grid-template-columns:1fr}.pedido-linked-info{grid-template-columns:1fr;gap:12px}.archivo-item{padding:12px}.archivo-icon{width:40px;height:40px;margin-right:12px}.archivo-info h5{font-size:.95rem}.archivo-info p{font-size:.85rem}}@media (max-width: 768px){.pagination-container{flex-direction:column;gap:1rem;align-items:stretch}.pagination-controls{justify-content:center}.pagination-numbers{flex-wrap:wrap;justify-content:center}}.crear-factura-page{padding:20px;min-height:100vh;display:flex;flex-direction:column;gap:20px}.factura-content{display:grid;grid-template-columns:1fr 380px;gap:20px;align-items:start}.page-header p{color:var(--text-secondary);font-size:1.1rem;margin:0;font-weight:400;transition:color .3s ease;text-align:left}.title-section{display:flex;align-items:baseline;gap:12px}.title-section h2{color:var(--text-primary);font-size:32px;font-weight:700;margin:0}.btn-primary{background-color:var(--accent-color);color:#fff;border:none;border-radius:16px;padding:10px 5px!important;font-size:.9rem;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:8px;transition:all .3s ease}.btn-primary.btn-large{padding:12px 24px;font-size:1rem;font-weight:600}.btn-secondary{background-color:transparent;color:var(--text-secondary);border:1px solid var(--border-color);border-radius:16px;padding:10px 16px;font-size:.9rem;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:8px;transition:all .3s ease}.btn-secondary:hover{border-color:#6b7280;color:#6b7280;background-color:var(--bg-secondary);transform:translateY(-1px)}.btn-add-concepto{background-color:transparent;color:var(--accent-color);border:2px dashed var(--accent-color);border-radius:16px;padding:10px 16px;font-size:.9rem;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:8px;transition:all .3s ease}.btn-add-concepto:hover{background-color:#45a8160d;border-color:var(--accent-color);transform:translateY(-1px)}.no-company-message h2{color:var(--text-primary);margin-bottom:12px;font-size:32px;font-weight:700}.factura-form{display:flex;flex-direction:column;gap:20px;flex:1}.form-card{background-color:#fff;border-radius:16px;padding:24px}.form-card h3{margin:0 0 20px;color:var(--text-primary);font-size:20px;font-weight:700;display:flex;align-items:center;gap:12px}.form-separator{width:calc(100% + 48px);height:1px;background-color:var(--border-color);margin:20px -24px}.step-number{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background-color:var(--accent-color);color:#fff;border-radius:50%;font-size:.9rem;font-weight:600;flex-shrink:0}.step-header{display:flex;align-items:center;gap:12px;text-align:left}.step-icon{color:var(--accent-color);flex-shrink:0}.form-card h4{margin:20px 0 12px;color:var(--text-primary);font-size:1rem;font-weight:600}.card-header-with-action{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:16px}.form-row-3-columns{grid-template-columns:repeat(3,1fr)!important}.input-with-button{display:flex;gap:8px;align-items:stretch}.input-with-button select{flex:1}.btn-add-inline{background-color:var(--accent-color);color:#fff;border:none;border-radius:50%;width:36px;height:36px;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease;flex-shrink:0}.btn-add-inline:hover{opacity:.9;transform:scale(1.1);box-shadow:0 2px 8px #45a8164d}.readonly-input{background-color:var(--bg-tertiary)!important;color:var(--text-secondary)!important;cursor:not-allowed;font-weight:500}.form-group textarea{resize:vertical;min-height:60px;font-family:inherit}.new-item-section{background-color:var(--bg-secondary);padding:20px;border-radius:16px;border:1px dashed var(--border-color);margin-bottom:20px}.item-impuestos{margin:16px 0;padding:12px;background-color:var(--bg-primary);border-radius:16px;border:1px solid var(--border-color)}.checkbox-label-inline{display:flex;align-items:center;gap:12px;font-weight:500}.checkbox-label-inline input[type=checkbox]{width:18px;height:18px;cursor:pointer}.impuesto-select-inline{padding:6px 10px;border:1px solid var(--border-color);border-radius:16px;font-size:.85rem;background-color:var(--bg-primary)}.add-item-actions{margin-top:16px;display:flex;justify-content:flex-end}.items-table{width:100%;border-collapse:collapse;margin-top:12px}.items-table thead{background-color:var(--bg-tertiary);border-bottom:1px solid var(--border-color)}.items-table th{padding:12px;text-align:left;font-weight:600;color:var(--text-primary);font-size:.85rem;text-transform:uppercase}.items-table td{padding:12px;border-bottom:1px solid var(--border-color);color:var(--text-primary);font-size:.9rem}.items-table tbody tr:hover{background-color:var(--bg-tertiary)}.item-total{font-weight:600;color:var(--accent-color);text-align:right}.btn-action{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:8px;border-radius:16px;transition:all .3s ease;display:inline-flex;align-items:center;justify-content:center}.btn-action:hover{background-color:var(--bg-tertiary);color:var(--text-primary)}.resumen-factura{position:sticky;top:80px;height:fit-content}.resumen-card{background-color:#fff;border:1px solid var(--border-color);border-radius:16px;padding:24px;box-shadow:0 2px 8px #0000000d}.resumen-card h3{margin:0 0 20px;color:var(--text-primary);font-size:1.1rem;font-weight:600;border-bottom:1px solid var(--border-color);padding-bottom:12px;display:flex;align-items:center;gap:12px}.resumen-info{margin-bottom:16px}.resumen-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.resumen-info .resumen-row{border-bottom:1px solid var(--border-color)}.resumen-info .resumen-row:last-child{border-bottom:none}.resumen-label{color:var(--text-secondary);font-weight:500;font-size:.9rem}.resumen-value{font-weight:600;color:var(--text-primary);font-size:.95rem}.resumen-value-text{font-weight:500;color:var(--text-primary);font-size:.85rem;text-align:right;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.resumen-divider{height:1px;background:linear-gradient(to right,transparent,var(--border-color),transparent);margin:16px 0}.resumen-totales{background:linear-gradient(135deg,#45a8160d,#45a81605);border-radius:16px;padding:16px;margin-bottom:20px}.resumen-total-final{border-top:1px solid var(--border-color);padding-top:12px;margin-top:8px}.resumen-total-final .resumen-label{color:var(--text-primary);font-size:1.2rem;font-weight:700}.resumen-total-final .resumen-value{color:#3b82f6;font-size:1.2rem;font-weight:700}.resumen-actions{margin-top:20px}.btn-generar-full{width:100%;background-color:var(--accent-color);color:#fff;border:none;border-radius:16px;padding:14px 20px;font-size:1rem;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:all .3s ease;box-shadow:0 4px 12px #45a81633}.btn-generar-full:hover{opacity:.9;transform:translateY(-2px);box-shadow:0 6px 16px #45a8164d}.btn-programar-full{width:100%;background-color:transparent;color:#6b7280;border:1px solid #dee2e6;border-radius:16px;padding:14px 20px;font-size:14px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:all .3s ease;margin-top:12px}.btn-programar-full:hover{opacity:.9;background-color:#6b72801a;color:#4b5563}.observaciones-textarea{width:100%;padding:12px;border:1px solid var(--border-color);border-radius:16px;font-size:.9rem;color:var(--text-primary);background-color:var(--bg-primary);resize:vertical;font-family:inherit}.observaciones-textarea:focus{outline:none;border-color:var(--accent-color);box-shadow:0 0 0 3px #45a8161a}.form-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px;background-color:#fff;border:1px solid var(--border-color);border-radius:16px}.action-buttons-right{display:flex;gap:12px}.btn-archive-action{background-color:transparent;color:var(--text-secondary);border:1px solid var(--border-color);border-radius:16px;padding:10px 16px;font-size:.9rem;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:8px;transition:all .3s ease}.btn-archive-action:hover{border-color:#6b7280;color:#6b7280;background-color:var(--bg-secondary);transform:translateY(-1px)}.modal-content{background-color:var(--bg-primary);border-radius:16px;max-width:500px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 25px -5px #0000001a}.modal-header h2{margin:0;color:var(--text-primary);font-size:32px;font-weight:700}.modal-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:4px;border-radius:16px;transition:all .2s ease}.modal-close:hover{background-color:var(--bg-tertiary);color:var(--text-primary)}.modal-message{margin:0 0 12px;color:var(--text-primary);font-size:.95rem;line-height:1.5}.modal-message:last-child{margin-bottom:0}.modal-actions{display:flex;gap:12px;padding:20px 24px;border-top:1px solid var(--border-color);justify-content:flex-end}@media (max-width: 1024px){.factura-content{grid-template-columns:1fr}.resumen-factura{position:relative;top:0;order:2}.factura-form{order:1}}@media (max-width: 768px){.crear-factura-page{padding:16px;gap:16px}.form-card{padding:16px}.form-row{grid-template-columns:1fr}.form-row-3-columns{grid-template-columns:repeat(3,1fr)!important}.form-separator{width:calc(100% + 32px);margin:20px -16px}.form-actions{flex-direction:column;align-items:stretch}.action-buttons-right{width:100%}.form-actions button{width:100%;justify-content:center}.items-table{font-size:.8rem}.items-table th,.items-table td{padding:8px 6px}.resumen-card{padding:16px}}.modal-info{margin-top:16px;padding:12px;background-color:var(--bg-secondary);border-radius:16px;border:1px solid var(--border-color)}.modal-info p{margin:0;color:var(--text-primary);font-size:.95rem}.modal-body .form-group{margin-bottom:16px}.modal-body .form-group label{display:block;margin-bottom:8px;font-weight:500;color:var(--text-primary)}.modal-body .form-control{width:100%;padding:10px 12px;border:1px solid var(--border-color);border-radius:16px;font-size:1rem;color:var(--text-primary);background-color:var(--bg-primary);transition:border-color .3s ease}.modal-body .form-control:focus{outline:none;border-color:var(--accent-color)}.beautiful-alert-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:10000;padding:20px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:fadeIn .4s cubic-bezier(.4,0,.2,1)}.beautiful-alert-content{background:var(--bg-primary);border-radius:16px;box-shadow:0 20px 60px #0000004d;max-width:480px;width:100%;max-height:90vh;overflow:hidden;animation:slideIn .4s cubic-bezier(.4,0,.2,1);border:1px solid var(--border-color);position:relative}.beautiful-alert-header{padding:28px 28px 20px;display:flex;align-items:center;gap:16px;position:relative}.beautiful-alert-icon-container{width:64px;height:64px;min-width:64px;min-height:64px;border-radius:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;overflow:visible;padding:5px;margin:0}.beautiful-alert-icon-container:before{content:"";position:absolute;inset:0;background:transparent;border-radius:16px;z-index:0}.alert-icon{width:48px;height:48px;min-width:48px;min-height:48px;position:relative;z-index:10;display:block;color:#fff;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3));padding:0;margin:0}.alert-icon svg{width:100%;height:100%;display:block}.beautiful-alert-icon-container.warning{background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 8px 25px #f59e0b66}.beautiful-alert-icon-container.error{background:linear-gradient(135deg,#fecaca,#fca5a5);box-shadow:0 8px 25px #ef44444d}.beautiful-alert-icon-container.success{background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 8px 25px #10b98166}.beautiful-alert-icon-container.info{background:linear-gradient(135deg,#3b82f6,#2563eb);box-shadow:0 8px 25px #3b82f666}.beautiful-alert-title{margin:0;font-size:22px;font-weight:700;color:var(--text-primary);flex:1;line-height:1.3}.beautiful-alert-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:10px;border-radius:16px;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;width:40px;height:40px;position:relative;overflow:hidden}.beautiful-alert-close svg{color:inherit;stroke:currentColor;fill:none;transition:color .2s cubic-bezier(.4,0,.2,1),stroke .2s cubic-bezier(.4,0,.2,1)}.beautiful-alert-close svg path{stroke:currentColor;fill:none}.beautiful-alert-close:before{content:"";position:absolute;inset:0;background:#45a81626;border-radius:16px;opacity:0;transition:opacity .2s ease}.beautiful-alert-close:hover:before{opacity:1}.beautiful-alert-close:hover{color:#1f2937;transform:scale(1.1)}.beautiful-alert-close:hover svg,.beautiful-alert-content .beautiful-alert-close:hover svg{color:#1f2937;stroke:#1f2937;fill:none}.beautiful-alert-close:hover svg path,.beautiful-alert-content .beautiful-alert-close:hover svg path{stroke:#1f2937;fill:none}.beautiful-alert-close:active,.beautiful-alert-close:focus{color:#1f2937;outline:none}.beautiful-alert-close:active svg,.beautiful-alert-close:focus svg,.beautiful-alert-content .beautiful-alert-close:active svg,.beautiful-alert-content .beautiful-alert-close:focus svg{color:#1f2937;stroke:#1f2937;fill:none}.beautiful-alert-close:active svg path,.beautiful-alert-close:focus svg path,.beautiful-alert-content .beautiful-alert-close:active svg path,.beautiful-alert-content .beautiful-alert-close:focus svg path{stroke:#1f2937;fill:none}.beautiful-alert-body{padding:0 28px 28px}.beautiful-alert-message{color:var(--text-secondary);font-size:16px;line-height:1.6;margin:0;text-align:left;font-weight:500}.beautiful-alert-footer{padding:20px 28px 28px;display:flex;gap:12px;justify-content:flex-end;background:var(--bg-secondary);border-top:none}.beautiful-alert-btn{padding:12px 24px;border-radius:16px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;gap:8px;border:none;min-width:120px;justify-content:center;position:relative;overflow:hidden;white-space:nowrap}.beautiful-alert-btn:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);transition:left .5s ease}.beautiful-alert-btn:hover:before{left:100%}.beautiful-alert-btn-secondary{background:var(--bg-tertiary);color:var(--text-primary);border:1px solid var(--border-color);box-shadow:0 2px 4px var(--shadow)}.beautiful-alert-btn-secondary:hover{background:var(--hover-bg);transform:translateY(-2px);box-shadow:0 8px 25px var(--shadow)}.beautiful-alert-btn-retry{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;box-shadow:0 4px 12px #f59e0b4d}.beautiful-alert-btn-retry:hover{background:linear-gradient(135deg,#d97706,#b45309);transform:translateY(-2px);box-shadow:0 8px 25px #f59e0b66}.beautiful-alert-btn-primary{background:#1f2937;color:#fff;box-shadow:0 4px 12px #0003}.beautiful-alert-btn-primary:hover{background:#111827;transform:translateY(-2px);box-shadow:0 8px 25px #0000004d}.beautiful-alert-btn:active{transform:translateY(0)}@media (max-width: 640px){.beautiful-alert-content{margin:20px;max-width:none}.beautiful-alert-header{padding:24px 24px 16px}.beautiful-alert-body{padding:0 24px 24px}.beautiful-alert-footer{padding:16px 24px 24px;flex-direction:column}.beautiful-alert-btn{width:100%;order:1}.beautiful-alert-btn-primary{order:0}.beautiful-alert-title{font-size:20px}.beautiful-alert-message{font-size:15px}}@media (prefers-color-scheme: dark){.beautiful-alert-content{background:var(--bg-primary);border:1px solid var(--border-color)}.beautiful-alert-title{color:var(--text-primary)}.beautiful-alert-message{color:var(--text-secondary)}.beautiful-alert-footer{background:var(--bg-secondary);border-top:1px solid var(--border-color)}.beautiful-alert-close{color:var(--text-secondary)}.beautiful-alert-close:hover{color:#1f2937}.beautiful-alert-close:hover svg,.beautiful-alert-content .beautiful-alert-close:hover svg{color:#1f2937;stroke:#1f2937;fill:none}.beautiful-alert-close:hover svg path,.beautiful-alert-content .beautiful-alert-close:hover svg path{stroke:#1f2937;fill:none}.beautiful-alert-close:active,.beautiful-alert-close:focus{color:#1f2937;outline:none}.beautiful-alert-close:active svg,.beautiful-alert-close:focus svg,.beautiful-alert-content .beautiful-alert-close:active svg,.beautiful-alert-content .beautiful-alert-close:focus svg{color:#1f2937;stroke:#1f2937;fill:none}.beautiful-alert-close:active svg path,.beautiful-alert-close:focus svg path,.beautiful-alert-content .beautiful-alert-close:active svg path,.beautiful-alert-content .beautiful-alert-close:focus svg path{stroke:#1f2937;fill:none}}.delete-confirm-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:10000;padding:20px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:fadeIn .4s cubic-bezier(.4,0,.2,1)}.delete-confirm-content{background:var(--bg-primary);border-radius:16px;box-shadow:0 20px 60px #0000004d;max-width:480px;width:100%;max-height:90vh;overflow:hidden;animation:slideIn .4s cubic-bezier(.4,0,.2,1);border:1px solid var(--border-color);position:relative}@keyframes slideIn{0%{opacity:0;transform:scale(.9) translateY(-30px)}to{opacity:1;transform:scale(1) translateY(0)}}.delete-confirm-header{padding:28px 28px 0;display:flex;align-items:flex-start;justify-content:space-between;position:relative}.delete-confirm-icon-container{width:80px;height:80px;min-width:80px;min-height:80px;border-radius:20px;display:flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;overflow:visible;background:linear-gradient(135deg,#fee2e2,#fecaca);box-shadow:0 8px 25px #ef44444d;margin:0 auto}.delete-icon{width:48px;height:48px;min-width:48px;min-height:48px;position:relative;z-index:10;display:block;color:#dc2626;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.delete-confirm-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:10px;border-radius:16px;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;width:40px;height:40px;position:absolute;top:20px;right:20px}.delete-confirm-close:hover{background:var(--hover-bg);color:var(--text-primary);transform:scale(1.1)}.delete-confirm-body{padding:24px 28px;text-align:center}.delete-confirm-title{margin:0 0 16px;font-size:22px;font-weight:700;color:var(--text-primary)}.delete-item-name{background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:12px;padding:16px;margin:16px 0;font-size:1.1rem;font-weight:600;color:var(--text-primary)}.delete-warning-box{background:#fef3c7;border:1px solid #fde68a;border-radius:12px;padding:16px;display:flex;align-items:flex-start;gap:12px;margin-top:16px}.delete-warning-box svg{color:#d97706;flex-shrink:0;margin-top:2px}.delete-confirm-message{color:#92400e;font-size:14px;line-height:1.6;margin:0;text-align:left;font-weight:500}.delete-confirm-footer{padding:20px 28px 28px;display:flex;gap:12px;justify-content:flex-end;background:var(--bg-secondary);border-top:none}.delete-confirm-btn{padding:12px 24px;border-radius:16px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;gap:8px;border:none;min-width:120px;justify-content:center}.delete-confirm-btn-secondary{background:var(--bg-tertiary);color:var(--text-primary);border:1px solid var(--border-color);box-shadow:0 2px 4px var(--shadow)}.delete-confirm-btn-secondary:hover:not(:disabled){background:var(--hover-bg);transform:translateY(-2px);box-shadow:0 8px 25px var(--shadow)}.delete-confirm-btn-danger{background:#ef4444;color:#fff;box-shadow:0 4px 12px #ef44444d}.delete-confirm-btn-danger:hover:not(:disabled){background:#dc2626;transform:translateY(-2px);box-shadow:0 8px 25px #ef444466}.delete-confirm-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.delete-confirm-btn:active{transform:translateY(0)}@media (max-width: 640px){.delete-confirm-content{max-width:100%;margin:0 10px}.delete-confirm-header{padding:20px 20px 0}.delete-confirm-body{padding:20px}.delete-confirm-footer{padding:16px 20px 20px;flex-direction:column}.delete-confirm-btn{width:100%}.delete-confirm-icon-container{width:64px;height:64px}.delete-icon{width:40px;height:40px}}.pedidos-page{padding:20px;height:100%;display:flex;flex-direction:column;gap:20px}.btn-primary{background-color:#1f2937!important;color:#fff!important;border:none!important;border-radius:8px!important;padding:5px 10px!important;font-size:14px!important;font-weight:500!important;cursor:pointer;display:flex;align-items:center;gap:8px;transition:opacity .3s ease}.btn-primary:hover{opacity:.9}.btn-secondary{background:transparent!important;background-color:transparent!important;color:#374151!important;border:1px solid #dee2e6!important;border-radius:8px!important;padding:8px 10px!important;font-size:14px!important;font-weight:500!important;cursor:pointer;display:flex;align-items:center;gap:8px;transition:background-color .3s ease,color .3s ease;box-shadow:none!important}.btn-secondary:hover{background:#3741511a!important;background-color:#3741511a!important;border-color:#dee2e6!important;color:#374151!important;box-shadow:none!important}.search-input:focus{border-color:#4b5563;box-shadow:0 0 0 3px #0000000d}.filter-select:focus{border-color:#4b5563;box-shadow:0 0 0 3px #0000000d}.content-section{flex:1;background-color:#fff;border:1px solid var(--border-color);border-radius:16px;overflow:hidden}.pedidos-table{width:100%;border-collapse:collapse}.pedidos-table th{background-color:var(--bg-tertiary);color:#949bac;font-weight:600;padding:16px 12px;text-align:left;border-bottom:1px solid var(--border-color);font-size:.9rem}.pedidos-table td{padding:16px 12px;border-bottom:1px solid var(--border-color);color:var(--text-primary);font-size:.9rem}.pedidos-table tr:hover{background-color:var(--hover-bg)}.pedido-id{font-weight:600;color:#1f2937}.cliente{font-weight:500;color:#1f2937}.fecha{color:#4b5563}.monto{font-weight:600;color:#1f2937}.estado{padding:4px 8px;border-radius:16px;font-size:.8rem;font-weight:500;text-transform:capitalize}.estado-pagado{background-color:#d1f4e0;color:#0d6832}.estado-pendiente-pago{background-color:#fff4cc;color:#946c00}.estado-cancelado{background-color:#ffd9d9;color:#a01d1d}.estado-reembolsado{background-color:#d4e8ff;color:#004085}.estado-confirmado{background-color:#dbeafe;color:#1e40af}.estado-programado{background-color:#fef3c7;color:#92400e}.facturado{padding:4px 8px;border-radius:16px;font-size:.8rem;font-weight:500;text-transform:capitalize}.facturado-si{background-color:#d1f4e0;color:#0d6832}.facturado-no{background-color:#ffe6cc;color:#8b5000}.factura-id{font-weight:500;color:#4b5563}.acciones{display:flex;gap:8px}.btn-action{background:none;border:1px solid var(--border-color);border-radius:16px;padding:6px;cursor:pointer;color:var(--text-secondary);transition:all .3s ease;display:flex;align-items:center;justify-content:center}.btn-action:hover{background-color:var(--hover-bg);color:#1f2937;border-color:#4b5563}.btn-action.btn-delete:hover{background-color:#fee2e2;color:#dc2626;border-color:#dc2626}.btn-facturar{background-color:#0000000d;color:#1f2937;border-color:#4b5563}.btn-facturar:hover{background-color:#1f2937;color:#fff}.import-option:hover{background-color:var(--hover-bg);border-color:#4b5563;transform:translateY(-2px);box-shadow:0 4px 12px var(--shadow)}.import-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background-color:#0000000d;border-radius:16px;margin-right:16px;color:#1f2937;flex-shrink:0}@media (max-width: 768px){.pedidos-page{padding:15px}.header-content{flex-direction:row!important;gap:16px;align-items:center!important;flex-wrap:wrap}.filters-container{flex-direction:column;align-items:stretch}.search-container,.filter-container{min-width:auto}.pedidos-table{font-size:.8rem}.pedidos-table th,.pedidos-table td{padding:12px 8px}.modal-overlay{padding:10px}.modal-content{max-height:95vh}.modal-header{padding:16px 20px}.modal-body{padding:20px}.import-option{padding:16px}.import-icon{width:40px;height:40px;margin-right:12px}.import-content h4{font-size:.95rem}.import-content p{font-size:.85rem}}.pedido-modal-overlay{position:fixed;inset:0;background:#000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;animation:fadeIn .2s ease}.pedido-modal-content{background:var(--bg-primary);border-radius:20px;width:100%;max-width:900px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 25px 50px -12px #00000040;border:1px solid var(--border-color);animation:slideUp .3s ease,fadeIn .3s ease;transform:scale(1)}.pedido-modal-content.large-modal{max-width:1000px}.pedido-modal-header{flex-shrink:0;padding:28px;background:var(--bg-secondary);border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between}.pedido-modal-header h3{color:var(--text-primary);font-size:1.25rem;font-weight:600;margin:0}.pedido-modal-close{background:none;border:none;color:var(--text-secondary);font-size:32px;cursor:pointer;padding:0;line-height:1;transition:color .2s ease;width:32px;height:32px;display:flex;align-items:center;justify-content:center}.pedido-modal-close:hover{color:var(--text-primary)}.pedido-modal-body{flex:1;overflow-y:auto;padding:24px;background:var(--bg-primary)}.pedido-modal-footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 28px;background:var(--bg-secondary);border-top:1px solid var(--border-color)}.modal-footer-left{display:flex;gap:12px}.modal-footer-right{display:flex;gap:12px;margin-left:auto}.btn-delete-modal{background-color:#dc2626!important;color:#fff!important;border:none!important;border-radius:8px!important;padding:8px 16px!important;font-size:14px!important;font-weight:500!important;cursor:pointer;display:flex;align-items:center;gap:8px;transition:opacity .3s ease}.btn-delete-modal:hover{opacity:.9;background-color:#b91c1c!important}.detail-modal-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1001;padding:20px}.detail-modal-content{background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px 0 0 12px;width:100%;max-width:500px;height:100%;max-height:90vh;box-shadow:-10px 0 25px -5px #0000001a,-5px 0 10px -5px #0000000a;transform:translate(100%);animation:slideInFromRight .3s ease-out forwards;display:flex;flex-direction:column;overflow:hidden}@keyframes slideInFromRight{0%{transform:translate(100%)}to{transform:translate(0)}}.detail-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--border-color);background-color:var(--bg-tertiary);border-radius:12px 0 0;flex-shrink:0}.detail-modal-header h3{color:var(--text-primary);font-size:1.25rem;font-weight:600;margin:0}.detail-modal-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:8px;border-radius:16px;transition:all .3s ease;display:flex;align-items:center;justify-content:center;width:36px;height:36px}.detail-modal-close:hover{background-color:var(--hover-bg);color:var(--text-primary)}.detail-modal-body{padding:24px;flex:1;overflow-y:auto}.pedido-details-body{padding:24px;display:flex;flex-direction:column;gap:16px;flex:1;overflow-y:auto;border:none!important}.pedido-details-body .detail-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px;border:none!important;border-bottom:none!important}.pedido-details-body .detail-item{display:flex;flex-direction:column;gap:8px;padding:0!important;background:transparent!important;border-radius:0!important;border:none!important;align-items:flex-start;width:100%;box-shadow:none!important}.pedido-details-body .detail-item label{color:var(--text-secondary);font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:0;text-align:left;width:100%}.pedido-details-body .detail-value{background:var(--bg-tertiary);padding:16px;border-radius:12px;color:var(--text-primary);font-size:.95rem;font-weight:500;border:none;display:flex;align-items:center;text-align:left;word-wrap:break-word;overflow-wrap:break-word;min-height:48px;width:100%;justify-content:flex-start}.pedido-details-body .detail-value.estado-badge,.pedido-details-body .detail-value.facturado-badge{font-weight:600;justify-content:center}.pedido-details-body .btn-link-inline{margin-left:12px;color:var(--accent-color);background:none;border:none;cursor:pointer;font-size:.9rem;font-weight:500;text-decoration:none;transition:opacity .2s}.pedido-details-body .btn-link-inline:hover{opacity:.8;text-decoration:underline}.pedido-info-grid{display:grid;grid-template-columns:1fr;gap:20px}.info-item{display:flex;flex-direction:column;gap:8px}.info-item label{color:var(--text-secondary);font-size:.9rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.info-item span{color:#1f2937!important;font-size:1rem;font-weight:500}.info-item .pedido-id{color:#1f2937!important;font-weight:600;font-size:1.1rem}.info-item .cliente{font-weight:600;color:#1f2937!important}.info-item .fecha{color:#4b5563!important}.info-item .monto{color:#1f2937!important;font-weight:600;font-size:1.2rem}.info-item .estado{padding:6px 12px;border-radius:16px;font-size:.8rem;font-weight:500;text-transform:capitalize;display:inline-block;width:fit-content}.info-item .estado.estado-pagado{background-color:#d1f4e0;color:#0d6832!important}.info-item .estado.estado-pendiente-pago{background-color:#fff4cc;color:#946c00!important}.info-item .estado.estado-cancelado{background-color:#ffd9d9;color:#a01d1d!important}.info-item .estado.estado-reembolsado{background-color:#d4e8ff;color:#004085!important}.info-item .estado.estado-confirmado{background-color:#dbeafe;color:#1e40af!important}.info-item .estado.estado-programado{background-color:#fef3c7;color:#92400e!important}.info-item .facturado{padding:6px 12px;border-radius:16px;font-size:.8rem;font-weight:500;text-transform:capitalize;display:inline-block;width:fit-content}.info-item .facturado.facturado-si{background-color:#d1f4e0;color:#0d6832!important}.info-item .facturado.facturado-no{background-color:#ffe6cc;color:#8b5000!important}.info-item .factura-id{color:#1f2937!important;font-weight:600}.factura-info{background-color:var(--bg-tertiary);padding:16px;border-radius:16px;border-left:4px solid #4b5563}.factura-info label{color:#1f2937!important;font-weight:600}.factura-info .factura-id{font-size:1.1rem;margin-bottom:8px;display:block;color:#1f2937!important}.btn-link{background:none;border:none;color:#4b5563!important;font-size:.9rem;font-weight:500;cursor:pointer;padding:4px 8px;border-radius:16px;transition:all .3s ease;text-decoration:none;display:inline-flex;align-items:center;gap:4px}.btn-link:hover{background-color:#0000000d;color:#1f2937!important;transform:translate(2px)}.pedido-section{margin-top:24px;padding-top:20px;border-top:1px solid var(--border-color)}.section-title{color:#1f2937;font-size:.95rem;font-weight:600;margin:0 0 16px;text-transform:uppercase;letter-spacing:.5px}.conceptos-table-container{overflow-x:auto;border:1px solid var(--border-color);border-radius:16px}.conceptos-table{width:100%;border-collapse:collapse;font-size:.9rem}.conceptos-table thead{background-color:#00000005}.conceptos-table th{padding:12px;text-align:left;color:#4b5563;font-weight:600;font-size:.85rem;text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid var(--border-color)}.conceptos-table td{padding:12px;color:#1f2937;border-bottom:1px solid var(--border-color)}.conceptos-table tbody tr:last-child td{border-bottom:none}.conceptos-table tbody tr:hover{background-color:#00000005}.concepto-desc{font-weight:500;color:#1f2937!important}.concepto-cant{text-align:center;color:#4b5563!important}.concepto-precio,.concepto-importe{text-align:right;font-weight:500;color:#1f2937!important}.desglose-fiscal{background-color:#00000005;border:1px solid var(--border-color);border-radius:16px;padding:16px}.desglose-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--border-color)}.desglose-row:last-child{border-bottom:none}.desglose-label{color:#4b5563;font-size:.9rem;font-weight:500}.desglose-value{color:#1f2937!important;font-weight:600;font-size:.95rem}.desglose-value.descuento{color:#ef4444!important}.desglose-total{margin-top:8px;padding-top:12px;border-top:2px solid var(--border-color)!important}.desglose-total .desglose-label{color:#1f2937;font-size:1rem;font-weight:700;text-transform:uppercase}.desglose-total .desglose-value{color:#1f2937!important;font-size:1.1rem;font-weight:700}.pedido-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:12px;padding:20px 24px;border-top:1px solid var(--border-color);background-color:var(--bg-secondary);flex-shrink:0;box-shadow:0 -4px 10px #0000000d}.pedido-actions .btn-primary,.pedido-actions .btn-secondary{flex:1;min-width:fit-content;justify-content:center}.info-item .pedimento{color:#1f2937!important;font-weight:500;font-family:monospace;font-size:.95rem}@media (max-width: 768px){.detail-modal-overlay{padding:10px}.detail-modal-content{max-width:100%;border-radius:16px;max-height:95vh}.detail-modal-header{padding:16px 20px;border-radius:12px 12px 0 0}.detail-modal-body{padding:20px}.pedido-info-grid{gap:16px}.pedido-details-body .detail-row{grid-template-columns:1fr}.info-item label{font-size:.85rem}.info-item span{font-size:.95rem}.info-item .pedido-id{font-size:1rem}.info-item .monto{font-size:1.1rem}.conceptos-table{font-size:.8rem}.conceptos-table th,.conceptos-table td{padding:8px}.section-title{font-size:.9rem}.desglose-fiscal{padding:12px}.desglose-label,.desglose-value{font-size:.85rem}.desglose-total .desglose-label,.desglose-total .desglose-value{font-size:.95rem}.pedido-actions{padding:16px 20px}}.format-option input[type=radio]:checked+.format-card{border-color:#4b5563;background-color:#0000000d}.format-card:hover{border-color:#4b5563;background-color:var(--hover-bg)}.format-icon.excel{background-color:#22c55e1a;color:#16a34a}.format-icon.csv,.format-icon.pdf{background-color:#0000000d;color:#1f2937}.date-input:focus{border-color:#4b5563;box-shadow:0 0 0 3px #0000000d}@media (max-width: 768px){.export-modal-overlay{padding:10px}.export-modal-content{max-width:100%;max-height:95vh}.export-modal-header{padding:16px 20px}.export-modal-body{padding:20px}.export-options{gap:20px}.format-options{grid-template-columns:1fr;gap:10px}.date-inputs{grid-template-columns:1fr;gap:12px}.export-modal-footer{padding:16px 20px;flex-direction:column}.export-modal-footer .btn-primary,.export-modal-footer .btn-secondary{width:100%;justify-content:center}}.loading-spinner{width:64px;height:64px;background-image:url(/ezgif.com-effects.gif);background-size:contain;background-repeat:no-repeat;background-position:center;background-color:transparent;border:none;border-radius:0;animation:none}@keyframes itemAdded{0%{background-color:#45a81626;transform:scale(1.02)}50%{background-color:#45a81614}to{background-color:transparent;transform:scale(1)}}.item-added-animation{animation:itemAdded 1s ease-out}.btn-danger{background-color:#dc2626;color:#fff}.btn-danger:hover{background-color:#b91c1c}.large-modal{max-width:900px;width:90%}.order-items-section{margin-top:20px;padding:20px;background-color:#f9fafb;border-radius:16px;border:1px solid #e5e7eb}.order-items-section h4{margin:0 0 16px;color:var(--text-primary);font-size:16px;font-weight:600}.new-item-form{background-color:#fff;padding:16px;border-radius:16px;border:1px solid #d1d5db;margin-bottom:20px}.new-item-form .form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.new-item-form .form-row:last-of-type{grid-template-columns:1fr 1fr 1fr}.items-list{margin-top:20px}.items-list h5{margin:0 0 12px;color:var(--text-primary);font-size:14px;font-weight:600}.items-table{overflow-x:auto}.items-table table{width:100%;border-collapse:collapse;background-color:#fff;border-radius:16px;overflow:hidden;box-shadow:0 1px 3px #0000001a}.items-table th,.items-table td{padding:12px;text-align:left;border-bottom:1px solid #e5e7eb}.items-table th{background-color:#f9fafb;font-weight:600;color:var(--text-primary);font-size:12px;text-transform:uppercase;letter-spacing:.05em}.items-table td{color:var(--text-secondary);font-size:14px}.items-table tr:last-child td{border-bottom:none}.totals-summary{margin-top:20px;background-color:#fff;padding:16px;border-radius:16px;border:1px solid #d1d5db}.totals-grid{display:flex;flex-direction:column;gap:8px}.total-row{display:flex;justify-content:space-between;align-items:center;padding:4px 0}.total-row span:first-child{color:var(--text-secondary);font-size:14px}.total-row span:last-child{color:var(--text-primary);font-weight:500;font-size:14px}.total-final{border-top:2px solid #e5e7eb;margin-top:8px;padding-top:12px}.total-final span:first-child{font-weight:600;color:var(--text-primary);font-size:16px}.total-final span:last-child{font-weight:700;color:var(--text-primary);font-size:16px}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{color:var(--text-primary);font-size:14px;font-weight:500}.form-group input,.form-group select,.form-group textarea{padding:10px 12px;border:1px solid #d1d5db;border-radius:16px;font-size:14px;color:var(--text-primary);background-color:#fff;transition:border-color .2s,box-shadow .2s}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #3b82f61a}.form-group textarea{resize:vertical;min-height:80px}.modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:20px;border-top:1px solid #e5e7eb;background-color:#f9fafb}.modal-description{color:#475569;font-size:14px;margin-bottom:20px;text-align:center}.import-option{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:20px;display:flex;align-items:flex-start;gap:16px;transition:all .2s;cursor:pointer}.import-option:hover{border-color:#45a81f;box-shadow:0 2px 8px #45a81f1a}.import-icon{background:#45a81f;color:#fff;width:48px;height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.import-content{flex:1}.import-content h4{margin:0 0 8px;color:#1e293b;font-size:16px;font-weight:600}.import-content p{margin:0 0 12px;color:#475569;font-size:14px;line-height:1.5}.csv-select-button{background:#45a81f;color:#fff;border:none;border-radius:16px;padding:8px 16px;font-size:14px;font-weight:500;cursor:pointer;transition:background-color .2s}.csv-select-button:hover{background:#3a8a1a}.excel-mapping-modal{background:#fff;border-radius:16px;box-shadow:0 25px 50px -12px #00000040;max-width:90vw;max-height:90vh;width:1000px;display:flex;flex-direction:column;overflow:hidden;min-height:400px;height:auto}.excel-header{background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:20px 24px;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.excel-header h3{margin:0;color:#1e293b;font-size:20px;font-weight:600}.excel-container::-webkit-scrollbar{width:8px}.excel-container::-webkit-scrollbar-track{background:#f1f5f9;border-radius:16px}.excel-container::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:16px}.excel-container::-webkit-scrollbar-thumb:hover{background:#94a3b8}.excel-container{padding:12px;flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:12px;min-height:0;max-height:calc(90vh - 180px);position:relative}.excel-instructions{background:#e0f2fe;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;border:1px solid #bae6fd;box-shadow:0 1px 3px #0000001a}.instruction-item{display:flex;align-items:center;gap:12px}.instruction-icon{font-size:18px;flex-shrink:0;opacity:.7}.instruction-text{color:#1e40af;font-size:14px;line-height:1.4;font-weight:500}.instruction-tip-box{padding:1px 12px;background:#fff3cd;border:1px solid #ffeaa7;border-radius:16px;color:#856404;font-size:.9rem;display:flex;align-items:center}.instruction-tip-box .instruction-icon{font-size:16px;opacity:.8}.instruction-tip-box .instruction-tip{color:#92400e;font-size:13px;font-weight:500;line-height:1.3}.excel-worksheet{background:#fff;border:1px solid #e2e8f0;border-radius:16px;overflow:auto;max-height:50vh;min-height:200px;box-shadow:0 1px 3px #0000001a;flex-shrink:0}.excel-row{display:flex;border-bottom:1px solid #e2e8f0}.excel-cell{padding:6px 8px;border-right:1px solid #e2e8f0;display:flex;align-items:center;justify-content:center;min-height:32px;font-size:11px;font-weight:500;color:#374151;min-width:120px;width:auto;flex-shrink:0;position:relative}.excel-row-header{background:#f8fafc;color:#1e293b;font-weight:600;min-width:100px;width:auto}.excel-field-header{background:#f1f5f9;color:#1e293b;font-weight:600;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.excel-csv-header{background:#fef3c7;color:#92400e;font-weight:600;cursor:pointer;transition:all .2s;min-width:100px;width:auto}.excel-csv-header:hover{background:#fde68a}.excel-drop-zone{background:#fff;cursor:pointer;transition:all .2s;position:relative}.excel-drop-zone:hover{background:#f8fafc}.excel-drop-zone.drag-over{background:#dbeafe;border:2px dashed #3b82f6}.excel-drop-zone.mapped{background:#dcfce7;color:#166534;font-weight:600}.mapping-indicator{position:absolute;top:4px;right:4px;width:8px;height:8px;background:#10b981;border-radius:50%}.excel-preview{background:#f8fafc;border-radius:16px;padding:20px;max-height:300px;overflow-y:auto;overflow-x:auto}.excel-preview::-webkit-scrollbar{width:8px;height:8px}.excel-preview::-webkit-scrollbar-track{background:#f1f5f9;border-radius:16px}.excel-preview::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:16px}.excel-preview::-webkit-scrollbar-thumb:hover{background:#94a3b8}.excel-preview h4{margin:0 0 16px;color:#1e293b;font-size:16px;font-weight:600}.excel-preview-headers{margin-bottom:12px;display:block}.excel-preview-headers table{width:100%;border-collapse:collapse;background:#fff;border-radius:16px;overflow:hidden;border:2px solid #3b82f6;box-shadow:0 2px 4px #0000001a}.excel-preview-headers th{padding:10px 12px;background:#dbeafe;color:#1e40af;font-weight:600;font-size:13px;text-align:left;border-right:1px solid #93c5fd}.excel-preview-headers th:last-child{border-right:none}.excel-preview-table{background:#fff;border-radius:16px;overflow:auto;max-height:250px;border:1px solid #e2e8f0}.excel-preview-table table{width:100%;border-collapse:collapse;display:table;table-layout:fixed}.excel-preview-table thead{background:#f1f5f9}.excel-preview-table th,.excel-preview-table td{padding:8px 10px;border-bottom:1px solid #e2e8f0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;font-size:.9rem}.excel-preview-header-cell{font-weight:600;color:#1e293b;background:#f1f5f9}.excel-preview-data-cell{color:#374151;font-size:12px}.excel-preview-data-cell:hover{background:#f8fafc;white-space:normal;overflow:visible;text-overflow:unset}.excel-actions{display:flex;justify-content:flex-end;gap:12px;padding:20px 24px;border-top:1px solid #e2e8f0;background:#fff;flex-shrink:0;border-radius:0 0 12px 12px}.excel-btn{padding:12px 24px;border-radius:16px;font-weight:500;font-size:14px;cursor:pointer;transition:all .2s;border:none}.excel-btn-secondary{background:#f1f5f9;color:#475569;border:1px solid #d1d5db}.excel-btn-secondary:hover{background:#e2e8f0}.excel-btn-primary{background:#1f2937;color:#fff}.excel-btn-primary:hover:not(:disabled){background:#374151}.excel-btn-primary:disabled{background:#9ca3af;cursor:not-allowed}.excel-worksheet::-webkit-scrollbar{width:8px;height:8px}.excel-worksheet::-webkit-scrollbar-track{background:#f1f5f9;border-radius:16px}.excel-worksheet::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:16px}.excel-worksheet::-webkit-scrollbar-thumb:hover{background:#94a3b8}.excel-worksheet:after{content:"";position:sticky;bottom:0;right:0;width:20px;height:20px;background:linear-gradient(45deg,transparent 30%,#e2e8f0 30%,#e2e8f0 70%,transparent 70%);pointer-events:none;opacity:.5}@media (max-width: 768px){.large-modal{width:95%;max-width:95%}.form-row{grid-template-columns:1fr}.new-item-form .form-row:last-of-type{grid-template-columns:1fr}.excel-mapping-modal{width:95vw;max-width:95vw;max-height:95vh;min-height:300px}.excel-worksheet{max-height:40vh;min-height:150px}.excel-cell{min-width:80px;padding:4px 6px;font-size:10px}.excel-row-header,.excel-csv-header{min-width:80px}.import-option{flex-direction:column;text-align:center}.import-icon{align-self:center}.csv-select-button{width:100%}}.clientes-page{padding:20px;min-height:100vh;display:flex;flex-direction:column;gap:20px}.title-section>div{display:flex;flex-direction:column;align-items:flex-start}.btn-secondary{background-color:transparent;color:#374151;border:1px solid var(--border-color);border-radius:16px;padding:10px 16px;font-size:.9rem;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:8px;transition:all .3s ease}.btn-secondary:hover{background-color:#3741511a;border-color:#374151;color:#374151;transform:translateY(-1px)}.filters-container{display:flex;gap:20px;align-items:end;flex-wrap:wrap}.filter-icon-container{position:relative}.filter-icon-btn{background-color:transparent;border:1px solid var(--border-color);border-radius:8px;padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease;color:var(--text-secondary)}.filter-icon-btn:hover{color:#45a816;border-color:#45a816}.filter-modal-dropdown{position:absolute;top:100%;right:0;margin-top:8px;background-color:#fff;border:1px solid var(--border-color);border-radius:8px;box-shadow:0 4px 12px #00000026;z-index:1000;min-width:200px;animation:slideDown .2s ease-out}.filter-option{padding:12px 16px;cursor:pointer;transition:background-color .2s ease;color:var(--text-primary);font-size:.9rem}.filter-option:hover{background-color:var(--hover-bg);color:#45a816}.filter-option:first-child{border-radius:8px 8px 0 0}.filter-option:last-child{border-radius:0 0 8px 8px}.search-container{flex:1;min-width:300px}.search-input-wrapper{position:relative}.search-input{width:100%;padding:12px 12px 12px 40px;background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary);font-size:.9rem;outline:none;transition:all .3s ease}.search-input:focus{border-color:var(--accent-color);box-shadow:0 0 0 3px #45a8161a}.search-input::placeholder{color:var(--text-secondary)}.filter-container{display:flex;flex-direction:column;gap:8px;min-width:200px}.filter-label{color:var(--text-primary);font-size:.9rem;font-weight:500}.filter-select{padding:12px;background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary);font-size:.9rem;outline:none;cursor:pointer;transition:all .3s ease}.filter-select:focus{border-color:var(--accent-color);box-shadow:0 0 0 3px #45a8161a}.content-section{flex:1;background-color:transparent;border:none;border-radius:16px;overflow:visible}.table-container{background-color:#fff!important;border:none!important;border-radius:16px!important;overflow:hidden!important;flex:1!important}.clientes-table{width:100%;border-collapse:collapse}.clientes-table th{background-color:var(--bg-tertiary);color:#949bac;font-weight:600;padding:16px 12px;text-align:left;border-bottom:1px solid var(--border-color);font-size:.9rem}.clientes-table td{padding:16px 12px;border-bottom:1px solid var(--border-color);color:var(--text-primary);font-size:.9rem}.clientes-table tr:hover{background-color:var(--hover-bg)}.rfc{font-weight:600;color:var(--accent-color);font-family:Courier New,monospace}.cliente{font-weight:500}.uso-cfdi,.regimen-fiscal{font-size:.85rem;color:var(--text-secondary)}.email,.telefono{color:var(--text-secondary)}.acciones{display:flex;gap:8px;align-items:center;justify-content:flex-start}.btn-action{background:none;border:1px solid var(--border-color);border-radius:16px;padding:6px;cursor:pointer;color:var(--text-secondary);transition:all .3s ease;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;min-width:32px;min-height:32px;box-sizing:border-box;margin:0;outline:none}.btn-action:hover{background-color:var(--hover-bg);color:var(--accent-color);border-color:var(--accent-color)}.btn-delete{color:#ef4444;border-color:#ef4444}.btn-delete:hover{background-color:#ef44441a;color:#ef4444;border-color:#ef4444}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 40px;color:var(--text-secondary);text-align:center;border:2px dashed var(--border-color);border-radius:16px;margin:40px;background-color:var(--bg-secondary)}.no-results svg{margin-bottom:16px;opacity:.5;font-size:48px}.cliente-modal-overlay{position:fixed;inset:0;background:#000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;animation:fadeIn .3s ease}.cliente-modal-content{background:var(--bg-primary);border-radius:16px;max-width:600px;width:100%;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 48px #0000004d;border:1px solid var(--border-color);animation:slideUp .3s ease}.cliente-modal-header{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;padding:24px 28px;background:var(--bg-secondary);border-bottom:1px solid var(--border-color)}.cliente-modal-header h2{margin:0;font-size:24px;font-weight:700;color:var(--text-primary)}.cliente-modal-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:32px;padding:8px;border-radius:8px;transition:all .2s ease;display:flex;align-items:center;justify-content:center;width:40px;height:40px;line-height:1}.cliente-modal-close:hover{background:var(--hover-bg);color:var(--text-primary)}.cliente-form{flex:1;overflow-y:auto;padding:24px;background:var(--bg-primary)}.cliente-modal-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center;flex-shrink:0;padding:20px 28px;margin:0;background:var(--bg-secondary);border-top:1px solid var(--border-color);width:100%;box-sizing:border-box}.modal-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-content{background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;width:100%;max-width:600px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;transition:all .3s ease}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--border-color)}.modal-header h3{color:var(--text-primary);font-size:1.25rem;font-weight:600;margin:0}.modal-close{background:none;border:none;color:var(--text-secondary);font-size:24px;cursor:pointer;padding:4px;border-radius:16px;transition:all .3s ease;display:flex;align-items:center;justify-content:center;width:32px;height:32px}.modal-close:hover{background-color:var(--hover-bg);color:var(--text-primary)}.modal-body{padding:24px}.modal-description{color:var(--text-secondary);font-size:.95rem;margin:0 0 24px;line-height:1.5}.import-options{display:flex;flex-direction:column;gap:16px}.import-option{display:flex;align-items:center;padding:20px;background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:16px;cursor:pointer;transition:all .3s ease;text-align:left;width:100%}.import-option:hover{background-color:var(--hover-bg);border-color:var(--accent-color);transform:translateY(-2px);box-shadow:0 4px 12px var(--shadow)}.import-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background-color:var(--accent-color);border-radius:16px;margin-right:16px;color:#fff;flex-shrink:0}.import-content h4{color:var(--text-primary);font-size:1rem;font-weight:600;margin:0 0 4px}.import-content p{color:var(--text-secondary);font-size:.9rem;margin:0;line-height:1.4}.detail-modal-overlay{position:fixed;inset:0;background:#000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1001;padding:20px;animation:fadeIn .3s ease}.detail-modal-content{background:var(--bg-primary);border-radius:16px;max-width:600px;width:100%;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 48px #0000004d;border:1px solid var(--border-color);animation:slideUp .3s ease}.detail-modal-header{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;padding:24px 28px;background:var(--bg-secondary);border-bottom:none}.detail-modal-header h3{margin:0;font-size:24px;font-weight:700;color:var(--text-primary)}.detail-modal-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:32px;padding:8px;border-radius:8px;transition:all .2s ease;display:flex;align-items:center;justify-content:center;width:40px;height:40px;line-height:1}.detail-modal-close:hover{background:var(--hover-bg);color:var(--text-primary)}.detail-modal-body{flex:1;overflow-y:auto;padding:24px;background:var(--bg-primary);border:none!important}.detail-modal-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center;flex-shrink:0;padding:20px 28px;margin:0;background:var(--bg-secondary);border-top:none;width:100%;box-sizing:border-box}.cliente-details-body{padding:24px;display:flex;flex-direction:column;gap:16px;flex:1;overflow-y:auto;border:none!important}.export-modal-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1002;padding:20px}.export-modal-content{background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;animation:modalFadeIn .3s ease-out}@keyframes modalFadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.export-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--border-color);background-color:var(--bg-tertiary);border-radius:12px 12px 0 0}.export-modal-header h3{color:var(--text-primary);font-size:1.25rem;font-weight:600;margin:0}.export-modal-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:8px;border-radius:16px;transition:all .3s ease;display:flex;align-items:center;justify-content:center;width:36px;height:36px}.export-modal-close:hover{background-color:var(--hover-bg);color:var(--text-primary)}.export-modal-body{padding:24px}.export-options{display:flex;flex-direction:column;gap:24px}.format-section,.date-range-section{display:flex;flex-direction:column;gap:16px}.format-section h4,.date-range-section h4{color:var(--text-primary);font-size:1rem;font-weight:600;margin:0}.format-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.format-info-single{display:flex;align-items:center;gap:16px;padding:20px;background:var(--card-background);border:1px solid var(--border-color);border-radius:16px;margin-top:12px}.format-details h5{margin:0 0 8px;color:var(--text-primary);font-size:1.1rem;font-weight:600}.format-details p{margin:0;color:var(--text-secondary);font-size:.9rem;line-height:1.4}.format-option{cursor:pointer;position:relative}.format-option input[type=radio]{position:absolute;opacity:0;pointer-events:none}.format-card{display:flex;align-items:center;padding:16px;background-color:var(--bg-tertiary);border:2px solid var(--border-color);border-radius:16px;transition:all .3s ease;gap:12px}.format-option input[type=radio]:checked+.format-card{border-color:var(--accent-color);background-color:#45a8160d}.format-card:hover{border-color:var(--accent-color);background-color:var(--hover-bg)}.format-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:16px;flex-shrink:0}.format-icon.csv{background-color:#22c55e1a;color:#22c55e}.format-icon.pdf{background-color:#ef44441a;color:#ef4444}.format-info h5{color:var(--text-primary);font-size:1rem;font-weight:600;margin:0 0 4px}.format-info p{color:var(--text-secondary);font-size:.85rem;margin:0}.date-inputs{display:grid;grid-template-columns:1fr 1fr;gap:16px}.date-input-group{display:flex;flex-direction:column;gap:8px}.date-input-group label{color:var(--text-primary);font-size:.9rem;font-weight:500}.date-input{padding:10px 12px;background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary);font-size:.9rem;outline:none;transition:all .3s ease}.date-input:focus{border-color:var(--accent-color);box-shadow:0 0 0 3px #45a8161a}.date-help{color:var(--text-secondary);font-size:.85rem;margin:0;padding:12px;background-color:var(--bg-tertiary);border-radius:16px;border-left:3px solid var(--accent-color)}.export-modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:20px 24px;border-top:1px solid var(--border-color);background-color:var(--bg-tertiary);border-radius:0 0 12px 12px}.export-modal-footer .btn-primary,.export-modal-footer .btn-secondary{padding:10px 20px;font-size:.9rem}.cliente-form{padding:2rem}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:1.5rem}.form-group label{font-weight:600;color:var(--text-primary);font-size:.95rem}.form-group input,.form-group select{padding:1rem;border:2px solid var(--border-color);border-radius:16px;background:var(--bg-secondary);color:var(--text-primary);font-size:1rem;transition:all .3s ease}.form-group input:focus,.form-group select:focus{outline:none;border-color:var(--accent-color);box-shadow:0 0 0 3px #45a8161a;background:var(--bg-primary)}.form-group input::placeholder{color:var(--text-secondary);opacity:.7}.form-group select:disabled{opacity:.6;cursor:not-allowed;background:var(--bg-tertiary)}.form-group select option{background:var(--bg-primary);color:var(--text-primary);padding:.5rem}.form-group input.error,.form-group select.error{border-color:#ef4444;box-shadow:0 0 0 3px #ef44441a}.form-group .error-message{color:#ef4444;font-size:.8rem;margin-top:.4rem;display:block;font-weight:400;line-height:1.4;padding:.4rem .6rem;background:#ef44440d;border-radius:16px;border-left:3px solid #ef4444;max-width:100%;word-wrap:break-word;white-space:normal}.form-group .error-message.long-text{font-size:.75rem;line-height:1.3;padding:.5rem .6rem;background:#ef44440f;border-radius:5px}.searchable-select{position:relative;width:100%}.searchable-select input{width:100%;padding:10px 14px;border:1px solid var(--border-color);border-radius:8px;font-size:14px;background-color:var(--bg-primary);color:var(--text-primary);transition:all .2s ease;cursor:text}.searchable-select input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #3b82f61a}.searchable-select input:disabled{background-color:var(--bg-secondary);cursor:not-allowed;opacity:.6}.searchable-select-dropdown{position:absolute;top:100%;left:0;right:0;margin-top:4px;background-color:var(--bg-primary);border:1px solid var(--border-color);border-radius:8px;box-shadow:0 4px 12px #00000026;max-height:300px;overflow-y:auto;z-index:1000}.searchable-select-option{padding:12px 14px;cursor:pointer;transition:background-color .15s ease;border-bottom:1px solid var(--border-color)}.searchable-select-option:last-child{border-bottom:none}.searchable-select-option:hover{background-color:var(--bg-secondary)}.searchable-select-option.selected{background-color:#3b82f61a;border-left:3px solid var(--primary-color)}.searchable-select-option .option-value{font-weight:600;color:var(--text-primary);font-size:13px;margin-bottom:4px}.searchable-select-option .option-name{color:var(--text-secondary);font-size:12px;line-height:1.4}.searchable-select-no-results{padding:16px;text-align:center;color:var(--text-secondary);font-size:14px}.searchable-select-dropdown::-webkit-scrollbar{width:8px}.searchable-select-dropdown::-webkit-scrollbar-track{background:var(--bg-secondary);border-radius:4px}.searchable-select-dropdown::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:4px}.searchable-select-dropdown::-webkit-scrollbar-thumb:hover{background:var(--text-secondary)}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:50vh;gap:1rem}.loading-spinner{width:64px;height:64px;background-image:url(/ezgif.com-effects.gif);background-size:contain;background-repeat:no-repeat;background-position:center;background-color:transparent;border:none;border-radius:0;animation:none}.error-message{background:#ef444414;color:#ef4444;padding:.75rem 1rem;border-radius:16px;margin-bottom:1rem;border:1px solid rgba(239,68,68,.15);font-weight:400;font-size:.9rem;line-height:1.4;border-left:4px solid #ef4444}.pagination-container{display:flex;justify-content:space-between;align-items:center;margin-top:2rem;padding:1rem 20px;border-top:1px solid var(--border-color)}.pagination-info{color:var(--text-secondary);font-size:.9rem}.pagination-controls{display:flex;align-items:center;gap:.5rem}.pagination-btn{padding:.5rem 1rem;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary);cursor:pointer;font-size:.9rem;transition:all .2s ease}.pagination-btn:hover:not(:disabled){background:var(--hover-bg);border-color:var(--accent-color)}.pagination-btn:disabled{opacity:.5;cursor:not-allowed}.pagination-numbers{display:flex;gap:.25rem}.pagination-number{padding:.5rem .75rem;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary);cursor:pointer;font-size:.9rem;transition:all .2s ease;min-width:40px;text-align:center}.pagination-number:hover{background:var(--hover-bg);border-color:var(--accent-color)}.pagination-number.active{background:var(--accent-color);border-color:var(--accent-color);color:#fff}.csv-option{position:relative}.file-input{display:none}.file-input-label{display:inline-block;padding:8px 16px;background:var(--accent-color);color:#fff;border-radius:16px;cursor:pointer;font-size:.9rem;margin-top:10px;transition:all .2s ease}.file-input-label:hover{background:var(--accent-hover)}.file-selected{margin-top:10px;padding:10px;background:var(--bg-tertiary);border-radius:16px;border:1px solid var(--border-color)}.file-selected p{margin:0;font-size:.9rem;color:var(--text-secondary)}.excel-mapping-modal{width:95%;max-width:1200px;max-height:90vh;background:#fff;border-radius:16px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;overflow:hidden}.excel-header{background:#f7f8fb;padding:16px 20px;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;align-items:center}.excel-header h3{margin:0;color:#212529;font-size:1.25rem;font-weight:600}.excel-close{background:none;border:none;font-size:24px;color:#6c757d;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:16px;transition:all .2s ease}.excel-close:hover{background:#e9ecef;color:#495057}.excel-container{padding:20px;max-height:calc(90vh - 80px);overflow-y:auto}.excel-instructions{margin-bottom:20px;padding:12px 16px;background:#e3f2fd;border:1px solid #bbdefb;border-radius:16px;border-left:4px solid #2196f3}.excel-instructions p{margin:0;color:#1565c0;font-size:.95rem;font-weight:500}.instruction-item{display:flex;align-items:center;gap:8px;margin-bottom:8px}.instruction-icon{font-size:1.2rem;min-width:24px}.instruction-tip{margin-top:12px;padding:8px 12px;background:#fff3cd;border:1px solid #ffeaa7;border-radius:16px;color:#856404;font-size:.9rem}.csv-columns-section{margin-bottom:30px}.csv-columns-section h4{margin:0 0 15px;color:#495057;font-size:1.1rem;font-weight:600}.csv-columns-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.csv-column-item{background:#fff;border:2px solid #e9ecef;border-radius:16px;padding:12px 16px;cursor:grab;transition:all .2s ease;display:flex;justify-content:space-between;align-items:center}.csv-column-item:hover{border-color:#28a745;background:#f8fff9;transform:translateY(-2px);box-shadow:0 4px 8px #28a7451a}.csv-column-item:active{cursor:grabbing;transform:translateY(0)}.csv-column-item.mapped{background:#d4edda;border-color:#28a745;color:#155724}.csv-column-name{font-weight:600;color:#495057;font-size:.9rem}.csv-column-item.mapped .csv-column-name{color:#155724}.drag-hint{font-size:.8rem;color:#6c757d;font-style:italic}.csv-column-item.mapped .drag-hint{color:#28a745;font-weight:500}.mapping-section{margin-bottom:30px}.mapping-section h4{margin:0 0 20px;color:#495057;font-size:1.1rem;font-weight:600}.mapping-fields{display:flex;flex-direction:column;gap:16px}.mapping-field{background:#fff;border:1px solid #e9ecef;border-radius:16px;padding:16px;transition:all .2s ease}.mapping-field:hover{border-color:#28a745;box-shadow:0 2px 4px #28a7451a}.field-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.field-label{font-weight:600;color:#495057;font-size:1rem}.field-label.required{color:#dc3545}.field-type{font-size:.8rem;color:#6c757d;background:#f7f8fb;padding:4px 8px;border-radius:16px;font-weight:500}.field-mapping{display:flex;gap:8px;align-items:center}.mapping-select{flex:1;padding:10px 12px;border:1px solid #ced4da;border-radius:16px;background:#fff;color:#495057;font-size:.9rem;transition:all .2s ease}.mapping-select:focus{outline:none;border-color:#28a745;box-shadow:0 0 0 3px #28a7451a}.clear-mapping{background:#dc3545;color:#fff;border:none;border-radius:50%;width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:14px;font-weight:700;transition:all .2s ease}.clear-mapping:hover{background:#c82333;transform:scale(1.1)}.excel-worksheet{background:#fff;border:1px solid #d0d7de;border-radius:16px;overflow:hidden;margin-bottom:20px}.excel-row{display:flex;border-bottom:1px solid #d0d7de}.excel-row:last-child{border-bottom:none}.excel-cell{padding:12px 16px;border-right:1px solid #d0d7de;display:flex;align-items:center;min-height:50px;font-size:.9rem;position:relative}.excel-cell:last-child{border-right:none}.excel-header-row{background:#f6f8fa;font-weight:600}.excel-row-header{background:#e1e4e8;font-weight:600;color:#24292f;width:150px;min-width:150px;max-width:150px;justify-content:center}.excel-field-header{background:#f6f8fa;color:#24292f;font-weight:600;width:150px;min-width:150px;max-width:150px;justify-content:center;text-align:center}.excel-field-header .required{color:#dc3545}.excel-csv-row{background:#fff}.excel-csv-header{background:#f7f8fb;font-weight:600;color:#495057;cursor:grab;-webkit-user-select:none;user-select:none;transition:all .2s ease;width:150px;min-width:150px;max-width:150px;justify-content:center;text-align:center;border:2px solid transparent;border-radius:16px}.excel-csv-header:hover{background:#e9ecef;border-color:#28a745;transform:translateY(-2px);box-shadow:0 4px 8px #0000001a}.excel-csv-header:active{cursor:grabbing;transform:translateY(0)}.excel-csv-header.mapped{background:#d4edda;color:#155724;border:2px solid #28a745;transform:scale(1.05)}.excel-drop-zone{background:#fff;cursor:pointer;transition:all .2s ease;width:150px;min-width:150px;max-width:150px;justify-content:center;position:relative;border:2px dashed transparent}.excel-drop-zone:hover{background:#f7f8fb;border-color:#28a745;transform:scale(1.02)}.excel-drop-zone.mapped-to{background:#d1ecf1;border:2px solid #17a2b8;transform:scale(1.05)}.excel-drop-zone:before{content:"";position:absolute;inset:0;background:#28a7451a;opacity:0;transition:opacity .2s ease;pointer-events:none}.excel-drop-zone:hover:before{opacity:1}.excel-drop-zone.drag-over{background:#d1ecf1!important;border-color:#17a2b8!important;transform:scale(1.05)!important;box-shadow:0 0 0 3px #17a2b84d!important}.mapping-indicator{color:#28a745;font-weight:700;font-size:1.2rem}.excel-preview{margin-top:20px;border:1px solid #d0d7de;border-radius:16px;overflow:hidden}.excel-preview-table{width:100%;overflow-x:auto;display:block;white-space:nowrap}.excel-preview-table thead,.excel-preview-table tbody,.excel-preview-table tr{display:table;width:100%;table-layout:fixed}.excel-preview-header{background:#f6f8fa;padding:12px 16px;border-bottom:1px solid #d0d7de}.excel-preview-header h4{margin:0;color:#24292f;font-size:1rem;font-weight:600}.excel-preview-table{background:#fff;display:table;width:100%;table-layout:fixed;border-collapse:collapse}.excel-preview-header{background:#f6f8fa;font-weight:600;color:#24292f;display:table-header-group}.excel-preview-header-cell{background:#f6f8fa;font-weight:600;color:#24292f;width:150px;min-width:150px;max-width:150px;justify-content:center;text-align:center;padding:12px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:table-cell;vertical-align:middle;border-right:1px solid #d0d7de}.excel-preview-data{background:#fff;display:table-row}.excel-preview-data:nth-child(2n){background:#f7f8fb}.excel-preview-data-cell{color:#495057;width:150px;min-width:150px;max-width:150px;text-align:center;font-size:.85rem;padding:12px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:table-cell;vertical-align:middle;border-right:1px solid #d0d7de;position:relative}.excel-preview-data-cell:hover{overflow:visible;white-space:normal;background:#fff3cd;z-index:10;position:relative;box-shadow:0 2px 8px #00000026}.excel-actions{display:flex;gap:12px;justify-content:flex-end;padding-top:20px;border-top:1px solid #d0d7de}.excel-btn{padding:10px 20px;border-radius:16px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease;border:1px solid transparent}.excel-btn-secondary{background:#f7f8fb;color:#495057;border-color:#d0d7de}.excel-btn-secondary:hover{background:#e9ecef;border-color:#adb5bd}.excel-btn-primary{background:#28a745;color:#fff;border-color:#28a745}.excel-btn-primary:hover:not(:disabled){background:#218838;border-color:#1e7e34}.excel-btn-primary:disabled{background:#6c757d;border-color:#6c757d;cursor:not-allowed;opacity:.6}@media (max-width: 768px){.clientes-page{padding:15px}.header-content{flex-direction:row!important;gap:16px;align-items:center!important;flex-wrap:wrap}.filters-container{flex-direction:column;align-items:stretch}.search-container,.filter-container{min-width:auto}.clientes-table{font-size:.8rem}.clientes-table th,.clientes-table td{padding:12px 8px}.modal-overlay{padding:10px}.modal-content{max-height:95vh}.modal-header{padding:16px 20px}.modal-body{padding:20px}.import-option{padding:16px}.import-icon{width:40px;height:40px;margin-right:12px}.import-content h4{font-size:.95rem}.import-content p{font-size:.85rem}.detail-modal-overlay{padding:10px}.detail-modal-content{max-width:100%;border-radius:0;max-height:100vh;height:100vh}.detail-modal-header{padding:16px 20px;border-radius:12px 12px 0 0}.detail-modal-body{padding:20px}.cliente-info-grid{gap:16px;margin-bottom:24px}.info-item label{font-size:.85rem}.info-item span{font-size:.95rem}.info-item .rfc{font-size:1rem}.pagination-container{flex-direction:column;gap:1rem;align-items:stretch}.pagination-controls{justify-content:center}.pagination-numbers{flex-wrap:wrap;justify-content:center}.mapping-modal-content{width:95%;max-height:95vh}.mapping-row{grid-template-columns:1fr;gap:10px}.mapping-actions{flex-direction:column;gap:10px}.btn-secondary,.btn-primary{width:100%;text-align:center}.excel-container{padding:15px}.csv-columns-grid{grid-template-columns:1fr;gap:8px}.csv-column-item{padding:10px 12px}.mapping-field{padding:12px}.field-info{flex-direction:column;align-items:flex-start;gap:8px}.field-mapping{flex-direction:column;gap:8px}.mapping-select{width:100%}.excel-mapping-modal{width:95%;max-height:95vh}.mapping-row-simple{flex-direction:column;align-items:flex-start;gap:8px}.field-label-simple{width:100%;margin-right:0}.field-select-simple{width:100%}.excel-mapping-modal{width:98%;max-height:95vh}.excel-worksheet{overflow-x:auto}.excel-cell{min-width:100px;font-size:.8rem;padding:6px 8px}.excel-row-header{min-width:100px}.excel-csv-header,.excel-drop-zone,.excel-field-header,.excel-row-header{width:120px;min-width:120px;max-width:120px}.excel-preview-header-cell,.excel-preview-data-cell{min-width:100px}.excel-actions{flex-direction:column;gap:10px}.excel-btn{width:100%;text-align:center}.export-modal-overlay{padding:10px}.export-modal-content{max-width:100%;max-height:95vh}.export-modal-header{padding:16px 20px}.export-modal-body{padding:20px}.export-options{gap:20px}.format-options{grid-template-columns:1fr;gap:10px}.date-inputs{grid-template-columns:1fr;gap:12px}.export-modal-footer{padding:16px 20px;flex-direction:column}.export-modal-footer .btn-primary,.export-modal-footer .btn-secondary{width:100%;justify-content:center}.form-row{grid-template-columns:1fr;gap:1rem}.form-actions{flex-direction:column}.btn-primary,.btn-secondary{width:100%;justify-content:center}}.autocomplete-select{position:relative;width:100%}.autocomplete-select-input-wrapper{position:relative;display:flex;align-items:center;width:100%}.autocomplete-select-input{width:100%;padding:.75rem;padding-right:60px;border:1px solid #ddd;border-radius:6px;font-size:1rem;background-color:#fff;transition:border-color .2s,box-shadow .2s}.autocomplete-select-input:focus{outline:none;border-color:#4caf50;box-shadow:0 0 0 3px #4caf501a}.autocomplete-select.error .autocomplete-select-input{border-color:#f44336}.autocomplete-select.error .autocomplete-select-input:focus{border-color:#f44336;box-shadow:0 0 0 3px #f443361a}.autocomplete-select.disabled .autocomplete-select-input{background-color:#f5f5f5;cursor:not-allowed;opacity:.6}.autocomplete-select-actions{position:absolute;right:8px;display:flex;align-items:center;gap:4px}.autocomplete-select-clear{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:transparent;color:#666;cursor:pointer;border-radius:4px;transition:background-color .2s,color .2s}.autocomplete-select-clear:hover{background-color:#f0f0f0;color:#333}.autocomplete-select-arrow{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:transparent;color:#666;cursor:pointer;transition:transform .2s}.autocomplete-select-arrow.open{transform:rotate(180deg)}.autocomplete-select-dropdown{position:absolute;top:100%;left:0;right:0;z-index:1000;margin-top:4px;max-height:300px;overflow-y:auto;background-color:#fff;border:1px solid #ddd;border-radius:6px;box-shadow:0 4px 12px #00000026;animation:slideDown .2s ease-out}.autocomplete-select-option{padding:.75rem 1rem;cursor:pointer;transition:background-color .15s;border-bottom:1px solid #f0f0f0}.autocomplete-select-option:last-child{border-bottom:none}.autocomplete-select-option:hover,.autocomplete-select-option.highlighted{background-color:#f5f5f5}.autocomplete-select-option.selected{background-color:#e8f5e9;color:#2e7d32;font-weight:500}.autocomplete-select-no-results{padding:1rem;text-align:center;color:#999;font-style:italic}.autocomplete-select-dropdown::-webkit-scrollbar{width:8px}.autocomplete-select-dropdown::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.autocomplete-select-dropdown::-webkit-scrollbar-thumb{background:#888;border-radius:4px}.autocomplete-select-dropdown::-webkit-scrollbar-thumb:hover{background:#555}.productos-page{padding:20px;min-height:100vh;display:flex;flex-direction:column;gap:20px}.company-indicator{margin:0;font-size:.875rem;color:var(--text-secondary);font-weight:400}.company-indicator strong{color:var(--text-primary);font-weight:600}.btn-secondary{background-color:transparent;color:var(--text-primary);border:1px solid var(--border-color);border-radius:16px;padding:10px 16px;font-size:.9rem;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:8px;transition:all .3s ease}.btn-secondary:hover{border-color:var(--accent-color);color:var(--accent-color);transform:translateY(-1px)}.content-section{flex:1;background-color:#fff;border:1px solid var(--border-color);border-radius:16px;overflow:visible}.table-container{overflow-x:auto}.productos-table{width:100%;border-collapse:collapse;font-size:.9rem}.productos-table thead{background-color:var(--bg-tertiary);border-bottom:1px solid var(--border-color)}.productos-table th{padding:16px 12px;text-align:left;font-weight:600;color:#949bac;font-size:.85rem;text-transform:uppercase;letter-spacing:.5px}.productos-table td{padding:16px 12px;border-bottom:1px solid var(--border-color);color:var(--text-primary);vertical-align:middle}.productos-table tbody tr:hover{background-color:var(--bg-tertiary)}.producto-codigo{font-family:Courier New,monospace;font-weight:600;color:var(--accent-color)}.producto-nombre{font-weight:500}.producto-descripcion{color:var(--text-secondary);font-size:.85rem;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.producto-precio{text-align:right;font-weight:600;color:var(--accent-color)}.producto-clave,.producto-unidad{font-family:Courier New,monospace;font-size:.85rem}.acciones{text-align:center}.btn-delete:hover{color:#ef4444;background-color:#ef44441a}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:var(--text-secondary);text-align:center}.no-results svg{margin-bottom:16px;opacity:.5}.no-results p{font-size:1.1rem;margin:0}.producto-modal-overlay{position:fixed;inset:0;background:#000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;animation:fadeIn .3s ease}.producto-modal-content{background:var(--bg-primary);border-radius:16px;max-width:800px;width:100%;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 48px #0000004d;border:1px solid var(--border-color);animation:slideUp .3s ease}.producto-modal-header{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;padding:24px 28px;background:var(--bg-secondary);border-bottom:none}.producto-modal-header h2{margin:0;font-size:24px;font-weight:700;color:var(--text-primary)}.producto-modal-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:8px;border-radius:8px;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.producto-modal-close:hover{background:var(--hover-bg);color:var(--text-primary)}.producto-form{flex:1;overflow-y:auto;padding:24px;background:var(--bg-primary)}.form-section{margin-bottom:32px}.form-section h3{margin:0 0 8px;color:var(--text-primary);font-size:1.1rem;font-weight:600}.section-description{margin:0 0 16px;color:var(--text-secondary);font-size:.875rem}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.form-row.fiscal-section{background-color:var(--bg-tertiary);padding:16px;border-radius:8px;border:1px solid var(--border-color)}.form-row-triple{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;margin-bottom:16px}.producto-details-body{padding:24px;display:flex;flex-direction:column;gap:16px;flex:1;overflow-y:auto;border:none!important}.detail-item{display:flex;flex-direction:column;gap:8px;padding:0!important;background:transparent!important;border-radius:0!important;border:none!important;align-items:flex-start;width:100%;box-shadow:none!important}.detail-item label{color:var(--text-secondary);font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:0;text-align:left;width:100%}.detail-value{background:var(--bg-tertiary);padding:16px;border-radius:12px;color:var(--text-primary);font-size:.95rem;font-weight:500;border:none;display:flex;align-items:center;text-align:left;word-wrap:break-word;overflow-wrap:break-word;min-height:48px;width:100%;justify-content:flex-start}.detail-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;border:none!important;border-bottom:none!important}.detail-row.fiscal-section{background-color:var(--bg-tertiary);padding:16px;border-radius:8px;border:none}.detail-row.fiscal-section .detail-value{background-color:var(--bg-primary)}.detail-row-triple{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;border:none!important;border-bottom:none!important}.form-group{display:flex;flex-direction:column}.form-group label{margin-bottom:6px;color:var(--text-primary);font-size:.875rem;font-weight:500}.field-help{margin:4px 0;color:var(--text-secondary);font-size:.75rem;line-height:1.4}.field-help-below{margin:6px 0 0;color:var(--text-secondary);font-size:.7rem;line-height:1.3;font-style:italic}.form-group input,.form-group select,.form-group textarea{padding:10px 12px;border:1px solid var(--border-color);border-radius:16px;font-size:.9rem;color:var(--text-primary);background-color:var(--bg-primary);transition:all .2s ease}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--accent-color);box-shadow:0 0 0 3px #45a8161a}.form-group textarea{resize:vertical;min-height:80px;font-family:inherit}.impuestos-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.impuesto-item{padding:16px;border:1px solid var(--border-color);border-radius:16px;background-color:var(--bg-secondary)}.checkbox-label{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:500;margin-bottom:8px}.checkbox-label input[type=checkbox]{width:18px;height:18px;cursor:pointer}.switch-container{display:flex;align-items:center;justify-content:space-between;padding:16px;border:1px solid var(--border-color);border-radius:16px;background-color:var(--bg-secondary)}.switch-label{font-size:.95rem;font-weight:500;color:var(--text-primary)}.switch{position:relative;display:inline-block;width:50px;height:26px}.slider{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.3s;border-radius:26px}.slider:before{position:absolute;content:"";height:20px;width:20px;left:3px;bottom:3px;background-color:#fff;transition:.3s;border-radius:50%}.switch input:checked+.slider{background-color:var(--accent-color)}.switch input:focus+.slider{box-shadow:0 0 0 3px #45a81633}.switch input:checked+.slider:before{transform:translate(24px)}.impuesto-select,.impuesto-input{margin-top:8px;width:100%;padding:8px 12px;border:1px solid var(--border-color);border-radius:16px;font-size:.875rem;background-color:var(--bg-primary)}.ieps-config{display:flex;gap:8px;margin-top:8px}.ieps-config select,.ieps-config input{flex:1}.cfdi-section{background-color:#45a8160d;padding:20px;border-radius:16px;border:1px solid rgba(69,168,22,.2)}.cfdi-section h3{color:var(--accent-color)}.producto-modal-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center;flex-shrink:0;padding:20px 28px;margin:0;background:var(--bg-secondary);border-top:none;width:100%;box-sizing:border-box}@media (max-width: 768px){.productos-page{padding:16px;gap:16px}.form-row,.detail-row,.detail-row-triple,.impuestos-grid{grid-template-columns:1fr}.modal-content{max-width:100%}.productos-table{font-size:.8rem}.productos-table th,.productos-table td{padding:8px 6px}}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;gap:16px}.loading-spinner{width:64px;height:64px;background-image:url(/ezgif.com-effects.gif);background-size:contain;background-repeat:no-repeat;background-position:center;background-color:transparent;border:none;border-radius:0;animation:none}.loading-container p{color:var(--text-secondary);font-size:.875rem;margin:0}.btn-primary:disabled{opacity:.6;cursor:not-allowed;background-color:#9ca3af}.btn-primary:disabled:hover{background-color:#9ca3af;transform:none}.mi-pagina-page{padding:20px;height:100%;display:flex;flex-direction:column;gap:20px;position:relative}.loading-overlay{position:fixed;inset:0;background-color:#ffffffb3;display:flex;justify-content:center;align-items:center;z-index:1000}.loading-spinner{display:flex;flex-direction:column;align-items:center;gap:30px;padding:40px;border-radius:16px;background-color:#ffffffb3;color:var(--text-primary);font-weight:500;font-family:system-ui,-apple-system,sans-serif;position:relative;min-width:300px}.loading-spinner:before{content:"";width:120px;height:120px;background-image:url(/ezgif.com-effects.gif);background-size:contain;background-repeat:no-repeat;background-position:center;background-color:transparent;display:block;order:-1}.message{padding:12px 20px;border-radius:16px;margin-bottom:20px;font-weight:500;text-align:center}.message.success{background-color:#d4edda;color:#155724;border:1px solid #c3e6cb}.message.error{background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.no-company-message{display:flex;flex-direction:column;align-items:center;justify-content:center;height:400px;text-align:center;background-color:#fff;border-radius:16px;border:1px solid var(--border-color)}.no-company-message h2{color:var(--text-primary);margin-bottom:12px;font-size:1.5rem}.no-company-message p{color:var(--text-secondary);font-size:1rem;max-width:400px;line-height:1.5}.btn-primary,.btn-secondary{border:none;border-radius:16px;padding:10px 5px!important;font-size:.9rem;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:8px;transition:all .3s ease}.btn-primary{background-color:var(--accent-color);color:var(--bg-primary)}.btn-dark{background:#1f2937;color:#fff;border:none;padding:12px 24px;border-radius:16px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 12px #0003}.btn-dark:hover:not(:disabled){background:#111827;transform:translateY(-2px);box-shadow:0 8px 25px #0000004d}.btn-dark:disabled{opacity:.6;cursor:not-allowed;transform:none}.btn-secondary{background-color:var(--bg-tertiary);color:var(--text-primary);border:1px solid var(--border-color)}.btn-secondary:hover{background-color:var(--hover-bg);border-color:var(--accent-color);color:var(--accent-color)}.content-grid{display:grid;grid-template-columns:1fr 400px;gap:20px;flex:1}.config-section{display:flex;flex-direction:column;gap:20px}.config-card{background-color:#fff;border:1px solid var(--border-color);border-radius:16px;padding:24px}.config-card h2{color:var(--text-primary);font-size:1.3rem;font-weight:600;margin:0 0 20px;padding-bottom:12px;border-bottom:1px solid var(--border-color)}.form-group{margin-bottom:20px}.form-group label{display:flex;align-items:center;gap:8px;color:var(--text-primary);font-size:.9rem;font-weight:500;margin-bottom:8px}.form-group input,.form-group textarea{width:100%;padding:12px;background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary);font-size:.9rem;outline:none;transition:all .3s ease;box-sizing:border-box}.form-group input:focus,.form-group textarea:focus{border-color:var(--accent-color);box-shadow:0 0 0 3px #45a8161a}.form-group input::placeholder,.form-group textarea::placeholder{color:var(--text-secondary)}.input-hint{display:block;margin-top:4px;font-size:12px;color:var(--text-secondary);font-style:italic}.form-group input[type=text],.form-group input[type=email],.form-group input[type=tel],.form-group input[type=url],.form-group input[type=color],.form-group textarea{background-color:var(--bg-primary)!important;color:var(--text-primary)!important;border:1px solid var(--border-color)!important}.form-group input[type=text]:focus,.form-group input[type=email]:focus,.form-group input[type=tel]:focus,.form-group input[type=url]:focus,.form-group input[type=color]:focus,.form-group textarea:focus{background-color:var(--bg-primary)!important;color:var(--text-primary)!important;border-color:var(--accent-color)!important;box-shadow:0 0 0 3px #45a8161a!important}.form-group input[type=text]::placeholder,.form-group input[type=email]::placeholder,.form-group input[type=tel]::placeholder,.form-group input[type=url]::placeholder,.form-group textarea::placeholder{color:var(--text-secondary)!important}.url-input-group{display:flex;align-items:center;background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:16px;overflow:hidden}.url-prefix{padding:12px;background-color:var(--bg-primary);color:var(--text-secondary);font-size:.9rem;border-right:1px solid var(--border-color);white-space:nowrap}.url-input-group input{border:none;background:none;padding:12px;flex:1;font-family:Courier New,monospace;font-size:.9rem;color:var(--text-primary);transition:all .2s ease}.url-input-group input:focus{outline:none;background-color:var(--bg-secondary)}.url-input-group input::placeholder{color:var(--text-tertiary);font-style:italic}.url-help{margin-top:8px;padding:8px 12px;background-color:#45a8161a;border:1px solid rgba(69,168,22,.2);border-radius:16px;color:var(--text-secondary);font-size:.85rem;line-height:1.4}.url-help small{color:inherit}.logo-upload{display:flex;flex-direction:column;gap:12px}.upload-button{display:inline-flex;align-items:center;gap:8px;padding:12px 16px;background-color:var(--bg-tertiary);border:2px dashed var(--border-color);border-radius:16px;color:var(--text-primary);cursor:pointer;transition:all .3s ease;text-align:center;justify-content:center}.upload-button:hover{border-color:var(--accent-color);color:var(--accent-color);background-color:#45a8160d}.logo-preview{display:flex;justify-content:center;padding:16px;background-color:var(--bg-primary);border:1px solid var(--border-color);border-radius:16px}.logo-preview img{max-width:120px;max-height:60px;object-fit:contain}.color-group{display:grid;grid-template-columns:1fr 1fr;gap:16px}.color-input-group{display:flex;gap:8px;align-items:center}.color-input-group input[type=color]{width:50px;height:40px;padding:0;border:none;border-radius:16px;cursor:pointer}.color-input-group input[type=text]{flex:1}.preview-section{display:flex;flex-direction:column;gap:20px}.preview-card{background-color:#fff;border:1px solid var(--border-color);border-radius:16px;padding:24px;position:sticky;top:20px}.preview-card h2{color:var(--text-primary);font-size:1.3rem;font-weight:600;margin:0 0 20px;padding-bottom:12px;border-bottom:1px solid var(--border-color)}.preview-content{border:1px solid var(--border-color);border-radius:16px;overflow:hidden;background-color:#fff}.preview-header{padding:20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}.preview-logo{max-width:80px;max-height:40px;object-fit:contain}.preview-header h3{margin:0;font-size:1.5rem}.preview-body{padding:20px;text-align:center}.preview-description{color:#666;margin-bottom:20px;font-size:1rem}.preview-contact{margin-bottom:20px;text-align:left}.preview-contact p{margin:8px 0;color:#666;font-size:.9rem}.preview-button{padding:12px 24px;border:none;border-radius:16px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease}.preview-button:hover{opacity:.9;transform:translateY(-1px)}.preview-actions{background-color:#fff;border:1px solid var(--border-color);border-radius:16px;padding:20px;text-align:center}.btn-preview-link{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;background-color:var(--accent-color);color:var(--bg-primary);text-decoration:none;border-radius:16px;font-weight:500;transition:all .3s ease;margin-bottom:12px}.btn-preview-link:hover{opacity:.9;transform:translateY(-1px)}.preview-url{color:var(--text-secondary);font-size:.8rem;margin:0;word-break:break-all}.qr-section{margin-top:20px;padding-top:20px;border-top:1px solid var(--border-color)}.qr-section h4{display:flex;align-items:center;gap:8px;color:var(--text-primary);font-size:1rem;font-weight:600;margin:0 0 16px}.qr-container{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px;background-color:var(--bg-primary);border:1px solid var(--border-color);border-radius:16px}.qr-image{width:150px;height:150px;border:1px solid var(--border-color);border-radius:16px;background-color:#fff;padding:8px}.btn-download-qr{display:flex;align-items:center;gap:8px;padding:8px 16px;background-color:var(--accent-color);color:var(--bg-primary);border:none;border-radius:16px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .3s ease}.btn-download-qr:hover:not(:disabled){opacity:.9;transform:translateY(-1px)}.btn-download-qr:disabled{background-color:var(--text-secondary);cursor:not-allowed;opacity:.6}.qr-description{color:var(--text-secondary);font-size:.8rem;text-align:center;margin:12px 0 0;line-height:1.4}@media (max-width: 1024px){.content-grid{grid-template-columns:1fr}.preview-card{position:static}}@media (max-width: 768px){.mi-pagina-page{padding:15px}.header-content{flex-direction:row!important;gap:16px;align-items:center!important;flex-wrap:wrap}.header-actions{justify-content:center}.color-group{grid-template-columns:1fr}.config-card{padding:16px}}.form-group input.error{border-color:#dc3545;box-shadow:0 0 0 .2rem #dc354540}.error-message{color:#dc3545;font-size:.875rem;margin-top:4px;display:block}.modal-overlay{position:fixed;inset:0;background:#000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;animation:fadeIn .3s ease}.modal-container{background:var(--bg-primary);border-radius:20px;box-shadow:0 24px 48px #0000004d;max-width:600px;width:100%;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-color);animation:slideUp .3s ease}.modal-container-small{max-width:400px}.modal-container-large{max-width:900px}.modal-header{padding:28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border-color);background:var(--bg-secondary);flex-shrink:0}.modal-header h3{margin:0;font-size:24px;font-weight:700;color:var(--text-primary)}.modal-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:32px;line-height:1;padding:4px 12px;border-radius:8px;transition:all .2s ease;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.modal-close:hover{background:var(--hover-bg);color:var(--text-primary)}.modal-body{padding:24px;flex:1;overflow-y:auto;max-height:calc(90vh - 200px)}.modal-footer{padding:20px 28px;display:flex;gap:12px;justify-content:flex-end;border-top:1px solid var(--border-color);background:var(--bg-secondary);flex-shrink:0}.modal-footer .btn-secondary,.modal-footer .btn-primary,.modal-footer button[type=button],.modal-footer button[type=submit]{padding:12px 24px;border-radius:12px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;border:none;min-width:140px}.modal-footer .btn-secondary,.modal-footer button[type=button]:not(.btn-primary){background:var(--bg-tertiary);color:var(--text-primary);border:1px solid var(--border-color)}.modal-footer .btn-secondary:hover,.modal-footer button[type=button]:not(.btn-primary):hover{background:var(--hover-bg)}.modal-footer .btn-primary,.modal-footer button[type=submit]{background:var(--accent-color);color:#fff;box-shadow:0 4px 12px #45a8164d}.modal-footer .btn-primary:hover:not(:disabled),.modal-footer button[type=submit]:hover:not(:disabled){background:#4a9c1a;transform:translateY(-2px);box-shadow:0 6px 20px #45a81666}.modal-footer .btn-primary:disabled,.modal-footer button[type=submit]:disabled{opacity:.5;cursor:not-allowed}.modal-body h3,.modal-body h4{font-size:18px;font-weight:600;color:var(--text-primary);margin:20px 0 12px}.modal-body h4:first-child,.modal-body h3:first-child{margin-top:0}.modal-body p{font-size:14px;line-height:1.6;color:var(--text-secondary);margin:8px 0}.modal-body ul,.modal-body ol{font-size:14px;line-height:1.6;color:var(--text-secondary);margin:8px 0;padding-left:24px}.modal-body li{margin:4px 0}.modal-body strong{color:var(--text-primary);font-weight:600}@media (max-width: 768px){.modal-overlay{padding:0}.modal-container{max-width:100%;max-height:100vh;border-radius:0;animation:slideUpMobile .3s ease}@keyframes slideUpMobile{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.modal-header{padding:20px}.modal-header h3{font-size:20px}.modal-body{padding:20px;max-height:calc(100vh - 180px)}.modal-footer{padding:16px 20px;flex-direction:column}.modal-footer .btn-secondary,.modal-footer .btn-primary,.modal-footer button{width:100%;min-width:unset}}.checkout-page{--bg-primary: #ffffff !important;--bg-secondary: #f8f9fa !important;--bg-tertiary: #e9ecef !important;--text-primary: #212529 !important;--text-secondary: #45A816 !important;--accent-color: #45A816 !important;--border-color: #dee2e6 !important;--hover-bg: #e9ecef !important;--shadow: rgba(0, 0, 0, .1) !important}.checkout-page *:not(.btn-pay):not(.btn-pay *){color:inherit}.checkout-page .checkout-top-bar,.checkout-page .checkout-content,.checkout-page .checkout-form{background:#fff!important;color:#212529!important}.checkout-page .form-group label{color:#212529!important}.checkout-page .form-group input,.checkout-page .form-group select{background:#fff!important;color:#212529!important;border-color:#dee2e6!important}.checkout-page .form-group input::placeholder,.checkout-page .form-group select::placeholder{color:#9ca3af!important;opacity:1!important}.checkout-page .form-group input:focus,.checkout-page .form-group select:focus{border-color:#45a816!important;box-shadow:0 0 0 .2rem #45a81640!important}body:has(.checkout-page){overflow-y:auto!important;height:auto!important}body:has(.checkout-page) #root{overflow:visible!important;overflow-y:visible!important;height:auto!important;min-height:100vh!important}.checkout-page{min-height:100vh;background:#fff!important;padding:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overflow:visible!important;height:auto;position:relative}.checkout-top-bar{width:100%!important;max-width:1300px!important;margin:0 auto!important;padding:1rem 3rem 0!important;display:flex;align-items:start;background:transparent!important;box-sizing:border-box!important}.checkout-header-logo{padding-left:27px}.checkout-header-logo a{display:inline-block;transition:opacity .2s ease}.checkout-header-logo a:hover{opacity:.8}.checkout-logo{height:28px;width:auto;display:block;cursor:pointer}.login-link{display:flex;align-items:center;justify-content:flex-end;gap:1rem}.login-link span{color:#6b7280;font-size:.95rem}.confirmation-header{position:relative;justify-content:space-between!important}.login-link-centered{position:absolute;left:50%;transform:translate(-50%);display:flex;align-items:center;justify-content:center;gap:1rem}.login-link-centered span{color:#6b7280;font-size:.95rem}.btn-login{padding:.625rem 1.5rem;background:#fff;color:#111827;border:1px solid #d1d5db;border-radius:16px;font-size:.95rem;font-weight:600;font-family:Inter,sans-serif;text-decoration:none;transition:all .2s ease;cursor:pointer;display:inline-block}.btn-login:hover{background:#f9fafb;border-color:#3b82f6;color:#3b82f6;transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.checkout-container{width:100%!important;max-width:1300px!important;margin:0 auto!important;padding:2rem 3rem!important;position:relative;z-index:1;overflow:visible!important;background:transparent!important;box-shadow:none!important;height:auto;box-sizing:border-box!important}.checkout-form{display:block;overflow:visible!important;height:auto}.checkout-grid{display:grid;grid-template-columns:1fr 400px;gap:2rem;align-items:start;overflow:visible!important;height:auto}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:0!important;padding-left:27px;gap:2rem;border:none!important;border-bottom:none!important;padding-bottom:0!important}.section-header .main-title{margin:0;font-size:1.1rem!important;font-weight:700;color:#111827;display:flex;align-items:center;gap:.75rem;padding-bottom:0!important;border-bottom:none!important;border:none!important;flex:0 0 auto}.section-header .main-title .step-number{position:relative}.section-header .main-title .step-number:after{content:"";position:absolute;left:50%;top:calc(100% + 3px);transform:translate(-50%);width:1px;height:300px;background:#000;z-index:0}.login-link-inline{display:flex;align-items:center;gap:1rem;flex-shrink:0}.login-link-inline span{color:#6b7280;font-size:.95rem;white-space:nowrap}.section-card{background:transparent;border-radius:0;padding:0 0 0 27px;box-shadow:none;border:none}.section-card h2{margin:0 0 1.5rem;color:#111827;font-size:1.1rem!important;font-weight:700;display:flex;align-items:center;gap:.5rem;padding-bottom:0;border-bottom:none!important}.customer-data-section{display:flex;flex-direction:column;gap:0;border:none!important;border-top:none!important}.step-number{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;background:#000!important;color:#fff!important;border-radius:50%;font-size:10px;font-weight:700;flex-shrink:0;position:relative;z-index:1}.section-card h2 .step-number:after{content:"";position:absolute;left:50%;top:calc(100% + 3px);transform:translate(-50%);width:1px;height:calc(100% + 220px);background:#000;z-index:0}.section-subtitle .step-number:after{content:"";position:absolute;left:50%;top:calc(100% + 3px);transform:translate(-50%);width:1px;height:calc(100% + 140px);background:#000;z-index:0}.payment-title .step-number:after{display:none}.section-subtitle{margin:0 0 1rem;color:#111827;font-size:1.1rem;font-weight:600;display:flex;align-items:center;gap:.5rem}.plan-summary-section{position:relative;height:fit-content;overflow:visible!important}@keyframes delayedFadeIn{0%{opacity:0}to{opacity:1}}.sticky-card{position:fixed!important;top:15px!important;right:calc((100vw - min(100vw,1300px))/2 + 3rem)!important;width:400px!important;max-width:calc(100vw - 6rem)!important;background:#f9fafb;border-radius:16px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb;max-height:calc(100vh - 25px)!important;overflow-y:auto;z-index:100!important;margin-top:0!important;margin-right:0!important;margin-left:0!important;left:auto!important;transform:none!important;opacity:0;animation:delayedFadeIn .3s ease-out .6s forwards}.sticky-card h2{font-size:1.1rem!important;border-bottom:none;padding-bottom:0;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem}.sticky-card h2 svg{color:#3b82f6}.checkout-page .form-section{margin-bottom:5px;margin-left:2.2rem;border:none!important;border-top:none!important}.checkout-page .form-section:last-child{margin-bottom:0}.checkout-page .form-section h3{margin:0 0 1rem;color:#111827;font-size:1.1rem;font-weight:600;padding-bottom:.5rem;border-bottom:none}.form-row{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-bottom:1rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group.full-width{grid-column:1 / -1}.form-group label{color:#374151;font-weight:500;font-size:.9rem}.form-group input,.form-group select{padding:.75rem;border:1px solid #d1d5db;border-radius:16px;background:#fff;color:#111827;font-size:1rem;font-family:Inter,sans-serif;transition:all .2s ease}.form-group input::placeholder,.form-group select::placeholder{color:#9ca3af!important;opacity:1!important;font-size:14px}.form-group input:focus,.form-group select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a;background:#fff}.form-group small{color:#6b7280;font-size:.85rem}.plan-card{background:#fff!important;background-color:#fff!important;border:1px solid #e5e7eb;color:#111827;padding:.6rem .75rem;border-radius:16px;margin-bottom:1rem;display:grid!important;grid-template-columns:auto 1fr!important;gap:1.5rem!important;align-items:center}.plan-info{display:flex!important;flex-direction:column!important;gap:.25rem;order:2!important;text-align:left!important}.plan-card h3{margin:0;font-size:16px!important;font-weight:700;color:#111827;line-height:1.2;text-align:left!important}.plan-description{margin:0;font-size:14px!important;color:#6b7280;line-height:1.3;text-align:left!important}.plan-features{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:0px!important}.plan-features li{padding:.35rem 0;border-bottom:1px solid #e5e7eb;font-size:.95rem;font-weight:500;color:#4b5563}.plan-features li:last-child{border-bottom:none}.plan-details{display:flex!important;align-items:center;justify-content:flex-start!important;gap:.5rem;order:1!important}.timbres-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#3b82f60d;padding:.35rem .5rem;border-radius:16px;border:1px solid rgba(59,130,246,.2)}.timbres-number{font-size:1.1rem;font-weight:800;line-height:1;margin-bottom:.05rem;color:#3b82f6}.timbres-label{font-size:.65rem;font-weight:500;color:#6b7280;white-space:nowrap}.price-per-unit{background:#3b82f60d;padding:.5rem .75rem;border-radius:16px;font-size:.75rem;font-weight:500;color:#6b7280;white-space:nowrap;text-align:center}.plan-selector{margin-bottom:1rem;position:relative}.plan-selector label{display:block;margin-bottom:.4rem;color:#374151;font-weight:500;font-size:.85rem}.plan-select{width:100%;padding:.75rem 2.5rem .75rem 1rem;border:1px solid #d1d5db;border-radius:16px;background:#fff;color:#111827;font-size:.9rem;font-family:Inter,sans-serif;cursor:pointer;transition:all .2s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center;background-size:16px}.plan-select::placeholder{color:#9ca3af!important;opacity:1!important;font-size:14px}.plan-select:hover{border-color:#45a816;box-shadow:0 0 0 1px #45a8161a}.plan-select:focus{outline:none;border-color:#45a816;box-shadow:0 0 0 3px #45a8161a}.plan-select option{padding:.75rem 1rem;background:#fff;color:#111827;font-size:.9rem}.plan-select option:hover{background:#f9fafb}.plan-select option:checked{background:#45a816;color:#fff;font-weight:600}.price-breakdown{background:#fff;padding:1rem;border-radius:16px;margin-bottom:1rem;border:1px solid #e5e7eb}.price-row{display:flex;justify-content:space-between;padding:.5rem 0;color:#6b7280;font-size:.95rem}.price-row.total-row{border-top:2px solid #e5e7eb;margin-top:.5rem;padding-top:.75rem;font-size:1.2rem;font-weight:700;color:#111827}.price-row.total-row span:last-child{color:#3b82f6}.policy-checkboxes{display:flex;flex-direction:column;gap:.75rem;margin:1.5rem 0 1.5rem 2.2rem}.checkbox-item{display:flex;align-items:flex-start;gap:.75rem}.checkbox-item input[type=checkbox]{margin-top:.25rem;margin-left:0;width:18px;height:18px;cursor:pointer;accent-color:#45A816;flex-shrink:0}.checkbox-item label{color:#374151;font-size:.9rem;line-height:1.5;cursor:pointer;-webkit-user-select:none;user-select:none}.checkbox-item label a{color:#45a816!important;text-decoration:none;font-weight:500;transition:color .2s ease}.checkbox-item label a:hover{color:#3a8a12!important;text-decoration:underline}.info-notice{background:#3b82f60d;border:1px solid rgba(59,130,246,.2);border-radius:16px;padding:1rem;margin:1.5rem 0 1.5rem 2.2rem}.info-notice p{margin:0;color:#374151;font-size:.9rem;line-height:1.5;text-align:center}.payment-title{margin:0 0 1.5rem;color:#111827;font-size:1.1rem;font-weight:600;display:flex;align-items:center;gap:.5rem}.payment-method-tabs{display:flex;gap:1rem;margin-bottom:1.5rem;margin-left:2.2rem}.payment-tab{flex:1;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:1rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:16px;color:#6b7280;font-size:.95rem;font-weight:500;font-family:Inter,sans-serif;cursor:pointer;transition:all .2s ease}.payment-tab:hover{background:#f3f4f6;border-color:#d1d5db}.payment-tab.active{background:#3b82f6;border-color:#3b82f6;color:#fff!important;box-shadow:0 2px 4px #3b82f633}.payment-tab.active span{color:#fff!important}.payment-tab.active svg{color:#fff!important}.payment-tab svg{flex-shrink:0}.stripe-payment-section{background:transparent;padding:0;border-radius:0;border:none;margin-left:2.2rem;width:calc(100% - 2.2rem)!important;max-width:100%;box-sizing:border-box}.stripe-form{display:flex;flex-direction:column;gap:1rem}.stripe-input{width:100%;padding:.75rem;border:1px solid #d1d5db;border-radius:16px;background:#fff;color:#111827;font-size:1rem;font-family:Inter,sans-serif;transition:all .2s ease}.stripe-input::placeholder{color:#9ca3af!important;opacity:1!important;font-size:14px}.stripe-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.btn-pay{width:100%;background:#000!important;color:#fff!important;border:none;padding:1.5rem 3rem;border-radius:16px;font-size:1.2rem;font-weight:700;font-family:Inter,sans-serif;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:1rem;min-height:60px;box-shadow:none!important;margin-bottom:0}.btn-pay:hover{background:#000!important;transform:translateY(-2px);box-shadow:none!important}.btn-pay:active{background:#000!important;transform:translateY(0);box-shadow:none!important}.benefits-list{background:#fff;padding:1.5rem;border-radius:16px;border:1px solid #e5e7eb}.benefits-list h4{margin:0 0 1rem;color:#111827;font-size:1rem;font-weight:600}.benefits-list ul{list-style:none;padding:0;margin:0}.benefits-list li{padding:.5rem 0;color:#6b7280;font-size:.95rem}.payment-section{width:100%}.payment-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:2rem}.payment-option{cursor:pointer}.payment-option input[type=radio]{display:none}.payment-card{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:2rem 1rem;background:#fff;border:2px solid #d1d5db;border-radius:16px;transition:all .2s ease;min-height:140px;justify-content:center}.payment-option:hover .payment-card{border-color:#3b82f6;transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.payment-option.active .payment-card{border-color:#3b82f6;background:#3b82f60d;box-shadow:0 0 0 3px #3b82f61a}.payment-card svg{color:#3b82f6}.payment-card span{font-weight:600;color:#111827;text-align:center;font-size:.95rem}.payment-form{background:#f9fafb;padding:2rem;border-radius:16px;margin-top:1rem;border:1px solid #e5e7eb}.bank-details{background:#fff;padding:1.5rem;border-radius:16px;margin-bottom:1.5rem;border:1px solid #e5e7eb}.bank-details h4{margin:0 0 1rem;color:#111827;font-size:1.1rem}.bank-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.bank-info-item{display:flex;flex-direction:column;gap:.25rem}.bank-info-item strong{color:#111827;font-size:.9rem}.bank-info-item span{color:#6b7280;font-size:1rem;font-family:Inter,monospace}.info-box{background:#3b82f60d;border:1px solid #3b82f6;border-radius:16px;padding:1.5rem}.info-box h4{margin:0 0 1rem;color:#111827}.info-box p{margin:.5rem 0;color:#6b7280}.info-box .note{margin-top:1rem;padding-top:1rem;border-top:1px solid #e5e7eb;font-weight:500;color:#111827}.checkout-actions{display:flex;justify-content:center;padding-top:1rem}.btn-submit{background:#3b82f6;color:#fff;border:none;padding:1.25rem 3rem;border-radius:16px;font-size:1.2rem;font-weight:700;font-family:Inter,sans-serif;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:.75rem;box-shadow:0 4px 16px #3b82f64d}.btn-submit:hover{background:#2563eb;transform:translateY(-2px);box-shadow:0 6px 20px #3b82f666}.btn-submit:active{transform:translateY(0)}.confirmation-container{max-width:800px;margin:0 auto;text-align:center;background:#fff;padding:3rem 2rem;border-radius:16px;box-shadow:0 10px 25px #00000026;border:2px solid #e5e7eb}.confirmation-icon{color:#45a816;margin-bottom:2rem;display:flex;justify-content:center;opacity:.9}.confirmation-container h1{margin:0 0 1.5rem;color:#1f2937;font-size:2.5rem;font-weight:800;text-shadow:0 2px 4px rgba(0,0,0,.1)}.confirmation-message{color:#374151;font-size:1.2rem;margin-bottom:2.5rem;font-weight:500;line-height:1.6}.order-details-box{background:#f8fafc;padding:2.5rem;border-radius:16px;margin-bottom:2rem;text-align:left;border:2px solid #e2e8f0;box-shadow:0 4px 6px #0000000d}.order-details-box h3{margin:0 0 2rem;color:#1e293b;font-size:1.5rem;text-align:center;font-weight:800;text-shadow:0 1px 2px rgba(0,0,0,.1)}.order-info{margin-bottom:2rem;padding-bottom:2rem;border-bottom:2px solid #e2e8f0}.info-row{display:flex;justify-content:space-between;padding:1rem 0;color:#475569;font-size:1.1rem;border-bottom:1px solid #f1f5f9}.info-row:last-child{border-bottom:none}.info-row .label{font-weight:600;color:#334155}.info-row .value{font-weight:700;color:#1e293b}.info-row .value.highlight{color:#45a816;font-size:1.4rem;text-shadow:0 1px 2px rgba(69,168,22,.2)}.customer-info-summary{background:#fff;padding:2rem;border-radius:16px;border:1px solid #e2e8f0;box-shadow:0 2px 4px #0000000d}.customer-info-summary h4{margin:0 0 1.5rem;color:#1e293b;font-weight:700;font-size:1.2rem;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.1)}.customer-info-summary p{margin:.75rem 0;color:#475569;font-size:1rem;font-weight:500}.confirmation-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.btn-primary,.btn-secondary{padding:1.25rem 2.5rem;border-radius:16px;font-size:1.1rem;font-weight:700;font-family:Inter,sans-serif;cursor:pointer;transition:all .3s ease;border:none;display:flex;align-items:center;gap:.75rem;min-width:200px;justify-content:center;text-decoration:none;box-shadow:0 4px 12px #00000026}.btn-primary{background:linear-gradient(135deg,#45a816,#3a8a12);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.2)}.btn-primary:hover{background:linear-gradient(135deg,#3a8a12,#2d6b0f);transform:translateY(-3px);box-shadow:0 8px 20px #45a81666}.btn-primary:active{transform:translateY(-1px);box-shadow:0 4px 12px #45a8164d}.btn-secondary{background:#fff;color:#1e293b;border:2px solid #e2e8f0;font-weight:600}.btn-secondary:hover{background:#f8fafc;border-color:#45a816;color:#45a816;transform:translateY(-2px)}@media (max-width: 1350px){.checkout-top-bar,.checkout-container{width:100%!important;max-width:1300px;padding-left:2rem;padding-right:2rem}.sticky-card{right:2rem!important}}@media (max-width: 992px){.sticky-card{position:static!important;width:100%!important;max-width:100%!important;right:auto!important;margin-bottom:2rem;opacity:1!important;animation:none!important}}@media (max-width: 1200px){.checkout-grid,.checkout-top-bar{grid-template-columns:1fr 350px}}@media (max-width: 992px){.checkout-grid{grid-template-columns:1fr}.checkout-top-bar{display:flex;flex-direction:column}.sticky-card{position:static!important;width:100%!important;right:auto!important;top:auto!important;margin-bottom:2rem;opacity:1!important;animation:none!important}.section-header{flex-direction:column;align-items:flex-start;gap:1rem;padding-left:15px;margin-bottom:1.5rem!important}.login-link-inline{width:100%;justify-content:flex-start}.payment-methods,.bank-info-grid{grid-template-columns:1fr}}@media (max-width: 768px){.checkout-page{padding:0}.checkout-top-bar{padding:1.5rem 1rem 1rem!important;width:100%!important;max-width:100%!important}.checkout-logo{height:32px}.checkout-container{padding:1rem!important;width:100%!important;max-width:100%!important}.section-header{flex-direction:column;align-items:flex-start;gap:1rem;padding-left:1rem!important;margin-bottom:1rem!important}.section-header .main-title{font-size:1.25rem!important}.login-link-inline{width:100%;justify-content:flex-start}.login-link-inline span{font-size:.9rem}.btn-login{padding:.5rem 1.25rem;font-size:.9rem}.section-card{padding:1rem!important}.form-row{grid-template-columns:1fr}.customer-data-section{padding-left:0!important}.checkout-header-logo{padding-left:1rem!important}.plan-card{grid-template-columns:1fr!important;gap:1rem!important;padding:1rem!important}.plan-info{order:1!important}.plan-details{order:2!important;width:100%;justify-content:center}.btn-submit{width:100%;justify-content:center;font-size:1rem;padding:1rem 1.5rem}.form-section,.policy-checkboxes{margin-left:1rem!important}.stripe-payment-section{margin-left:1rem!important;width:calc(100% - 1rem)!important}.section-header .main-title .step-number:after,.section-card h2 .step-number:after,.section-subtitle .step-number:after,.payment-title .step-number:after{display:none!important}.confirmation-container{padding:2rem 1rem;margin:1rem}.confirmation-container h1{font-size:2rem}.confirmation-message{font-size:1.1rem}.order-details-box,.customer-info-summary{padding:1.5rem}.confirmation-actions{flex-direction:column;gap:1rem}.btn-primary,.btn-secondary{width:100%;justify-content:center;min-width:auto;padding:1rem 1.5rem}}@media (max-width: 480px){.checkout-container{padding:.75rem!important}.section-header{padding-left:.75rem!important}.section-header .main-title{font-size:1.1rem!important}.checkout-header-logo{padding-left:.75rem!important}.customer-data-section{padding-left:0!important}.section-card{padding:.75rem!important}.form-section,.policy-checkboxes{margin-left:.75rem!important}.stripe-payment-section{margin-left:.75rem!important;width:calc(100% - .75rem)!important}.plan-card{padding:.75rem!important}.timbres-number{font-size:2.5rem}.payment-card{padding:1.5rem 1rem;min-height:120px}.payment-card span{font-size:.9rem}.stripe-payment-form{margin:1rem 0;border-radius:16px}.payment-header{padding:1rem}.payment-header h3{font-size:1.1rem}.payment-header p{font-size:.85rem}.payment-element-container,.payment-element-wrapper,.payment-actions{padding:1rem}.btn-pay{padding:1rem 1.5rem;font-size:1rem}.confirmation-container{margin:.5rem;padding:1.5rem 1rem}.confirmation-container h1{font-size:1.8rem}.confirmation-message{font-size:1rem}.order-details-box{padding:1rem}.order-details-box h3{font-size:1.2rem}.info-row{font-size:1rem;padding:.75rem 0}.customer-info-summary{padding:1rem}.customer-info-summary h4{font-size:1.1rem}.customer-info-summary p{font-size:.95rem}}@media (prefers-color-scheme: dark){.plan-card{box-shadow:0 4px 16px #0000004d}.timbres-badge{background:#ffffff26}}.loading-container,.error-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;text-align:center;padding:2rem}.loading-spinner{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #45A816;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}.loading-container h2,.error-container h2{color:#333;margin-bottom:.5rem;font-size:1.5rem}.loading-container p,.error-container p{color:#666;margin-bottom:1.5rem;font-size:1rem}.error-container .btn-primary{background:#45a816;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:16px;font-size:1rem;font-weight:500;cursor:pointer;transition:background-color .2s ease}.error-container .btn-primary:hover{background:#3a8a12}.stripe-payment-form{width:100%!important;max-width:100%!important;display:flex;flex-direction:column;gap:2.5rem;padding:1px;background:#9d9d9d0d;border:1px solid rgb(127 127 127 / 10%);border-radius:16px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-sizing:border-box!important}.payment-header{background:linear-gradient(135deg,#45a816,#3a8a12);color:#fff;padding:1.5rem;text-align:center;width:100%;box-sizing:border-box}.payment-header h3{margin:0 0 .5rem;font-size:1.25rem;font-weight:700;color:#fff}.payment-header p{margin:0;font-size:.95rem;opacity:.9;color:#fff}.payment-element-container{padding:1.5rem;background:#fff;width:100%!important;max-width:100%!important;box-sizing:border-box!important}.payment-element-wrapper{background:#f9fafb;border:1px solid #e5e7eb;border-radius:16px;padding:1.5rem;width:100%!important;max-width:100%!important;box-sizing:border-box!important;transition:all .3s ease}.payment-element-wrapper:hover{border-color:#45a816;box-shadow:0 0 0 1px #45a8161a}.payment-actions{padding:1.5rem 2rem 2rem;background:#fff;border-top:1px solid #e5e7eb;width:100%!important;max-width:100%!important;box-sizing:border-box!important}.btn-init-payment{background:#45a816;color:#fff;border:none;padding:1rem 2rem;border-radius:16px;font-size:1rem;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:.5rem;width:100%;justify-content:center;transition:background-color .2s ease}.btn-init-payment:hover:not(:disabled){background:#3a8a12}.btn-init-payment:disabled{background:#ccc;cursor:not-allowed}.btn-pay{background:#000!important;color:#fff!important;border:none;padding:1.5rem 3rem;border-radius:16px;font-size:1.2rem;font-weight:700;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:1rem;box-shadow:none!important;min-height:60px;width:100%;position:relative;overflow:hidden;margin-bottom:0}.btn-pay:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s ease}.btn-pay:hover:not(:disabled){background:#000!important;transform:translateY(-2px);box-shadow:none!important}.btn-pay:hover:not(:disabled):before{left:100%}.btn-pay:active:not(:disabled){background:#000!important;transform:translateY(0);box-shadow:none!important}.btn-pay:disabled{background:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none}.btn-pay:disabled:before{display:none}.btn-pay,.btn-pay *{color:#fff!important}.payment-security{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:1rem 0 0;margin-top:1rem;color:#6b7280;font-size:.85rem;font-weight:500}.payment-security svg{color:#45a816;flex-shrink:0}.payment-security span{color:#6b7280!important}.error-message{background:#fee;color:#c33;padding:1rem;border-radius:16px;margin-bottom:1rem;border:1px solid #fcc}.stripe-error{display:flex;align-items:flex-start;gap:1rem;background:#fef2f2;border:2px solid #ef4444;padding:1.25rem;border-radius:12px;margin-bottom:1.5rem;animation:slideDown .3s ease-out;position:relative}.stripe-error .error-icon{color:#ef4444;flex-shrink:0;margin-top:2px}.stripe-error .error-content{flex:1}.stripe-error .error-content strong{display:block;font-size:1rem;font-weight:600;margin-bottom:.5rem;color:#dc2626}.stripe-error .error-content p{margin:0;font-size:.95rem;line-height:1.5;color:#991b1b}.stripe-error .error-close-btn{position:absolute;top:.75rem;right:.75rem;background:transparent;border:none;color:#991b1b;cursor:pointer;padding:.25rem;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s ease;flex-shrink:0}.stripe-error .error-close-btn:hover{background:#991b1b1a;color:#dc2626}.stripe-error .error-close-btn:active{transform:scale(.95)}.payment-init-section{text-align:center;padding:2rem}.creating-account{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:2rem;background:#f9f9f9;border-radius:16px;margin-top:1rem}.creating-account p{margin:0;color:#666;font-weight:500}.spinner{width:20px;height:20px;border:2px solid #f3f3f3;border-top:2px solid #45A816;border-radius:50%;animation:spin 1s linear infinite}.stripe-loading{display:flex;flex-direction:column;align-items:center;gap:1.5rem;padding:3rem 2rem;background:linear-gradient(135deg,#f9fafb,#f3f4f6);border-radius:16px;border:2px dashed #d1d5db;margin-top:1rem;text-align:center}.stripe-loading p{margin:0;color:#6b7280;font-weight:500;font-size:1rem}.stripe-loading .spinner{width:32px;height:32px;border:3px solid #e5e7eb;border-top:3px solid #45A816;border-radius:50%;animation:spin 1s linear infinite}.payment-waiting-section{text-align:center;padding:2rem;background:#f9f9f9;border-radius:16px;border:2px dashed #ddd}.waiting-icon{color:#6b7280;margin-bottom:1rem;opacity:.8}.payment-waiting-section h3{color:#666;margin-bottom:.5rem;font-size:1.2rem}.payment-waiting-section p{color:#888;margin-bottom:1.5rem;font-size:.95rem}.requirements-list{display:flex;flex-direction:column;gap:.5rem;max-width:300px;margin:0 auto}.requirement{display:flex;align-items:center;padding:.5rem;background:#fff;border-radius:16px;color:#999;font-size:.9rem;transition:all .3s ease}.requirement.completed{color:#45a816;background:#f0f8f0;font-weight:500}.requirement.completed:before{content:"✓";margin-right:.5rem;font-weight:700;color:#45a816;font-size:.9rem}.payment-loading-section{text-align:center;padding:2rem;background:#f0f8f0;border-radius:16px;border:1px solid #e0f0e0}.payment-loading-section h3{color:#45a816;margin-bottom:.5rem;font-size:1.2rem}.payment-loading-section p{color:#666;margin:0;font-size:.95rem}.input-container{position:relative;display:flex;align-items:center}.input-success{position:absolute;right:12px;color:#45a816;font-weight:700;font-size:1.2rem}.input-error{position:absolute;right:12px;color:#e74c3c;font-weight:700;font-size:1.2rem}.field-error{color:#e74c3c;font-size:.85rem;margin-top:.25rem;font-weight:500}.form-group input.error{border-color:#e74c3c;box-shadow:0 0 0 2px #e74c3c1a}.form-group input:focus.error{border-color:#e74c3c;box-shadow:0 0 0 2px #e74c3c33}.field-hint{color:#666;font-size:.7rem;margin-top:.25rem;font-style:italic}.bank-transfer-info{background:#fff;border-radius:16px;border:1px solid #e5e7eb;overflow:hidden}.transfer-header{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;padding:2rem;text-align:center}.transfer-header svg{margin-bottom:1rem;color:#fff}.transfer-header h3{margin:0 0 .5rem;font-size:1.5rem;font-weight:700;color:#fff!important}.transfer-header p{margin:0;font-size:.95rem;opacity:.9;color:#fff!important}.bank-details-box{padding:2rem;background:#f9fafb;border-bottom:1px solid #e5e7eb}.bank-details-box h4{margin:0 0 1.5rem;font-size:1.2rem;font-weight:700;color:#111827!important;text-align:center}.bank-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem}.bank-info-item{display:flex;flex-direction:column;gap:.5rem}.bank-info-item strong{color:#6b7280!important;font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.bank-info-item span{color:#111827!important;font-size:1.1rem;font-weight:600;font-family:Courier New,monospace;padding:.5rem;background:#fff;border-radius:16px;border:1px solid #e5e7eb}.bank-info-item .reference-number{color:#3b82f6!important;font-weight:700}.transfer-instructions{padding:2rem;background:#fff}.transfer-instructions h4{margin:0 0 1rem;font-size:1.1rem;font-weight:700;color:#111827!important}.transfer-instructions ol{margin:0;padding-left:1.5rem;color:#374151!important}.transfer-instructions li{margin-bottom:.75rem;line-height:1.6;font-size:.95rem;color:#374151!important}.transfer-instructions li strong{color:#111827!important}.transfer-note{display:flex;align-items:center;gap:.75rem;padding:1.5rem 2rem;background:#3b82f60d;border-top:1px solid #e5e7eb}.transfer-note svg{color:#3b82f6;flex-shrink:0}.transfer-note p{margin:0;color:#374151!important;font-size:.9rem;font-weight:500}@media (max-width: 768px){.payment-method-tabs{flex-direction:column}.bank-info-grid{grid-template-columns:1fr;gap:1rem}.transfer-header,.bank-details-box,.transfer-instructions,.transfer-note{padding:1.5rem}}.enhanced-checkout-form{width:100%}.payment-option-selector{margin-bottom:24px}.payment-option-tabs{display:flex;gap:8px;border-bottom:2px solid var(--border-color, #e5e7eb)}.payment-option-tab{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;background:transparent;border:none;border-bottom:3px solid transparent;color:var(--text-secondary, #6b7280);font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;margin-bottom:-2px}.payment-option-tab:hover{color:var(--accent-color, #45A816);background:#45a8160d}.payment-option-tab.active{color:var(--accent-color, #45A816);border-bottom-color:var(--accent-color, #45A816);font-weight:600}.payment-form-content{width:100%}.payment-element-container{margin-bottom:24px;padding:20px;background:var(--bg-secondary, #f9fafb);border-radius:12px;border:1px solid var(--border-color, #e5e7eb)}.saved-cards-form{margin-bottom:24px}.loading-payment-methods{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center;color:var(--text-secondary, #6b7280);gap:16px}.loading-payment-methods p{margin:0;font-size:.95rem;font-weight:500}.no-saved-cards{width:100%;padding:48px 24px;text-align:center;color:var(--text-secondary, #6b7280);background:transparent;border:2px dashed #9CA3AF;border-radius:12px;cursor:pointer;transition:all .3s ease;display:flex;flex-direction:column;align-items:center;justify-content:center}.no-saved-cards:hover{border-color:#374151;background-color:#9ca3af0d;transform:translateY(-2px);box-shadow:0 2px 8px #0000001a}.no-saved-cards p{margin:0;font-weight:500}.no-saved-cards svg{color:var(--text-tertiary, #9ca3af);margin-bottom:16px}.no-saved-cards-subtitle{font-size:14px;margin-top:8px!important;opacity:.7}.saved-cards-list{display:flex;flex-direction:column;gap:12px}.saved-card-item{display:flex;align-items:center;gap:16px;padding:20px;border:2px solid #374151!important;border-radius:12px;cursor:pointer;transition:all .2s ease;background:var(--bg-secondary, #f9fafb)}.saved-card-item:hover{border-color:var(--accent-color, #45A816);background:var(--bg-secondary, #f9fafb);transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.saved-card-item.selected{border-color:var(--accent-color, #45A816)!important;background:var(--bg-secondary, #f9fafb);box-shadow:0 4px 16px #00000026}.saved-card-radio{width:24px;height:24px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.radio-checked{color:var(--accent-color, #45A816);width:24px;height:24px}.radio-unchecked{width:20px;height:20px;border:2px solid var(--border-color, #e5e7eb);border-radius:50%}.saved-card-item.selected .radio-unchecked{border-color:var(--accent-color, #45A816)}.saved-card-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:transparent;border-radius:12px;flex-shrink:0}.saved-card-icon svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.1))}.saved-card-info{flex:1;display:flex;flex-direction:column;gap:4px}.saved-card-brand{font-size:16px;font-weight:600;color:var(--text-primary, #212529);display:flex;align-items:center;gap:8px}.default-badge{font-size:12px;font-weight:500;padding:2px 8px;background:var(--accent-color, #45A816)!important;color:#fff!important;border-radius:12px;line-height:1.4}.saved-card-number{font-size:14px;color:var(--text-secondary, #6b7280);font-family:Courier New,monospace;margin-bottom:4px}.saved-card-expiry{font-size:12px;color:var(--text-tertiary, #9ca3af)}.spei-form{margin-bottom:24px}.spei-header-info{display:flex;align-items:flex-start;gap:16px;padding:20px;background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border-radius:12px;border:1px solid #bae6fd;margin-bottom:20px}.spei-header-info svg{color:#0284c7;flex-shrink:0;margin-top:2px}.spei-header-info h4{margin:0 0 8px;font-size:18px;font-weight:600;color:var(--text-primary, #212529)}.spei-header-info p{margin:0;font-size:14px;color:var(--text-secondary, #6b7280);line-height:1.5}.spei-bank-details{padding:24px;background:#fff;border:2px solid #e5e7eb;border-radius:12px;margin-bottom:20px}.spei-bank-details h5{margin:0 0 20px;font-size:16px;font-weight:600;color:var(--text-primary, #212529)}.bank-details-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}.bank-detail-item{display:flex;flex-direction:column;gap:4px}.bank-detail-item.full-width{grid-column:1 / -1}.bank-detail-label{font-size:13px;font-weight:500;color:var(--text-secondary, #6b7280);text-transform:uppercase;letter-spacing:.5px}.bank-detail-value{font-size:16px;font-weight:600;color:var(--text-primary, #212529);font-family:Courier New,monospace;padding:8px 12px;background:#f9fafb;border-radius:8px;border:1px solid #e5e7eb}.bank-detail-value.copyable{cursor:pointer;-webkit-user-select:all;user-select:all;position:relative}.bank-detail-value.copyable:hover{background:#f3f4f6;border-color:var(--accent-color, #45A816)}.bank-detail-value.amount{font-size:20px;color:var(--accent-color, #45A816);text-align:center}.spei-instructions{display:flex;flex-direction:column;gap:16px;padding:20px;background:#f9fafb;border-radius:12px;border-left:4px solid var(--accent-color, #45A816)}.instruction-step{display:flex;align-items:flex-start;gap:12px}.instruction-step svg{color:var(--accent-color, #45A816);flex-shrink:0;margin-top:2px}.instruction-step strong{display:block;font-size:14px;font-weight:600;color:var(--text-primary, #212529);margin-bottom:4px}.instruction-step p{margin:0;font-size:13px;color:var(--text-secondary, #6b7280);line-height:1.5}.spei-initial-message{padding:24px;text-align:center;background:#f9fafb;border-radius:12px;border:2px dashed #d1d5db;color:var(--text-secondary, #6b7280)}.spei-info-notice{display:flex;align-items:center;gap:8px;margin-top:16px;padding:12px 16px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;color:#166534;font-size:13px}.spei-info-notice svg{color:#16a34a;flex-shrink:0}.enhanced-checkout-loading{padding:40px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.enhanced-checkout-loading .loading-gif{width:80px;height:80px;object-fit:contain}.payment-error-message{margin-bottom:16px;padding:12px 16px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;color:#dc2626;font-size:14px}.btn-pay{width:100%;padding:14px 24px;background:var(--accent-color, #45A816);color:#fff;border:none;border-radius:12px;font-size:16px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .2s ease;box-shadow:0 4px 12px #45a8164d}.btn-pay:hover:not(:disabled){background:#4a9c1a;transform:translateY(-2px);box-shadow:0 6px 20px #45a81666}.btn-pay:disabled{opacity:.6;cursor:not-allowed}.payment-security{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--text-secondary, #6b7280);font-size:13px;padding:12px}.payment-security svg{color:var(--accent-color, #45A816)}.loading-payment-methods .loading-spinner,.enhanced-checkout-loading .loading-spinner{display:none!important}.loading-spinner{width:20px;height:20px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@media (max-width: 640px){.payment-option-tabs{flex-direction:column}.payment-option-tab{border-bottom:2px solid var(--border-color, #e5e7eb);border-left:3px solid transparent;margin-bottom:0}.payment-option-tab.active{border-left-color:var(--accent-color, #45A816);border-bottom-color:var(--border-color, #e5e7eb)}.saved-card-item{padding:12px}}.checkout-page.checkout-interno .sticky-card{position:static!important;width:100%!important;right:auto!important;top:auto!important;max-height:none!important}.checkout-page.checkout-interno .checkout-container{padding-top:40px}.checkout-page.checkout-interno .step-number{border-left:none!important;padding-left:0!important}.checkout-page.checkout-interno .step-number:after{display:none!important}.checkout-page.checkout-interno .section-card h2 .step-number:after{display:none!important}.checkout-page.checkout-interno .section-header{border-left:none!important;padding-left:0!important;margin-bottom:24px!important}.checkout-page.checkout-interno .main-title{border-left:none!important;padding-left:0!important}.checkout-page.checkout-interno .section-card h2{padding-left:0!important;margin-left:0!important}.checkout-page.checkout-interno .section-card{margin-top:24px!important}.checkout-page.checkout-interno .section-card h2{margin-bottom:24px!important;padding-left:0!important;margin-left:0!important;border-left:none!important}.checkout-page.checkout-interno .form-section{margin-left:0!important}.checkout-page.checkout-interno .stripe-container{margin-left:0!important;width:100%!important;max-width:100%!important}.checkout-page.checkout-interno .stripe-payment-form{padding:0!important}.checkout-page.checkout-interno .summary-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #f3f4f6}.checkout-page.checkout-interno .summary-row:last-child{border-bottom:none}.checkout-page.checkout-interno .summary-label{color:#6b7280;font-size:.9rem;font-weight:500;text-transform:capitalize}.checkout-page.checkout-interno .summary-value{color:#111827;font-size:.95rem;font-weight:600;text-align:right}.checkout-page.checkout-interno .summary-total{display:flex;justify-content:space-between;align-items:center;padding:16px 0;font-size:1.1rem;font-weight:700;color:#111827}.checkout-page.checkout-interno .summary-total strong{color:#059669;font-size:1.2rem}.checkout-page.checkout-interno .order-summary-section .info-notice{margin-left:0!important;padding:16px!important}.checkout-page.checkout-interno .user-info-display{background:#f9fafb;border:1px solid #e5e7eb;border-radius:16px;padding:20px;margin-bottom:16px}.checkout-page.checkout-interno .user-info-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #f3f4f6}.checkout-page.checkout-interno .user-info-row:last-child{border-bottom:none}.checkout-page.checkout-interno .user-info-label{color:#6b7280;font-size:.9rem;font-weight:500;text-transform:capitalize}.checkout-page.checkout-interno .user-info-value{color:#111827;font-size:.95rem;font-weight:600;text-align:right}.checkout-page.checkout-interno .edit-user-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;background:#f3f4f6;border:1px solid #d1d5db;border-radius:16px;color:#374151;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease}.checkout-page.checkout-interno .edit-user-btn:hover{background:#e5e7eb;border-color:#9ca3af}.checkout-page.checkout-interno .user-info-edit{background:#f9fafb;border:1px solid #e5e7eb;border-radius:16px;padding:20px;margin-bottom:16px}.checkout-page.checkout-interno .edit-form-group{margin-bottom:16px}.checkout-page.checkout-interno .edit-form-group:last-of-type{margin-bottom:20px}.checkout-page.checkout-interno .edit-form-group label{display:block;margin-bottom:6px;color:#374151;font-size:.9rem;font-weight:500}.checkout-page.checkout-interno .edit-form-group input{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:16px;font-size:.9rem;color:#111827;background:#fff;transition:border-color .2s ease}.checkout-page.checkout-interno .edit-form-group input:focus{outline:none;border-color:#45a816;box-shadow:0 0 0 3px #45a8161a}.checkout-page.checkout-interno .edit-buttons{display:flex;gap:12px;justify-content:flex-end}.checkout-page.checkout-interno .save-btn{padding:10px 20px;background:#45a816;border:none;border-radius:16px;color:#fff;font-size:.9rem;font-weight:500;cursor:pointer;transition:background-color .2s ease}.checkout-page.checkout-interno .save-btn:hover{background:#3a8f12}.checkout-page.checkout-interno .cancel-btn{padding:10px 20px;background:#f3f4f6;border:1px solid #d1d5db;border-radius:16px;color:#374151;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease}.checkout-page.checkout-interno .cancel-btn:hover{background:#e5e7eb;border-color:#9ca3af}.back-link{display:inline-flex;align-items:center;gap:6px;color:#6b7280;text-decoration:none;font-size:.9rem;font-weight:500;padding:6px 12px;border-radius:16px;border:1px solid #e5e7eb;background:none;cursor:pointer;transition:all .3s ease}.back-link:hover{color:#111827;border-color:#45a816;background-color:#f9fafb}.plan-info-box{display:flex;flex-direction:column;gap:16px;padding:20px;background-color:#f9fafb;border-radius:16px;border:1px solid #e5e7eb}.info-row-checkout{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border:none!important;border-bottom:none!important;padding-bottom:0!important}.checkout-page.checkout-interno .info-row,.checkout-page.checkout-interno .section-card{border-bottom:none!important}.checkout-page.checkout-interno .plan-info-box>div{border-bottom:none!important}.label-checkout{color:#6b7280;font-size:.9rem;font-weight:500}.value-checkout{color:#111827;font-size:.95rem;font-weight:600;text-align:right}.value-checkout.highlight{color:#10b981;font-size:1.1rem;font-weight:700}.features-box{padding:16px;background-color:#f0fdf4;border-radius:16px;border:1px solid #d1fae5}.checkout-interno-page-old{min-height:100vh;background:linear-gradient(135deg,#0f0f23,#1a1a2e,#16213e);padding:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;position:relative;overflow:hidden}.checkout-interno-page:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 80%,rgba(69,168,22,.15) 0%,transparent 50%),radial-gradient(circle at 80% 20%,rgba(69,168,22,.08) 0%,transparent 50%),radial-gradient(circle at 40% 40%,rgba(69,168,22,.05) 0%,transparent 50%);pointer-events:none}.checkout-container{width:100%;max-width:none;margin:0;padding:2rem 3rem;position:relative;z-index:1}.checkout-header{display:flex;align-items:center;gap:1.5rem;margin-bottom:3rem;padding:2rem 0;position:relative}.checkout-header:after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent 0%,rgba(69,168,22,.3) 50%,transparent 100%)}.back-button{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;background:#ffffff0d;color:#fff;border:1px solid rgba(255,255,255,.1);border-radius:16px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.back-button:hover{background:#45a81633;border-color:#45a81680;transform:translateY(-2px);box-shadow:0 8px 25px #45a81633}.checkout-header h1{color:#fff;font-size:2.5rem;font-weight:800;margin:0;text-shadow:0 2px 10px rgba(0,0,0,.3)}.checkout-content{display:grid;grid-template-columns:1fr 500px;gap:4rem;align-items:start;max-width:1400px;margin:0 auto}.plan-summary-card{background:#ffffff08;border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:2.5rem;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);position:relative;overflow:hidden}.plan-summary-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#45a816,#4caf50)}.plan-summary-card h3{color:#fff;font-size:1.8rem;font-weight:700;margin:0 0 2rem;display:flex;align-items:center;gap:1rem}.plan-summary-card h3:before{content:"🛒";font-size:1.5rem}.plan-details-content{display:flex;flex-direction:column;gap:2rem}.plan-price-section{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 0;border-bottom:1px solid rgba(255,255,255,.1)}.plan-price-label{color:#fffc;font-size:1.1rem;font-weight:500}.plan-price-value{color:#45a816;font-size:2.2rem;font-weight:800;text-shadow:0 2px 10px rgba(69,168,22,.3)}.plan-features{color:#fff}.plan-features p{font-size:1.3rem;font-weight:700;margin:0 0 1.5rem;color:#fff}.plan-features ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1rem}.plan-features li{display:flex;align-items:center;gap:1rem;font-size:1rem;color:#ffffffe6;font-weight:500}.plan-features li svg{color:#45a816;font-size:1.2rem;flex-shrink:0}.cost-summary-card{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:2rem;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);margin-bottom:2rem}.cost-summary-card h3{color:#fff;font-size:1.4rem;font-weight:600;margin:0 0 1.5rem;display:flex;align-items:center;gap:.5rem}.cost-summary-card h3:before{content:"💰";font-size:1.2rem}.cost-item{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;font-size:1rem;color:#fffc;padding:.5rem 0}.cost-item span:first-child{font-weight:500}.cost-item span:last-child{font-weight:600;color:#fff}.cost-total{display:flex;justify-content:space-between;align-items:center;margin-top:1.5rem;padding-top:1.5rem;border-top:2px solid rgba(69,168,22,.3);font-size:1.3rem;font-weight:700;color:#fff}.cost-total span:last-child{color:#45a816;font-size:1.5rem;text-shadow:0 2px 10px rgba(69,168,22,.3)}.payment-section{background:#ffffff0d;border:1px solid rgba(255,255,255,.15);border-radius:24px;padding:3.5rem;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);position:relative;overflow:hidden;min-height:500px;display:flex;flex-direction:column}.payment-section:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#45a816,#4caf50)}.payment-section h3{color:#fff;font-size:2rem;font-weight:700;margin:0 0 3rem;display:flex;align-items:center;gap:1rem;text-align:center;justify-content:center}.payment-section h3:before{content:"💳";font-size:1.8rem}.stripe-container{margin-bottom:3rem;padding:0;border:none;border-radius:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;min-height:auto;display:block}.stripe-payment-form{width:100%;display:flex;flex-direction:column;gap:2.5rem;padding:2rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:16px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.payment-element-container{min-height:150px;display:flex;align-items:center;justify-content:center;padding:1rem;background:#ffffff08;border:1px solid rgba(255,255,255,.08);border-radius:16px}.btn-pay{background:linear-gradient(135deg,#45a816,#4caf50);color:#fff;border:none;padding:1.5rem 3rem;border-radius:16px;font-size:1.2rem;font-weight:700;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:1rem;box-shadow:0 8px 25px #45a8164d;min-height:60px;width:100%}.btn-pay:hover{transform:translateY(-3px);box-shadow:0 12px 35px #45a81666}.btn-pay:disabled{background:#fff3;cursor:not-allowed;transform:none;box-shadow:none}.payment-security{display:flex;align-items:center;justify-content:center;gap:.5rem;color:#ffffffb3;font-size:.9rem;font-weight:500;margin-top:1.5rem}.payment-security svg{color:#45a816;font-size:1.1rem}.stripe-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;color:#fffc;min-height:200px}.stripe-loading .spinner{width:40px;height:40px;border:4px solid rgba(255,255,255,.1);border-top:4px solid #45A816;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}.stripe-loading p{font-size:1.1rem;font-weight:500;margin:0}.loading-message,.error-message,.no-plan-message{text-align:center;padding:3rem 2rem;background:#ffffff08;border:1px solid rgba(255,255,255,.1);border-radius:16px;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);color:#fff}.loading-message .spinner{width:40px;height:40px;border:4px solid rgba(255,255,255,.1);border-top:4px solid #45A816;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 1rem}.loading-message p{font-size:1.1rem;font-weight:500;margin:0;color:#fffc}.error-message div,.no-plan-message div{font-size:1.2rem;margin-bottom:2rem;color:#fff;font-weight:500}.error-message .btn-primary,.no-plan-message .btn-primary{background:linear-gradient(135deg,#45a816,#4caf50);color:#fff;border:none;padding:1rem 2rem;border-radius:16px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #45a8164d}.error-message .btn-primary:hover,.no-plan-message .btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 25px #45a81666}.success-page{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:100vh;background:linear-gradient(135deg,#0f0f23,#1a1a2e,#16213e);position:relative}.success-page:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,rgba(69,168,22,.2) 0%,transparent 70%);pointer-events:none}.success-content{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:24px;padding:4rem 3rem;max-width:600px;width:100%;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);position:relative;z-index:1;box-shadow:0 20px 40px #0000004d}.success-icon{font-size:5rem;color:#45a816;margin-bottom:2rem;text-shadow:0 4px 20px rgba(69,168,22,.5)}.success-content h2{font-size:2.5rem;margin-bottom:1.5rem;color:#fff;font-weight:800;text-shadow:0 2px 10px rgba(0,0,0,.3)}.success-content p{font-size:1.2rem;margin-bottom:3rem;color:#fffc;font-weight:500}.success-content .btn-primary,.success-content .btn-secondary{padding:1rem 2rem;font-size:1rem;font-weight:600;margin:.5rem;border-radius:16px;cursor:pointer;transition:all .3s ease;text-decoration:none;display:inline-block;min-width:150px}.success-content .btn-primary{background:linear-gradient(135deg,#45a816,#4caf50);color:#fff;border:none;box-shadow:0 4px 15px #45a8164d}.success-content .btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 25px #45a81666}.success-content .btn-secondary{background:#ffffff1a;color:#fff;border:1px solid rgba(255,255,255,.2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.success-content .btn-secondary:hover{background:#ffffff26;transform:translateY(-2px)}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.checkout-container>*{animation:fadeInUp .6s ease-out}@media (max-width: 1200px){.checkout-content{max-width:1000px;grid-template-columns:1fr 450px;gap:3rem}}@media (max-width: 768px){.checkout-container{padding:1.5rem 2rem}.checkout-content{grid-template-columns:1fr;gap:2rem;max-width:none}.checkout-header{flex-direction:column;align-items:flex-start;gap:1rem;margin-bottom:2rem}.checkout-header h1{font-size:2rem}.plan-summary-card,.cost-summary-card{padding:2rem}.payment-section{padding:2.5rem 2rem;min-height:400px}.payment-section h3{font-size:1.6rem;margin-bottom:2rem}.stripe-container{margin-bottom:2rem}.stripe-payment-form{padding:1.5rem;gap:2rem}.payment-element-container{min-height:120px;padding:.8rem}.btn-pay{padding:1.2rem 2rem;font-size:1.1rem;min-height:55px}.plan-summary-card h3{font-size:1.4rem}.plan-price-value{font-size:1.8rem}.cost-total{font-size:1.1rem}.success-content{padding:2rem 1.5rem;margin:1rem}.success-content h2{font-size:2rem}.success-content p{font-size:1rem}.success-content .btn-primary,.success-content .btn-secondary{margin:.25rem;width:100%}}@media (max-width: 480px){.checkout-container{padding:1rem}.checkout-header h1{font-size:1.5rem}.plan-summary-card h3,.payment-section h3{font-size:1.2rem}.payment-section{padding:2rem 1.5rem;min-height:350px}.stripe-container{margin-bottom:1.5rem}.stripe-payment-form{padding:1.2rem;gap:1.5rem}.payment-element-container{min-height:100px;padding:.6rem}.btn-pay{padding:1rem 1.5rem;font-size:1rem;min-height:50px}.plan-price-value{font-size:1.5rem}.success-content h2{font-size:1.8rem}}.sucursales-manager{margin-bottom:24px}.sucursales-toggle{width:100%;background:var(--bg-secondary);border:2px solid var(--border-color);border-radius:12px;padding:16px 20px;display:flex;align-items:center;gap:12px;cursor:pointer;transition:all .3s ease;font-size:1rem;font-weight:600;color:var(--text-primary)}.sucursales-toggle:hover,.sucursales-toggle.active{border-color:var(--primary-color);background:var(--bg-tertiary)}.sucursales-toggle .branch-count{background:#45a816;color:#fff;padding:6px 12px;border-radius:20px;font-size:.85rem;font-weight:700;min-width:32px;text-align:center;box-shadow:0 2px 8px #45a8164d}.sucursales-toggle .chevron{margin-left:auto;transition:transform .3s ease}.sucursales-toggle .chevron.open{transform:rotate(180deg)}.sucursales-content{background:var(--bg-secondary);border:2px solid var(--border-color);border-top:none;border-radius:0 0 12px 12px;padding:24px;margin-top:-12px;animation:slideDown .3s ease}.sucursales-header{margin-bottom:24px}.sucursales-header h4{font-size:1.1rem;font-weight:600;color:var(--text-primary);margin:0 0 4px}.sucursales-header p{font-size:.9rem;color:var(--text-secondary);margin:0}.branches-table-container{margin-bottom:24px;border-radius:8px;overflow:hidden;border:1px solid var(--border-color)}.branches-table{width:100%;border-collapse:collapse}.branches-table thead{background:var(--bg-tertiary)}.branches-table th{padding:12px 16px;text-align:left;font-size:.85rem;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid var(--border-color)}.branches-table tbody tr{border-bottom:1px solid var(--border-color);transition:background-color .2s ease}.branches-table tbody tr:hover{background:var(--bg-tertiary)}.branches-table tbody tr:last-child{border-bottom:none}.branches-table td{padding:14px 16px;font-size:.95rem;color:var(--text-primary)}.btn-delete-branch{background:transparent;border:none;color:#ef4444;cursor:pointer;padding:8px;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.btn-delete-branch:hover{background:#ef44441a;color:#dc2626}.add-branch-form{background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:12px;padding:20px;margin-bottom:16px}.add-branch-form h5{font-size:1rem;font-weight:600;color:var(--text-primary);margin:0 0 16px;display:flex;align-items:center;gap:8px}.branch-form-row{display:grid;grid-template-columns:1fr 200px auto;gap:16px;align-items:end}.branch-form-row-button{display:flex;justify-content:flex-end;grid-template-columns:none}.branch-form-section .branch-form-row{grid-template-columns:repeat(3,1fr);align-items:start;gap:12px}.branch-form-section .branch-form-row:last-of-type{grid-template-columns:repeat(2,1fr);gap:12px}.branch-form-section .branch-form-group{min-width:0}.branch-form-group{display:flex;flex-direction:column;gap:6px}.branch-form-group label{font-size:.9rem;font-weight:500;color:var(--text-primary)}.branch-form-group input{padding:10px 14px;border:1px solid var(--border-color);border-radius:8px;font-size:.95rem;background:var(--bg-secondary);color:var(--text-primary);transition:all .2s ease}.branch-form-group input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #45a8161a}.branch-form-group input.error{border-color:#ef4444}.sucursales-manager .branch-form-group .error-message,.branch-form-group .error-message{font-size:.8rem;color:#b91c1c!important;margin-top:4px;font-weight:500;display:block}.branch-form-group.full-width{grid-column:1 / -1}.branch-form-fields{display:flex;flex-direction:column;gap:16px}.branch-form-section{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;padding:16px;margin-top:8px}.branch-form-section h6{margin:0 0 8px;font-size:.9rem;font-weight:600;color:var(--text-primary)}.branch-form-section small{display:block;margin-bottom:16px;line-height:1.4}.btn-add-branch{background:#1a1a1a;color:#fff;border:none;border-radius:8px;padding:10px 20px;font-size:.95rem;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:6px;transition:all .2s ease;white-space:nowrap;width:auto;min-width:auto}.btn-add-branch:hover{background:#000;transform:translateY(-1px);box-shadow:0 4px 12px #0000004d}.btn-add-branch:active{transform:translateY(0)}.no-branches-message{text-align:center;padding:40px 20px;color:var(--text-secondary)}.no-branches-message svg{opacity:.3;margin-bottom:12px}.no-branches-message p{font-size:1rem;font-weight:500;margin:0 0 4px}.no-branches-message small{font-size:.85rem;opacity:.8}@media (max-width: 1024px){.branch-form-row{grid-template-columns:1fr 1fr;gap:12px}.branch-form-group.full-width{grid-column:1 / -1}.branch-form-section .branch-form-row{grid-template-columns:repeat(2,1fr)}.branch-form-section .branch-form-row:last-of-type{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.sucursales-content{padding:16px}.branch-form-row{grid-template-columns:1fr;gap:12px}.branch-form-group.full-width{grid-column:1}.branch-form-section .branch-form-row{grid-template-columns:1fr;gap:12px}.branch-form-section .branch-form-row:last-of-type{grid-template-columns:1fr;gap:12px}.branch-form-row-button{justify-content:center}.btn-add-branch{width:100%;justify-content:center}.branches-table{font-size:.85rem;display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}.branches-table thead,.branches-table tbody,.branches-table tr{display:block}.branches-table thead{display:none}.branches-table tbody tr{border:1px solid var(--border-color);border-radius:8px;margin-bottom:12px;padding:12px;background:var(--bg-secondary)}.branches-table tbody td{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--border-color)}.branches-table tbody td:last-child{border-bottom:none}.branches-table tbody td:before{content:attr(data-label);font-weight:600;color:var(--text-secondary);margin-right:12px;flex-shrink:0}.add-branch-form{padding:16px}.branch-form-section{padding:12px}.branch-form-section h6,.branch-form-group label{font-size:.85rem}.branch-form-group input{font-size:.9rem;padding:8px 12px}}@media (max-width: 480px){.sucursales-toggle{padding:12px 16px;font-size:.9rem}.sucursales-content,.add-branch-form{padding:12px}.branch-form-section{padding:10px}}[data-theme=dark] .sucursales-content{background:#0d111c}[data-theme=dark] .add-branch-form{background:#1d212b}[data-theme=light] .sucursales-content{background:#fff}[data-theme=light] .add-branch-form{background:#f7f8fb}.nueva-empresa-container,.nueva-empresa-page{padding:40px;max-width:1400px;margin:0 auto}.nueva-empresa-header{margin-bottom:30px}.header-content{display:flex;justify-content:space-between;align-items:center;gap:20px}.nueva-empresa-header h1,.page-header h1{color:var(--text-primary);margin-bottom:10px;font-size:2rem;transition:color .3s ease;display:flex;align-items:center;gap:12px}.nueva-empresa-header p,.page-header p{color:var(--text-secondary);font-size:1rem;margin:0;transition:color .3s ease}.page-header{background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;padding:24px;margin-bottom:24px}.header-actions{display:flex;gap:12px;flex-shrink:0;margin-left:auto}.cancel-btn-header,.submit-btn-header{padding:10px 20px;border-radius:15px;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .3s ease;outline:none;border:1px solid transparent;white-space:nowrap;display:flex;align-items:center;gap:8px;justify-content:center}.cancel-btn-header{background-color:#1f2937;color:#fff;border-color:#1f2937}.cancel-btn-header:hover:not(:disabled){background-color:#111827;border-color:#111827;transform:translateY(-1px);box-shadow:0 4px 12px #0003}.submit-btn-header{background-color:#1f2937;color:#fff;border-color:#1f2937}.submit-btn-header:hover:not(:disabled){background-color:#111827;border-color:#111827;transform:translateY(-1px);box-shadow:0 4px 12px #0003}.submit-btn-header:disabled,.cancel-btn-header:disabled{opacity:.6;cursor:not-allowed;transform:none}.nueva-empresa-form,.form-container{background-color:#fff;border:1px solid var(--border-color);border-radius:16px;padding:40px;transition:transform .3s ease,box-shadow .3s ease,background-color .3s ease,border-color .3s ease}.form-section{margin-bottom:40px}.section-note{color:var(--text-secondary);font-size:.9rem;margin:0 0 20px;line-height:1.5}.form-section:first-child{border-top:none!important;padding-top:0}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.form-section.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:start}.form-section.two-columns .form-group{margin-bottom:25px}.form-section.certificates{display:grid;grid-template-columns:1fr 1fr 1fr;gap:30px;align-items:start}.form-section.certificates .form-group{margin-bottom:25px}.form-section h2,.form-section h3{color:var(--text-primary);margin-bottom:20px;font-size:1.5rem;font-weight:600;transition:color .3s ease;display:flex;align-items:center;gap:10px}.section-description{color:var(--text-secondary);font-size:.95rem;margin-bottom:20px;padding:15px;background-color:var(--bg-tertiary);border-radius:0 8px 8px 0;border-left:4px solid var(--accent-color)}.form-group{margin-bottom:25px}.form-group span.error-message{color:#dc2626!important}.form-group label{display:block;color:var(--text-primary);font-weight:500;margin-bottom:8px;font-size:.9rem;transition:color .3s ease}.form-group input,.form-group select{width:100%;padding:12px 16px;background-color:var(--bg-primary)!important;border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary)!important;font-size:1rem;transition:all .3s ease;outline:none}.form-group input:focus,.form-group select:focus{background-color:var(--bg-primary)!important;color:var(--text-primary)!important;border-color:var(--accent-color);box-shadow:0 0 0 3px #45a8161a}.form-group input.error,.form-group select.error{border-color:#e53e3e;box-shadow:0 0 0 3px #e53e3e1a}.form-group input[type=file]{padding:8px 12px;background-color:var(--bg-primary);border:2px dashed var(--border-color);cursor:pointer;transition:all .3s ease}.form-group input[type=file]:hover{border-color:var(--accent-color);background-color:var(--hover-bg)}.form-group input[type=file].error{border-color:#e53e3e;border-style:solid}.image-upload-container{margin-top:8px}.image-upload-box{display:block;width:100%;min-height:200px;height:auto;border:2px dashed var(--border-color);border-radius:16px;background-color:var(--bg-tertiary);cursor:pointer;transition:all .3s ease;overflow:hidden;position:relative}.image-upload-box:hover{border-color:var(--accent-color);background-color:var(--hover-bg)}.upload-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:var(--text-secondary);text-align:center;padding:20px}.upload-placeholder svg{margin-bottom:12px;color:var(--accent-color)}.upload-placeholder p{margin:0 0 8px;font-size:1rem;font-weight:500;color:var(--text-primary)}.upload-placeholder span{font-size:.85rem;color:var(--text-secondary)}.logo-preview{position:relative;width:100%;min-height:180px;height:auto;display:flex;align-items:center;justify-content:center;padding:10px}.logo-image{max-width:100%;max-height:100%;width:auto;height:auto;min-width:200px;min-height:150px;object-fit:contain;padding:5px}.logo-overlay{position:absolute;inset:0;background-color:#000000b3;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s ease}.logo-preview:hover .logo-overlay{opacity:1}.logo-overlay span{color:#fff;font-size:1rem;font-weight:500}.file-upload-container{margin-top:8px}.file-upload-box{display:block;width:100%;height:180px;border:2px dashed var(--border-color);border-radius:16px;background-color:var(--bg-tertiary);cursor:pointer;transition:all .3s ease;overflow:hidden;position:relative}.file-upload-box:hover{border-color:var(--accent-color);background-color:var(--hover-bg)}.file-selected{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:var(--accent-color);text-align:center;padding:20px}.file-selected svg{margin-bottom:12px;color:var(--accent-color)}.file-selected p{margin:0 0 8px;font-size:1rem;font-weight:600;color:var(--accent-color)}.file-selected span{font-size:.85rem;color:var(--text-secondary)}.form-group small{display:block;color:var(--text-secondary);font-size:.85rem;margin-top:5px;font-style:italic}.nueva-empresa-container .form-group span.error-message,.nueva-empresa-form .form-group span.error-message,.nueva-empresa-container .form-group .error-message,.nueva-empresa-form .form-group .error-message,.form-group .error-message,.nueva-empresa-container .error-message,.error-message{display:block;color:#dc2626!important;font-size:.85rem;margin-top:5px;font-weight:500}.form-actions{display:flex;gap:16px;justify-content:flex-end;margin-top:30px}.cancel-btn,.submit-btn,.btn-cancel,.btn-submit,.btn-submit-dark{padding:12px 24px;border-radius:15px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .3s ease;outline:none;border:1px solid transparent;flex:1;max-width:200px;display:flex;align-items:center;gap:8px;justify-content:center}.btn-submit-dark{background:#1f2937;color:#fff;border:none;padding:10px 20px;font-size:.9rem;display:flex;align-items:center;gap:8px;justify-content:center;max-width:220px;border-radius:16px}.btn-submit-dark:hover:not(:disabled){background:#111827;transform:translateY(-1px);box-shadow:0 4px 12px #0003}.btn-submit-dark:disabled{opacity:.6;cursor:not-allowed}.btn-cancel{background:transparent;color:var(--text-primary);border:1px solid var(--border-color);border-radius:16px}.btn-cancel:hover:not(:disabled){background:var(--bg-tertiary);border-color:var(--text-secondary)}.cancel-btn{background-color:#1f2937;color:#fff;border-color:#1f2937}.cancel-btn:hover:not(:disabled){background-color:#111827;border-color:#111827;transform:translateY(-1px);box-shadow:0 4px 12px #0003}.submit-btn{background-color:#1f2937;color:#fff;border-color:#1f2937}.submit-btn:hover:not(:disabled){background-color:#111827;border-color:#111827;transform:translateY(-1px);box-shadow:0 4px 12px #0003}.submit-btn:disabled,.cancel-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}@media (max-width: 1024px){.two-columns,.form-section.two-columns,.form-section.certificates{grid-template-columns:1fr;gap:20px}}@media (max-width: 768px){.nueva-empresa-container{padding:20px}.nueva-empresa-form{padding:25px}.two-columns,.form-section.two-columns,.form-section.certificates{grid-template-columns:1fr}.form-actions{flex-direction:column}.cancel-btn,.submit-btn{width:100%}}@media (max-width: 480px){.nueva-empresa-container{padding:15px}.nueva-empresa-form{padding:20px}.nueva-empresa-header h1{font-size:1.75rem}.nueva-empresa-header p{font-size:1rem}.form-section h3{font-size:1.25rem}}@media (prefers-color-scheme: dark){.nueva-empresa-container .form-group span.error-message,.nueva-empresa-form .form-group span.error-message,.nueva-empresa-container .form-group .error-message,.nueva-empresa-form .form-group .error-message,.form-group .error-message,.nueva-empresa-container .error-message,.error-message{color:#dc2626!important}.form-group input[type=file]{background-color:var(--bg-secondary)}.section-description{background-color:var(--bg-primary)}}.fiscal-modal-overlay{position:fixed;inset:0;background-color:#0009;display:flex;align-items:center;justify-content:center;z-index:10000;padding:20px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .3s ease-out}.fiscal-modal-content{background:linear-gradient(135deg,#fff,#f8fafc);border-radius:16px;box-shadow:0 25px 50px -12px #00000040;max-width:500px;width:100%;max-height:90vh;overflow:hidden;animation:slideIn .3s ease-out;border:1px solid #e2e8f0}@keyframes slideIn{0%{opacity:0;transform:scale(.95) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.fiscal-modal-header{background:linear-gradient(135deg,#fef3c7,#fde68a);padding:24px;display:flex;align-items:center;gap:16px;border-bottom:1px solid #f59e0b;position:relative}.fiscal-modal-icon{background:#f59e0b;color:#fff;width:48px;height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 12px #f59e0b4d}.fiscal-modal-header h3{margin:0;color:#92400e;font-size:20px;font-weight:700;flex:1}.fiscal-modal-close{background:none;border:none;color:#92400e;cursor:pointer;padding:8px;border-radius:16px;transition:all .2s ease;display:flex;align-items:center;justify-content:center;width:36px;height:36px}.fiscal-modal-close:hover{background-color:#92400e1a;transform:scale(1.1)}.fiscal-modal-body{padding:32px 24px}.fiscal-modal-description{color:#374151;font-size:16px;line-height:1.6;margin:0 0 24px;text-align:center}.fiscal-modal-fields{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:20px;margin-bottom:24px}.fiscal-modal-fields h4{margin:0 0 16px;color:#1f2937;font-size:16px;font-weight:600}.fiscal-modal-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.fiscal-modal-item{display:flex;align-items:center;gap:8px;color:#4b5563;font-size:14px;font-weight:500}.fiscal-modal-bullet{color:#f59e0b;font-weight:700;font-size:16px}.fiscal-modal-info{background:#dbeafe;border:1px solid #93c5fd;border-radius:16px;padding:16px;display:flex;align-items:center;gap:12px}.fiscal-modal-info-icon{background:#3b82f6;color:#fff;width:32px;height:32px;border-radius:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.fiscal-modal-info p{margin:0;color:#1e40af;font-size:14px;font-weight:500;line-height:1.4}.fiscal-modal-footer{padding:24px;background:#f8fafc;border-top:1px solid #e2e8f0;display:flex;gap:12px;justify-content:flex-end}.fiscal-modal-btn{padding:12px 24px;border-radius:16px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:8px;border:none;min-width:120px;justify-content:center}.fiscal-modal-btn-secondary{background:#f3f4f6;color:#374151;border:1px solid #d1d5db}.fiscal-modal-btn-secondary:hover{background:#e5e7eb;transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.fiscal-modal-btn-primary{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;box-shadow:0 4px 12px #3b82f64d}.fiscal-modal-btn-primary:hover{background:linear-gradient(135deg,#2563eb,#1e40af);transform:translateY(-1px);box-shadow:0 6px 16px #3b82f666}.fiscal-modal-btn-primary:active{transform:translateY(0)}@media (max-width: 640px){.fiscal-modal-content{margin:20px;max-width:none}.fiscal-modal-header{padding:20px}.fiscal-modal-body{padding:24px 20px}.fiscal-modal-footer{padding:20px;flex-direction:column}.fiscal-modal-btn{width:100%}.fiscal-modal-list{grid-template-columns:1fr}}.mis-compras-page{padding:20px;min-height:100%;display:flex;flex-direction:column;gap:20px;overflow-x:visible;overflow-y:auto;width:100%;max-width:100%;box-sizing:border-box}.page-header{background-color:#fff;border:1px solid var(--border-color);border-radius:16px;padding:20px}.header-content{display:flex!important;justify-content:space-between!important;align-items:center!important;flex-direction:row!important;width:100%}.title-section{display:flex;align-items:center;gap:12px}.page-icon{color:#4b5563;font-size:24px}.title-section h1,.title-section h2{color:var(--text-primary);font-size:22px;font-weight:500;margin:0;letter-spacing:-.02em;transition:color .3s ease}.header-actions{display:flex;gap:12px;margin-left:auto}.btn-primary{background-color:var(--accent-color);color:var(--bg-primary);border:none;border-radius:16px;padding:10px 5px!important;font-size:.9rem;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:8px;transition:all .3s ease}.btn-primary:hover{opacity:.9;transform:translateY(-1px)}.filters-section{background-color:#fff;border:1px solid var(--border-color);border-radius:16px;padding:20px}.search-container{display:flex;gap:16px;align-items:center}.search-input-wrapper{position:relative;flex:1;max-width:400px}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--text-secondary);font-size:18px}.content-section{flex:1;display:flex;flex-direction:column;min-width:0;overflow-x:visible;overflow-y:visible;width:100%;max-width:100%;box-sizing:border-box}.table-container{background-color:#fff;border:1px solid var(--border-color);border-radius:12px;overflow-x:scroll!important;overflow-y:auto;width:100%;position:relative;scrollbar-width:thin;scrollbar-color:#64748b #f1f5f9;-webkit-overflow-scrolling:touch;display:block;min-height:0}.table-container::-webkit-scrollbar{height:12px}.table-container::-webkit-scrollbar-track{background:#f1f5f9;border-radius:6px}.table-container::-webkit-scrollbar-thumb{background:#64748b;border-radius:6px;border:2px solid #f1f5f9}.table-container::-webkit-scrollbar-thumb:hover{background:#475569}.purchases-table{width:100%;min-width:1520px;border-collapse:separate;border-spacing:0;font-size:.9rem;table-layout:fixed;display:table}.purchases-table thead{background-color:var(--bg-tertiary);border-bottom:1px solid var(--border-color)}.purchases-table th{background-color:var(--bg-tertiary);color:#949bac;font-weight:600;padding:16px 12px;text-align:left;border-bottom:1px solid var(--border-color);font-size:.9rem;white-space:nowrap;border-right:1px solid transparent}.purchases-table th:not(:last-child){border-right:1px solid var(--border-color)}.purchases-table td{padding:16px 12px;border-bottom:1px solid var(--border-color);border-right:1px solid transparent;color:var(--text-primary);vertical-align:middle;white-space:nowrap;text-align:left}.purchases-table td:not(:last-child){border-right:1px solid var(--border-color)}.purchases-table tbody tr:hover{background-color:var(--bg-tertiary)}.purchase-id{font-family:Courier New,monospace;font-weight:600;color:var(--accent-color)}.purchase-date{color:var(--text-secondary);font-size:.85rem;display:flex;flex-direction:column;align-items:flex-start;gap:4px}.date-line{font-weight:500;color:var(--text-primary);text-align:left}.time-line{font-size:.8rem;color:var(--text-secondary);opacity:.8;text-align:left}.purchase-plan{font-weight:500}.purchase-timbres{text-align:center;font-weight:600;color:var(--accent-color)}.purchase-total{text-align:right;font-weight:700;color:var(--accent-color)}.purchase-renewal{text-align:left;font-size:.85rem;display:flex;flex-direction:column;align-items:flex-start;gap:4px}.purchase-renewal .date-line{font-weight:500;color:var(--text-primary);text-align:left}.purchase-renewal .time-line{font-size:.8rem;color:var(--text-secondary);opacity:.8;text-align:left}.renewal-date{color:var(--text-primary);font-weight:500}.no-renewal{color:var(--text-secondary);opacity:.5}.purchase-method{text-align:left;font-size:.85rem;color:var(--text-secondary)}.acciones{text-align:left}.btn-action{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:8px;border-radius:16px;margin:0 2px;transition:all .3s ease;display:inline-flex;align-items:center;justify-content:center}.btn-action:hover{background-color:var(--bg-tertiary);color:var(--text-primary);transform:translateY(-1px)}.btn-facturar{background-color:var(--accent-color)!important;color:var(--bg-primary)!important}.btn-facturar:hover{background-color:#3a8a0f!important;color:var(--bg-primary)!important;transform:translateY(-1px)}.estado{display:inline-block;padding:2px 8px;border-radius:12px;font-size:.65rem;font-weight:600;text-transform:uppercase;letter-spacing:.3px}.estado-pagada{background-color:#d1fae5;color:#065f46}.estado-pendiente{background-color:#fef3c7;color:#92400e}.estado-cancelada{background-color:#fee2e2;color:#991b1b}.estado-vencida{background-color:#f3f4f6;color:#6b7280}.loading-message,.error-message{padding:40px 20px;text-align:center;color:var(--text-secondary);font-size:.9rem;font-weight:500;background-color:#fff;border:1px solid var(--border-color);border-radius:16px;margin:0;display:flex;flex-direction:column;align-items:center;gap:16px;transition:all .3s ease}.error-message{color:#dc2626}.no-results{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center;color:var(--text-secondary);background-color:#fff;border:1px solid var(--border-color);border-radius:16px;gap:16px}.no-results svg{color:var(--text-secondary);opacity:.5}.no-results p{font-size:1rem;margin:0}@media (max-width: 1200px){.purchases-table{font-size:.85rem}.purchases-table th,.purchases-table td{padding:12px 8px}}@media (max-width: 768px){.mis-compras-page{padding:16px;gap:16px}.page-header{padding:16px}.title-section h1{font-size:1.5rem}.filters-section{padding:16px}.search-container{flex-direction:column;gap:12px}.search-input-wrapper{max-width:100%}.purchases-table{font-size:.8rem}.purchases-table th,.purchases-table td{padding:8px 4px}.purchases-table th:nth-child(n+6),.purchases-table td:nth-child(n+6){display:none}}@media (max-width: 480px){.mis-compras-page{padding:12px;gap:12px}.page-header{padding:12px}.title-section h1{font-size:1.3rem}.filters-section{padding:12px}.purchases-table{font-size:.75rem}.purchases-table th,.purchases-table td{padding:6px 2px}.purchases-table th:nth-child(n+5),.purchases-table td:nth-child(n+5){display:none}.btn-action{padding:6px;margin:0 1px}}@media (max-width: 768px){.invoice-modal{margin:10px;max-width:calc(100% - 20px)}.invoice-modal-header,.invoice-modal-content,.invoice-modal-actions{padding:16px}.invoice-modal-actions{flex-direction:column}.btn-cancel,.btn-confirm{width:100%;justify-content:center}}@media (max-width: 768px){.success-modal{margin:10px;max-width:calc(100% - 20px)}.success-modal-header,.success-modal-content,.success-modal-actions{padding:20px 16px}.success-details{padding:16px}.success-item{flex-direction:column;align-items:flex-start;gap:4px}.success-value{text-align:left;word-break:break-word}.success-value.uuid{font-size:.75rem}}.purchase-type{text-align:center;width:80px;min-width:80px}.type-badge{display:inline-block;padding:2px 6px;border-radius:8px;font-size:.65rem;font-weight:600;text-transform:uppercase;letter-spacing:.3px}.type-badge.subscription{background-color:#e3f2fd;color:#1976d2;border:1px solid #bbdefb}.type-badge.timbre{background-color:#f3e5f5;color:#7b1fa2;border:1px solid #e1bee7}.type-badge.unknown{background-color:#f5f5f5;color:#616161;border:1px solid #e0e0e0}.purchase-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:60px;justify-content:center}.action-buttons{display:flex;gap:4px;align-items:center;flex-wrap:wrap;justify-content:flex-start}.subscription-info-compact{display:flex;flex-direction:column;align-items:flex-start;gap:2px;font-size:.7rem;color:#666;text-align:left;line-height:1.2}.renewal-badge-compact,.initial-badge-compact{display:inline-block;padding:2px 4px;border-radius:6px;font-size:.6rem;font-weight:600;white-space:nowrap}.renewal-badge-compact{background-color:#e3f2fd;color:#1976d2}.initial-badge-compact{background-color:#e8f5e8;color:#2e7d32}.renewal-date-compact{font-size:.65rem;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}.purchases-table th:nth-child(1),.purchases-table td:nth-child(1){width:100px;min-width:100px;max-width:100px;text-align:left}.purchases-table th:nth-child(2),.purchases-table td:nth-child(2){width:120px;min-width:120px;max-width:120px;text-align:left}.purchases-table th:nth-child(3),.purchases-table td:nth-child(3){width:180px;min-width:180px;max-width:180px;text-align:left}.purchases-table th:nth-child(4),.purchases-table td:nth-child(4){width:150px;min-width:150px;max-width:150px;text-align:left}.purchases-table th:nth-child(5),.purchases-table td:nth-child(5){width:100px;min-width:100px;max-width:100px;text-align:left}.purchases-table th:nth-child(6),.purchases-table td:nth-child(6){width:120px;min-width:120px;max-width:120px;text-align:left}.purchases-table th:nth-child(7),.purchases-table td:nth-child(7){width:120px;min-width:120px;max-width:120px;text-align:left}.purchases-table th:nth-child(8),.purchases-table td:nth-child(8){width:180px;min-width:180px;max-width:180px;text-align:left}.purchases-table th:nth-child(9),.purchases-table td:nth-child(9){width:150px;min-width:150px;max-width:150px;text-align:left}.purchases-table th:nth-child(10),.purchases-table td:nth-child(10){width:160px;min-width:160px;max-width:160px;text-align:left;padding-left:42px}.purchases-table th:nth-child(11),.purchases-table td:nth-child(11){width:180px;min-width:180px;max-width:180px;text-align:left;padding-left:32px;padding-right:20px}.auto-renewal-cell{padding:16px 12px}.switch{position:relative;display:inline-block;width:44px;height:24px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.3s;border-radius:24px}.slider:before{position:absolute;content:"";height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;transition:.3s;border-radius:50%}input:checked+.slider{background-color:var(--accent-color, #45A816)}input:checked+.slider:before{transform:translate(20px)}input:disabled+.slider{opacity:.5;cursor:not-allowed}.slider:hover{box-shadow:0 0 1px var(--accent-color, #45A816)}.purchase-details-container{min-height:100vh;background:linear-gradient(180deg,var(--bg-primary) 0%,var(--bg-secondary) 100%);transition:background-color .3s ease}.purchase-details-header{background:linear-gradient(135deg,var(--bg-secondary) 0%,rgba(69,168,22,.03) 100%);border-bottom:2px solid var(--border-color);padding:32px 24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;transition:all .3s ease;box-shadow:0 2px 8px #0000000d}.header-left{display:flex;align-items:center;gap:20px}.back-button{background:var(--bg-primary);border:2px solid var(--border-color);color:var(--text-primary);padding:10px 20px;border-radius:12px;cursor:pointer;font-size:.95rem;font-weight:600;transition:all .3s ease;display:flex;align-items:center;gap:8px;box-shadow:0 2px 4px #0000000d}.back-button:hover{background:linear-gradient(135deg,var(--accent-color),#4a9c1a);border-color:var(--accent-color);color:#fff;transform:translate(-4px);box-shadow:0 4px 12px #45a81640}.header-info h1{color:var(--text-primary);font-size:2rem;font-weight:800;margin:0 0 8px;transition:color .3s ease;letter-spacing:-.5px}.header-info p{color:var(--text-secondary);font-size:.95rem;margin:0;font-family:Courier New,monospace;font-weight:600;background:var(--bg-tertiary);padding:4px 12px;border-radius:8px;display:inline-block;transition:color .3s ease}.header-right{display:flex;align-items:center}.status-badge{display:inline-block;padding:10px 20px;border-radius:12px;font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap;box-shadow:0 2px 8px #0000001a;border:2px solid transparent}.status-completed{background-color:#d4edda;color:#155724;border:1px solid #c3e6cb}.status-pending{background-color:#fff3cd;color:#856404;border:1px solid #ffeaa7}.status-cancelled,.status-failed{background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.status-default{background-color:var(--bg-tertiary);color:var(--text-secondary);border:1px solid var(--border-color)}.purchase-details-content{padding:32px 24px;max-width:1200px;margin:0 auto}.details-section{margin-bottom:40px}.details-section:last-child{margin-bottom:0}.details-section h2{color:var(--text-primary);font-size:1.75rem;font-weight:700;margin:0 0 28px;padding-bottom:16px;border-bottom:3px solid transparent;background:linear-gradient(to right,var(--accent-color),transparent);background-size:120px 3px;background-repeat:no-repeat;background-position:0 bottom;transition:color .3s ease;letter-spacing:-.3px}.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}.info-card{background:linear-gradient(135deg,var(--bg-secondary) 0%,rgba(255,255,255,.5) 100%);border:2px solid var(--border-color);border-radius:20px;padding:24px;transition:all .3s ease;position:relative;overflow:hidden}.info-card:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--accent-color),transparent);opacity:0;transition:opacity .3s ease}.info-card:hover:before{opacity:1}.info-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px #45a81626;border-color:#45a8164d}.info-header{display:flex;align-items:center;gap:14px;margin-bottom:16px}.info-icon{font-size:1.6rem;width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#45a8161a,#45a8160d);border-radius:14px;border:1px solid rgba(69,168,22,.2)}.info-header h3{color:var(--text-primary);font-size:1.1rem;font-weight:600;margin:0;transition:color .3s ease}.info-value{color:var(--text-primary);font-size:1.1rem;font-weight:600;margin:0;transition:color .3s ease;line-height:1.5}.plan-card-enhanced{background:linear-gradient(135deg,var(--bg-secondary) 0%,rgba(69,168,22,.02) 100%);border:2px solid var(--border-color);border-radius:24px;padding:0;transition:all .3s ease;overflow:hidden;position:relative}.plan-card-enhanced:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--accent-color),#4a9c1a)}.plan-card-enhanced:hover{transform:translateY(-4px);box-shadow:0 12px 32px #45a81626;border-color:var(--accent-color)}.plan-card-header-enhanced{padding:20px 32px;background-color:var(--bg-tertiary);border-bottom:1px solid var(--border-color)}.plan-badge{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,#45a8161a,#45a8160d);border:1px solid rgba(69,168,22,.2);padding:8px 16px;border-radius:20px;font-size:.9rem;font-weight:600;color:var(--accent-color)}.badge-icon{font-size:1rem}.badge-text{text-transform:uppercase;letter-spacing:.5px;font-size:.85rem}.plan-main-content{padding:32px;display:flex;justify-content:space-between;align-items:center;gap:32px;border-bottom:2px solid var(--border-color)}.plan-title-section{flex:1}.plan-name-enhanced{color:var(--text-primary);font-size:2rem;font-weight:800;margin:0 0 8px;letter-spacing:-.5px;background:linear-gradient(135deg,var(--text-primary),var(--text-secondary));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.plan-subtitle{color:var(--text-secondary);font-size:1rem;margin:0;font-weight:500}.plan-price-section{text-align:right}.price-container{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.plan-price-amount{color:var(--accent-color);font-size:2.8rem;font-weight:800;line-height:1;letter-spacing:-1px}.plan-price-period{color:var(--text-secondary);font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.plan-highlight{padding:32px;background:linear-gradient(135deg,rgba(69,168,22,.05),transparent);border-bottom:1px solid var(--border-color)}.highlight-item{display:flex;align-items:center;gap:20px}.highlight-icon-wrapper{width:64px;height:64px;background:linear-gradient(135deg,var(--accent-color),#4a9c1a);border-radius:20px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #45a81640}.highlight-icon{font-size:2rem;filter:brightness(1.1)}.highlight-content{flex:1}.highlight-value{color:var(--text-primary);font-size:2.2rem;font-weight:800;line-height:1;margin-bottom:4px}.highlight-label{color:var(--text-secondary);font-size:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.plan-benefits{padding:32px;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.benefit-item{display:flex;align-items:center;gap:12px;padding:12px;background-color:var(--bg-tertiary);border-radius:12px;transition:all .2s ease}.benefit-item:hover{background-color:#45a8160d;transform:translate(4px)}.benefit-icon{width:24px;height:24px;background:linear-gradient(135deg,var(--accent-color),#4a9c1a);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:700;flex-shrink:0}.benefit-text{color:var(--text-primary);font-size:.95rem;font-weight:500}.plan-card{background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;padding:32px;transition:all .3s ease}.plan-card:hover{transform:translateY(-2px);box-shadow:0 6px 16px var(--shadow)}.plan-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:32px;padding-bottom:24px;border-bottom:2px solid var(--border-color)}.plan-info h3{color:var(--text-primary);font-size:1.8rem;font-weight:700;margin:0 0 8px;transition:color .3s ease}.plan-description{color:var(--text-secondary);font-size:1rem;margin:0;transition:color .3s ease}.plan-price{text-align:right}.price-amount{color:var(--accent-color);font-size:2.5rem;font-weight:700;display:block;transition:color .3s ease}.price-label{color:var(--text-secondary);font-size:.9rem;font-weight:500;transition:color .3s ease}.plan-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}.feature-item{display:flex;align-items:flex-start;gap:16px}.feature-icon{font-size:1.5rem;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background-color:var(--bg-tertiary);border-radius:16px;flex-shrink:0}.feature-content h4{color:var(--text-primary);font-size:1.1rem;font-weight:600;margin:0 0 4px;transition:color .3s ease}.feature-content p{color:var(--text-secondary);font-size:.95rem;margin:0;line-height:1.4;transition:color .3s ease}.customer-card{background:linear-gradient(135deg,var(--bg-secondary) 0%,rgba(69,168,22,.02) 100%);border:2px solid var(--border-color);border-radius:24px;padding:32px;transition:all .3s ease;position:relative;overflow:hidden}.customer-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--accent-color),#4a9c1a)}.customer-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px #45a81626;border-color:var(--accent-color)}.customer-header{display:flex;align-items:center;gap:18px;margin-bottom:28px;padding-bottom:20px;border-bottom:2px solid var(--border-color)}.customer-icon{font-size:2rem;width:56px;height:56px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#45a8161a,#45a8160d);border-radius:18px;border:1px solid rgba(69,168,22,.2)}.customer-header h3{color:var(--text-primary);font-size:1.4rem;font-weight:600;margin:0;transition:color .3s ease}.customer-details{display:flex;flex-direction:column;gap:16px}.customer-item{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-radius:12px;background:var(--bg-primary);margin-bottom:12px;border:1px solid var(--border-color);transition:all .2s ease}.customer-item:last-child{margin-bottom:0}.customer-item:hover{background:#45a81608;border-color:#45a81633;transform:translate(4px)}.customer-label{color:var(--text-secondary);font-size:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;font-size:.85rem;transition:color .3s ease}.customer-value{color:var(--text-primary);font-size:1.05rem;font-weight:700;transition:color .3s ease}.cost-breakdown{background:linear-gradient(135deg,var(--bg-secondary) 0%,rgba(69,168,22,.02) 100%);border:2px solid var(--border-color);border-radius:24px;padding:40px;transition:all .3s ease;position:relative;overflow:hidden}.cost-breakdown:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--accent-color),#4a9c1a)}.cost-breakdown:hover{transform:translateY(-4px);box-shadow:0 12px 32px #45a81626;border-color:var(--accent-color)}.cost-item{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;background:var(--bg-primary);border-radius:12px;margin-bottom:12px;border:1px solid var(--border-color);transition:all .2s ease}.cost-item:hover{background:#45a81608;border-color:#45a81633;transform:translate(4px)}.cost-item.total{font-weight:700;font-size:1.3rem;padding:24px;margin-top:20px;margin-bottom:0;background:linear-gradient(135deg,#45a8161a,#45a8160d);border:2px solid var(--accent-color);border-radius:16px}.cost-label{color:#6b7280!important;font-size:1.1rem;font-weight:500;transition:color .3s ease}.cost-item.total .cost-label{color:#212529!important}.cost-value{color:#212529!important;font-size:1.1rem;font-weight:600;transition:color .3s ease}.cost-item.total .cost-value{color:var(--accent-color)!important;font-size:1.4rem;font-weight:700}.cost-divider{height:0;margin:24px 0;border:none}.purchase-details-footer{background:linear-gradient(135deg,var(--bg-secondary) 0%,var(--bg-primary) 100%);border-top:2px solid var(--border-color);padding:32px 24px;margin-top:48px;box-shadow:0 -4px 16px #0000000d}.footer-actions{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;gap:16px}.btn-primary,.btn-secondary{padding:12px 24px;border-radius:16px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;border:none;outline:none;display:flex;align-items:center;gap:8px}.btn-primary{background:linear-gradient(135deg,var(--accent-color),#4a9c1a);color:#fff;border:none;box-shadow:0 4px 12px #45a81640}.btn-primary:hover{background:linear-gradient(135deg,#4a9c1a,#3a8a0f);transform:translateY(-2px);box-shadow:0 6px 20px #45a81666}.btn-secondary{background:var(--bg-primary);color:var(--text-primary);border:2px solid var(--border-color);box-shadow:0 2px 4px #0000000d}.btn-secondary:hover{background:var(--bg-secondary);border-color:var(--accent-color);color:var(--accent-color);transform:translateY(-2px);box-shadow:0 4px 12px #45a81626}.loading-message,.error-message{padding:60px 20px;text-align:center;color:var(--text-secondary);font-size:1rem;font-weight:500;background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;margin:40px 24px;display:flex;flex-direction:column;align-items:center;gap:20px;transition:all .3s ease}.loading-spinner{width:50px;height:50px;border:4px solid var(--border-color);border-top:4px solid var(--accent-color);border-radius:50%;animation:spin 1s linear infinite}.error-icon{font-size:48px;opacity:.7;margin-bottom:10px}.error-message h3{color:var(--text-primary);font-size:1.5rem;font-weight:600;margin:0;transition:color .3s ease}.error-message p{margin:0;font-size:1rem;line-height:1.5}.retry-button{background-color:var(--accent-color);color:#fff;border:none;padding:12px 24px;border-radius:16px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease}.retry-button:hover{background-color:#4a9c1a;transform:translateY(-2px);box-shadow:0 4px 12px #45a8164d}@media (max-width: 768px){.purchase-details-header{flex-direction:column;align-items:flex-start;gap:16px}.header-left{flex-direction:column;align-items:flex-start;gap:12px}.header-info h1{font-size:1.5rem}.purchase-details-content{padding:24px 16px}.info-grid{grid-template-columns:1fr}.plan-header{flex-direction:column;align-items:flex-start;gap:16px}.plan-price{text-align:left}.price-amount{font-size:2rem}.plan-features{grid-template-columns:1fr}.customer-item{flex-direction:column;align-items:flex-start;gap:4px}.footer-actions{flex-direction:column;align-items:stretch}.btn-primary,.btn-secondary{width:100%;justify-content:center}}@media (max-width: 480px){.purchase-details-header{padding:16px}.header-info h1{font-size:1.3rem}.purchase-details-content{padding:16px 12px}.details-section h2{font-size:1.3rem}.info-card{padding:20px}.plan-card{padding:24px}.plan-info h3{font-size:1.5rem}.price-amount{font-size:1.8rem}.customer-card,.cost-breakdown{padding:24px}.purchase-details-footer{padding:16px}}.invoice-card{background:linear-gradient(135deg,var(--bg-secondary) 0%,rgba(69,168,22,.02) 100%);border:2px solid var(--border-color);border-radius:24px;padding:32px;margin-top:16px;transition:all .3s ease;position:relative;overflow:hidden}.invoice-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--accent-color),#4a9c1a)}.invoice-header{display:flex;align-items:center;gap:16px;margin-bottom:24px;padding-bottom:20px;border-bottom:2px solid var(--border-color)}.invoice-icon{font-size:2rem;width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#45a8161a,#45a8160d);border-radius:14px;border:1px solid rgba(69,168,22,.2)}.invoice-header h3{color:var(--text-primary);font-size:1.2rem;font-weight:600;margin:0}.invoice-details{display:flex;flex-direction:column;gap:16px}.invoice-item{background:var(--bg-primary);border:2px solid var(--border-color);border-radius:16px;padding:24px;transition:all .3s ease;margin-bottom:16px}.invoice-item:last-child{margin-bottom:0}.invoice-item:hover{border-color:var(--accent-color);box-shadow:0 6px 20px #45a81626;transform:translateY(-2px)}.invoice-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.invoice-field{display:flex;flex-direction:column;gap:4px}.invoice-label{color:var(--text-secondary);font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.invoice-value{color:var(--text-primary);font-size:1rem;font-weight:600;font-family:Courier New,monospace}.invoice-status{color:var(--accent-color);font-size:.9rem;font-weight:600;display:flex;align-items:center;gap:6px}@media (max-width: 768px){.invoice-info{grid-template-columns:1fr}}.invoice-modal-overlay{position:fixed;inset:0;background:#000c;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.invoice-modal{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:16px;box-shadow:0 20px 40px #0000004d;max-width:500px;width:100%;max-height:90vh;overflow-y:auto;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.invoice-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--border-color)}.invoice-modal-header h3{margin:0;color:var(--text-primary);font-size:1.25rem;font-weight:600}.invoice-modal-close{background:none;border:none;color:var(--text-secondary);font-size:1.5rem;cursor:pointer;padding:4px;border-radius:16px;transition:all .2s ease}.invoice-modal-close:hover{background:var(--bg-secondary);color:var(--text-primary)}.invoice-modal-close:disabled{opacity:.5;cursor:not-allowed}.invoice-modal-content{padding:24px}.invoice-purchase-info h4{margin:0 0 16px;color:var(--text-primary);font-size:1.1rem;font-weight:600}.purchase-details{background:var(--bg-secondary);border-radius:16px;padding:16px;margin-bottom:20px}.detail-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--border-color)}.detail-row:last-child{border-bottom:none}.detail-row.total{border-top:2px solid var(--accent-color);margin-top:8px;padding-top:12px;font-weight:600;font-size:1.1rem}.detail-row .label{color:var(--text-secondary);font-weight:500}.detail-row .value{color:var(--text-primary);font-weight:600}.detail-row.total .value{color:var(--accent-color)}.invoice-warning{background:#ffc1071a;border:1px solid rgba(255,193,7,.3);border-radius:16px;padding:16px;margin-bottom:20px}.invoice-warning p{margin:0 0 8px;color:var(--text-primary);font-size:.9rem;line-height:1.4}.invoice-warning p:last-child{margin-bottom:0}.invoice-warning strong{color:var(--accent-color)}.invoice-modal-actions{display:flex;gap:12px;padding:20px 24px;border-top:1px solid var(--border-color);justify-content:flex-end}.btn-cancel{background:var(--bg-secondary);color:var(--text-primary);border:1px solid var(--border-color);padding:10px 20px;border-radius:16px;cursor:pointer;font-weight:500;transition:all .2s ease}.btn-cancel:hover{background:var(--bg-tertiary);border-color:var(--text-secondary)}.btn-cancel:disabled{opacity:.5;cursor:not-allowed}.btn-confirm{background:var(--accent-color);color:var(--bg-primary);border:none;padding:10px 20px;border-radius:16px;cursor:pointer;font-weight:600;transition:all .2s ease;display:flex;align-items:center;gap:8px}.btn-confirm:hover{background:#3a8a0f;transform:translateY(-1px)}.btn-confirm:disabled{opacity:.7;cursor:not-allowed;transform:none}.spinner{width:16px;height:16px;border:2px solid transparent;border-top:2px solid currentColor;border-radius:50%;animation:spin 1s linear infinite}.success-modal-overlay{position:fixed;inset:0;background:#000c;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;z-index:1001;padding:20px}.success-modal{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:20px;box-shadow:0 25px 50px #0006;max-width:500px;width:100%;max-height:90vh;overflow-y:auto;animation:successModalSlideIn .4s ease-out;position:relative}@keyframes successModalSlideIn{0%{opacity:0;transform:translateY(-30px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}.success-modal-header{display:flex;flex-direction:column;align-items:center;padding:30px 24px 20px;text-align:center;position:relative}.success-icon{margin-bottom:16px;animation:successIconBounce .6s ease-out}@keyframes successIconBounce{0%{transform:scale(0)}50%{transform:scale(1.1)}to{transform:scale(1)}}.success-modal-header h3{margin:0;color:var(--text-primary);font-size:1.5rem;font-weight:700;background:linear-gradient(135deg,#10b981,#059669);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.success-modal-close{position:absolute;top:16px;right:16px;background:var(--bg-secondary);border:1px solid var(--border-color);color:var(--text-secondary);font-size:1.2rem;cursor:pointer;padding:8px;border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.success-modal-close:hover{background:var(--bg-tertiary);color:var(--text-primary);transform:scale(1.1)}.success-modal-content{padding:0 24px 24px}.success-details{background:var(--bg-secondary);border-radius:16px;padding:20px;margin-bottom:20px;border:1px solid rgba(16,185,129,.2)}.success-item{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--border-color)}.success-item:last-child{border-bottom:none}.success-item.total{border-top:2px solid #10B981;margin-top:8px;padding-top:16px;font-weight:700;font-size:1.1rem}.success-label{color:var(--text-secondary);font-weight:500;font-size:.9rem}.success-value{color:var(--text-primary);font-weight:600;text-align:right;word-break:break-all}.success-value.uuid{font-family:Courier New,monospace;font-size:.8rem;background:var(--bg-tertiary);padding:4px 8px;border-radius:16px;border:1px solid var(--border-color)}.success-item.total .success-value{color:#10b981;font-size:1.2rem}.success-message{background:linear-gradient(135deg,#10b9811a,#0596691a);border:1px solid rgba(16,185,129,.3);border-radius:16px;padding:20px;text-align:center}.success-message p{margin:0 0 8px;color:var(--text-primary);font-size:.95rem;line-height:1.5}.success-message p:last-child{margin-bottom:0}.success-modal-actions{padding:20px 24px 30px;display:flex;justify-content:center}.btn-success-primary{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;padding:14px 32px;border-radius:16px;cursor:pointer;font-weight:700;font-size:1.1rem;transition:all .3s ease;box-shadow:0 4px 15px #10b9814d;min-width:140px}.btn-success-primary:hover{background:linear-gradient(135deg,#059669,#047857);transform:translateY(-2px);box-shadow:0 6px 20px #10b98166}.btn-success-primary:active{transform:translateY(0)}@media (max-width: 768px){.invoice-modal{margin:10px;max-width:calc(100% - 20px)}.invoice-modal-header,.invoice-modal-content,.invoice-modal-actions{padding:16px}.invoice-modal-actions{flex-direction:column}.btn-cancel,.btn-confirm{width:100%;justify-content:center}.success-modal{margin:10px;max-width:calc(100% - 20px)}.success-modal-header,.success-modal-content,.success-modal-actions{padding:20px 16px}.success-details{padding:16px}.success-item{flex-direction:column;align-items:flex-start;gap:4px}.success-value{text-align:left}}.planes-wrapper{padding:40px;max-width:100%;margin:0 auto;min-height:calc(100vh - 60px);overflow-x:hidden}.planes-header{text-align:center;margin-bottom:48px}.planes-header h1,.planes-header h2{color:var(--text-primary);font-size:30px;font-weight:800;margin:0 0 12px;letter-spacing:-.02em;transition:color .3s ease}.planes-header p{color:var(--text-secondary);font-size:1.1rem;margin:0;font-weight:400;transition:color .3s ease}.planes-content{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch;width:100%}.premium-plan-card{background:linear-gradient(145deg,var(--bg-secondary) 0%,var(--bg-tertiary) 100%);border:2px solid var(--border-color);border-radius:20px;padding:28px 20px;position:relative;overflow:hidden;overflow-x:hidden;overflow-y:hidden;box-shadow:0 10px 40px -10px #0000001a,0 0 0 1px #ffffff0d;transition:all .4s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;min-height:400px}@media (max-width: 1500px){.premium-plan-card{background:linear-gradient(145deg,var(--bg-secondary) 0%,var(--bg-tertiary) 100%);overflow:hidden!important;overflow-x:hidden!important;overflow-y:hidden!important}}.premium-plan-card:hover{transform:translateY(-8px);box-shadow:0 20px 60px -10px #0003,0 0 0 1px #ffffff1a;border-color:var(--border-color);background:linear-gradient(to top,rgb(69 168 22 / 34%) 0%,rgb(69 168 22 / 9%) 15%,rgb(69 168 22 / 6%) 30%,rgba(255,255,255,.05) 50%,var(--bg-secondary) 100%)!important}.plan-name-section{text-align:center;margin-bottom:0;display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;position:relative;gap:4px}.plan-divider{width:100%;height:1px;background:linear-gradient(90deg,transparent 0%,var(--border-color) 50%,transparent 100%);margin:20px 0}.plan-name-header{display:flex;flex-direction:column;align-items:flex-start;gap:4px;position:relative;margin-bottom:0;margin-top:0;flex:0 0 50%;max-width:50%}@media (max-width: 1550px){.plan-name-header{flex:0 0 30%;max-width:50%}}.plan-icon-image{width:180px;height:180px;min-width:180px;min-height:180px;max-width:180px;max-height:180px;position:relative;top:0;flex-shrink:0;display:flex;align-items:center;justify-content:flex-start;transition:all .4s ease;overflow:visible;margin-left:0}.plan-icon-img{width:170px;height:170px;min-width:170px;min-height:170px;max-width:170px;max-height:170px;object-fit:contain;object-position:left center;display:block;position:absolute;top:50%;left:0;transform:translateY(-50%);z-index:1;margin-left:0;transition:opacity .6s ease,transform .6s cubic-bezier(.4,0,.2,1)}.plan-icon-img.visible{opacity:1;transform:translateY(-50%) scale(1)}.plan-icon-img.hidden{opacity:0;transform:translateY(-50%) scale(.95);pointer-events:none}.plan-name{color:var(--text-primary);font-size:1.4rem;font-weight:700;margin:0;letter-spacing:-.01em;transition:color .3s ease;text-align:left;width:100%}.plan-description{color:var(--text-secondary);font-size:.9rem;margin:0;font-weight:400;line-height:1.2rem;transition:color .3s ease;width:100%;max-width:100%}.plan-badge-top{position:absolute;top:-8px;right:16px;display:flex;align-items:center;gap:4px;padding:4px 10px;background:linear-gradient(135deg,#10b981,#059669);border-radius:16px;color:#fff;z-index:10;font-size:.7rem;font-weight:600;box-shadow:0 2px 8px #10b9814d}.timbres-hero{display:flex;flex-direction:column;align-items:center;padding:20px;background:var(--bg-primary);border:2px dashed var(--border-color);border-radius:16px;margin-bottom:20px;transition:all .3s ease;gap:12px}.empresas-amount{display:flex;flex-direction:row;align-items:center;gap:6px;justify-content:center}.empresas-number{font-size:1.5rem;font-weight:700;color:var(--text-primary)}.empresas-label{font-size:.9rem;font-weight:600;color:#000;text-transform:uppercase;letter-spacing:.5px}.premium-plan-card:hover .timbres-hero{border-color:var(--accent-color);background:var(--bg-secondary)}.timbres-amount{display:flex;flex-direction:column;align-items:center;gap:8px}.timbres-number{font-size:2.5rem;font-weight:800;color:var(--text-primary);line-height:1;letter-spacing:-.03em;transition:color .3s ease;background:linear-gradient(135deg,var(--accent-color) 0%,#059669 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.timbres-text{font-size:.85rem;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.1em;transition:color .3s ease}.price-section{text-align:center;margin-bottom:20px}.main-price{display:flex;align-items:baseline;justify-content:center;gap:6px;margin-bottom:8px}.price-amount{font-size:2.2rem;font-weight:800;color:var(--text-primary);line-height:1;letter-spacing:-.02em;transition:color .3s ease}.price-currency{font-size:1rem;font-weight:600;color:var(--text-secondary);transition:color .3s ease}.unit-price{padding:6px 12px;background:var(--bg-primary);border-radius:16px;display:inline-block}.unit-price-text{color:var(--text-secondary);font-size:.8rem;font-weight:500;transition:color .3s ease}.additional-timbres-section{display:flex;flex-direction:column;gap:8px;margin-top:12px;position:relative;z-index:10;overflow:visible}.additional-timbres-section label{color:var(--text-secondary);font-size:.85rem;font-weight:500;text-align:center}.additional-timbres-select{padding:8px 12px;border:1px solid var(--border-color);border-radius:16px;font-size:.85rem;background-color:var(--bg-primary);color:var(--text-primary);cursor:pointer;transition:all .3s ease}.additional-timbres-select:hover{border-color:var(--accent-color)}.additional-timbres-select:focus{outline:none;border-color:var(--accent-color);box-shadow:0 0 0 3px #45a8161a}.custom-timbres-select{position:relative;width:100%}.custom-timbres-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background-color:var(--bg-primary);border:1px solid var(--border-color);border-radius:10px;color:var(--text-primary);font-size:.9rem;cursor:pointer;transition:all .3s ease;text-align:left}.custom-timbres-trigger:hover{border-color:var(--accent-color);background-color:var(--bg-secondary)}.custom-timbres-trigger.open{border-color:var(--accent-color);box-shadow:0 0 0 3px #45a8161a}.trigger-text{flex:1;font-weight:500}.chevron-icon{transition:transform .3s ease;color:var(--accent-color);flex-shrink:0;margin-left:12px}.chevron-icon.open{transform:rotate(180deg)}.custom-timbres-dropdown{position:absolute;top:calc(100% + 8px);left:0;right:0;background-color:var(--bg-primary);border:1px solid var(--border-color);border-radius:12px;box-shadow:0 8px 24px #00000026;z-index:1000;max-height:500px;overflow-y:auto;overflow-x:visible;animation:slideDownTimbres .2s ease-out}@keyframes slideDownTimbres{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.custom-timbres-option{padding:12px 16px;border-bottom:1px solid var(--border-color);cursor:pointer;transition:all .2s ease;background-color:var(--bg-primary);min-height:auto}.custom-timbres-option:last-child{border-bottom:none}.custom-timbres-option:hover{background-color:var(--bg-tertiary);transform:translate(4px)}.custom-timbres-option.selected{background-color:#45a8161a;border-left:3px solid var(--accent-color)}.timbre-option-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;gap:12px}.timbre-option-name{font-size:1rem;font-weight:600;color:var(--text-primary);flex:1}.timbre-option-price-section{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.timbre-option-discount{display:inline-block;padding:3px 8px;background:linear-gradient(135deg,#10b981,#059669);color:#fff;font-size:.7rem;font-weight:600;border-radius:6px;white-space:nowrap}.timbre-option-price{font-size:1.1rem;font-weight:700;color:var(--accent-color);white-space:nowrap}.timbre-option-unit-price{font-size:.85rem;font-weight:500;color:var(--text-secondary);white-space:nowrap}.timbres-modal-content{padding:8px 0}.timbres-modal-grid{display:grid;grid-template-columns:1fr;gap:12px;max-height:60vh;overflow-y:auto;padding-right:8px}.timbres-modal-option{padding:16px;border:2px solid var(--border-color);border-radius:12px;cursor:pointer;transition:all .2s ease;background-color:var(--bg-primary)}.timbres-modal-option:hover{background-color:var(--bg-tertiary);border-color:var(--accent-color);transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.timbres-modal-option.selected{background-color:#45a8161a;border-color:var(--accent-color);border-width:2px;box-shadow:0 4px 16px #45a81633}.timbres-modal-empty{text-align:center;padding:40px 20px;color:var(--text-secondary)}.timbres-modal-grid::-webkit-scrollbar{width:10px}.timbres-modal-grid::-webkit-scrollbar-track{background:var(--bg-tertiary);border-radius:4px}.timbres-modal-grid::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:4px}.timbres-modal-grid::-webkit-scrollbar-thumb:hover{background:var(--accent-color)}.divider{height:1px;background:linear-gradient(90deg,transparent 0%,var(--border-color) 50%,transparent 100%);margin:20px 0}.features-btn{width:100%;padding:12px 20px;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary);font-size:.9rem;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .3s ease;margin-bottom:20px}.features-btn:hover{background:var(--hover-bg);border-color:var(--accent-color);color:var(--accent-color);transform:translateY(-2px)}.premium-btn{width:100%;padding:14px 24px;background:linear-gradient(135deg,var(--accent-color) 0%,#059669 100%);color:#fff;border:none;border-radius:16px;font-size:.95rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .4s cubic-bezier(.4,0,.2,1);box-shadow:none;position:relative;overflow:hidden;margin-top:auto}.premium-btn:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.premium-btn:hover:before{left:100%}.premium-btn:hover{transform:translateY(-2px);box-shadow:none}.premium-btn:active{transform:translateY(0)}.premium-btn svg{transition:transform .3s ease}.premium-btn:hover svg{transform:translate(4px)}.premium-btn.current-plan-btn{background:linear-gradient(135deg,#6b7280,#4b5563);cursor:not-allowed;opacity:.8}.premium-btn.current-plan-btn:hover{transform:none;box-shadow:none}.premium-btn.current-plan-btn:disabled{opacity:.7}.features-modal-overlay{position:fixed;inset:0;background-color:#0009;display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.features-modal-content{background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:20px;width:100%;max-width:600px;max-height:80vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.features-modal-header{display:flex;justify-content:space-between;align-items:center;padding:24px 28px;border-bottom:1px solid var(--border-color)}.features-modal-header h3{color:var(--text-primary);font-size:1.5rem;font-weight:700;margin:0;transition:color .3s ease}.modal-close-btn{background:none;border:none;color:var(--text-secondary);font-size:32px;cursor:pointer;padding:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:16px;transition:all .3s ease;line-height:1}.modal-close-btn:hover{background-color:var(--hover-bg);color:var(--text-primary)}.features-modal-body{padding:28px}.features-modal-body h4{display:flex;align-items:center;gap:10px;color:var(--text-primary);font-size:1.2rem;font-weight:600;margin:0 0 24px;transition:color .3s ease}.features-modal-body h4 svg{color:var(--accent-color)}.modal-features-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:20px}.modal-features-list li{display:flex;align-items:flex-start;gap:16px;padding:20px;background:var(--bg-primary);border-radius:16px;border:1px solid var(--border-color);transition:all .3s ease}.modal-features-list li:hover{border-color:var(--accent-color);transform:translate(4px);box-shadow:0 4px 12px var(--shadow)}.modal-features-list .check-icon{color:var(--accent-color);flex-shrink:0;margin-top:2px}.modal-features-list li div{flex:1}.modal-features-list strong{display:block;color:var(--text-primary);font-size:1rem;font-weight:600;margin-bottom:6px;transition:color .3s ease}.modal-features-list p{color:var(--text-secondary);font-size:.9rem;margin:0;line-height:1.5;transition:color .3s ease}.loading-state,.error-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 40px;text-align:center;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;max-width:500px;margin:100px auto}.loading-spinner{width:64px;height:64px;background-image:url(/ezgif.com-effects.gif);background-size:contain;background-repeat:no-repeat;background-position:center;background-color:transparent;border:none;border-radius:0;animation:none;margin-bottom:20px}.loading-state p,.error-state p{color:var(--text-secondary);font-size:1.1rem;margin:0}.error-state h3{color:var(--text-primary);font-size:1.5rem;font-weight:600;margin:0 0 12px}.retry-btn{margin-top:24px;padding:12px 24px;background-color:var(--accent-color);color:#fff;border:none;border-radius:16px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease}.retry-btn:hover{background-color:#4a9c1a;transform:translateY(-2px);box-shadow:0 4px 12px #45a8164d}@media (max-width: 1435px){.planes-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.premium-plan-card{background:linear-gradient(145deg,var(--bg-secondary) 0%,var(--bg-tertiary) 100%);overflow:hidden!important;overflow-x:hidden!important;overflow-y:hidden!important;min-height:auto;padding:20px 16px}.plan-name-section{flex-wrap:nowrap}.plan-icon-image{width:180px;height:180px;min-width:180px;min-height:180px;max-width:180px;max-height:180px;flex-shrink:0}.plan-icon-image img{width:180px;height:180px;min-width:180px;min-height:180px;max-width:180px;max-height:180px;object-fit:contain;object-position:center}}@media (max-width: 1000px){.planes-content{grid-template-columns:1fr;gap:20px}.premium-plan-card{background:linear-gradient(145deg,var(--bg-secondary) 0%,var(--bg-tertiary) 100%);overflow:hidden!important;overflow-x:hidden!important;overflow-y:hidden!important;padding:24px 20px}.plan-name-section{flex-wrap:nowrap}.plan-icon-image{width:180px;height:180px;min-width:180px;min-height:180px;max-width:180px;max-height:180px;flex-shrink:0}.plan-icon-image img{width:180px;height:180px;min-width:180px;min-height:180px;max-width:180px;max-height:180px;object-fit:contain;object-position:center}}@media (max-width: 768px){.planes-wrapper{padding:24px}.planes-header h1,.planes-header h2{font-size:26px}.planes-header p{font-size:1rem}.planes-content{grid-template-columns:1fr;gap:20px}.premium-plan-card{background:linear-gradient(145deg,var(--bg-secondary) 0%,var(--bg-tertiary) 100%);overflow:hidden!important;overflow-x:hidden!important;overflow-y:hidden!important;padding:24px 20px}.plan-name-section{flex-wrap:nowrap}.plan-icon-image{width:140px;height:140px;min-width:140px;min-height:140px;max-width:140px;max-height:140px;flex-shrink:0}.plan-icon-image img{width:140px;height:140px;min-width:140px;min-height:140px;max-width:140px;max-height:140px;object-fit:contain;object-position:center}.timbres-number{font-size:2.2rem}.price-amount{font-size:2rem}.features-list li{padding:8px}.features-list li span{font-size:.85rem}}@media (max-width: 480px){.planes-wrapper{padding:20px 15px}.planes-header{margin-bottom:32px}.planes-header h1,.planes-header h2{font-size:22px}.planes-header p{font-size:.9rem}.premium-plan-card{background:linear-gradient(145deg,var(--bg-secondary) 0%,var(--bg-tertiary) 100%);overflow:hidden!important;overflow-x:hidden!important;overflow-y:hidden!important;padding:28px 20px;border-radius:20px}.plan-badge-top{top:-8px;right:12px;padding:4px 10px;font-size:.7rem}.plan-name-section{flex-wrap:nowrap}.plan-icon-image{width:140px;height:140px;min-width:140px;min-height:140px;max-width:140px;max-height:140px;flex-shrink:0}.plan-icon-image img{width:140px;height:140px;min-width:140px;min-height:140px;max-width:140px;max-height:140px;object-fit:contain;object-position:center}.timbres-hero{padding:24px}.timbres-icon-wrapper svg{width:48px;height:48px}.timbres-number{font-size:2.5rem}.timbres-text{font-size:1rem}.price-amount{font-size:2.5rem}.price-currency{font-size:1.2rem}.features-title{font-size:1.1rem}.features-list{gap:12px}.features-list li{padding:10px}.check-icon{width:18px;height:18px}.features-list li span{font-size:.9rem}.premium-btn{padding:16px 28px;font-size:1rem}}[data-theme=dark] .premium-plan-card{background:linear-gradient(145deg,#0d111c,#1d212b);box-shadow:0 10px 40px -10px #0006,0 0 0 1px #ffffff0d}[data-theme=dark] .timbres-hero{background:#00060f;border-color:#2d313b}[data-theme=dark] .features-list li,[data-theme=dark] .unit-price{background:#00060f}[data-theme=light] .premium-plan-card{background:linear-gradient(145deg,#fff,#f8f9fa);box-shadow:0 10px 40px -10px #00000014,0 0 0 1px #00000005}[data-theme=light] .timbres-hero{background:#fff;border-color:#e5e7eb}[data-theme=light] .features-list li,[data-theme=light] .unit-price{background:#fff}[data-theme=light] .timbres-number{background:linear-gradient(135deg,#10b981,#059669);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.payment-method-selector-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:10001;padding:20px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:fadeIn .3s ease}.payment-method-selector-content{background:var(--bg-primary);border-radius:20px;box-shadow:0 24px 48px #0000004d;max-width:600px;width:100%;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--border-color);animation:slideUp .3s ease}.payment-method-selector-header{padding:28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border-color);background:var(--bg-secondary)}.payment-method-selector-header h3{margin:0;font-size:24px;font-weight:700;color:var(--text-primary)}.payment-method-selector-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:32px;line-height:1;padding:4px 12px;border-radius:8px;transition:all .2s ease;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.payment-method-selector-close:hover{background:var(--hover-bg);color:var(--text-primary)}.payment-method-selector-body{padding:24px;flex:1;overflow-y:auto;max-height:calc(90vh - 200px)}.payment-method-selector-summary{background:linear-gradient(135deg,#45a8160d,#45a81605);border:2px solid rgba(69,168,22,.2);border-radius:16px;padding:20px;margin-bottom:24px;display:flex;flex-direction:column;gap:12px}.payment-method-selector-plan-name{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--text-secondary)}.payment-method-selector-plan-name strong{color:var(--text-primary);font-weight:600;font-size:16px}.payment-method-selector-item{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--text-secondary);padding:8px 0}.payment-method-selector-item strong{color:var(--text-primary);font-weight:600;font-size:15px}.payment-method-selector-total{display:flex;justify-content:space-between;align-items:center;padding-top:12px;border-top:2px solid rgba(69,168,22,.2);font-size:16px}.payment-method-selector-total span{color:var(--text-primary);font-weight:600}.payment-method-selector-total-amount{color:var(--accent-color);font-size:24px;font-weight:800;letter-spacing:-.5px}.payment-method-selector-loading,.payment-method-selector-error{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;text-align:center;width:100%;background:transparent;border:none;border-radius:12px}.payment-method-selector-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;text-align:center;width:100%;background:transparent;border:2px dashed #9CA3AF;border-radius:12px;cursor:pointer;transition:all .3s ease}.payment-method-selector-loading .loading-spinner{display:none!important}.payment-method-selector-loading .loading-gif{width:80px;height:80px;object-fit:contain;margin-bottom:16px}.payment-method-selector-error{color:#ef4444}.payment-method-selector-empty{color:var(--text-secondary)}.payment-method-selector-empty:hover{border-color:#374151;background-color:#9ca3af0d;transform:translateY(-2px);box-shadow:0 2px 8px #0000001a}.payment-method-selector-empty p{margin:0}.payment-method-selector-empty svg{color:var(--text-tertiary);margin-bottom:16px}.payment-method-selector-empty-subtitle{font-size:14px;margin-top:8px;opacity:.7}.payment-method-selector-list{display:flex;flex-direction:column;gap:12px}.payment-method-item{display:flex;align-items:center;gap:16px;padding:20px;border:2px solid var(--border-color);border-radius:16px;cursor:pointer;transition:all .2s ease;background:var(--bg-secondary)}.payment-method-item:hover{border-color:var(--accent-color);background:var(--hover-bg);transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.payment-method-item.selected{border-color:var(--accent-color);background:linear-gradient(135deg,#45a8161a,#45a8160d);box-shadow:0 4px 16px #45a81633}.payment-method-item.default{position:relative}.payment-method-item-radio{width:24px;height:24px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.radio-checked{color:var(--accent-color);width:24px;height:24px}.radio-unchecked{width:20px;height:20px;border:2px solid var(--border-color);border-radius:50%}.payment-method-item.selected .radio-unchecked{border-color:var(--accent-color)}.payment-method-item-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--bg-tertiary),var(--bg-secondary));border-radius:12px;color:var(--text-secondary);flex-shrink:0}.payment-method-item.selected .payment-method-item-icon{background:linear-gradient(135deg,#45a81633,#45a8161a);color:var(--accent-color)}.payment-method-item-details{flex:1;display:flex;flex-direction:column;gap:4px}.payment-method-item-brand{font-size:16px;font-weight:600;color:var(--text-primary);display:flex;align-items:center;gap:8px}.payment-method-default-badge{font-size:12px;font-weight:500;padding:2px 8px;background:var(--accent-color);color:#fff;border-radius:12px;line-height:1.4}.payment-method-item-number{font-size:14px;color:var(--text-secondary);font-family:Courier New,monospace;letter-spacing:1px}.payment-method-item-expiry{font-size:12px;color:var(--text-tertiary)}.payment-method-selector-footer{padding:20px 28px;display:flex;gap:12px;justify-content:flex-end;border-top:1px solid var(--border-color);background:var(--bg-secondary)}.payment-method-selector-btn-cancel,.payment-method-selector-btn-confirm{padding:12px 24px;border-radius:12px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;border:none;min-width:140px}.payment-method-selector-btn-cancel{background:var(--bg-tertiary);color:var(--text-primary);border:1px solid var(--border-color)}.payment-method-selector-btn-cancel:hover{background:var(--hover-bg)}.payment-method-selector-btn-confirm{background:var(--accent-color);color:#fff;box-shadow:0 4px 12px #45a8164d}.payment-method-selector-btn-confirm:hover:not(:disabled){background:#4a9c1a;transform:translateY(-2px);box-shadow:0 6px 20px #45a81666}.payment-method-selector-btn-confirm:disabled{opacity:.5;cursor:not-allowed}@media (max-width: 640px){.payment-method-selector-content{max-width:100%;margin:20px;max-height:85vh}.payment-method-selector-header{padding:20px}.payment-method-selector-header h3{font-size:20px}.payment-method-selector-body{padding:20px}.payment-method-selector-footer{padding:16px 20px;flex-direction:column}.payment-method-selector-btn-cancel,.payment-method-selector-btn-confirm{width:100%}}.comprar-timbres-page{padding:24px;max-width:1200px;margin:0 auto}.page-header{text-align:center;margin-bottom:32px}.page-header h1,.page-header h2{color:var(--text-primary);font-size:22px;font-weight:500;margin:0;letter-spacing:-.02em;transition:color .3s ease}.page-header p{color:var(--text-secondary);font-size:1.1rem;margin:0;font-weight:400;transition:color .3s ease;text-align:center}.purchase-summary{background:linear-gradient(135deg,#45a816,#3d9613);border-radius:20px;padding:24px 28px;margin-bottom:32px;display:flex;align-items:center;justify-content:space-between;gap:24px;box-shadow:0 10px 40px -10px #45a81666;color:#fff;min-height:120px}.summary-placeholder{display:flex;align-items:center;gap:20px;width:100%;justify-content:flex-start;padding:8px 0}.summary-placeholder svg{flex-shrink:0;opacity:.9}.placeholder-text{display:flex;flex-direction:column;gap:4px;text-align:left}.placeholder-text h3{margin:0;font-size:1.25rem;font-weight:700;line-height:1.2}.placeholder-text p{margin:0;font-size:.9rem;opacity:.9;font-weight:400;line-height:1.3}.summary-content{display:flex;align-items:center;gap:24px;flex:1}.summary-details{display:flex;flex-direction:column;gap:4px}.summary-label{font-size:.85rem;opacity:.9;font-weight:500}.summary-qty{font-size:1.5rem;font-weight:800;line-height:1}.summary-unit-price{font-size:.9rem;opacity:.85;font-weight:500}.summary-divider{width:2px;height:60px;background:#ffffff4d}.summary-total{display:flex;flex-direction:column;gap:4px}.total-label{font-size:.85rem;opacity:.9;font-weight:500}.total-prices{display:flex;align-items:center;gap:12px}.full-price{font-size:1.25rem;font-weight:600;opacity:.7;text-decoration:line-through;line-height:1}.total-amount{font-size:2rem;font-weight:800;line-height:1}.btn-comprar-now{background:#fff;color:#45a816;border:none;border-radius:16px;padding:16px 32px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:8px;white-space:nowrap;box-shadow:0 4px 12px #00000026}.btn-comprar-now:hover{transform:translateY(-2px);box-shadow:0 6px 20px #0003}.btn-comprar-now:active{transform:translateY(0)}.btn-comprar-now svg{transition:transform .3s ease}.btn-comprar-now:hover svg{transform:translate(4px)}.timbres-packages{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:16px;align-items:stretch}.timbre-package-card{background:linear-gradient(145deg,var(--bg-secondary) 0%,var(--bg-tertiary) 100%);border:2px solid var(--border-color);border-radius:16px;padding:20px 16px 12px;position:relative;overflow:visible;box-shadow:0 4px 16px -4px #0000001a,0 0 0 1px #ffffff0d;transition:all .3s ease;cursor:pointer;display:flex;flex-direction:column;gap:8px;text-align:center}.timbre-package-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px -8px #00000026,0 0 0 1px #ffffff1a;border-color:var(--primary-color)}.timbre-package-card.selected{border-color:#45a816;border-width:3px;box-shadow:0 12px 32px -8px #45a81666,0 0 0 1px #45a8164d}.discount-badge{position:absolute;top:-10px;right:8px;background:linear-gradient(135deg,#45a816,#3d9613);color:#fff;padding:4px 8px;border-radius:8px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #45a81680;z-index:10;font-size:.75rem;font-weight:800;line-height:1}.discount-percentage{font-size:.75rem;font-weight:800;line-height:1}.timbres-amount{display:flex;flex-direction:column;align-items:center;gap:2px}.timbres-number{font-size:1.75rem;font-weight:800;color:var(--primary-color);line-height:1;transition:color .3s ease}.timbres-text{font-size:.75rem;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;transition:color .3s ease}.price-section{text-align:center;margin-bottom:5px}.main-price{font-size:1.25rem;font-weight:700;color:var(--text-primary);transition:color .3s ease;line-height:1}.unit-price{font-size:.75rem;color:var(--text-secondary);font-weight:500;transition:color .3s ease}.currency-note{text-align:center;margin-top:32px;padding:16px;font-size:.85rem;color:var(--text-secondary);font-style:italic;opacity:.85;transition:color .3s ease,opacity .3s ease}@media (max-width: 1024px){.timbres-packages{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}.purchase-summary{flex-direction:column;align-items:flex-start;padding:20px 24px;min-height:100px}.summary-placeholder{flex-direction:row;justify-content:flex-start;gap:16px}.placeholder-text{text-align:left}.placeholder-text h3{font-size:1.1rem}.placeholder-text p{font-size:.85rem}.summary-content{flex-direction:column;gap:16px;width:100%}.summary-divider{width:100%;height:2px}.btn-comprar-now{width:100%;justify-content:center}}@media (max-width: 768px){.comprar-timbres-page{padding:16px}.timbres-packages{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px}.page-header h1,.page-header h2{font-size:1.5rem}.page-header p{font-size:.95rem}.timbre-package-card{padding:16px 12px 8px;gap:6px}.timbres-number{font-size:1.5rem}.timbres-text{font-size:.7rem}.main-price{font-size:1.1rem}.unit-price{font-size:.7rem}.discount-badge{top:-8px;right:6px;padding:3px 6px;font-size:.65rem}.discount-percentage{font-size:.65rem}.purchase-summary{padding:16px 20px;min-height:80px}.summary-placeholder svg{width:28px;height:28px}.placeholder-text h3{font-size:1rem}.placeholder-text p{font-size:.8rem}.summary-qty{font-size:1.25rem}.total-prices{flex-direction:column;align-items:flex-start;gap:4px}.full-price{font-size:1rem}.total-amount{font-size:1.5rem}}[data-theme=dark] .timbre-package-card{background:linear-gradient(145deg,#0d111c,#1d212b);box-shadow:0 10px 40px -10px #0006,0 0 0 1px #ffffff0d}[data-theme=light] .timbre-package-card{background:linear-gradient(145deg,#fff,#f7f8fb);box-shadow:0 10px 40px -10px #00000014,0 0 0 1px #00000005}.empresas-page{padding:24px;display:flex;flex-direction:column;gap:24px;min-height:100vh;background-color:var(--bg-primary)}.alert{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:8px;font-size:.9rem;animation:slideDown .3s ease-out}.alert-success{background-color:#d1fae5;color:#065f46;border:1px solid #6ee7b7}.alert-error{background-color:#fee2e2;color:#991b1b;border:1px solid #fca5a5}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.page-header{background-color:#fff;border:1px solid var(--border-color);border-radius:16px;padding:24px;display:flex!important;justify-content:space-between!important;align-items:center!important;flex-direction:row!important}.title-section h1{display:flex;align-items:center;gap:12px;font-size:28px;font-weight:700;color:var(--text-primary);margin:0 0 8px}.title-section p{margin:0;color:var(--text-secondary);font-size:.95rem}.search-section{background-color:#fff;border:1px solid var(--border-color);border-radius:16px;padding:20px}.search-wrapper{position:relative;max-width:400px}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--text-secondary)}.search-input{width:100%;padding:12px 12px 12px 40px;background-color:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:16px;color:var(--text-primary);font-size:.9rem;transition:all .3s ease}.search-input:focus{outline:none;border-color:var(--accent-color);box-shadow:0 0 0 3px #45a8161a}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;gap:20px}.loading-gif{width:80px;height:80px;object-fit:contain}.loading-container p{color:var(--text-secondary);font-size:1rem}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;background-color:#fff;border:2px dashed var(--border-color);border-radius:16px;gap:16px}.empty-state svg{color:var(--text-tertiary)}.empty-state h3{margin:0;font-size:1.2rem;color:var(--text-primary)}.empty-state p{margin:0;color:var(--text-secondary)}.table-container{background-color:#fff;border:1px solid var(--border-color);border-radius:16px;overflow-x:auto}.companies-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.9rem}.companies-table thead{background-color:var(--bg-tertiary);border-bottom:1px solid var(--border-color)}.companies-table th{background-color:var(--bg-tertiary);color:#949bac;font-weight:600;padding:16px 12px;text-align:left;border-bottom:1px solid var(--border-color);font-size:.9rem;white-space:nowrap}.companies-table th:not(:last-child){border-right:1px solid var(--border-color)}.companies-table td{padding:16px 12px;border-bottom:1px solid var(--border-color);color:var(--text-primary);vertical-align:middle;text-align:left}.companies-table td:not(:last-child){border-right:1px solid var(--border-color)}.companies-table tbody tr{transition:background-color .2s ease}.companies-table tbody tr:hover{background-color:var(--bg-tertiary)}.companies-table tbody tr.selected-row{background-color:#45a8160d}.company-name-cell{display:flex;align-items:center;gap:12px}.company-icon-small{width:36px;height:36px;background:linear-gradient(135deg,var(--accent-color),#3d9414);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}.company-name{font-weight:600;color:var(--text-primary)}.company-rfc{font-family:Courier New,monospace;font-weight:500;color:var(--text-primary)}.company-direccion{max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:8px;font-size:.75rem;font-weight:600}.status-badge.active{background-color:#d1fae5;color:#065f46;border:1px solid #6ee7b7}.status-badge.inactive{background-color:#f3f4f6;color:#6b7280;border:1px solid #d1d5db}.action-buttons{display:flex;gap:6px;align-items:center}.btn-action{padding:6px 10px;background:transparent;border:1px solid var(--border-color);border-radius:6px;color:var(--text-secondary);cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;font-size:.85rem}.btn-action:hover{background:var(--bg-tertiary);border-color:var(--accent-color);color:var(--accent-color)}.btn-select-small{padding:6px 12px;font-weight:500}.btn-danger-action:hover{background:#fee2e2;border-color:#ef4444;color:#ef4444}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .3s ease-out}.modal-content{background:#fff;border-radius:16px;padding:32px;max-width:600px;width:90%;max-height:90vh;overflow-y:auto;animation:slideUp .3s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.modal-header h2{margin:0;font-size:1.5rem;font-weight:700;color:var(--text-primary)}.btn-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:4px;display:flex;align-items:center;transition:all .2s ease}.btn-close:hover{color:var(--text-primary);transform:rotate(90deg)}.company-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:.9rem;font-weight:600;color:var(--text-primary)}.form-group input,.form-group textarea{padding:12px 16px;border:1px solid var(--border-color);border-radius:8px;font-size:.9rem;color:var(--text-primary);background-color:var(--bg-primary);transition:all .3s ease}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:var(--accent-color);box-shadow:0 0 0 3px #45a8161a}.form-group textarea{resize:vertical;font-family:inherit}.modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:8px}.btn-primary{padding:12px 24px;background:var(--accent-color);color:#fff;border:none;border-radius:16px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:8px}.btn-primary:hover{background:#3d9414;transform:translateY(-1px)}.btn-secondary{padding:12px 24px;background:transparent;color:var(--text-primary);border:1px solid var(--border-color);border-radius:16px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-secondary:hover{background:var(--bg-tertiary);border-color:var(--accent-color);color:var(--accent-color)}.delete-modal{max-width:480px;text-align:center}.delete-modal-icon{width:80px;height:80px;background:linear-gradient(135deg,#fee2e2,#fecaca);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 24px;color:#ef4444}.delete-modal h2{margin:0 0 16px;font-size:1.5rem;font-weight:700;color:var(--text-primary)}.delete-warning{margin:0 0 12px;color:var(--text-secondary);font-size:.95rem}.company-to-delete{background:#f9fafb;border:2px solid #e5e7eb;border-radius:12px;padding:16px;margin:16px 0;display:flex;flex-direction:column;gap:8px}.company-to-delete strong{font-size:1.1rem;color:var(--text-primary)}.rfc-small{font-size:.85rem;color:var(--text-secondary);font-family:Courier New,monospace}.delete-note{margin:12px 0 24px;color:#ef4444;font-size:.85rem;font-weight:500}.btn-danger{padding:12px 24px;background:#ef4444;color:#fff;border:none;border-radius:16px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:8px}.btn-danger:disabled{opacity:.6;cursor:not-allowed}@media (max-width: 1200px){.companies-table{font-size:.85rem}.companies-table th,.companies-table td{padding:12px 10px}}@media (max-width: 768px){.empresas-page{padding:16px;gap:16px}.page-header{flex-direction:column;gap:16px;align-items:flex-start}.companies-table{font-size:.8rem}.companies-table th,.companies-table td{padding:10px 8px}.modal-content{padding:24px;width:95%}.modal-actions{flex-direction:column}.modal-actions button{width:100%}.action-buttons{flex-wrap:wrap}}.subscription-management{padding:20px;max-width:1000px;margin:0 auto}.subscription-header{text-align:center;margin-bottom:30px}.subscription-header h2{color:var(--text-primary);margin-bottom:10px;font-size:2rem;font-weight:600}.subscription-header p{color:var(--text-secondary);font-size:1.1rem}.subscription-card{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:16px;padding:30px;box-shadow:0 4px 20px #0000001a;margin-bottom:20px}.subscription-info{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid var(--border-color)}.plan-info h3{color:var(--text-primary);margin:0 0 8px;font-size:1.8rem;font-weight:600}.plan-description{color:var(--text-secondary);margin:0;font-size:1rem;line-height:1.4}.subscription-status{display:flex;align-items:center;gap:10px}.status-icon{width:24px;height:24px}.status-icon.active{color:#10b981}.status-icon.trialing{color:#f59e0b}.status-icon.past-due{color:#ef4444}.status-icon.canceled{color:#6b7280}.status-text{font-weight:600;font-size:1rem}.status-text.active{color:#10b981}.status-text.trialing{color:#f59e0b}.status-text.past-due{color:#ef4444}.status-text.canceled{color:#6b7280}.subscription-details{margin-bottom:30px}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}.detail-item{display:flex;align-items:center;gap:15px;padding:16px;background:var(--bg-secondary);border-radius:12px;border:1px solid var(--border-color)}.detail-icon{width:20px;height:20px;color:var(--accent-color);flex-shrink:0}.detail-content{display:flex;flex-direction:column;gap:4px}.detail-label{font-size:.9rem;color:var(--text-secondary);font-weight:500}.detail-value{font-size:1rem;color:var(--text-primary);font-weight:600}.subscription-warning{display:flex;align-items:flex-start;gap:15px;margin-bottom:30px;padding:20px;background:#fef3c7;border:1px solid #f59e0b;border-radius:12px;color:#92400e}.warning-icon{width:24px;height:24px;color:#f59e0b;flex-shrink:0;margin-top:2px}.warning-content h4{margin:0 0 8px;font-size:1.1rem;font-weight:600}.warning-content p{margin:0;font-size:.95rem;line-height:1.4}.subscription-canceled{display:flex;align-items:flex-start;gap:15px;margin-bottom:30px;padding:20px;background:#fee2e2;border:1px solid #ef4444;border-radius:12px;color:#991b1b}.canceled-icon{width:24px;height:24px;color:#ef4444;flex-shrink:0;margin-top:2px}.canceled-content h4{margin:0 0 8px;font-size:1.1rem;font-weight:600}.canceled-content p{margin:0;font-size:.95rem;line-height:1.4}.subscription-actions{display:flex;gap:15px;justify-content:center;flex-wrap:wrap}.btn-primary,.btn-secondary,.btn-danger{display:flex;align-items:center;gap:8px;padding:12px 24px;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .3s ease;border:none;text-decoration:none}.btn-primary{background:var(--accent-color);color:#fff}.btn-primary:hover:not(:disabled){background:var(--accent-hover);transform:translateY(-1px)}.btn-secondary{background:var(--bg-secondary);color:var(--text-primary);border:1px solid var(--border-color)}.btn-secondary:hover:not(:disabled){background:var(--border-color);transform:translateY(-1px)}.btn-danger{background:#ef4444;color:#fff}.btn-danger:hover:not(:disabled){background:#dc2626;transform:translateY(-1px)}.btn-primary:disabled,.btn-secondary:disabled,.btn-danger:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn-icon{width:18px;height:18px}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal{background:var(--bg-primary);border-radius:16px;box-shadow:0 20px 40px #0000004d;max-width:500px;width:100%;max-height:90vh;overflow-y:auto}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:24px 24px 0;border-bottom:1px solid var(--border-color);margin-bottom:20px}.modal-header h3{margin:0;color:var(--text-primary);font-size:1.5rem;font-weight:600}.modal-close{background:none;border:none;font-size:24px;color:var(--text-secondary);cursor:pointer;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .3s ease}.modal-close:hover{background:var(--bg-secondary);color:var(--text-primary)}.modal-content{padding:0 24px 24px}.modal-content p{color:var(--text-secondary);line-height:1.6;margin-bottom:20px}.warning-box{display:flex;gap:15px;padding:20px;background:#fef3c7;border:1px solid #f59e0b;border-radius:12px;margin-bottom:20px;color:#92400e}.warning-box h4{margin:0 0 10px;font-size:1.1rem;font-weight:600}.warning-box p{margin:0 0 10px;color:#92400e}.warning-box ul{margin:0;padding-left:20px;color:#92400e}.warning-box li{margin-bottom:5px}.modal-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}.loading,.error,.no-subscription{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px;text-align:center}.spinner{width:40px;height:40px;border:4px solid var(--border-color);border-top:4px solid var(--accent-color);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:20px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading p,.error p{color:var(--text-secondary);font-size:1.1rem;margin:0 0 20px}.error p{color:#ef4444}.retry-btn{background:var(--accent-color);color:#fff;border:none;padding:12px 24px;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .3s ease}.retry-btn:hover{background:var(--accent-hover);transform:translateY(-1px)}.no-subscription-icon{width:64px;height:64px;color:var(--text-secondary);margin-bottom:20px}.no-subscription h3{color:var(--text-primary);margin:0 0 10px;font-size:1.5rem;font-weight:600}.no-subscription p{color:var(--text-secondary);margin:0 0 20px;font-size:1.1rem}.payment-modal{max-width:600px}.payment-method-form{display:flex;flex-direction:column;gap:20px}.payment-element-container{margin-bottom:10px}.payment-element-container .StripeElement{padding:12px;border:1px solid var(--border-color);border-radius:8px;background:var(--bg-secondary)}.payment-error{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#fee2e2;border:1px solid #ef4444;border-radius:8px;color:#991b1b;font-size:.9rem}.payment-form-actions{display:flex;flex-direction:column;gap:12px}.payment-form-actions .btn-primary{width:100%;justify-content:center}.payment-security{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--text-secondary);font-size:.85rem;padding-top:10px;border-top:1px solid var(--border-color)}.stripe-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;text-align:center}.stripe-loading p{color:var(--text-secondary);margin-top:16px}.spinner-small{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top:2px solid white;border-radius:50%;animation:spin .8s linear infinite;display:inline-block}@media (max-width: 768px){.subscription-management{padding:16px}.subscription-info{flex-direction:column;gap:16px;align-items:flex-start}.subscription-status{align-self:flex-end}.detail-grid{grid-template-columns:1fr}.subscription-actions,.modal-actions{flex-direction:column}.modal{margin:20px}}.payment-methods-management{padding:0}.payment-methods-management .section-header{margin:0 0 24px!important;padding:0!important}.payment-methods-management .section-header h2{margin:0!important;padding:0!important;font-size:24px;font-weight:600;color:var(--text-primary, #212529)}.payment-methods-management .section-header p{margin:0!important;padding:0!important;font-size:14px;color:var(--text-secondary, #6b7280)}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;gap:16px}.loading-state .spinner{display:none!important}.loading-state .loading-gif{width:120px;height:120px;object-fit:contain;display:block;opacity:1;visibility:visible}.loading-state p{margin:0;color:var(--text-secondary, #6b7280);font-size:14px}@keyframes spin{to{transform:rotate(360deg)}}.cards-list{display:flex;flex-direction:column;gap:16px;margin-top:24px;margin-bottom:24px}.payment-card-item{display:flex;align-items:center;justify-content:space-between;padding:20px;background:var(--bg-secondary, #f9fafb);border:2px solid #374151!important;border-radius:12px;transition:all .2s ease}.payment-card-item:hover{border-color:var(--accent-color, #45A816);box-shadow:0 4px 12px #0000001a;transform:translateY(-2px)}.payment-card-item.default{border-color:var(--accent-color, #45A816);background:var(--bg-secondary, #f9fafb);box-shadow:0 4px 16px #00000026}.card-info{display:flex;align-items:center;gap:16px;flex:1}.card-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:transparent;border-radius:12px;flex-shrink:0}.card-icon svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.1))}.card-details{flex:1}.card-brand{font-size:16px;font-weight:600;color:var(--text-primary, #212529);margin-bottom:4px}.card-number{font-size:14px;color:var(--text-secondary, #6b7280);font-family:Courier New,monospace;margin-bottom:4px}.card-expiry{font-size:12px;color:var(--text-tertiary, #9ca3af)}.default-badge{display:flex;align-items:center;gap:6px;padding:6px 12px;background:var(--accent-color, #45A816)!important;color:#fff!important;border-radius:20px;font-size:12px;font-weight:600;margin-left:auto}.card-actions{display:flex;align-items:center;gap:8px}.btn-set-default{display:flex;align-items:center;gap:6px;padding:8px 16px;background:#fff;border:1px solid #d1d5db;border-radius:8px;color:var(--text-primary, #212529);font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-set-default:hover:not(:disabled){background:#f9fafb;border-color:var(--accent-color, #45A816);color:var(--accent-color, #45A816)}.btn-set-default:disabled{opacity:.5;cursor:not-allowed}.btn-delete{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:#fff;border:1px solid #fee2e2;border-radius:8px;color:#ef4444;cursor:pointer;transition:all .2s ease}.btn-delete:hover:not(:disabled){background:#fee2e2;border-color:#ef4444}.btn-delete:disabled{opacity:.5;cursor:not-allowed}.no-cards-message{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center;background:#f9fafb;border:2px dashed #d1d5db;border-radius:12px}.no-cards-message svg{color:var(--text-tertiary, #9ca3af);margin-bottom:16px}.no-cards-message h3{margin:0 0 8px;font-size:18px;font-weight:600;color:var(--text-primary, #212529)}.no-cards-message p{margin:0;font-size:14px;color:var(--text-secondary, #6b7280)}.add-card-section{margin-top:32px;padding-top:24px;border-top:1px solid #e5e7eb}.btn-add-card{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:24px;background:transparent;color:#6b7280;border:2px dashed #9CA3AF;border-radius:12px;font-size:15px;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-add-card:hover:not(:disabled){background:transparent;border-color:#374151;color:#374151;transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.btn-add-card:disabled{opacity:.6;cursor:not-allowed}.add-card-modal{background:#fff;border:2px solid #e5e7eb;border-radius:12px;padding:24px;margin-top:24px}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid #e5e7eb}.modal-header h3{margin:0;font-size:20px;font-weight:600;color:var(--text-primary, #212529)}.close-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:#f3f4f6;border:none;border-radius:8px;color:var(--text-secondary, #6b7280);cursor:pointer;transition:all .2s ease}.close-button:hover{background:#e5e7eb;color:var(--text-primary, #212529)}.add-card-form{display:flex;flex-direction:column;gap:24px}.payment-element-container{padding:20px;background:#f9fafb;border-radius:8px;border:1px solid #e5e7eb}.payment-error{padding:12px 16px;background:#fee2e2;border:1px solid #fecaca;border-radius:8px;color:#991b1b;font-size:14px}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}.btn-primary{display:flex;align-items:center;gap:8px;padding:12px 24px;background:var(--accent-color, #45A816);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-primary:hover:not(:disabled){background:#3d9414}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{display:flex;align-items:center;gap:8px;padding:12px 24px;background:#fff;color:var(--text-primary, #212529);border:1px solid #d1d5db;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-secondary:hover{background:#f9fafb;border-color:#9ca3af}.stripe-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;gap:16px}.stripe-loading .spinner{display:none!important}.stripe-loading .loading-gif{width:120px;height:120px;object-fit:contain;display:block;opacity:1;visibility:visible}.stripe-loading p{margin:0;color:var(--text-secondary, #6b7280);font-size:14px}.spinner-small{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite}@media (max-width: 768px){.payment-card-item{flex-direction:column;align-items:flex-start;gap:16px}.card-actions{width:100%;justify-content:flex-end}.btn-set-default{flex:1}}:root,[data-theme=light]{--bg-primary: #ffffff;--bg-secondary: #F7F8FB;--bg-tertiary: #F7F8FB;--text-primary: #212529;--text-secondary: #6B7280;--accent-color: #45A816;--border-color: #dee2e6;--hover-bg: #F7F8FB;--shadow: rgba(0, 0, 0, .1)}*{margin:0;padding:0;box-sizing:border-box}a,button{outline:none}a:focus,button:focus{outline:none}a:focus-visible,button:focus-visible{outline:none}html,body{height:100%;width:100%;overflow-x:hidden;background-color:var(--bg-primary);color:var(--text-primary);transition:background-color .3s ease,color .3s ease}table,thead,tbody,tr,td,th{border:none!important}#root{height:100vh;width:100vw;overflow:hidden}.modal-overlay,.detail-modal-overlay,.export-modal-overlay,.import-modal-overlay,.factura-detail-modal-overlay,.invoice-modal-overlay,.success-modal-overlay{position:fixed!important;inset:0!important;background:#000000b3!important;-webkit-backdrop-filter:blur(8px)!important;backdrop-filter:blur(8px)!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:1000;padding:20px!important;animation:fadeIn .3s ease!important}.modal-content,.detail-modal-content,.export-modal-content,.import-modal-content{background:var(--bg-primary)!important;border-radius:20px!important;box-shadow:0 24px 48px #0000004d!important;max-width:600px;width:100%;max-height:90vh;overflow:hidden;border:1px solid var(--border-color)!important;animation:slideUp .3s ease!important;display:flex;flex-direction:column;margin:0 auto!important;position:relative!important;left:auto!important;right:auto!important;transform:translate(0)!important}.excel-mapping-modal{background:var(--bg-primary)!important;border-radius:20px!important;box-shadow:0 24px 48px #0000004d!important;max-width:1200px!important;width:95%;max-height:90vh;overflow:hidden;border:1px solid var(--border-color)!important;animation:slideUp .3s ease!important;display:flex;flex-direction:column}.large-modal{max-width:900px!important}.modal-header,.detail-modal-header,.export-modal-header,.excel-header{padding:28px!important;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border-color)!important;background:var(--bg-secondary)!important;flex-shrink:0}.modal-header h3,.modal-header h2,.detail-modal-header h3,.export-modal-header h3,.excel-header h3{margin:0!important;font-size:24px!important;font-weight:700!important;color:var(--text-primary)!important}.modal-close,.detail-modal-close,.export-modal-close,.excel-close{background:none!important;border:none!important;color:var(--text-secondary)!important;cursor:pointer;font-size:32px!important;line-height:1!important;padding:4px 12px!important;border-radius:8px!important;transition:all .2s ease!important;width:40px!important;height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}.modal-close:hover,.detail-modal-close:hover,.export-modal-close:hover,.excel-close:hover{background:var(--hover-bg)!important;color:var(--text-primary)!important}.modal-body,.detail-modal-body,.export-modal-body,.excel-container{padding:24px!important;flex:1;overflow-y:auto;max-height:calc(90vh - 200px)}.modal-footer,.export-modal-footer,.form-actions,.excel-actions{padding:20px 28px!important;display:flex;gap:12px;justify-content:flex-end;border-top:1px solid var(--border-color)!important;background:var(--bg-secondary)!important;flex-shrink:0}.modal-footer .btn-secondary,.modal-footer .btn-primary,.export-modal-footer .btn-secondary,.export-modal-footer .btn-primary,.form-actions .btn-secondary,.form-actions .btn-primary,.excel-actions .excel-btn-secondary,.excel-actions .excel-btn-primary{padding:12px 24px!important;border-radius:12px!important;font-size:14px!important;font-weight:600!important;cursor:pointer;transition:all .2s ease!important;border:none;min-width:140px}.modal-footer .btn-secondary,.export-modal-footer .btn-secondary,.form-actions .btn-secondary,.excel-actions .excel-btn-secondary{background:var(--bg-tertiary)!important;color:var(--text-primary)!important;border:1px solid var(--border-color)!important}.modal-footer .btn-secondary:hover,.export-modal-footer .btn-secondary:hover,.form-actions .btn-secondary:hover,.excel-actions .excel-btn-secondary:hover{background:var(--hover-bg)!important}.modal-footer .btn-primary,.export-modal-footer .btn-primary,.form-actions .btn-primary,.excel-actions .excel-btn-primary{background:var(--accent-color)!important;color:#fff!important;box-shadow:0 4px 12px #45a8164d!important}.modal-footer .btn-primary:hover:not(:disabled),.export-modal-footer .btn-primary:hover:not(:disabled),.form-actions .btn-primary:hover:not(:disabled),.excel-actions .excel-btn-primary:hover:not(:disabled){background:#4a9c1a!important;transform:translateY(-2px);box-shadow:0 6px 20px #45a81666!important}.modal-footer .btn-primary:disabled,.export-modal-footer .btn-primary:disabled,.form-actions .btn-primary:disabled,.excel-actions .excel-btn-primary:disabled{opacity:.5;cursor:not-allowed}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(30px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width: 768px){.modal-overlay,.detail-modal-overlay,.export-modal-overlay{padding:0!important}.modal-content,.detail-modal-content,.export-modal-content{max-width:100%!important;max-height:100vh!important;border-radius:0!important;animation:slideUpMobile .3s ease!important}.excel-mapping-modal{max-width:100%!important;width:100%!important;max-height:100vh!important;border-radius:0!important}@keyframes slideUpMobile{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.modal-header,.detail-modal-header,.export-modal-header,.excel-header{padding:20px!important}.modal-header h3,.modal-header h2,.detail-modal-header h3,.export-modal-header h3,.excel-header h3{font-size:20px!important}.modal-body,.detail-modal-body,.export-modal-body,.excel-container{padding:20px!important;max-height:calc(100vh - 180px)}.modal-footer,.export-modal-footer,.form-actions,.excel-actions{padding:16px 20px!important;flex-direction:column}.modal-footer .btn-secondary,.modal-footer .btn-primary,.export-modal-footer .btn-secondary,.export-modal-footer .btn-primary,.form-actions .btn-secondary,.form-actions .btn-primary,.excel-actions .excel-btn-secondary,.excel-actions .excel-btn-primary{width:100%;min-width:unset!important}}
