/* RemotPress Taller - Portal compacto */
:root{--bg:#07111f;--card:#fff;--text:#101828;--muted:#667085;--line:#e6edf7;--blue:#2563eb;--blue-dark:#1d4ed8;--cyan:#06b6d4;--green:#16a34a;--red:#dc2626;--soft-blue:#eef5ff;--soft-green:#ecfdf3;--soft-amber:#fff7e6;--shadow:0 18px 50px rgba(4,15,34,.16);--radius:22px}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;font-family:Inter,Arial,Helvetica,sans-serif;color:var(--text);background:radial-gradient(circle at 10% 0%,rgba(37,99,235,.30),transparent 32%),radial-gradient(circle at 88% 8%,rgba(6,182,212,.22),transparent 30%),linear-gradient(135deg,#07111f 0%,#0b1730 48%,#08131f 100%)}
a{text-decoration:none;color:inherit}.container{width:min(1180px,94%);margin:auto}
.header{position:sticky;top:0;z-index:20;background:rgba(7,17,31,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.08)}
.nav{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 0}
.brand{display:flex;align-items:center;gap:13px;color:white;font-weight:900;font-size:20px}.logo{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;color:white;background:linear-gradient(135deg,var(--blue),var(--cyan));box-shadow:0 12px 28px rgba(37,99,235,.32);font-weight:900}.brand small{display:block;color:rgba(255,255,255,.62);font-size:12px;font-weight:700;margin-top:2px}
.nav-actions{display:flex;align-items:center;gap:10px}.btn{border:0;border-radius:13px;padding:11px 15px;font-size:14px;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.2s ease;white-space:nowrap}.btn-primary{color:white;background:linear-gradient(135deg,var(--blue),var(--blue-dark));box-shadow:0 12px 25px rgba(37,99,235,.25)}.btn-soft{color:white;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16)}.btn-light{color:var(--text);background:white;border:1px solid var(--line)}.btn-danger{color:white;background:#dc2626}
.hero{padding:54px 0;display:grid;grid-template-columns:1fr .9fr;gap:28px;align-items:center}.kicker{display:inline-flex;width:fit-content;align-items:center;gap:9px;padding:8px 13px;color:#dbeafe;background:rgba(37,99,235,.20);border:1px solid rgba(147,197,253,.25);border-radius:999px;font-weight:900;font-size:13px;margin-bottom:18px}.kicker:before{content:"";width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 6px rgba(34,197,94,.13)}
.hero-title{margin:0;color:white;font-size:clamp(40px,5vw,64px);line-height:.98;letter-spacing:-2px}.gradient{background:linear-gradient(135deg,#93c5fd,#67e8f9,#bbf7d0);-webkit-background-clip:text;color:transparent}.lead{margin:18px 0 0;color:rgba(255,255,255,.76);font-size:18px;line-height:1.6;max-width:620px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}.feature{padding:15px;border-radius:17px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.13);color:white}.feature b{display:block;margin-bottom:5px}.feature span{display:block;color:rgba(255,255,255,.66);font-size:13px;line-height:1.42}
.lookup-card,.panel-card,.result-card,.owner-card,.message-card,.side-box,.login-shell{background:white;border:1px solid rgba(255,255,255,.65);border-radius:24px;box-shadow:var(--shadow)}.lookup-card{padding:24px}.card-title{margin:0 0 6px;color:var(--text);font-size:28px;letter-spacing:-.5px}.card-subtitle,.login-note,.muted{margin:0;color:var(--muted);font-size:14px;line-height:1.48}.form,.grid-form{display:grid;gap:12px;margin-top:16px}
label{display:block;margin-bottom:6px;color:#344054;font-size:13px;font-weight:900}input,textarea,select{width:100%;border:1px solid var(--line);background:#fff;border-radius:14px;padding:12px 13px;outline:none;font-size:14px;color:var(--text)}textarea{min-height:86px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(37,99,235,.10)}
.helper,.notice,.empty-note{margin-top:12px;padding:12px 13px;border-radius:15px;background:#f8fafc;border:1px solid var(--line);color:var(--muted);font-size:13px;line-height:1.42}.alert{margin:12px 0;padding:13px 14px;border-radius:15px;background:#fff7e6;color:#7c4a00;border:1px solid #ffe0a3;font-size:14px}.success-box{margin:12px 0;padding:13px 14px;border-radius:15px;background:#ecfdf3;color:#166534;border:1px solid #bbf7d0;font-size:14px}
.result-wrap,.page-section{padding:28px 0}.compact-page{padding-top:22px}.result-top{padding:26px;color:white;background:linear-gradient(135deg,var(--blue),var(--cyan));border-radius:24px 24px 0 0}.result-top small{display:block;opacity:.88;font-weight:900;margin-bottom:8px}.result-title{margin:0;color:white;font-size:clamp(34px,4vw,50px);letter-spacing:-1.5px}.result-body{padding:22px}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.info{padding:14px;border:1px solid var(--line);border-radius:16px;background:#f8fafc}.info small{display:block;color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.35px;margin-bottom:6px}.info b{font-size:15px}
.status{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap}.done{background:var(--soft-green);color:#0f7a32}.process{background:var(--soft-blue);color:#1d4ed8}.wait{background:var(--soft-amber);color:#9a5b00}
.note{margin-top:14px;padding:15px;border-radius:17px;border:1px solid var(--line);background:white;line-height:1.55}.section-title{margin:20px 0 10px;color:var(--text);font-size:22px;letter-spacing:-.4px}.photo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:10px}.photo-grid img{width:100%;height:140px;object-fit:cover;border-radius:16px;border:1px solid var(--line);box-shadow:0 8px 22px rgba(15,23,42,.08)}
.client-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.dual-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px;margin-top:12px}.message-card,.side-box{padding:18px}.compact-message{margin-bottom:14px}.message-card h3,.side-box h3,.owner-card-head h3{margin:0 0 8px;font-size:22px;letter-spacing:-.35px}.message-card p,.side-box p{color:var(--muted);font-size:14px;line-height:1.5}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.timeline{margin-top:10px;display:grid;gap:10px}.timeline-item{display:grid;grid-template-columns:18px 1fr;gap:10px;align-items:flex-start}.timeline-dot{width:13px;height:13px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--cyan));margin-top:4px;box-shadow:0 0 0 6px rgba(37,99,235,.12)}.timeline-content{padding:13px;border:1px solid var(--line);border-radius:15px;background:#f8fafc}.timeline-content p{margin:8px 0;color:#344054;line-height:1.55}.timeline-content small{color:var(--muted)}
.login-wrap{min-height:calc(100vh - 76px);display:grid;place-items:center;padding:46px 0}.login-shell{width:min(980px,100%);display:grid;grid-template-columns:.9fr 1.1fr;min-height:520px;overflow:hidden}.login-art{padding:34px;color:white;background:radial-gradient(circle at 20% 16%,rgba(255,255,255,.22),transparent 32%),linear-gradient(135deg,var(--blue),#0f766e);display:flex;flex-direction:column;justify-content:space-between}.login-art h1{margin:0;color:white;font-size:42px;line-height:1.05;letter-spacing:-1.3px}.login-art p{color:rgba(255,255,255,.78);line-height:1.55;font-size:15px}.mini-logo{width:58px;height:58px;border-radius:20px;display:grid;place-items:center;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.24);font-weight:900;font-size:22px}.login-card{padding:38px;display:flex;flex-direction:column;justify-content:center;background:white}.login-title{margin:0 0 8px;color:var(--text);font-size:34px;letter-spacing:-.9px}
.panel-card{padding:20px}.panel-head,.owner-card-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.panel-title{margin:0 0 4px;color:var(--text);font-size:28px;letter-spacing:-.55px}.panel-actions{display:flex;align-items:center;gap:10px}.bell-btn{position:relative;width:44px;height:44px;border-radius:16px;border:1px solid var(--line);background:#f8fafc;cursor:pointer;font-size:20px}.bell-btn span{position:absolute;right:-5px;top:-7px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#dc2626;color:white;font-size:12px;font-weight:900;display:grid;place-items:center}
.top-grid{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center}.dashboard-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.stat{padding:13px;border-radius:16px;background:#f8fafc;border:1px solid var(--line)}.stat span{display:block;color:var(--muted);font-size:10px;font-weight:900;text-transform:uppercase}.stat b{display:block;margin-top:5px;font-size:25px}.quick-actions{display:flex;justify-content:flex-end}
.portal-cred-box{padding:13px;border:1px solid var(--line);background:#f8fbff;border-radius:18px;margin:14px 0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.portal-cred-box small{display:block;font-size:11px;color:var(--muted);font-weight:800;margin-bottom:5px}.portal-code{display:block;padding:10px 12px;border-radius:12px;background:#081a44;color:#fff;font-family:monospace;font-size:13px;word-break:break-all}
.owner-card{padding:16px}.compact-card{margin-top:14px}.search-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.search-bar input{flex:1;min-width:220px}.grid-form{grid-template-columns:repeat(4,1fr)}.grid-form .full{grid-column:1/-1}.compact-order-form textarea{min-height:70px}
.table-wrap{overflow:auto;border-radius:16px;border:1px solid var(--line);background:white}.table-space{margin-top:14px}table{width:100%;border-collapse:collapse;background:white}th,td{padding:11px 10px;border-bottom:1px solid #edf1f7;text-align:left;font-size:13px;vertical-align:middle}th{background:#f8fafc;color:#475467;font-size:10px;text-transform:uppercase;letter-spacing:.42px}
.notification-center{margin:10px 0 14px;padding:16px;border-radius:20px;border:1px solid var(--line);background:#f8fbff}.notif-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.notif-head h3{margin:0;font-size:22px}.message-list{display:grid;gap:10px}.message-item{padding:13px;border-radius:15px;border:1px solid var(--line);background:white}.message-item.unread{border-color:#93c5fd;box-shadow:0 0 0 4px rgba(37,99,235,.08)}.message-item p{margin:8px 0 0;line-height:1.5}.message-top{display:flex;justify-content:space-between;gap:14px;align-items:center}.message-top span,.message-meta{font-size:12px;color:var(--muted)}.notif-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.attachment-link{display:inline-flex;margin-top:8px;color:var(--blue);font-weight:900;font-size:13px}
.footer{padding:28px 0;color:rgba(255,255,255,.58);border-top:1px solid rgba(255,255,255,.08);font-size:13px}
@media(max-width:1080px){.top-grid,.hero,.dual-grid{grid-template-columns:1fr}.grid-form{grid-template-columns:repeat(2,1fr)}.quick-actions{justify-content:flex-start}}
@media(max-width:760px){.nav{align-items:flex-start;flex-direction:column}.nav-actions{width:100%;display:grid;grid-template-columns:1fr}.btn{width:100%}.hero{padding-top:42px}.hero-title{font-size:42px}.lead{font-size:16px}.feature-row,.info-grid,.dashboard-stats,.photo-grid,.portal-cred-box,.grid-form,.two-cols{grid-template-columns:1fr}.lookup-card,.login-card,.panel-card,.result-body,.result-top,.owner-card,.message-card,.side-box{padding:18px}.login-art{display:none}.login-shell{min-height:auto}.panel-head,.owner-card-head,.message-top,.notif-head{align-items:flex-start;flex-direction:column}.panel-actions{width:100%;justify-content:space-between}.search-bar{display:grid}.table-wrap{font-size:12px}}


/* FIX agregar orden: apertura nativa sin depender de JavaScript */
.add-order-panel{overflow:hidden}
.add-summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  padding:14px 16px;
  border-radius:16px;
  color:white;
  background:linear-gradient(135deg,var(--blue),var(--blue-dark));
  font-weight:900;
  box-shadow:0 12px 25px rgba(37,99,235,.22);
}
.add-summary::-webkit-details-marker{display:none}
.add-order-panel[open] .add-summary{margin-bottom:14px}
.inner-head{margin-top:4px}
.pro-locked{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:#f8fafc;
}
.pro-locked p{margin:5px 0 0;color:var(--muted);font-size:13px}


/* Chat bidireccional cliente/taller */
.chat-thread{
  display:grid;
  gap:10px;
  max-height:340px;
  overflow:auto;
  padding:10px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f8fafc;
  margin-bottom:12px;
}
.chat-bubble{
  width:min(86%, 560px);
  padding:12px 13px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
}
.chat-bubble.client{
  justify-self:flex-start;
  border-color:#fed7aa;
  background:#fff7ed;
}
.chat-bubble.staff{
  justify-self:flex-end;
  border-color:#bbf7d0;
  background:#ecfdf3;
}
.chat-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}
.chat-meta b{color:#101828}
.chat-bubble p{
  margin:0;
  line-height:1.45;
  color:#101828;
}
.reply-form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  margin-top:10px;
}
.reply-form textarea{
  min-height:44px;
  resize:vertical;
}
.chat-form textarea{min-height:70px}
@media(max-width:760px){
  .chat-bubble{width:100%}
  .reply-form{grid-template-columns:1fr}
}


#rpUnreadBadge{
  position:absolute;
  right:-5px;
  top:-7px;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  background:#dc2626;
  color:white;
  font-size:12px;
  font-weight:900;
  display:grid;
  place-items:center;
}


/* Salas de chat por orden */
.conversation-list{display:grid;gap:10px}
.conversation-item{
  padding:13px;
  border-radius:16px;
  border:1px solid var(--line);
  background:white;
}
.conversation-item.unread{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(37,99,235,.08);
}
.conversation-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.conversation-right{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}
.mini-badge{
  min-width:22px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  background:#dc2626;
  color:white;
  font-size:12px;
  font-weight:900;
  display:inline-grid;
  place-items:center;
}
.conversation-preview{
  margin-top:8px;
  padding:10px 11px;
  border-radius:13px;
  background:#f8fafc;
  color:#344054;
  font-size:13px;
  line-height:1.42;
}
.chat-room-panel{
  margin:14px 0;
  border:1px solid #bfdbfe;
  background:#f8fbff;
}
.chat-room-head{align-items:flex-start}
.chat-room-actions{display:flex;gap:8px;flex-wrap:wrap}
.admin-chat-thread{max-height:430px;scroll-behavior:smooth}
.chat-room-reply{margin-top:12px}
@media(max-width:760px){
  .conversation-top,.chat-room-head{flex-direction:column}
  .conversation-right{white-space:normal}
}


/* Consulta rápida y chat en tiempo real */
.optional-label{font-size:11px;color:var(--muted);font-weight:700}
.classic-lookup{margin-top:12px;border:1px solid var(--line);border-radius:16px;padding:10px;background:#f8fafc}.classic-lookup summary{cursor:pointer;font-weight:900;color:#344054}
.quick-results{margin-top:14px;display:grid;gap:10px}.quick-results h3{margin:0 0 4px;font-size:18px}.quick-order{display:grid;gap:4px;padding:13px;border:1px solid var(--line);border-radius:16px;background:#fff}.quick-order:hover{border-color:#93c5fd;box-shadow:0 0 0 4px rgba(37,99,235,.08)}.quick-order span{color:#344054}.quick-order small{color:var(--muted)}
.chat-thread{scroll-behavior:smooth}.conversation-list{max-height:460px;overflow:auto}.chat-room-panel{animation:chatRoomIn .18s ease-out}@keyframes chatRoomIn{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}


.minimal-title{
  letter-spacing:-0.8px;
  line-height:1.05;
  color:var(--text);
}
.hero-search-refined .kicker{
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--blue);
}
.lookup-card-pro{padding:24px}
.lookup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.lookup-mode-bar{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 18px}
.lookup-mode-btn{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:14px;padding:13px 14px;font-weight:800;cursor:pointer;transition:.2s ease;box-shadow:0 6px 18px rgba(16,24,40,.04)}
.lookup-mode-btn:hover{transform:translateY(-1px);border-color:#bfd3ff}
.lookup-mode-btn.active{background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;border-color:#2563eb;box-shadow:0 12px 24px rgba(37,99,235,.22)}
.lookup-panels{display:grid;gap:14px}
.lookup-panel{display:none;border:1px solid var(--line);border-radius:18px;background:#f8fbff;padding:18px}
.lookup-panel.active{display:block;animation:rpFadeIn .18s ease}
.search-form-modern{gap:12px}
.search-grid.top-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
.search-action-wrap{display:flex;align-items:flex-end}
.btn-block{width:100%}
.compact-helper{margin-top:10px;font-size:13px}
@media (max-width:980px){.search-grid.top-grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.lookup-mode-bar{grid-template-columns:1fr}.search-grid.top-grid{grid-template-columns:1fr}}


/* FIX visual final - Portal de consulta */
.hero-search-refined .minimal-title,
.hero .minimal-title{
  color:#ffffff !important;
  text-shadow:0 8px 30px rgba(0,0,0,.35);
  letter-spacing:-0.7px;
  line-height:1.04;
}

.hero-search-refined .kicker,
.hero .kicker{
  color:#60a5fa !important;
  background:rgba(37,99,235,.16);
  border:1px solid rgba(96,165,250,.28);
}

.lookup-card-pro{
  overflow:visible !important;
}

.lookup-panel{
  overflow:visible !important;
}

.search-grid.top-grid{
  grid-template-columns:1fr 1fr !important;
  gap:12px !important;
  align-items:end !important;
}

.search-action-wrap{
  width:100%;
}

.search-action-wrap .btn,
.btn-block{
  width:100% !important;
  min-height:43px;
  white-space:nowrap;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lookup-card input{
  min-width:0;
}

.lookup-mode-btn{
  white-space:normal;
  line-height:1.2;
}

@media (max-width:720px){
  .search-grid.top-grid{
    grid-template-columns:1fr !important;
  }
}


/* Administración de chat / eliminación */
.inline-form{display:inline-flex;margin:0}
.chat-room-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.btn-danger{
  background:#fee2e2 !important;
  color:#b91c1c !important;
  border:1px solid #fecaca !important;
}
.delete-message-form{margin-top:8px;text-align:right}
.mini-delete{
  border:1px solid #fecaca;
  background:#fff1f2;
  color:#b91c1c;
  border-radius:999px;
  padding:5px 10px;
  font-weight:800;
  font-size:11px;
  cursor:pointer;
}
.mini-delete:hover{background:#fee2e2}
.chat-photo-manager{margin-top:12px}
.admin-photo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  gap:12px;
}
.admin-photo-item{
  border:1px solid var(--line);
  border-radius:14px;
  padding:8px;
  background:#fff;
}
.admin-photo-item img{
  width:100%;
  height:92px;
  object-fit:cover;
  border-radius:10px;
  display:block;
  margin-bottom:7px;
}

/* Fix fuerte de visibilidad del título */
.hero-title-visible{
  color:#ffffff !important;
  opacity:1 !important;
  text-shadow:0 10px 32px rgba(0,0,0,.48), 0 2px 8px rgba(0,0,0,.35) !important;
  font-weight:900 !important;
  display:block;
}
.card-title-visible{
  color:#0f172a !important;
  opacity:1 !important;
  font-weight:900 !important;
}
.lookup-card .card-subtitle{
  color:#64748b !important;
}


/* FIX eliminación visible */
.delete-message-form{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  margin-top:8px;
  text-align:right;
}
.mini-delete{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  border:1px solid #fecaca;
  background:#fff1f2;
  color:#b91c1c;
  border-radius:999px;
  padding:5px 11px;
  font-weight:900;
  font-size:11px;
  cursor:pointer;
  line-height:1.2;
}
.mini-delete:hover{background:#fee2e2}
.inline-form{display:inline-flex;margin:0}
.chat-room-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.btn-danger{
  background:#fee2e2 !important;
  color:#b91c1c !important;
  border:1px solid #fecaca !important;
}
.admin-photo-item form{
  display:block !important;
  margin-top:7px;
}


/* ============================================================
   RemotPress merge final: progreso + Entregado + textos pago
   Mantiene intacto el diseño de chat/salas/sonido.
============================================================ */
.portal-progress-wrap{
  margin:0 0 16px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  box-shadow:0 8px 24px rgba(15,23,42,.06);
}
.portal-progress-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:13px;
}
.portal-progress-title span{
  font-size:13px;
  font-weight:900;
  color:#344054;
}
.portal-progress-title b{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#eef5ff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:900;
}
.portal-progress{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
  align-items:start;
}
.portal-step{
  display:grid;
  justify-items:center;
  gap:7px;
  text-align:center;
  color:#94a3b8;
  font-size:11px;
  font-weight:900;
}
.portal-step span{
  width:34px;
  height:34px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#fff;
  border:2px solid #e2e8f0;
  color:#94a3b8;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
  transition:.18s ease;
}
.portal-step.done span{
  background:#dcfce7;
  border-color:#86efac;
  color:#15803d;
}
.portal-step.done b{color:#15803d}
.portal-step.active span{
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  border-color:#2563eb;
  color:#fff;
  box-shadow:0 12px 24px rgba(37,99,235,.25);
}
.portal-step.active b{color:#1d4ed8}
.portal-step.step-finalizado.active span,
.portal-step.step-entregado.active span{
  background:linear-gradient(135deg,#16a34a,#15803d);
  border-color:#16a34a;
  color:#fff;
  box-shadow:0 12px 24px rgba(22,163,74,.25);
}
.portal-step.step-finalizado.active b,
.portal-step.step-entregado.active b{color:#15803d}
.portal-step.step-entregado.active span{
  background:linear-gradient(135deg,#10b981,#047857);
  border-color:#10b981;
  box-shadow:0 12px 24px rgba(16,185,129,.26);
}
.status.delivered,
.status.done.delivered{
  background:#d1fae5;
  color:#047857;
}
.status.finalizado,
.status.done.finalizado{
  background:#dcfce7;
  color:#15803d;
}
.info small{
  text-transform:uppercase;
}
@media(max-width:760px){
  .portal-progress{grid-template-columns:1fr}
  .portal-step{
    grid-template-columns:40px 1fr;
    justify-items:start;
    text-align:left;
    align-items:center;
  }
}


/* ============================================================
   Vista pública de orden - diseño lujo/pro
   Conserva chat y sonido intactos.
============================================================ */
.result-card-luxury{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.72);
  background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.order-hero{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
  padding:30px;
  overflow:hidden;
}
.order-hero:before{
  content:"";
  position:absolute;
  inset:-80px -90px auto auto;
  width:260px;
  height:260px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
}
.order-hero:after{
  content:"";
  position:absolute;
  left:28px;
  bottom:-36px;
  width:220px;
  height:90px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  filter:blur(2px);
}
.order-hero-left,
.order-hero-right{
  position:relative;
  z-index:1;
}
.order-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.24);
  color:rgba(255,255,255,.92);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:13px;
}
.order-hero .result-title{
  color:#fff;
  font-size:clamp(30px,4vw,48px);
  letter-spacing:-1.4px;
  line-height:1.02;
  margin:0;
  text-shadow:0 12px 34px rgba(0,0,0,.26);
}
.order-hero-device{
  margin:12px 0 4px;
  color:rgba(255,255,255,.90);
  font-size:17px;
  font-weight:900;
}
.order-hero-company{
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:14px;
  font-weight:800;
}
.order-hero-right{
  min-width:220px;
  display:grid;
  justify-items:end;
  gap:9px;
}
.order-hero-right small{
  color:rgba(255,255,255,.72);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.status-badge-lg{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:190px;
  padding:14px 18px;
  border-radius:22px;
  color:#fff;
  font-size:18px;
  font-weight:1000;
  letter-spacing:-.25px;
  text-align:center;
  border:1px solid rgba(255,255,255,.30);
  box-shadow:0 18px 40px rgba(0,0,0,.20);
  backdrop-filter:blur(10px);
}
.status-badge-lg:before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:#fff;
  margin-right:10px;
  box-shadow:0 0 0 5px rgba(255,255,255,.18);
}

/* Colores del estado superior */
.order-status-recibido{background:linear-gradient(135deg,#2563eb,#06b6d4)}
.order-status-espera{background:linear-gradient(135deg,#f59e0b,#d97706)}
.order-status-proceso{background:linear-gradient(135deg,#2563eb,#1d4ed8)}
.order-status-finalizado{background:linear-gradient(135deg,#16a34a,#15803d)}
.order-status-entregado{background:linear-gradient(135deg,#10b981,#047857)}
.order-status-cancelado{background:linear-gradient(135deg,#dc2626,#991b1b)}

.status-badge-lg.status-recibido{background:rgba(37,99,235,.78)}
.status-badge-lg.status-espera{background:rgba(245,158,11,.82)}
.status-badge-lg.status-proceso{background:rgba(37,99,235,.82)}
.status-badge-lg.status-finalizado{background:rgba(22,163,74,.84)}
.status-badge-lg.status-entregado{background:rgba(4,120,87,.86)}
.status-badge-lg.status-cancelado{background:rgba(220,38,38,.84)}

.order-client-layout{
  display:grid;
  grid-template-columns:1fr 360px;
  gap:16px;
  align-items:stretch;
  margin:16px 0;
}
.order-info-panel,
.payment-luxury-card{
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.07);
}
.order-info-panel{
  padding:17px;
}
.section-mini-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:13px;
}
.section-mini-head span,
.payment-luxury-head span{
  color:#475467;
  font-size:12px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.section-mini-head b{
  color:#101828;
  font-size:14px;
  font-weight:900;
  text-align:right;
}
.order-info-grid{
  grid-template-columns:repeat(3,1fr);
}
.order-info-grid .info{
  background:#f8fafc;
  border-radius:17px;
}
.payment-luxury-card{
  padding:18px;
  color:#fff;
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#0f172a,#1e293b);
}
.payment-luxury-card:before{
  content:"";
  position:absolute;
  width:190px;
  height:190px;
  border-radius:999px;
  right:-70px;
  top:-70px;
  background:rgba(255,255,255,.13);
}
.payment-luxury-card:after{
  content:"";
  position:absolute;
  width:160px;
  height:80px;
  border-radius:999px;
  left:-40px;
  bottom:-35px;
  background:rgba(255,255,255,.08);
}
.payment-luxury-card > *{
  position:relative;
  z-index:1;
}
.payment-luxury-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.payment-luxury-head span{
  color:rgba(255,255,255,.74);
}
.payment-luxury-head b{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  font-size:12px;
  font-weight:1000;
}
.payment-total-box{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  margin-bottom:12px;
}
.payment-total-box small,
.payment-mini-grid small{
  display:block;
  color:rgba(255,255,255,.70);
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:6px;
}
.payment-total-box strong{
  display:block;
  color:#fff;
  font-size:32px;
  line-height:1;
  letter-spacing:-1px;
}
.payment-mini-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.payment-mini-grid > div{
  padding:13px;
  border-radius:16px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
}
.payment-mini-grid b{
  color:#fff;
  font-size:18px;
  font-weight:1000;
}
.payment-paid{background:linear-gradient(135deg,#16a34a,#047857)}
.payment-partial{background:linear-gradient(135deg,#2563eb,#0f766e)}
.payment-pending{background:linear-gradient(135deg,#f59e0b,#b45309)}
.payment-na{background:linear-gradient(135deg,#475569,#0f172a)}

@media(max-width:980px){
  .order-hero{flex-direction:column}
  .order-hero-right{
    justify-items:start;
    min-width:0;
    width:100%;
  }
  .status-badge-lg{
    width:100%;
    min-width:0;
  }
  .order-client-layout{
    grid-template-columns:1fr;
  }
  .order-info-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .order-hero{padding:22px}
  .payment-total-box strong{font-size:28px}
  .payment-mini-grid{grid-template-columns:1fr}
}


/* FIX: quitar título redundante "Seguimiento de reparación" */
.order-hero-device-main{
  margin:8px 0 4px !important;
  color:#ffffff !important;
  font-size:clamp(25px,3.2vw,38px) !important;
  font-weight:1000 !important;
  line-height:1.05 !important;
  letter-spacing:-.9px !important;
  text-shadow:0 10px 28px rgba(0,0,0,.28);
}


/* ============================================================
   FIX PREMIUM: Entregado visible + vista de orden más elegante
   Reforzado para que Entregado nunca quede gris.
============================================================ */
.result-card-luxury{
  border-radius:28px;
  overflow:hidden;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  border:1px solid rgba(255,255,255,.82);
  box-shadow:0 24px 70px rgba(4,15,34,.22);
}
.order-hero{
  min-height:188px;
  padding:32px;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.order-kicker{
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 12px 26px rgba(0,0,0,.10);
}
.order-hero-device-main,
.order-hero-device{
  max-width:720px;
  margin:8px 0 5px !important;
  color:#fff !important;
  font-size:clamp(28px,3.4vw,42px) !important;
  font-weight:1000 !important;
  line-height:1.02 !important;
  letter-spacing:-1.15px !important;
  text-shadow:0 12px 32px rgba(0,0,0,.30);
}
.order-hero-company{
  display:inline-flex;
  width:fit-content;
  margin-top:6px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  color:rgba(255,255,255,.82) !important;
}
.order-hero-right{
  padding:12px;
  border-radius:24px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(12px);
}
.status-badge-lg{
  min-width:205px;
  min-height:58px;
  border-radius:20px;
  font-size:19px;
  font-weight:1000;
  color:#fff !important;
  background:rgba(37,99,235,.86);
}
.status-badge-lg.status-recibido{background:linear-gradient(135deg,#2563eb,#06b6d4) !important}
.status-badge-lg.status-espera{background:linear-gradient(135deg,#f59e0b,#d97706) !important}
.status-badge-lg.status-proceso{background:linear-gradient(135deg,#2563eb,#1d4ed8) !important}
.status-badge-lg.status-finalizado{background:linear-gradient(135deg,#16a34a,#15803d) !important}
.status-badge-lg.status-entregado{background:linear-gradient(135deg,#10b981,#047857) !important}
.status-badge-lg.status-cancelado{background:linear-gradient(135deg,#dc2626,#991b1b) !important}

/* Hero por estado */
.order-hero.order-status-recibido,
.order-status-recibido{background:radial-gradient(circle at 92% 12%,rgba(255,255,255,.22),transparent 26%),linear-gradient(135deg,#2563eb,#06b6d4) !important}
.order-hero.order-status-espera,
.order-status-espera{background:radial-gradient(circle at 92% 12%,rgba(255,255,255,.20),transparent 26%),linear-gradient(135deg,#f59e0b,#d97706) !important}
.order-hero.order-status-proceso,
.order-status-proceso{background:radial-gradient(circle at 92% 12%,rgba(255,255,255,.20),transparent 26%),linear-gradient(135deg,#2563eb,#1d4ed8) !important}
.order-hero.order-status-finalizado,
.order-status-finalizado{background:radial-gradient(circle at 92% 12%,rgba(255,255,255,.20),transparent 26%),linear-gradient(135deg,#16a34a,#15803d) !important}
.order-hero.order-status-entregado,
.order-status-entregado{background:radial-gradient(circle at 92% 12%,rgba(255,255,255,.22),transparent 26%),linear-gradient(135deg,#10b981,#047857) !important}
.order-hero.order-status-cancelado,
.order-status-cancelado{background:radial-gradient(circle at 92% 12%,rgba(255,255,255,.18),transparent 26%),linear-gradient(135deg,#dc2626,#991b1b) !important}

/* Progreso: Finalizado y Entregado visibles con check */
.portal-progress-wrap{
  margin:18px 0;
  border-radius:24px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  box-shadow:0 14px 36px rgba(15,23,42,.08);
}
.portal-step.done span{
  background:#dcfce7 !important;
  border-color:#86efac !important;
  color:#15803d !important;
}
.portal-step.done b{color:#15803d !important}
.portal-step.active span{
  background:linear-gradient(135deg,#2563eb,#1d4ed8) !important;
  border-color:#2563eb !important;
  color:#fff !important;
}
.portal-step.step-finalizado.active span{
  background:linear-gradient(135deg,#16a34a,#15803d) !important;
  border-color:#16a34a !important;
  color:#fff !important;
}
.portal-step.step-entregado.active span{
  background:linear-gradient(135deg,#10b981,#047857) !important;
  border-color:#10b981 !important;
  color:#fff !important;
  box-shadow:0 12px 28px rgba(16,185,129,.30) !important;
}
.portal-step.step-finalizado.active b,
.portal-step.step-entregado.active b{
  color:#047857 !important;
}
.order-info-panel,
.payment-luxury-card{
  border-radius:24px;
}
.order-info-panel{
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.payment-luxury-card{
  box-shadow:0 20px 48px rgba(15,23,42,.18);
}
.payment-total-box strong{
  font-size:34px;
}

/* Fallback fuerte por si el estado queda como class status delivered/done */
.status.delivered,
.status.done.delivered,
.done.delivered{
  background:#d1fae5 !important;
  color:#047857 !important;
  border-color:#a7f3d0 !important;
}

@media(max-width:760px){
  .order-hero{
    min-height:auto;
    padding:22px;
  }
  .order-hero-right{
    width:100%;
    justify-items:stretch;
  }
  .status-badge-lg{
    width:100%;
    min-width:0;
  }
}


/* ============================================================
   FIX: Total Pagado + Ondas en paso actual + Entregado por Sí/No
============================================================ */
.payment-paid .payment-total-box small::after{
  content:"";
}
.payment-paid .payment-total-box{
  background:rgba(255,255,255,.16);
}
.payment-paid .payment-total-box strong{
  color:#ecfdf5;
}

/* El paso actual titila con ondas. Los pasos terminados quedan fijos. */
.portal-step.active span{
  position:relative;
  overflow:visible;
  isolation:isolate;
}
.portal-step.active span::after{
  content:"";
  position:absolute;
  inset:-7px;
  border-radius:999px;
  border:2px solid currentColor;
  opacity:.55;
  animation:rpStepPulse 1.35s ease-out infinite;
  z-index:-1;
}
.portal-step.done:not(.active) span::after{
  display:none;
}
@keyframes rpStepPulse{
  0%{transform:scale(.82);opacity:.55}
  70%{transform:scale(1.38);opacity:0}
  100%{transform:scale(1.38);opacity:0}
}

/* Entregado debe verse marcado y no gris, incluso si viene por columna Entregado = Sí */
.order-hero.order-status-entregado,
.order-status-entregado{
  background:radial-gradient(circle at 92% 12%,rgba(255,255,255,.22),transparent 26%),linear-gradient(135deg,#10b981,#047857) !important;
}
.status-badge-lg.status-entregado{
  background:linear-gradient(135deg,#10b981,#047857) !important;
  color:#fff !important;
}
.portal-step.step-entregado.active span,
.portal-step.step-entregado.done span{
  background:linear-gradient(135deg,#10b981,#047857) !important;
  border-color:#10b981 !important;
  color:#fff !important;
}
.portal-step.step-entregado.active b,
.portal-step.step-entregado.done b{
  color:#047857 !important;
}


/* ============================================================
   FIX FINAL: ondas más visibles + estado siempre arriba derecha
============================================================ */

/* Estado siempre arriba a la derecha, incluso en ventanas medianas/pequeñas */
.order-hero{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) auto !important;
  align-items:start !important;
  gap:14px !important;
}
.order-hero-left{
  min-width:0 !important;
}
.order-hero-right{
  width:auto !important;
  min-width:132px !important;
  max-width:210px !important;
  justify-items:end !important;
  align-self:start !important;
  padding:8px !important;
}
.status-badge-lg{
  min-width:128px !important;
  max-width:190px !important;
  min-height:44px !important;
  padding:10px 12px !important;
  border-radius:16px !important;
  font-size:clamp(12px, 1.65vw, 18px) !important;
  line-height:1.05 !important;
  white-space:normal !important;
  word-break:normal !important;
}
.order-hero-right small{
  font-size:9.5px !important;
  white-space:nowrap !important;
}

/* Ondas más pronunciadas en el paso actual */
.portal-step.active span{
  position:relative !important;
  overflow:visible !important;
  isolation:isolate !important;
  box-shadow:0 0 0 6px rgba(37,99,235,.13), 0 16px 34px rgba(37,99,235,.35) !important;
}
.portal-step.active span::before,
.portal-step.active span::after{
  content:"" !important;
  position:absolute !important;
  inset:-10px !important;
  border-radius:999px !important;
  border:3px solid currentColor !important;
  opacity:.85 !important;
  z-index:-1 !important;
  pointer-events:none !important;
}
.portal-step.active span::before{
  animation:rpStepWaveStrong 1.35s ease-out infinite !important;
}
.portal-step.active span::after{
  animation:rpStepWaveStrong 1.35s ease-out .48s infinite !important;
}
.portal-step.done:not(.active) span::before,
.portal-step.done:not(.active) span::after{
  display:none !important;
}
.portal-step.step-finalizado.active span,
.portal-step.step-entregado.active span{
  box-shadow:0 0 0 7px rgba(16,185,129,.16), 0 16px 34px rgba(16,185,129,.36) !important;
}
@keyframes rpStepWaveStrong{
  0%{transform:scale(.72);opacity:.88}
  45%{opacity:.50}
  82%{transform:scale(1.75);opacity:0}
  100%{transform:scale(1.75);opacity:0}
}

@media(max-width:980px){
  .order-hero{
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) auto !important;
    gap:10px !important;
  }
  .order-hero-right{
    width:auto !important;
    min-width:120px !important;
    max-width:170px !important;
    justify-items:end !important;
  }
  .status-badge-lg{
    width:auto !important;
    min-width:116px !important;
    max-width:165px !important;
    font-size:13px !important;
    padding:9px 10px !important;
  }
  .order-hero-device-main,
  .order-hero-device{
    font-size:clamp(22px, 4.6vw, 34px) !important;
    line-height:1.05 !important;
  }
}
@media(max-width:560px){
  .order-hero{
    grid-template-columns:minmax(0, 1fr) 112px !important;
    gap:8px !important;
    padding:18px !important;
  }
  .order-hero-right{
    min-width:104px !important;
    max-width:112px !important;
    padding:6px !important;
  }
  .status-badge-lg{
    min-width:96px !important;
    max-width:104px !important;
    min-height:38px !important;
    padding:7px 8px !important;
    border-radius:13px !important;
    font-size:11px !important;
  }
  .status-badge-lg:before{
    width:7px !important;
    height:7px !important;
    margin-right:6px !important;
    box-shadow:0 0 0 3px rgba(255,255,255,.18) !important;
  }
  .order-hero-right small{
    font-size:8px !important;
  }
}


/* ============================================================
   FIX: ondas visibles sin tapar el texto del paso
============================================================ */
.portal-progress{
  overflow:visible !important;
}
.portal-step{
  position:relative !important;
  overflow:visible !important;
  gap:11px !important;
  z-index:1 !important;
}
.portal-step span{
  position:relative !important;
  z-index:2 !important;
}
.portal-step b{
  position:relative !important;
  z-index:6 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1.05 !important;
  padding:2px 5px !important;
  border-radius:8px !important;
  background:rgba(255,255,255,.82) !important;
  backdrop-filter:blur(3px);
}

/* La onda se mantiene en el círculo/check y no baja hasta la palabra */
.portal-step.active span::before,
.portal-step.active span::after{
  inset:-6px !important;
  border-width:2px !important;
  opacity:.72 !important;
  z-index:-1 !important;
}
.portal-step.active span::before{
  animation:rpStepWaveClean 1.35s ease-out infinite !important;
}
.portal-step.active span::after{
  animation:rpStepWaveClean 1.35s ease-out .45s infinite !important;
}

/* Más visible, pero menos invasiva verticalmente */
@keyframes rpStepWaveClean{
  0%{transform:scale(.78);opacity:.74}
  52%{opacity:.40}
  100%{transform:scale(1.42);opacity:0}
}

/* En entregado/finalizado el texto queda limpio y no tapado */
.portal-step.step-entregado.active b,
.portal-step.step-finalizado.active b,
.portal-step.done b{
  background:rgba(236,253,245,.92) !important;
}


/* ============================================================
   Zona horaria configurable + fecha/hora visible
============================================================ */
.timezone-box{
  grid-column:1 / -1;
  padding:12px;
  border:1px solid #e5eaf3;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.timezone-box small{
  display:block;
  color:#667085;
  font-weight:900;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:8px;
}
.timezone-row{
  display:flex;
  gap:8px;
  align-items:center;
}
.timezone-row select{
  flex:1;
  min-width:0;
  border:1px solid #d0d5dd;
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
  color:#101828;
  font-weight:700;
}
.order-time-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:0 0 16px;
}
.order-time-item{
  padding:12px 14px;
  border:1px solid #e5eaf3;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.order-time-item span{
  display:block;
  color:#667085;
  font-size:10.5px;
  font-weight:1000;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:5px;
}
.order-time-item b{
  display:block;
  color:#101828;
  font-size:13.5px;
  font-weight:1000;
  line-height:1.2;
}
.order-time-item.timezone{
  background:linear-gradient(135deg,#eff6ff,#ecfeff);
}
.order-time-item.timezone b{
  color:#1d4ed8;
}
@media(max-width:760px){
  .timezone-row{flex-direction:column;align-items:stretch}
  .order-time-strip{grid-template-columns:1fr;gap:8px}
  .order-time-item{padding:10px 12px}
}


/* ============================================================
   Fecha/hora compacta en barra superior sin borrar detalles
============================================================ */
.order-time-strip,
.order-hero-meta{
  display:none !important;
}
.order-kicker-compact{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:6px !important;
  max-width:880px !important;
  padding:0 !important;
  margin-bottom:14px !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
.order-kicker-compact span{
  display:inline-flex !important;
  align-items:center !important;
  min-height:27px !important;
  padding:7px 10px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.15) !important;
  border:1px solid rgba(255,255,255,.22) !important;
  color:rgba(255,255,255,.94) !important;
  font-size:10.5px !important;
  font-weight:1000 !important;
  line-height:1 !important;
  letter-spacing:.035em !important;
  text-transform:uppercase !important;
  backdrop-filter:blur(8px);
}
.order-kicker-compact span:first-child{
  background:rgba(255,255,255,.22) !important;
  color:#fff !important;
}
.tech-note-enhanced{
  border-radius:18px;
}
.tech-note-enhanced b{
  display:block;
  color:#1d4ed8;
  font-weight:1000;
  margin-bottom:4px;
}
.tech-note-enhanced small,
.tech-note-date{
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:900;
  margin-bottom:8px;
}
.tech-note-date{
  margin-top:10px;
  padding-top:9px;
  border-top:1px dashed #d0d5dd;
}
@media(max-width:760px){
  .order-kicker-compact{
    gap:5px !important;
    margin-bottom:11px !important;
  }
  .order-kicker-compact span{
    min-height:24px !important;
    padding:6px 8px !important;
    font-size:9.2px !important;
  }
}


/* ============================================================
   Configuración minimalista + borrar registros web
============================================================ */
.settings-mini{
  margin:12px 0 14px;
  padding:0 !important;
  overflow:hidden;
}
.settings-mini > summary{
  list-style:none;
  cursor:pointer;
  padding:13px 16px;
  font-weight:1000;
  color:#101828;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.settings-mini > summary::-webkit-details-marker{display:none}
.settings-mini > summary:after{
  content:"Abrir";
  font-size:11px;
  font-weight:1000;
  color:#2563eb;
  padding:5px 9px;
  border-radius:999px;
  background:#eff6ff;
}
.settings-mini[open] > summary:after{content:"Cerrar"}
.settings-mini-grid{
  padding:0 14px 14px;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.timezone-box-mini{
  grid-column:auto !important;
  margin:0;
  padding:12px !important;
}
.danger-zone-mini{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px;
  border:1px solid #fecaca;
  border-radius:18px;
  background:linear-gradient(180deg,#fff7f7,#fff);
}
.danger-zone-mini b{
  display:block;
  color:#991b1b;
  font-weight:1000;
  margin-bottom:3px;
}
.danger-zone-mini span{
  display:block;
  color:#7f1d1d;
  font-size:12px;
  font-weight:750;
}
.danger-inline{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.danger-inline input{
  width:145px;
  border:1px solid #fecaca;
  border-radius:12px;
  padding:10px 11px;
  font-weight:900;
}
.inline-delete-form{margin:0}
.btn-mini{
  padding:8px 10px !important;
  border-radius:11px !important;
  font-size:12px !important;
}
@media(max-width:760px){
  .danger-zone-mini{
    align-items:stretch;
    flex-direction:column;
  }
  .danger-inline{
    justify-content:stretch;
  }
  .danger-inline input,
  .danger-inline button{
    width:100%;
  }
}


/* ============================================================
   Orden web con número automático
============================================================ */
.web-auto-number-note{
  grid-column:1 / -1;
  padding:10px 12px;
  border-radius:14px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1d4ed8;
  font-size:12px;
  font-weight:850;
}
.web-order-auto-number label{
  display:block;
}
.auto-number-pill{
  min-height:42px;
  display:flex;
  align-items:center;
  padding:10px 12px;
  border:1px dashed #93c5fd;
  border-radius:14px;
  background:linear-gradient(180deg,#eff6ff,#ffffff);
  color:#1d4ed8;
  font-weight:1000;
}


/* ============================================================
   Orden rápida por audio
============================================================ */
.quick-audio-panel{
  margin:12px 0 14px;
  overflow:hidden;
}
.audio-summary{
  list-style:none;
  cursor:pointer;
  padding:14px 16px;
  font-weight:1000;
  color:#101828;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.audio-summary::-webkit-details-marker{display:none}
.audio-summary:after{
  content:"Abrir";
  font-size:11px;
  font-weight:1000;
  color:#2563eb;
  padding:5px 9px;
  border-radius:999px;
  background:#eff6ff;
}
.quick-audio-panel[open] .audio-summary:after{content:"Cerrar"}
.quick-audio-inner{
  padding:0 14px 15px;
  display:grid;
  gap:12px;
}
.quick-audio-info{
  padding:12px;
  border:1px solid #bfdbfe;
  border-radius:16px;
  background:linear-gradient(180deg,#eff6ff,#ffffff);
}
.quick-audio-info b{
  display:block;
  color:#1d4ed8;
  font-weight:1000;
  margin-bottom:4px;
}
.quick-audio-info span{
  display:block;
  color:#475467;
  font-size:12px;
  font-weight:800;
}
.quick-audio-form textarea{
  width:100%;
  min-height:92px;
  resize:vertical;
  border:1px solid #d0d5dd;
  border-radius:16px;
  padding:12px;
  font-weight:750;
  line-height:1.45;
}
.quick-audio-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.btn-success{
  background:#16a34a;
  color:#fff;
  border-color:#16a34a;
}
.audio-support-msg{
  margin-top:8px;
  color:#667085;
  font-size:12px;
  font-weight:750;
}
@media(max-width:760px){
  .quick-audio-actions .btn{
    width:100%;
  }
}


/* ============================================================
   Orden rápida por audio - parser reforzado
============================================================ */
.quick-audio-examples{
  margin-top:8px;
  padding:9px 11px;
  border-radius:13px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  color:#475467;
  font-size:12px;
  font-weight:750;
}
.quick-audio-examples b{
  color:#1d4ed8;
}


/* ============================================================
   Orden rápida por audio - descripción larga
============================================================ */
.quick-audio-long-help{
  margin-top:8px;
  padding:9px 11px;
  border-radius:13px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  font-size:12px;
  font-weight:800;
}
.quick-audio-long-help b{
  color:#c2410c;
}


/* ============================================================
   Orden rápida audio - descripción real y anti-duplicado
============================================================ */
.quick-audio-long-help{
  margin-top:8px;
  padding:9px 11px;
  border-radius:13px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  font-size:12px;
  font-weight:800;
}
.quick-audio-long-help b{color:#c2410c}


/* ============================================================
   Orden rápida audio - natural y descripción completa
============================================================ */
.quick-audio-long-help{
  display:none !important;
}
.quick-audio-examples{
  margin-top:8px;
  padding:9px 11px;
  border-radius:13px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  color:#475467;
  font-size:12px;
  font-weight:750;
}
.quick-audio-examples b{
  color:#1d4ed8;
}


/* ============================================================
   Orden rápida audio - cliente/equipo/descripción natural
============================================================ */
.quick-audio-long-help,
.quick-audio-examples{
  display:none !important;
}


/* ============================================================
   Vista pública: cliente + descripción, sin repetir equipo/estado
============================================================ */
.order-kicker-compact .order-chip-main{
  background:rgba(255,255,255,.30) !important;
  border:1px solid rgba(255,255,255,.48) !important;
  color:#fff !important;
  box-shadow:0 8px 22px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.20);
  text-shadow:0 1px 1px rgba(0,0,0,.18);
  letter-spacing:.07em !important;
}
.order-info-clean{
  grid-template-columns:minmax(190px,.62fr) minmax(280px,1.38fr) !important;
}
.order-info-clean .info{
  min-height:86px;
}
.order-info-clean .info-description b{
  white-space:normal !important;
  line-height:1.45 !important;
  font-size:15px !important;
  text-transform:none !important;
}
.order-info-clean .info-client b{
  font-size:15px !important;
}
@media(max-width:760px){
  .order-info-clean{
    grid-template-columns:1fr !important;
  }
  .order-info-clean .info{
    min-height:auto;
  }
}


/* ============================================================
   Actualización del taller separada de Descripción / Servicio
============================================================ */
.note.tech-note-enhanced{
  background:linear-gradient(180deg,#f8fbff,#ffffff);
  border:1px solid #dbeafe;
}
.note.tech-note-enhanced b{
  color:#1d4ed8;
}


/* ============================================================
   Seguimiento sin duplicar actualización del taller
============================================================ */
.timeline-content strong{
  display:block;
  margin-bottom:4px;
}
.timeline-content small{
  display:block;
  margin-top:3px;
}


/* ============================================================
   Actualización del taller dinámica por estado
============================================================ */
.note.tech-note-enhanced{
  transition:background .2s ease, border-color .2s ease;
}


/* ============================================================
   Seguimiento con eventos desde Desktop
============================================================ */
.timeline-content p{
  margin-top:5px;
}


/* ============================================================
   Mensajes públicos generales sin palabra taller
============================================================ */


/* ============================================================
   Seguimiento limpio: no repetir nota técnica actual
============================================================ */
.timeline-content p{
  margin-top:5px;
}


/* Configuración compacta del portal */
.rp-settings-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.rp-icon-btn{
  width:44px;
  height:44px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size:20px;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
  transition:.2s ease;
}
.rp-icon-btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.16)}
.rp-icon-btn-light,
.panel-actions .rp-icon-btn{
  color:#101828;
  background:#f8fafc;
  border:1px solid var(--line);
  box-shadow:none;
}
.rp-settings-popover{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  z-index:80;
  width:min(360px, calc(100vw - 28px));
  padding:15px;
  border-radius:20px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  box-shadow:0 22px 55px rgba(2,8,23,.24);
}
.rp-settings-popover-panel{top:calc(100% + 10px)}
.rp-settings-title{
  margin-bottom:12px;
  font-weight:900;
  font-size:17px;
  letter-spacing:-.25px;
}
.rp-settings-popover label{margin-top:10px}
.rp-settings-popover select,
.rp-settings-popover input{margin-bottom:8px}
.rp-settings-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:10px;
}
.rp-settings-actions .btn{width:100%}
.rp-preferences-form{margin:0;display:grid;gap:6px}
.rp-settings-divider{
  height:1px;
  background:var(--line);
  margin:13px 0;
}
.rp-danger-compact{
  display:grid;
  gap:8px;
  padding:12px;
  border-radius:16px;
  border:1px solid #fecaca;
  background:#fff7f7;
}
.rp-danger-compact b{font-size:14px;color:#991b1b}
.rp-danger-compact span{font-size:12px;line-height:1.35;color:#7f1d1d}
.rp-danger-compact .danger-inline{display:grid;gap:8px;margin:0}
.rp-danger-compact .btn-danger{width:100%}
@media(max-width:760px){
  .nav-actions{grid-template-columns:44px 1fr 1fr;align-items:center}
  .nav-actions .rp-settings-wrap{width:44px;justify-self:start}
  .nav-actions .rp-icon-btn{width:44px}
  .rp-settings-popover{left:0;right:auto;width:min(340px, calc(100vw - 28px))}
  .panel-actions .rp-settings-popover{left:auto;right:0}
  .panel-actions .rp-settings-wrap{width:44px}
}
