/* EncuentraServices — SPA (mobile-first). Cambia la marca en las variables. */
.es-app, .es-modal, .es-toasts {
	--es-primary: #0067FF;
	--es-primary-dark: #0052CC;
	--es-accent: #f59e0b;
	--es-bg: #f5f7f8;
	--es-card: #ffffff;
	--es-text: #111827;
	--es-muted: #6b7280;
	--es-line: #e5e7eb;
	--es-red: #dc2626;
	--es-radius: 14px;
}
.es-app {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--es-text);
	background: var(--es-bg);
	max-width: 1100px;
	margin: 0 auto;
	min-height: 70vh;
	border-radius: var(--es-radius);
	overflow: hidden;
	font-size: 15px;
	line-height: 1.45;
}
.es-app *, .es-modal * { box-sizing: border-box; }
.es-muted { color: var(--es-muted); font-size: .9em; }
.es-loading, .es-empty { padding: 40px 16px; text-align: center; color: var(--es-muted); }

/* ── Barra superior ── */
.es-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--es-card); border-bottom: 1px solid var(--es-line); flex-wrap: wrap; }
.es-top__brand { font-weight: 800; color: var(--es-primary); text-decoration: none; font-size: 17px; }
.es-top__nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.es-top__nav::-webkit-scrollbar { display: none; }
.es-top__nav a { white-space: nowrap; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--es-muted); font-weight: 600; font-size: 14px; }
.es-top__nav a.is-active { background: #E0EDFF; color: var(--es-primary-dark); }
.es-top__user { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--es-muted); }
.es-view { padding: 16px; }
.es-head h1 { font-size: 22px; margin: 4px 0 14px; }

/* ── Botones ── */
.es-btn { border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 700; font-size: 15px; cursor: pointer; transition: filter .15s, opacity .15s; font-family: inherit; }
.es-btn:disabled { opacity: .55; cursor: default; }
.es-btn:not(:disabled):hover { filter: brightness(.95); }
.es-btn--primary { background: var(--es-primary); color: #fff; }
.es-btn--accent { background: #fff7ed; color: #9a3412; border: 1px dashed #fdba74; }
.es-btn--ghost { background: #f3f4f6; color: var(--es-text); }
.es-btn--danger { background: var(--es-red); color: #fff; }
.es-btn--danger-ghost { background: #fef2f2; color: var(--es-red); }
.es-btn--block { width: 100%; }
.es-btn--sm { padding: 8px 12px; font-size: 13.5px; }
.es-link { background: none; border: 0; color: var(--es-primary); font-weight: 600; cursor: pointer; padding: 6px 0; font-family: inherit; }
.es-icon-btn { background: none; border: 0; font-size: 22px; cursor: pointer; padding: 6px; border-radius: 8px; }
.es-icon-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ── Login ── */
.es-auth { max-width: 420px; margin: 24px auto; background: var(--es-card); padding: 28px 22px; border-radius: var(--es-radius); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.es-auth h1 { font-size: 22px; margin: 0 0 6px; }
.es-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.es-form label, .es-modal label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.es-app input, .es-app textarea, .es-app select, .es-modal input, .es-modal textarea, .es-modal select {
	font: inherit; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; width: 100%; color: var(--es-text);
}
.es-app input:focus, .es-app textarea:focus, .es-modal input:focus, .es-modal textarea:focus, .es-modal select:focus { outline: 2px solid #BFD8FF; border-color: var(--es-primary); }
.es-otp { font-size: 28px !important; letter-spacing: 10px; text-align: center; font-weight: 700; }
.es-auth__err { color: #B42318; background: #FEF3F2; border: 1px solid #FECDCA; border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14px; margin-top: 14px; line-height: 1.45; }
.es-auth__err a { color: var(--es-primary); text-decoration: underline; white-space: nowrap; }
.es-auth__aviso { background: #EEF5FF; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0; }
.es-auth__olvido { align-self: flex-end; font-size: 14px; color: var(--es-primary); text-decoration: none; margin-top: -6px; }
.es-auth__alt { display: block; text-align: center; margin-top: 14px; font-size: 14px; }
.es-auth__pie { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--es-line); text-align: center; font-size: 15px; }
.es-auth__pie a { color: var(--es-primary); text-decoration: none; }
.es-auth__legal { font-size: 13px; margin: -4px 0 0; text-align: center; }
.es-pass { position: relative; display: block; }
.es-pass input { padding-right: 76px !important; }
.es-pass__ver { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none !important; border: 0 !important; color: var(--es-primary) !important; font-family: inherit; font-size: 13px !important; font-weight: 600; line-height: 1; padding: 8px 10px !important; min-height: 0 !important; width: auto !important; cursor: pointer; box-shadow: none !important; }
.es-form label small { font-weight: 400; font-size: 13px; }

/* ── Listas ── */
.es-list { display: flex; flex-direction: column; gap: 8px; }
.es-item { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--es-card); border-radius: 12px; text-decoration: none; color: inherit; border: 1px solid transparent; }
.es-item:hover { border-color: var(--es-line); }
.es-item.is-unread { border-left: 4px solid var(--es-primary); }
.es-item.is-unread .es-item__prev { color: var(--es-text); font-weight: 600; }
.es-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.es-item__top { display: flex; justify-content: space-between; gap: 8px; }
.es-item__top time { font-size: 12px; color: var(--es-muted); white-space: nowrap; }
.es-item__sub { font-size: 13px; color: var(--es-muted); }
.es-item__prev { font-size: 14px; color: var(--es-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.es-avatar { width: 42px; height: 42px; border-radius: 50%; background: #E0EDFF; color: var(--es-primary-dark); display: grid; place-items: center; font-weight: 800; flex: none; }
.es-avatar--img { object-fit: cover; display: block; }
.es-avatar--lg { width: 72px; height: 72px; font-size: 28px; margin: 0 auto 8px; }
.es-count { background: var(--es-primary); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 8px; }
.es-badge { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #f3f4f6; color: #374151; white-space: nowrap; }
.es-badge--propuesto { background: #fef3c7; color: #92400e; }
.es-badge--aceptado { background: #dbeafe; color: #1e40af; }
.es-badge--realizado { background: #e0e7ff; color: #3730a3; }
.es-badge--completado { background: #dcfce7; color: #166534; }
.es-badge--cancelado, .es-badge--rechazado { background: #f3f4f6; color: #6b7280; }
.es-badge--disputa { background: #fee2e2; color: #991b1b; }
.es-flag { font-size: 12px; font-weight: 700; background: #f3f4f6; padding: 2px 7px; border-radius: 6px; }
.es-flag--red { background: #fee2e2; color: #991b1b; }

/* ── Nuevo chat ── */
.es-card { background: var(--es-card); border-radius: var(--es-radius); padding: 20px; }
.es-nuevo { max-width: 460px; margin: 20px auto; text-align: center; }
.es-nuevo h1 { margin: 4px 0; font-size: 22px; }

/* ── Hilo ── */
.es-view--chats:has(.es-thread) { padding: 0; }
.es-thread { display: flex; flex-direction: column; height: min(78vh, 760px); background: #eef2f3; }
.es-thread__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--es-card); border-bottom: 1px solid var(--es-line); }
.es-thread__who { display: flex; flex-direction: column; min-width: 0; }
.es-thread__who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-back { font-size: 30px; line-height: 1; text-decoration: none; color: var(--es-primary); padding: 0 6px; }
.es-lock { font-size: 13px; padding: 8px 14px; font-weight: 600; }
.es-lock.is-closed { background: #fffbeb; color: #92400e; }
.es-lock.is-open { background: #ecfdf5; color: #065f46; }
.es-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.es-msg { max-width: 82%; background: var(--es-card); padding: 9px 12px; border-radius: 14px 14px 14px 4px; align-self: flex-start; box-shadow: 0 1px 1px rgba(0,0,0,.04); word-wrap: break-word; }
.es-msg.is-mine { align-self: flex-end; background: #DCEBFF; border-radius: 14px 14px 4px 14px; }
.es-msg time { display: block; font-size: 11px; color: var(--es-muted); margin-top: 3px; text-align: right; }
.es-msg__author { display: block; font-size: 12px; font-weight: 700; color: var(--es-primary-dark); margin-bottom: 2px; }
.es-msg__img { max-width: 100%; max-height: 320px; border-radius: 10px; display: block; margin-bottom: 4px; }
.es-msg--sys { align-self: center; background: #e0f2fe; color: #075985; font-size: 13px; text-align: center; max-width: 92%; border-radius: 10px; }
.es-msg--admin { align-self: center; background: #fef9c3; border: 1px solid #fde047; max-width: 92%; border-radius: 10px; }
.es-msg--card { background: transparent; box-shadow: none; padding: 0; max-width: 92%; width: 380px; }
.es-svc { background: var(--es-card); border: 1px solid var(--es-line); border-radius: 14px; padding: 14px; }
.es-svc__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.es-svc__desc { margin: 0 0 10px; }
.es-svc__dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.es-svc__dl dt { color: var(--es-muted); }
.es-svc__dl dd { margin: 0; text-align: right; }
.es-svc__motivo { font-size: 13px; color: var(--es-muted); margin: 8px 0 0; }
.es-svc__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.es-svc__acts .es-btn { flex: 1 1 auto; }
.es-composer { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; background: var(--es-card); border-top: 1px solid var(--es-line); }
.es-composer textarea { resize: none; max-height: 140px; border-radius: 20px; padding: 10px 14px; }
.es-thread__tools { padding: 0 10px 10px; background: var(--es-card); }

/* ── Supervisión ── */
.es-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }
.es-tab { border: 1px solid var(--es-line); background: var(--es-card); border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.es-tab.is-active { background: var(--es-primary); color: #fff; border-color: var(--es-primary); }
.es-tab span { opacity: .75; margin-left: 2px; }
.es-search { margin-bottom: 12px; }
.es-sup { display: flex; flex-direction: column; gap: 12px; }
.es-view--supervision:has(.es-sup) { padding: 0; }
.es-sup__side { background: var(--es-card); padding: 14px; max-height: 60vh; overflow: auto; }
.es-sup__side h3 { margin: 0 0 10px; font-size: 16px; }
.es-ev { font-size: 13.5px; padding: 10px; border-radius: 10px; background: #f9fafb; margin-bottom: 8px; }
.es-ev--red { background: #fef2f2; }
.es-ev blockquote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid #fca5a5; background: #fff; font-style: italic; }
.es-ev time { display: block; font-size: 11px; color: var(--es-muted); }

/* ── Modal ── */
.es-modal { position: fixed; inset: 0; background: rgba(17,24,39,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 999999; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #111827; }
.es-modal__box { background: #fff; width: 100%; max-width: 480px; border-radius: 18px 18px 0 0; padding: 22px 18px 18px; position: relative; max-height: 92vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; animation: es-up .2s ease-out; }
.es-modal__title { margin: 0; font-size: 19px; padding-right: 28px; }
.es-modal__body { display: flex; flex-direction: column; gap: 12px; }
.es-modal__body p { margin: 0; }
.es-modal__x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; cursor: pointer; color: #6b7280; }
.es-modal__err { color: #dc2626; font-weight: 600; font-size: 14px; }
.es-modal__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.es-modal__actions .es-btn { flex: 1 1 auto; }
.es-modal .es-muted { color: #6b7280; font-size: .9em; }
.es-modal { font-size: 15px; line-height: 1.45; }
.es-modal p, .es-modal label { font-size: inherit; }
.es-modal .es-muted { font-size: 13.5px; }
.es-row { display: flex; gap: 10px; }
.es-row > * { flex: 1; }
.es-calc { background: #F2F8FF; color: #0052CC; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.es-noscroll { overflow: hidden; }
@keyframes es-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Toasts ── */
.es-toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1000000; display: flex; flex-direction: column; gap: 8px; align-items: center; font-family: system-ui, sans-serif; }
.es-toast { background: #111827; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: opacity .4s; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.es-toast--ok { background: #047857; }
.es-toast--error { background: #b91c1c; }
.es-toast.is-out { opacity: 0; }

/* ── Fase 3: registro, cuenta, gestión ── */
.es-head p { margin: -6px 0 14px; }
.es-alerta { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14.5px; }
.es-alerta--red { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.es-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 18px; }
.es-kpi { background: var(--es-card); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--es-line); }
.es-kpi span { font-size: 13px; color: var(--es-muted); }
.es-kpi strong { font-size: 22px; }
.es-kpi--warn strong { color: #b45309; }
.es-kpi--ok strong { color: #047857; }
.es-sec { margin-top: 22px; }
.es-sec h2, .es-card h2, .es-card h3 { font-size: 17px; margin: 0 0 12px; }
.es-tabla { overflow-x: auto; background: var(--es-card); border-radius: 12px; border: 1px solid var(--es-line); }
.es-tabla table { width: 100%; border-collapse: collapse; font-size: 14px; }
.es-tabla th, .es-tabla td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--es-line); vertical-align: top; }
.es-tabla th { font-size: 12.5px; color: var(--es-muted); font-weight: 700; background: #f9fafb; }
.es-pago-box { margin-bottom: 4px; }
.es-datos-pago { white-space: pre-wrap; background: #f3f4f6; padding: 12px; border-radius: 10px; font-family: inherit; font-size: 14.5px; margin: 0 0 10px; }
.es-reg { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.es-reg h2 { display: flex; align-items: center; gap: 8px; }
.es-reg h2 span { width: 26px; height: 26px; border-radius: 50%; background: var(--es-primary); color: #fff; display: grid; place-items: center; font-size: 14px; }
.es-priv { font-size: 12px; background: #f3f4f6; color: var(--es-muted); padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.es-reg__err { color: var(--es-red); font-weight: 700; background: #fef2f2; padding: 10px 12px; border-radius: 10px; }
.es-btn--lg { padding: 15px; font-size: 16px; }
.es-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; }
.es-check input { width: 18px !important; height: 18px; margin-top: 2px; flex: none; }
.es-foto-up { display: flex; gap: 14px; align-items: center; }
.es-foto-up__prev { width: 96px; height: 96px; border-radius: 16px; background: #F2F8FF; display: grid; place-items: center; font-size: 30px; overflow: hidden; flex: none; }
.es-foto-up__prev img { width: 100%; height: 100%; object-fit: cover; }
.es-file { display: inline-block; cursor: pointer; margin-top: 6px; }
.es-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.es-doc { border: 2px dashed #d1d5db; border-radius: 12px; padding: 14px; cursor: pointer; display: flex !important; flex-direction: column; gap: 4px !important; text-align: center; align-items: center; }
.es-doc.is-ok { border-style: solid; border-color: #6ee7b7; background: #ecfdf5; }
.es-doc__ico { font-size: 26px; }
.es-doc small { color: var(--es-muted); font-weight: 500; }
.es-estado-reg { max-width: 560px; margin: 20px auto; text-align: center; }
.es-estado-reg__ico { font-size: 44px; }
.es-estado-reg h1 { font-size: 22px; margin: 6px 0 10px; }
.es-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; margin-top: 8px; }
.es-estado-reg .es-acts { justify-content: center; }
.es-acts a.es-btn { text-decoration: none; }
.es-badge--v-pendiente { background: #fef3c7; color: #92400e; }
.es-badge--v-correccion { background: #e0e7ff; color: #3730a3; }
.es-badge--v-aprobada { background: #dcfce7; color: #166534; }
.es-badge--v-rechazada { background: #fee2e2; color: #991b1b; }
.es-badge--pago-pendiente { background: #fef3c7; color: #92400e; }
.es-badge--pago-aprobado { background: #dcfce7; color: #166534; }
.es-badge--pago-rechazado { background: #fee2e2; color: #991b1b; }
.es-item--static:hover { border-color: transparent; }
.es-item__side--row { flex-direction: row; }
.es-verif { display: grid; gap: 12px; margin-top: 10px; }
.es-verif__head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.es-verif__head img { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; }
.es-verif__head h1 { font-size: 21px; margin: 0; }
.es-verif__head p { margin: 2px 0 6px; color: var(--es-muted); }
.es-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 14.5px; }
.es-dl dt { color: var(--es-muted); }
.es-dl dd { margin: 0; }
.es-pre { white-space: normal; font-size: 14.5px; }
.es-docs-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.es-doc-admin { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.es-doc-admin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--es-line); }
.es-doc-pdf { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #f3f4f6; border-radius: 10px; font-weight: 700; }
.es-doc-admin small { font-size: 12.5px; color: var(--es-muted); }
.es-form h3 { margin-bottom: 4px; }
.es-form a { color: var(--es-primary); }

@media (min-width: 768px) {
	.es-view { padding: 22px; }
	.es-verif { grid-template-columns: 1.1fr 1fr; }
	.es-verif > section:first-child { grid-row: span 2; }
	.es-modal { align-items: center; }
	.es-modal__box { border-radius: 18px; padding: 26px; }
	.es-sup { flex-direction: row; align-items: stretch; }
	.es-sup__chat { flex: 1.6; min-width: 0; }
	.es-sup__side { flex: 1; max-height: none; height: min(78vh, 760px); }
}

/* ── Blindaje contra estilos de botón del tema (Astra, Twenty*, Elementor) ── */
.es-app button, .es-modal button {
	font-family: inherit !important; text-transform: none !important; letter-spacing: normal !important;
	box-shadow: none !important; text-shadow: none !important; min-height: 0 !important; line-height: 1.3 !important; text-decoration: none !important;
}
.es-app .es-btn, .es-modal .es-btn { border: 0 !important; border-radius: 10px !important; padding: 11px 16px !important; font-size: 15px !important; font-weight: 700 !important; }
.es-app .es-btn--sm, .es-modal .es-btn--sm { padding: 8px 12px !important; font-size: 13.5px !important; }
.es-app .es-btn--lg { padding: 15px !important; font-size: 16px !important; }
.es-app .es-btn--primary, .es-modal .es-btn--primary { background: var(--es-primary) !important; color: #fff !important; }
.es-app .es-btn--ghost, .es-modal .es-btn--ghost { background: #f3f4f6 !important; color: var(--es-text) !important; }
.es-app .es-btn--danger, .es-modal .es-btn--danger { background: var(--es-red) !important; color: #fff !important; }
.es-app .es-btn--danger-ghost, .es-modal .es-btn--danger-ghost { background: #fef2f2 !important; color: var(--es-red) !important; }
.es-app .es-btn--accent { background: #fff7ed !important; color: #9a3412 !important; border: 1px dashed #fdba74 !important; }
.es-app .es-link, .es-modal .es-link { background: none !important; border: 0 !important; color: var(--es-primary) !important; padding: 6px 0 !important; font-size: inherit !important; font-weight: 600 !important; }
.es-app .es-icon-btn { background: none !important; border: 0 !important; padding: 6px !important; font-size: 22px !important; color: inherit !important; }
.es-app .es-tab { background: var(--es-card) !important; color: var(--es-text) !important; border: 1px solid var(--es-line) !important; border-radius: 999px !important; padding: 7px 13px !important; font-size: 13.5px !important; font-weight: 600 !important; }
.es-app .es-tab.is-active { background: var(--es-primary) !important; color: #fff !important; border-color: var(--es-primary) !important; }
.es-modal .es-modal__x { background: none !important; border: 0 !important; color: #6b7280 !important; font-size: 26px !important; padding: 0 6px !important; }
.es-app a.es-btn { display: inline-block; text-decoration: none !important; }
.es-app label.es-btn { display: inline-block !important; }

/* ── Fase 4: reseñas y galería ── */
.es-st { letter-spacing: 1px; font-size: 15px; white-space: nowrap; }
.es-st__on { color: #f59e0b; }
.es-st__off { color: #d1d5db; }
.es-svc__resena { margin-top: 12px; padding: 10px 12px; background: #fffbeb; border-radius: 10px; font-size: 14px; }
.es-svc__resena p { margin: 6px 0 0; }
.es-app .es-btn--star { background: #fef3c7 !important; color: #92400e !important; flex: 1 1 100%; }
.es-rate { display: flex; gap: 6px; justify-content: center; }
.es-modal .es-rate__s { background: none !important; border: 0 !important; font-size: 40px !important; color: #d1d5db !important; cursor: pointer; padding: 0 2px !important; line-height: 1 !important; transition: transform .1s; }
.es-modal .es-rate__s.is-on { color: #f59e0b !important; }
.es-modal .es-rate__s:hover { transform: scale(1.15); }
.es-rate__lbl { text-align: center; font-weight: 700; }
.es-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.es-gal__it { margin: 0; background: #f9fafb; border-radius: 10px; overflow: hidden; border: 1px solid var(--es-line); }
.es-gal__it img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.es-gal__bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 8px; font-size: 12.5px; }
.es-app .es-link--red { color: var(--es-red) !important; }
.es-res { margin-bottom: 10px; }
.es-res.is-oculta { opacity: .6; }
.es-res__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.es-res__top time { margin-left: auto; font-size: 12px; color: var(--es-muted); }
.es-res p { margin: 8px 0; }
.es-res__resp { background: #f9fafb; border-left: 3px solid var(--es-primary); padding: 8px 10px; border-radius: 8px; font-size: 14px; margin: 8px 0; }
.es-res-prom { display: flex; align-items: center; gap: 8px; }

/* ── Fase 5: WhatsApp ── */
.es-wa-banner { display: flex; gap: 12px; align-items: center; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; text-decoration: none; font-size: 14px; }
.es-wa-banner > span:first-child { font-size: 26px; }
.es-wa-banner > span:last-child { margin-left: auto; font-size: 22px; }
.es-wa-form { max-width: 460px; }
.es-wa-ok { max-width: 520px; }
.es-wa-ok__ico { font-size: 36px; }
.es-wa-ok ul { margin: 6px 0 12px; padding-left: 20px; }

/* ── Marca (v0.6) ── */
.es-top__brand { font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif; color: #0F2A6B !important; }
.es-app h1, .es-app h2, .es-modal__title { font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif; color: #0F2A6B; letter-spacing: -0.01em; }
body.es-tema .es-app { border: 1px solid #E2EAF4; }
/* [hidden] siempre gana (los formularios por pasos usan display:flex) */
.es-app [hidden], .es-modal [hidden] { display: none !important; }
/* Dentro de la página completa de la marca, el nombre ya está en el encabezado */
body.es-tema .es-top__brand { display: none; }

/* ── Validación por campo ── */
.es-app .is-bad input, .es-app .is-bad select, .es-app .is-bad textarea, .es-app input.is-bad { border-color: #F04438 !important; background: #FFFBFA !important; }
.es-app .is-bad input:focus, .es-app .is-bad select:focus, .es-app .is-bad textarea:focus { outline-color: #FECDCA !important; }
.es-field-err { display: block; color: #B42318; font-size: 13px; font-weight: 600; margin-top: 2px; line-height: 1.35; }
.es-field-err::before { content: "⚠ "; }
.es-check.is-bad { background: #FEF3F2; border-radius: 10px; padding: 8px 10px; }
.es-check .es-field-err { flex-basis: 100%; }
.es-doc.is-bad { border-color: #F04438 !important; background: #FFFBFA; }
.es-foto-up.is-bad .es-foto-up__prev { outline: 2px solid #F04438; }
.es-req { color: #F04438; font-weight: 700; }
.es-resumen-err { background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14px; margin: 0 0 14px; }
.es-nuevo__acts { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.es-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #EEF5FF; color: #0067FF; margin-left: 6px; vertical-align: middle; }
.es-tag--cliente { background: #EFF8E8; color: #4E9A1F; }
.es-check.is-bad { flex-wrap: wrap; }
.es-lbl { display: block; }
.es-lbl small { font-weight: 400; color: var(--es-muted, #6b7280); }
b.es-req { color: #F04438; font-weight: 700; background: none !important; }

/* ── Admin: Proveedores ── */
.es-buscar-admin { display: flex; gap: 8px; margin: 0 0 12px; }
.es-buscar-admin input { flex: 1; }
.es-item--prov { align-items: flex-start; flex-wrap: wrap; }
.es-item--prov.is-off { background: #F8FAFC; }
.es-item--prov.is-off .es-avatar { filter: grayscale(1); opacity: .6; }
.es-item__acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.es-item__baja { display: block; font-size: 13px; color: #B42318; margin-top: 4px; }
.es-btn--sm { padding: 7px 12px !important; font-size: 13px !important; min-height: 0 !important; }
.es-badge--p-activo { background: #EFF8E8; color: #3F7F18; }
.es-badge--p-pausado { background: #FFF6E5; color: #B45309; }
.es-badge--p-inactivo { background: #F1F5F9; color: #475569; }
.es-badge--ok { background: #EEF5FF; color: #0067FF; }
.es-badge--star { background: #FFF8DB; color: #946200; }
.es-pag-app { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 16px 0; font-size: 14px; }
@media (max-width: 720px) { .es-item__acts { margin-left: 0; width: 100%; padding-left: 52px; } }
