:root {
  --bg: #040404;
  --line: rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.22);
  --text: #f3f3f3;
  --muted: rgba(255,255,255,0.55);
  --muted-strong: rgba(255,255,255,0.72);
  --accent: #f1c232;
  --transition-fast: 190ms ease;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; }

/* Grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Grid */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.5) 0%, transparent 68%);
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.5) 0%, transparent 68%);
}

/* Ambient */
.site-shell::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 45% at 12% 4%, rgba(241,194,50,0.05), transparent),
    radial-gradient(ellipse 60% 35% at 88% 92%, rgba(255,255,255,0.018), transparent);
}

.site-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px;
}

/* ── CARD ─────────────────────────────────────────────────────── */

.card {
  position: relative;
  min-height: calc(100vh - 56px);
  min-height: calc(100dvh - 56px);
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.022) 0%, rgba(255,255,255,0.005) 100%),
    rgba(0,0,0,0.16);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 50px 140px rgba(0,0,0,0.4);
}

/* ── PORTAL LOGIN (split) ─────────────────────────────────────── */

.split-card {
  display: grid;
  grid-template-columns: minmax(min(400px, 100%), 1fr) minmax(0, 0.9fr);
}

.left-panel {
  min-width: 0;
  position: relative;
  padding: 52px 58px 56px;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.93;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 { margin: 0; }

.lead {
  margin: 20px 0 36px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}
.lead.compact { margin: 8px 0 0; font-size: 0.95rem; }

/* ── FORMS ────────────────────────────────────────────────────── */

.stack-form { display: grid; gap: 12px; }
.compact-form { gap: 12px; }

label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.68);
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 8px;
}

.field-wrap { position: relative; }
.field-wrap::after {
  content: "";
  position: absolute; inset: 1px;
  border-radius: 999px; pointer-events: none;
  background: linear-gradient(90deg, rgba(241,194,50,0.07), transparent 28%, transparent 72%, rgba(255,255,255,0.04));
  opacity: 0; transition: opacity var(--transition-fast);
}
.field-wrap:focus-within::after { opacity: 1; }

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  min-height: 68px;
  padding: 0 24px;
  background: rgba(255,255,255,0.01);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

/* Portal login input pill */
.portal-shell input { border-radius: 999px; min-height: 78px; padding: 0 28px; }

input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.24); }
input:hover, textarea:hover, select:hover { border-color: rgba(255,255,255,0.26); }
input:focus, textarea:focus, select:focus {
  border-color: rgba(241,194,50,0.5);
  background: rgba(255,255,255,0.018);
  box-shadow: 0 0 0 3px rgba(241,194,50,0.06);
}

textarea { min-height: 110px; padding: 16px 24px; border-radius: 20px; resize: vertical; }
select { appearance: none; }

/* ── BUTTONS ──────────────────────────────────────────────────── */

.primary-button {
  position: relative; overflow: hidden;
  margin-top: 8px; min-height: 72px; width: 100%; padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.85);
  background: transparent; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.86rem; font-weight: 800; cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.primary-button span { position: relative; z-index: 2; }
.primary-button:hover { background: var(--text); color: #0a0a0a; transform: translateY(-2px); }
.primary-button:active { transform: translateY(0) scale(0.99); }
.primary-button:disabled { opacity: 0.7; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='rgba(255,255,255,0.15)' stroke-width='2.5'/%3E%3Cpath d='M12 3 A9 9 0 0 1 21 12' fill='none' stroke='%23f1c232' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") 12 12, wait; transform: none; }

.mini-button {
  min-height: 48px; border-radius: 999px; padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.mini-button:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.32); }

.accent-button { border-color: var(--accent); color: var(--accent); }
.accent-button:hover { background: rgba(241,194,50,0.08); }

/* ── STATUS / HELPER ──────────────────────────────────────────── */

.helper, .status-message {
  color: var(--muted); font-size: 0.88rem; margin: 6px 0 0; line-height: 1.5;
}
.status-message { min-height: 1.5em; }
.status-message.is-error   { color: #f0a0a0; }
.status-message.is-success { color: #b8d4a0; }

/* ── RIGHT PANEL (portal login) ───────────────────────────────── */

.right-panel {
  min-width: 0; position: relative;
  border-left: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 48px; overflow: hidden;
}

.topo-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55; pointer-events: none;
}

/* Hero stage */
.hero-stage {
  position: relative;
  width: min(420px, 100%); aspect-ratio: 0.96;
  display: grid; place-items: center; z-index: 1;
}
.hero-stage__glow {
  position: absolute; inset: 8% 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(241,194,50,0.1), transparent 58%);
  filter: blur(28px);
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}
.hero-stage__frame {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: center; padding: 28px;
  border: 1px solid rgba(255,255,255,0.09); border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.005)), rgba(255,255,255,0.008);
}
.hero-stage__top {
  position: absolute;
  top: 26px; left: 26px; right: 26px;
  display: flex; justify-content: space-between; gap: 12px;
}
.hero-stage__specs {
  position: absolute;
  bottom: 24px; left: 26px; right: 26px;
  display: flex; justify-content: space-between; gap: 12px;
}
.spec-item { display: grid; gap: 3px; }
.spec-item__label {
  color: rgba(255,255,255,0.36); font-size: 0.58rem;
  font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.spec-item strong { font-size: 0.88rem; font-weight: 700; }

.hero-logo {
  width: min(270px, 68%); display: block;
  animation: logoBreath 9s ease-in-out infinite;
  filter: drop-shadow(0 0 32px rgba(241,194,50,0.07));
}
@keyframes logoBreath {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  33%       { transform: translateY(-6px) rotate(0.2deg); }
  66%       { transform: translateY(-3px) rotate(-0.1deg); }
}

/* ── DASHBOARD ────────────────────────────────────────────────── */

.dashboard-card, .profile-card {
  padding: 36px 40px;
  min-height: calc(100vh - 56px);
  min-height: calc(100dvh - 56px);
}

.panel-header {
  display: flex; justify-content: space-between; gap: 20px;
  align-items: center;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.panel-header.simple { align-items: center; }
.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.header-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px; padding-top: 24px;
}

.info-block {
  min-width: 0;
  border: 1px solid var(--line); border-radius: 26px;
  padding: 22px; background: rgba(255,255,255,0.008);
}
.full-span { grid-column: 1 / -1; }

.block-head {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
}
.block-head.between { display: flex; justify-content: space-between; align-items: center; }

.panel-timestamp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}
.panel-ts-date {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.32);
  text-transform: capitalize;
  line-height: 1.3;
}
.panel-ts-time {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  line-height: 1.1;
}
body.bruto-beta .panel-ts-date { color: rgba(0,0,0,0.35); }
body.bruto-beta .panel-ts-time { color: rgba(0,0,0,0.6); }
.block-head h2 {
  font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 700;
}

/* Files */
.file-list, .history-list { display: grid; gap: 0; }
.file-row {
  display: flex; justify-content: space-between; gap: 14px;
  align-items: center; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.file-row:last-child { border-bottom: 0; }
.file-meta { display: grid; gap: 4px; min-width: 0; }
.file-title { font-weight: 700; font-size: 0.92rem; }
.file-sub { color: var(--muted); font-size: 0.84rem; }
.file-link {
  color: var(--text); text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 10px 14px; font-size: 0.8rem; white-space: nowrap;
  transition: background var(--transition-fast);
}
.file-link:hover { background: rgba(255,255,255,0.04); }

/* Grids */
.grid-two, .grid-three { display: grid; gap: 12px; }
.grid-two   { grid-template-columns: 1fr 1fr; }
.grid-three { grid-template-columns: repeat(3, 1fr); }

/* Drop zone */
.drop-zone {
  border: 2px dashed rgba(255,255,255,0.18); border-radius: 14px;
  padding: 20px 16px; text-align: center; cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
  background: rgba(255,255,255,0.02); user-select: none;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05);
}
.drop-zone.has-file { border-color: rgba(255,255,255,0.45); border-style: solid; background: rgba(255,255,255,0.04); }
.drop-zone.drop-error { border-color: rgba(220,80,80,0.6); background: rgba(220,80,80,0.05); color: #e07070; }
.drop-label { display: flex; flex-direction: column; gap: 4px; font-size: 0.84rem; color: rgba(255,255,255,0.45); }
.drop-label .drop-hint { font-size: 0.74rem; opacity: 0.6; }
.drop-label .drop-filename { color: rgba(255,255,255,0.9); font-weight: 600; word-break: break-all; }
.drop-label .drop-size { font-size: 0.74rem; opacity: 0.5; }

/* History */
.history-row { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.history-row:last-child { border-bottom: none; }
.history-main { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 520px) {
  .history-main { flex-direction: row; align-items: center; justify-content: space-between; }
}
.history-meta { display: grid; gap: 4px; min-width: 0; }
.history-title { font-weight: 700; font-size: 0.92rem; }
.history-sub { color: var(--muted); font-size: 0.84rem; }
.history-date { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-left: 8px; font-weight: 400; }
.history-estado { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
@media (min-width: 520px) { .history-estado { align-items: flex-end; } }

/* Estado badges */
.estado-badge {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 10px;
  border-radius: 999px; border: 1px solid currentColor;
}
.estado-recibido     { color: rgba(255,255,255,0.42); }
.estado-en-proceso   { color: #e0b04a; }
.estado-en-impresión { color: #6ab0f5; }
.estado-listo        { color: #7ee07e; }
.estado-entregado    { color: rgba(255,255,255,0.22); }

.estado-track { display: flex; gap: 4px; }
.estado-step { width: 18px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.1); transition: background 0.3s; }
.estado-step.active  { background: rgba(255,255,255,0.32); }
.estado-step.current { background: #fff; }

/* Urgente badge inline */
.badge-urgent {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 2px 7px;
  border-radius: 999px; border: 1px solid rgba(241,194,50,0.6);
  color: var(--accent); vertical-align: middle; margin-left: 6px;
}

/* ── URGENCY CHECKBOX ─────────────────────────────────────────── */

.urgency-check-label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.68);
  margin-top: 4px;
  user-select: none;
}

.urgency-check-label input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}

.urgency-check-box {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 5px;
  background: transparent;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  position: relative;
}
.urgency-check-box::after {
  content: "";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%230a0a0a' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
  transition: opacity var(--transition-fast);
}

.urgency-check-label input[type="checkbox"]:checked + .urgency-check-box {
  background: var(--accent);
  border-color: var(--accent);
}
.urgency-check-label input[type="checkbox"]:checked + .urgency-check-box::after {
  opacity: 1;
}
.urgency-check-label:hover .urgency-check-box {
  border-color: rgba(255,255,255,0.5);
}

/* ── DELIVERY OPTIONS ─────────────────────────────────────────── */

.delivery-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 2px;
}

.delivery-option {
  display: block; cursor: pointer;
  text-transform: none; letter-spacing: 0;
  font-size: 1rem; font-weight: 400;
  margin-top: 0;
  color: var(--text);
}

.delivery-option input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}

.delivery-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  min-height: 80px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.delivery-option:hover .delivery-card {
  border-color: rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.04);
}

.delivery-option input[type="radio"]:checked + .delivery-card {
  border-color: rgba(241,194,50,0.55);
  background: rgba(241,194,50,0.05);
}

.delivery-top {
  display: flex; justify-content: space-between; align-items: center;
}

.delivery-name {
  font-size: 0.82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text);
}

.delivery-check {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.delivery-option input[type="radio"]:checked + .delivery-card .delivery-check {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(241,194,50,0.12);
}

.delivery-detail {
  font-size: 0.72rem; color: var(--muted); line-height: 1.45;
  font-weight: 400;
}
.delivery-option input[type="radio"]:checked + .delivery-card .delivery-detail {
  color: rgba(241,194,50,0.7);
}

/* ── PRICE DISPLAY ────────────────────────────────────────────── */

.price-display {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 16px 20px;
  border: 1px solid rgba(241,194,50,0.25);
  border-radius: 16px;
  background: rgba(241,194,50,0.04);
  animation: priceReveal 280ms ease both;
}

@keyframes priceReveal {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.price-inner { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.price-label {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.18em; font-weight: 700;
  color: rgba(241,194,50,0.65);
}

.price-breakdown {
  font-size: 0.74rem; color: var(--muted); line-height: 1.4;
}
.price-urgent { color: rgba(241,194,50,0.7); }

.price-value {
  font-size: 1.55rem; font-weight: 800;
  letter-spacing: -0.02em; color: var(--accent);
  white-space: nowrap; flex-shrink: 0;
}

/* ── MODAL ────────────────────────────────────────────────────── */

.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.78); backdrop-filter: blur(4px);
  z-index: 1000; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
  background: #0e0e0e; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 28px; width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 18px;
}
.confirm-details { display: flex; flex-direction: column; gap: 6px; }
.confirm-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 8px;
}
.confirm-row span { color: rgba(255,255,255,0.38); text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.08em; flex-shrink: 0; }
.confirm-row strong { color: #fff; font-weight: 700; text-align: right; word-break: break-word; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Confirm price block */
.confirm-price-wrap {
  display: none;
  flex-direction: column; gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(241,194,50,0.3);
  border-radius: 12px;
  background: rgba(241,194,50,0.05);
}

.confirm-price-wrap.is-visible {
  display: flex;
}

.confirm-price-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}

.confirm-price-label {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.16em; font-weight: 700;
  color: rgba(241,194,50,0.6);
}

.confirm-price-value {
  font-size: 1.65rem; font-weight: 800;
  letter-spacing: -0.02em; color: var(--accent);
}

.confirm-price-note {
  margin: 0; font-size: 0.72rem; color: rgba(255,255,255,0.28); line-height: 1.4;
}

/* ── PROFILE ──────────────────────────────────────────────────── */

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 20px; padding-top: 24px;
}

.identity-card {
  border: 1px solid var(--line); border-radius: 26px;
  display: flex; align-items: center; gap: 24px;
  padding: 28px; background: rgba(255,255,255,0.008);
}
.logo-upload-wrap {
  position: relative; cursor: pointer; flex-shrink: 0;
  width: min(110px, 28%); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}
.logo-upload-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.profile-logo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

.logo-upload-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.58);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  opacity: 0; transition: opacity 0.2s ease;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.88);
}
.logo-upload-wrap:hover .logo-upload-overlay,
.logo-upload-wrap:focus-visible .logo-upload-overlay { opacity: 1; }

.logo-upload-msg {
  margin: 6px 0 0; font-size: 0.75rem;
  color: var(--muted); min-height: 1.2em;
}
.identity-info h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800; letter-spacing: -0.015em; margin-top: 6px;
}

.profile-data-block, .activity-block, .last-order-block {
  border: 1px solid var(--line); border-radius: 26px;
  padding: 22px 26px; background: rgba(255,255,255,0.008);
}

.block-label {
  margin: 0 0 14px; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.38); font-weight: 700;
}

.data-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.data-row:last-child { border-bottom: 0; }
.data-row span { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
.data-row strong { font-size: 0.95rem; font-weight: 700; }

.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.stat-item { display: grid; gap: 5px; }
.stat-value { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; display: block; }
.stat-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); display: block; }

.last-order-inner { display: grid; gap: 10px; }
.last-order-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-empty { color: var(--muted); font-size: 0.92rem; }

/* ── TABS (index) ─────────────────────────────────────────────── */

.tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 8px; margin-bottom: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,0.018);
  width: min(500px, 100%);
}
.tab {
  appearance: none; background: transparent;
  color: rgba(255,255,255,0.52); border: 0;
  min-height: 56px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.tab:hover { color: rgba(255,255,255,0.88); }
.tab.is-active { background: var(--text); color: #080808; }

.view { display: none; padding-top: 32px; animation: viewIn 250ms ease; }
.view.is-active { display: block; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FOOTER ───────────────────────────────────────────────────── */

.site-footer {
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  justify-content: center; align-items: center;
  padding: 28px 28px 20px; opacity: 0.45;
  font-size: 0.78rem; letter-spacing: 0.06em;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { opacity: 0.75; }

/* ── SPINNER ──────────────────────────────────────────────────── */

.btn-spinner {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
  vertical-align: middle; margin-right: 5px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SKELETON LOADERS ────────────────────────────────────────── */

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.09) 50%,
    rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

.sk-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.sk-row:last-child { border-bottom: none; }
.sk-line { height: 11px; border-radius: 4px; }
.sk-line-sm { height: 9px; border-radius: 4px; }

/* ── TOAST NOTIFICATIONS ─────────────────────────────────────── */

.toast-container {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column-reverse; gap: 10px;
  z-index: 9999; pointer-events: none;
  width: min(380px, calc(100vw - 32px));
}

.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(22,22,22,0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  font-size: 0.875rem; color: var(--text);
  pointer-events: auto;
  animation: toastIn 0.32s cubic-bezier(0.22,1,0.36,1) both;
}

.toast.is-exiting { animation: toastOut 0.22s ease forwards; }

.toast-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.toast.is-success .toast-dot { background: #7ee07e; }
.toast.is-error   .toast-dot { background: #e07070; }
.toast.is-info    .toast-dot { background: rgba(255,255,255,0.4); }

@keyframes toastIn  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-8px); } }

/* ── ENTRANCE ANIMATION ──────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up { animation: fadeUp 0.42s cubic-bezier(0.22,1,0.36,1) both; }
.anim-d1 { animation-delay: 0.04s; }
.anim-d2 { animation-delay: 0.10s; }
.anim-d3 { animation-delay: 0.17s; }
.anim-d4 { animation-delay: 0.24s; }

/* ── HISTORY PRICE ───────────────────────────────────────────── */

.history-price {
  font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* ── EMPTY STATE ─────────────────────────────────────────────── */

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 28px 16px; text-align: center;
}

.empty-state-icon {
  width: 28px; height: 28px; opacity: 0.14;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}

.empty-state-icon svg { opacity: 0.8; }
.empty-state-label { font-size: 0.82rem; color: var(--muted); }
.empty-state-hint  { font-size: 0.74rem; color: rgba(255,255,255,0.25); }

/* ── CARRUSEL DERECHO ─────────────────────────────────────────── */

.right-panel.enbruto-right-panel {
  padding: 0;
  display: block;
  align-items: unset;
  justify-content: unset;
}

.enbruto-right-panel {
  --eb-bg:      #131313;
  --eb-ink:     #f3efe6;
  --eb-muted:   rgba(243,239,230,0.72);
  --eb-faint:   rgba(243,239,230,0.35);
  --eb-line:    rgba(243,239,230,0.10);
  --eb-accent:  #c8b99a;
  --eb-focus:   #c8b99a;
  --eb-nav-h:   6.25rem;
  position: relative;
  min-height: 100%;
  overflow: hidden;
  color: #f3efe6;
  isolation: isolate;
}

.enbruto-right-bg {
  position: absolute; inset: 0;
  background-image: url("assets/LANDING.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 125%;
  opacity: 0.11;
  filter: grayscale(1) contrast(1.1);
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}

.enbruto-right-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(19,19,19,0) 40%, rgba(19,19,19,0.55) 100%),
    linear-gradient(to bottom, rgba(19,19,19,0.45) 0%, rgba(19,19,19,0.55) 40%, rgba(19,19,19,0.78) 100%);
  pointer-events: none;
  z-index: 1;
}

.enbruto-slides-wrap {
  position: relative; z-index: 2;
  min-height: 100%; min-height: inherit;
  display: flex; flex-direction: column;
}

.enbruto-progress {
  position: absolute; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--eb-accent);
  transition: width 0.6s cubic-bezier(0.22,1,0.36,1);
  z-index: 5;
}

.enbruto-topbar {
  position: absolute; top: 0; right: 0;
  display: flex; align-items: center;
  z-index: 6; user-select: none;
}

.enbruto-meta-btn {
  appearance: none; background: transparent; border: none;
  padding: 2.4rem 1rem 0.8rem;
  font-family: inherit; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--eb-faint); cursor: pointer;
  transition: color 0.2s ease;
  display: flex; align-items: flex-end; line-height: 1;
}
.enbruto-meta-btn:hover { color: var(--eb-muted); }
.enbruto-meta-btn:focus-visible { outline: 2px solid var(--eb-focus); outline-offset: -2px; }

.enbruto-topbar-sep {
  width: 1px; height: 14px;
  background: var(--eb-line);
  margin-top: 2.4rem; flex-shrink: 0;
}

.enbruto-counter {
  padding: 2.4rem 3.2rem 0.8rem 1rem;
  font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--eb-faint);
  line-height: 1; font-weight: 600;
}
.enbruto-counter span { color: var(--eb-accent); }

.enbruto-slides {
  position: absolute; inset: 0;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
  will-change: transform; touch-action: pan-y;
}

.enbruto-slide { min-width: 100%; min-height: 100%; }

.enbruto-slide-inner {
  min-height: 100%;
  padding: 5rem 3.2rem calc(var(--eb-nav-h) + 2rem);
  display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto;
}

.enbruto-slide-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem; align-items: center;
}

.enbruto-slide-honesty {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.enbruto-slide-calendar {
  gap: 2.4rem;
  justify-content: center;
}

.enbruto-clock {
  flex-shrink: 0;
}

.enbruto-clock-time {
  font-size: clamp(4.5rem, 11vw, 7.5rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--eb-text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

.enbruto-clock-date {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--eb-muted);
  text-transform: capitalize;
}

.enbruto-efemeride {
  border-top: 1px solid var(--eb-line);
  padding-top: 2rem;
}

.enbruto-efemeride-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eb-faint);
}

.enbruto-efemeride-titulo {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--eb-accent);
  line-height: 1.35;
}

.enbruto-efemeride-desc {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.75;
  color: var(--eb-muted);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.enbruto-kicker {
  margin: 0 0 1.2rem;
  font-size: 0.7rem; line-height: 1.4;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--eb-muted); font-weight: 400;
}

.enbruto-title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(2rem,4.5vw,3.6rem);
  line-height: 0.95; letter-spacing: -0.02em;
  color: var(--eb-ink); text-transform: uppercase; max-width: 12ch;
}
.enbruto-title em { font-style: normal; color: var(--eb-accent); display: inline-block; padding-top: 0.05em; }

.enbruto-body {
  margin: 1.8rem 0 0; max-width: 36rem;
  font-size: 0.98rem; line-height: 1.75; color: var(--eb-muted);
}
.enbruto-body-narrow { max-width: 32rem; }

.enbruto-tech-indicator {
  display: flex; align-items: center; gap: 0.8rem;
  opacity: 0.4; margin-top: 3rem;
}
.enbruto-tech-indicator::before {
  content: ""; width: 40px; height: 1px; background: var(--eb-accent);
}
.enbruto-tech-indicator span {
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--eb-accent);
}

.enbruto-steps {
  margin-top: 2.8rem; max-width: 40rem;
  border-top: 1px solid var(--eb-line);
}
.enbruto-step {
  display: grid; grid-template-columns: 2.5rem 1fr;
  gap: 1.2rem; padding: 1.2rem 0;
  border-bottom: 1px solid var(--eb-line); align-items: baseline;
}
.enbruto-step-n {
  color: var(--eb-accent); font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; font-feature-settings: "tnum";
}
.enbruto-step p { margin: 0; color: var(--eb-muted); font-size: 0.95rem; line-height: 1.7; }
.enbruto-step strong { font-weight: 600; color: var(--eb-ink); }

.enbruto-delivery-grid {
  margin-top: 2.8rem; max-width: 44rem;
  border-top: 1px solid var(--eb-line);
}
.enbruto-delivery-item {
  display: grid; grid-template-columns: 2rem 8rem 1fr;
  gap: 0 1.5rem; align-items: baseline;
  padding: 1.2rem 0; border-bottom: 1px solid var(--eb-line);
  position: relative; cursor: default;
}
.enbruto-delivery-item::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 0; height: 1px; background: var(--eb-accent);
  transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
}
.enbruto-delivery-item:hover::after { width: 100%; }
.enbruto-delivery-n {
  font-size: 0.7rem; letter-spacing: 0.14em; color: var(--eb-accent);
  font-weight: 600; font-feature-settings: "tnum";
}
.enbruto-delivery-item h3 {
  margin: 0; font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--eb-ink); font-weight: 600;
}
.enbruto-delivery-item p { margin: 0; color: var(--eb-muted); font-size: 0.92rem; line-height: 1.6; }

.enbruto-honesty-panel {
  padding-left: 3rem; border-left: 1px solid var(--eb-line);
}
.enbruto-honesty-list {
  list-style: none; margin: 1.8rem 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.enbruto-honesty-list li {
  position: relative; padding-left: 1.2rem;
  color: var(--eb-muted); font-size: 0.95rem; line-height: 1.7;
}
.enbruto-honesty-list li::before {
  content: "—"; position: absolute; left: 0; top: 0;
  color: var(--eb-accent); font-weight: 600;
}

.enbruto-access-actions {
  margin-top: 2.5rem; display: flex; gap: 1rem;
  flex-wrap: wrap; justify-content: center;
}
.enbruto-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.8rem 1.6rem;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent; background: transparent;
  color: inherit; font-family: inherit; border-radius: 0;
}
.enbruto-btn:hover { transform: translateY(-2px); }
.enbruto-btn:active { transform: translateY(0); }
.enbruto-btn:focus-visible { outline: 2px solid var(--eb-focus); outline-offset: 3px; }
.enbruto-btn-primary { background: var(--eb-accent); color: #111; border-color: var(--eb-accent); }
.enbruto-btn-primary:hover { box-shadow: 0 4px 12px rgba(200,185,154,0.25); }
.enbruto-btn-secondary { background: transparent; color: var(--eb-ink); border-color: var(--eb-line); }
.enbruto-btn-secondary:hover { border-color: var(--eb-accent); color: var(--eb-accent); background: rgba(200,185,154,0.05); }

.enbruto-nav {
  position: absolute; left: 3.2rem; right: 3.2rem; bottom: 0;
  height: var(--eb-nav-h);
  display: flex; align-items: center; justify-content: flex-start;
  z-index: 5; border-top: 1px solid rgba(243,239,230,0.06);
}
.enbruto-dots { display: flex; gap: 0.7rem; align-items: center; }
.enbruto-dot {
  width: 12px; height: 2px;
  background: rgba(243,239,230,0.08);
  transition: width 0.28s ease, background 0.28s ease;
  cursor: pointer; border: none; padding: 0; flex-shrink: 0;
}
.enbruto-dot.is-visited { background: rgba(243,239,230,0.22); }
.enbruto-dot:hover { background: rgba(243,239,230,0.38); }
.enbruto-dot.is-active { width: 28px; background: var(--eb-accent); }
.enbruto-dot:focus-visible { outline: 2px solid var(--eb-focus); outline-offset: 4px; }

.enbruto-shortcuts {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(15,15,15,0.97);
  border-top: 1px solid var(--eb-line);
  z-index: 15;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
  padding: 2rem 3.2rem calc(var(--eb-nav-h) + 0.5rem);
}
.enbruto-shortcuts.active { transform: translateY(0); }
.enbruto-shortcuts-head {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 1.4rem;
}
.enbruto-shortcuts-title {
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--eb-accent); font-weight: 600;
}
.enbruto-shortcuts-close {
  appearance: none; background: transparent; border: none;
  color: var(--eb-faint); font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: color 0.2s ease;
}
.enbruto-shortcuts-close:hover { color: var(--eb-muted); }
.enbruto-shortcuts-close:focus-visible { outline: 2px solid var(--eb-focus); outline-offset: 3px; }
.enbruto-shortcuts-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 0; border-top: 1px solid var(--eb-line); border-left: 1px solid var(--eb-line);
}
.enbruto-shortcut-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 1rem;
  border-right: 1px solid var(--eb-line); border-bottom: 1px solid var(--eb-line);
}
.enbruto-shortcut-key {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--eb-accent); font-weight: 600; font-feature-settings: "tnum";
  min-width: 3.5rem; flex-shrink: 0;
}
.enbruto-shortcut-desc { font-size: 0.82rem; color: var(--eb-muted); line-height: 1.3; }

/* ── ACCESSIBILITY ────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.pwd-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; padding: 4px;
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  transition: color var(--transition-fast);
}
.pwd-toggle:hover { color: var(--text); }
.pwd-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .split-card { grid-template-columns: 1fr; }
  .right-panel { border-left: 0; border-top: 1px solid var(--line); min-height: 300px; }
  .hero-stage { width: min(480px, 100%); aspect-ratio: 1.3; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .right-panel.enbruto-right-panel { height: 520px; }
  .enbruto-slide-split, .enbruto-slide-honesty { grid-template-columns: 1fr; gap: 2rem; }
  .enbruto-honesty-panel { padding-left: 0; border-left: 0; border-top: 1px solid var(--eb-line); padding-top: 1.6rem; }
  .enbruto-tech-indicator { display: none; }
  .enbruto-shortcuts-grid { grid-template-columns: 1fr; }
  .enbruto-slide-inner { padding: 4rem 2.6rem calc(var(--eb-nav-h) + 1.5rem); }
}

@media (max-width: 700px) {
  .site-shell { padding: 14px; }
  .left-panel { padding: 26px 18px 28px; }
  .dashboard-card, .profile-card { padding: 20px 16px; }
  .grid-two, .grid-three { grid-template-columns: 1fr; }
  .panel-header { flex-direction: column; gap: 14px; }
  .identity-card { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: repeat(3,1fr); }
  .stat-value { font-size: 1.5rem; }
  .delivery-options { grid-template-columns: 1fr; }
  .price-value { font-size: 1.3rem; }

  /* Carrusel mobile */
  .right-panel.enbruto-right-panel { --eb-nav-h: 4.5rem; height: 500px; }
  .enbruto-slide-inner {
    padding: 3.5rem 1.8rem calc(var(--eb-nav-h) + 1rem);
    justify-content: flex-start;
  }
  .enbruto-nav { left: 1.8rem; right: 1.8rem; }
  .enbruto-topbar { top: 0; }
  .enbruto-meta-btn { padding: 1.4rem 0.8rem 0.6rem; }
  .enbruto-topbar-sep { margin-top: 1.4rem; }
  .enbruto-counter { padding: 1.4rem 1.6rem 0.6rem 0.8rem; }
  .enbruto-title { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .enbruto-body { margin-top: 1rem; font-size: 0.9rem; line-height: 1.65; }
  .enbruto-steps { margin-top: 1.4rem; }
  .enbruto-step { padding: 0.9rem 0; gap: 1rem; }
  .enbruto-step p { font-size: 0.88rem; }
  .enbruto-delivery-grid { margin-top: 1.4rem; }
  .enbruto-delivery-item {
    grid-template-columns: 2rem 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
  }
  .enbruto-delivery-item h3 { grid-column: 2; grid-row: 1; }
  .enbruto-delivery-item p  { grid-column: 2; grid-row: 2; font-size: 0.84rem; }
  .enbruto-delivery-n       { grid-row: 1; align-self: center; }
  .enbruto-honesty-list { margin-top: 1.2rem; gap: 0.7rem; }
  .enbruto-honesty-list li { font-size: 0.88rem; }
  .enbruto-access-actions { margin-top: 1.6rem; gap: 0.75rem; }
  .enbruto-shortcuts { padding: 1.4rem 1.8rem calc(var(--eb-nav-h) + 0.5rem); }
}

@media (max-width: 480px) {
  .delivery-options { grid-template-columns: 1fr; }

  /* Carrusel iPhone */
  .right-panel.enbruto-right-panel { --eb-nav-h: 4rem; height: 480px; }
  .enbruto-slide-inner { padding: 3rem 1.4rem calc(var(--eb-nav-h) + 0.75rem); }
  .enbruto-nav { left: 1.4rem; right: 1.4rem; }
  .enbruto-title { font-size: clamp(1.4rem, 8vw, 2rem); }
  .enbruto-kicker { font-size: 0.64rem; margin-bottom: 0.8rem; }
  .enbruto-body { font-size: 0.875rem; margin-top: 0.9rem; }
  .enbruto-step p { font-size: 0.85rem; }
  .enbruto-delivery-item p { font-size: 0.82rem; }
  .enbruto-honesty-list li { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─────────────────────────────────────────────────────────────────
   EL VEEDOR — Mesa de Luz (AI scale verification)
   ───────────────────────────────────────────────────────────────── */

.veedor-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 4px;
}

.veedor-label-wrap { display: flex; align-items: center; gap: 8px; }

.veedor-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
  transition: color 0.8s ease;
}

.veedor-beta {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #555;
  border: 1px solid #3a3a3a;
  padding: 1px 5px;
  vertical-align: middle;
  transition: color 0.5s, border-color 0.5s;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 11px;
  transition: background 0.35s, border-color 0.35s;
}
.toggle-switch input:checked + .toggle-track { background: #e8e8e3; border-color: #e8e8e3; }
.toggle-thumb {
  position: absolute;
  width: 16px; height: 16px;
  top: 2px; left: 2px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}
.toggle-switch input:checked + .toggle-track .toggle-thumb {
  transform: translateX(18px);
  background: #0a0a0a;
}

/* Mesa de Luz — modo claro */
.mesa-de-luz {
  background: #F5F5F0 !important;
  transition: background 0.8s ease;
}
.mesa-de-luz h2,
.mesa-de-luz label,
.mesa-de-luz .block-head h2      { color: #1A1A1A !important; }
.mesa-de-luz .veedor-name        { color: #1A1A1A !important; }
.mesa-de-luz .veedor-beta        { color: #666 !important; border-color: #aaa !important; }
.mesa-de-luz .toggle-track       { background: rgba(0,0,0,0.08) !important; border-color: rgba(0,0,0,0.18) !important; }
.mesa-de-luz .toggle-switch input:checked + .toggle-track { background: #1A1A1A !important; border-color: #1A1A1A !important; }
.mesa-de-luz .toggle-switch input:checked + .toggle-track .toggle-thumb { background: #F5F5F0 !important; }
.mesa-de-luz .toggle-thumb       { background: rgba(0,0,0,0.22) !important; }

.mesa-de-luz input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.mesa-de-luz select,
.mesa-de-luz textarea {
  background: #fff !important;
  color: #1A1A1A !important;
  border-color: rgba(0,0,0,0.14) !important;
}
.mesa-de-luz input::placeholder,
.mesa-de-luz textarea::placeholder { color: #bbb !important; }

.mesa-de-luz .drop-zone            { background: #fff !important; border-color: rgba(0,0,0,0.14) !important; }
.mesa-de-luz .drop-label           { color: #1A1A1A !important; }
.mesa-de-luz .drop-filename        { color: #1A1A1A !important; }
.mesa-de-luz .drop-hint,
.mesa-de-luz .drop-size            { color: #999 !important; }

.mesa-de-luz .delivery-card        { background: rgba(0,0,0,0.04) !important; border-color: rgba(0,0,0,0.1) !important; }
.mesa-de-luz .delivery-name,
.mesa-de-luz .delivery-detail      { color: #1A1A1A !important; }
.mesa-de-luz .urgency-check-label  { color: #1A1A1A !important; }

.mesa-de-luz .price-display        { background: rgba(0,0,0,0.04) !important; border-color: rgba(0,0,0,0.07) !important; }
.mesa-de-luz .price-label,
.mesa-de-luz .price-value          { color: #1A1A1A !important; }
.mesa-de-luz .price-breakdown      { color: #555 !important; }

.mesa-de-luz legend                { color: #555 !important; }
.mesa-de-luz .veedor-toggle-row    { border-color: rgba(0,0,0,0.1) !important; }

/* Veedor result panel */
#veedorResult {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.5s;
}
.mesa-de-luz #veedorResult { border-color: rgba(0,0,0,0.1) !important; }

.veedor-progress {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.71rem;
  color: rgba(255,255,255,0.4);
  line-height: 2;
}
.mesa-de-luz .veedor-progress { color: #999 !important; }

.veedor-estado {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  margin-bottom: 14px;
}
.veedor-estado.ok    { background: rgba(34,197,94,0.1);  color: #22c55e; }
.veedor-estado.warn  { background: rgba(234,179,8,0.1);  color: #c9970a; }
.veedor-estado.error { background: rgba(239,68,68,0.1);  color: #ef4444; }
.mesa-de-luz .veedor-estado.warn { color: #956f00; }

.veedor-field       { margin-bottom: 12px; }
.veedor-field-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 3px;
}
.mesa-de-luz .veedor-field-label { color: #aaa !important; }
.veedor-field-value {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.76);
  line-height: 1.65;
}
.mesa-de-luz .veedor-field-value { color: #1A1A1A !important; }
.veedor-escala {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.mesa-de-luz .veedor-escala { color: #1A1A1A !important; }

.veedor-disclaimer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.63rem;
  color: rgba(255,255,255,0.22);
  line-height: 1.75;
}
.mesa-de-luz .veedor-disclaimer          { border-color: rgba(0,0,0,0.08) !important; color: #aaa !important; }
.veedor-disclaimer strong {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.34);
  margin-bottom: 5px;
}
.mesa-de-luz .veedor-disclaimer strong   { color: #777 !important; }

/* ── NAV PREFLIGHT TOGGLE ─────────────────────────────────────── */

.nav-pf-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.nav-pf-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition-fast);
}
.nav-pf-toggle:hover .nav-pf-label { color: var(--text); }
.nav-pf-track {
  position: relative;
  width: 48px; height: 26px;
  background: #0a0a0a;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  flex-shrink: 0;
  transition: background 0.28s, border-color 0.28s;
}
.nav-pf-thumb {
  position: absolute;
  width: 18px; height: 18px;
  background: rgba(255,255,255,0.88);
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform 0.28s, background 0.28s;
}
.nav-pf-toggle:hover .nav-pf-track { border-color: rgba(255,255,255,0.35); }

/* Reset button styles when toggle is a <button> */
button.nav-pf-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ON state — preflight activo dentro del panel oscuro */
.nav-pf-toggle--on .nav-pf-track {
  background: #f0f0ec;
  border-color: rgba(255,255,255,0.5);
}
.nav-pf-toggle--on .nav-pf-thumb {
  background: #0a0a0a;
  transform: translateX(22px);
}

/* ── PREFLIGHT EMBEBIDO ────────────────────────────────────────── */

.pf-embedded {
  padding: 24px 0 8px;
}

/* ── MODO BETA — inversión completa del portal ─────────────────── */

body.bruto-beta {
  --bg:           #f0f0ec;
  --line:         rgba(0,0,0,0.10);
  --line-strong:  rgba(0,0,0,0.18);
  --text:         #0a0a0a;
  --muted:        rgba(0,0,0,0.45);
  --muted-strong: rgba(0,0,0,0.70);
  background: #f0f0ec;
}

/* Grid overlay — líneas oscuras sobre fondo claro */
body.bruto-beta::before {
  background-image:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
  opacity: 0.4;
}

/* Card — blanco con borde oscuro */
body.bruto-beta .card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 2px 40px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04) inset;
  backdrop-filter: none;
}

/* Separador de header */
body.bruto-beta .panel-header {
  border-bottom-color: rgba(0,0,0,0.08);
}

/* Hover de botones en modo claro */
body.bruto-beta .mini-button:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.28);
}

/* Mi perfil (accent-button) — negro sobre blanco */
body.bruto-beta .accent-button {
  color: #0a0a0a;
  border-color: #0a0a0a;
}
body.bruto-beta .accent-button:hover {
  background: rgba(0,0,0,0.06);
}

/* nav-pf-toggle label en modo beta (texto oscuro visible) */
body.bruto-beta .nav-pf-label {
  color: var(--muted);
}
