/* ELYAN · Web Comercial V3 · D01 / B05 — Mesa de Dirección E1.
   Precision motion: line tracing, active case glow, staged information, four linked steps.
   Not a SaaS interface; zero remote actions; reduced-motion compatible. Official HOLD. */

.mesa.mesa-command-stage{
  padding:clamp(68px,7vw,110px) max(22px,5vw) 60px;
  color:#f7f0eb;
  background:
    radial-gradient(ellipse at 18% 8%,#65425a 0%,transparent 48%),
    radial-gradient(ellipse at 80% 90%,#32213c 0%,transparent 53%),
    linear-gradient(145deg,#3c2339 0%,#3e2440 44%,#231c30 100%);
  isolation:isolate;
}
.mesa-command-stage .mesa-heading{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);
  gap:clamp(24px,6vw,100px);
  align-items:end;
  margin-bottom:39px;
}
.mesa-command-stage .mesa-experience-eyebrow{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:13px;
  margin-bottom:29px;
  color:#e6c3a4;
  font-size:11px;
  font-weight:700;
  letter-spacing:.135em;
}
.mesa-command-stage .mesa-heading-rule{
  width:42px;
  height:2px;
  background:#e7b58c;
}
.mesa-command-stage .mesa-experience-eyebrow span:last-child{
  color:#ded0d8;
  font-size:9px;
}
.mesa-command-stage .mesa-heading h2{
  font:400 clamp(46px,4.7vw,78px)/1.01 'DM Serif Display',Georgia,serif;
  letter-spacing:-.025em;
  max-width:850px;
  text-transform:none;
  text-wrap:balance;
  margin:0;
}
.mesa-command-stage .mesa-heading h2 em{
  display:block;
  margin-top:11px;
  font:italic 400 .84em/1.08 'DM Serif Display',Georgia,serif;
  color:#dab18e;
}
.mesa-command-stage .mesa-heading>p{
  color:#ebe0e6;
  line-height:1.75;
  font-size:14px;
  max-width:480px;
}
.mesa-command-stage .mesa-heading>p strong{
  color:#f2d0ad;
  font-weight:600;
}
.mesa-command-stage .mesa-context{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  border-top:1px solid #caa08d7d;
  padding:17px 2px 16px;
  font-size:10px;
  letter-spacing:.14em;
  color:#f4d6ba;
  font-weight:700;
}
.mesa-command-stage .mesa-context>span:first-child{
  display:flex;
  align-items:center;
  gap:11px;
}
.mesa-command-stage .mesa-context-dot{
  border:1px solid #f0c4a2;
  box-shadow:0 0 0 4px #f2bd8833;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#e2aa80;
  flex:0 0 auto;
}
.mesa-command-stage .mesa-context-copy{
  font-size:9px;
  color:#d6c2cb;
  letter-spacing:.1em;
}
.mesa-command-stage .mesa-command-frame{
  display:grid;
  grid-template-columns:minmax(270px,.77fr) minmax(0,1.23fr);
  margin-top:0;
  border:1px solid #d9a97e;
  background:#322335;
  min-height:0;
  box-shadow:0 25px 70px #1b101f88,0 0 0 1px #e0b78c40;
  overflow:hidden;
}
.mesa-command-stage .mesa-sidebar{
  display:flex;
  flex-direction:column;
  border-right:1px solid #d6a47f;
  background:linear-gradient(170deg,#422c46,#322338 58%,#2b2232);
  min-width:0;
}
.mesa-command-stage .mesa-sidebar button{
  display:grid;
  grid-template-columns:31px 48px minmax(0,1fr) 19px;
  align-items:center;
  gap:12px;
  padding:20px clamp(13px,1.8vw,26px);
  height:auto;
  min-height:108px;
  color:#e1b895;
  background:transparent;
  border:0;
  border-bottom:1px solid #9b777e81;
  cursor:pointer;
  font:inherit;
  text-align:left;
  transition:background .20s ease,color .20s ease,box-shadow .20s ease;
  position:relative;
  overflow:hidden;
}
.mesa-command-stage .mesa-sidebar button::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:#efc09d;
  transform:scaleY(0);
  transform-origin:center;
  transition:transform .22s ease;
}
.mesa-command-stage .mesa-sidebar button[aria-selected="true"]{
  background:linear-gradient(90deg,#86566fba,#714d678c);
  box-shadow:inset 0 0 0 1px #d6a879,0 2px 18px #efb58038;
  color:#ffd6b1;
}
.mesa-command-stage .mesa-sidebar button[aria-selected="true"]::before{
  transform:scaleY(1);
}
.mesa-command-stage .mesa-sidebar button[aria-selected="true"] .mesa-tab-arrow{
  transform:translate(3px,-2px);
  color:#f1c595;
}
.mesa-command-stage .mesa-sidebar button:hover,
.mesa-command-stage .mesa-sidebar button:focus-visible{
  background:#7e54679e;
  outline:2px solid #f2c59f;
  outline-offset:-3px;
}
.mesa-command-stage .mesa-tab-index{
  color:#d4a981;
  font:italic 25px/1 Georgia,serif;
  letter-spacing:-.04em;
}
.mesa-command-stage .mesa-tab-icon{
  width:44px;
  height:44px;
  border:1px solid #b98d8d83;
  background:#50384a7d;
  display:flex;
  align-items:center;
  justify-content:center;
}
.mesa-command-stage .mesa-tab-icon svg{
  width:31px;height:31px;
  color:#deb98e;
}
.mesa-command-stage .mesa-tab-label{
  font-size:clamp(13px,1.1vw,17px);
  line-height:1.25;
  color:#fff4ea;
  font-weight:600;
  letter-spacing:-.01em;
}
.mesa-command-stage .mesa-tab-arrow{
  font-size:19px;
  transition:transform .2s ease,color .2s ease;
}
.mesa-command-stage .mesa-sidebar-foot{
  padding:18px clamp(16px,2vw,28px) 21px;
  margin-top:auto;
  color:#cdb7c2;
  font:italic 14px/1.5 Georgia,serif;
}
.mesa-command-stage .mesa-command-panel{
  position:relative;
  overflow:hidden;
  padding:clamp(28px,3.25vw,54px);
  background:
   radial-gradient(ellipse at 80% 15%,#6e445b73 0%,transparent 50%),
   linear-gradient(145deg,#462b42 0%,#372439 60%,#312438 100%);
}
.mesa-command-stage .mesa-panel-rule{
  position:absolute;
  top:0;left:0;right:0;
  height:3px;
  transform-origin:left;
  transform:scaleX(.0);
  background:linear-gradient(90deg,#b17b5a,#f4c69c,#bf866a);
  box-shadow:0 0 15px #f0b583bd;
}
.mesa-command-stage .mesa-panel-rule.mesa-scanned{
  animation:mesaDraw 670ms cubic-bezier(.13,.84,.26,1) forwards;
}
.mesa-command-stage .mesa-panel-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  color:#e1bd9f;
  font-size:10px;
  letter-spacing:.16em;
  font-weight:700;
}
.mesa-command-stage #mesa-counter{
  border:1px solid #c99a78;
  color:#efc7a1;
  font:italic 20px Georgia,serif;
  letter-spacing:0;
  padding:6px 12px;
}
.mesa-command-stage .mesa-command-panel>h3{
  font:400 clamp(30px,3.1vw,49px)/1.12 'DM Serif Display',Georgia,serif;
  letter-spacing:-.024em;
  margin:27px 0 30px;
  max-width:790px;
  color:#fffaf4;
  text-wrap:balance;
}
.mesa-command-stage .mesa-story{
  display:grid;
  grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding-bottom:24px;
  border-bottom:1px solid #bf9c91a0;
}
.mesa-command-stage .mesa-story-block{
  background:linear-gradient(140deg,#60415a5e,#3d303d3b);
  border-left:2px solid #ba967f;
  padding:17px 17px 18px;
  min-width:0;
  min-height:148px;
}
.mesa-command-stage .mesa-story-label{
  display:block;
  color:#e8bd96;
  letter-spacing:.13em;
  font-size:9px;
  font-weight:700;
  margin-bottom:12px;
}
.mesa-command-stage .mesa-story-block p{
  font-size:clamp(11px,1vw,13px);
  line-height:1.7;
  color:#f0e9e5;
  max-width:none;
}
.mesa-command-stage .mesa-story-arrow{
  color:#e7b792;
  text-align:center;
  padding-top:52px;
  font-size:26px;
}
.mesa-command-stage .mesa-panel-sub{
  margin:0;
  padding:17px;
  border-top:0;
  border-bottom:0;
}
.mesa-command-stage .mesa-route-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:25px 2px 15px;
  gap:15px;
  font-size:10px;
  font-weight:700;
  color:#e8c09e;
  letter-spacing:.15em;
}
.mesa-command-stage .mesa-route-status{
  color:#dac5c5;
  font-size:9px;
  letter-spacing:.1em;
}
.mesa-command-stage .mesa-flow{
  position:relative;
  overflow:hidden;
  padding:12px 2px 4px;
}
.mesa-command-stage .mesa-flow-track{
  position:absolute;
  top:47px;left:12%;right:12%;
  height:2px;
  background:#876f70;
  pointer-events:none;
}
.mesa-command-stage .mesa-flow-track span{
  width:100%;height:100%;display:block;
  background:linear-gradient(90deg,#c59373,#f2ceaa,#c68a68);
  box-shadow:0 0 15px #efb783;
  transform-origin:left;
  transform:scaleX(0);
}
.mesa-command-stage .mesa-command-panel.mesa-shift .mesa-flow-track span{
  animation:mesaDraw 780ms 100ms cubic-bezier(.15,.75,.33,1) forwards;
}
.mesa-command-stage .mesa-steps{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  list-style:none;
  padding:0;
  margin:0;
  position:relative;
  z-index:1;
}
.mesa-command-stage .mesa-steps li{
  background:transparent;
  border:none;
  position:relative;
  min-height:105px;
  padding:13px 6px 8px;
  text-align:center;
  font-size:clamp(10px,.86vw,12px);
  font-weight:600;
  line-height:1.35;
  color:#f1e4dd;
}
.mesa-command-stage .mesa-steps li:before{
  content:counter(mesa,decimal-leading-zero);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 15px;
  width:52px;
  height:52px;
  border:1px solid #eac099;
  border-radius:50%;
  background:#50384b;
  box-shadow:0 0 0 4px #4c3447;
  color:#efc49d;
  font:600 24px/1 'Barlow Condensed',Arial,sans-serif;
  position:relative;
  z-index:1;
}
.mesa-command-stage .mesa-command-panel.mesa-shift .mesa-steps li:before{
  animation:mesaPoint 470ms cubic-bezier(.18,.8,.2,1) both;
}
.mesa-command-stage .mesa-command-panel.mesa-shift .mesa-steps li:nth-child(2):before{animation-delay:140ms}
.mesa-command-stage .mesa-command-panel.mesa-shift .mesa-steps li:nth-child(3):before{animation-delay:280ms}
.mesa-command-stage .mesa-command-panel.mesa-shift .mesa-steps li:nth-child(4):before{animation-delay:420ms}
.mesa-command-stage .mesa-outcome{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border:1px solid #bb9377;
  border-left:3px solid #e6b483;
  background:linear-gradient(125deg,#73534e55,#3d2c42c0);
  margin-top:18px;
  padding:20px 22px;
}
.mesa-command-stage .mesa-outcome-kicker{
  display:block;
  color:#edc09f;
  letter-spacing:.13em;
  font-size:9px;
  font-weight:700;
}
.mesa-command-stage .mesa-outcome p{
  margin-top:9px;
  color:#faf1eb;
  font:italic 17px/1.45 'DM Serif Display',Georgia,serif;
}
.mesa-command-stage .mesa-outcome-mark{
  flex-shrink:0;
  font-size:30px;
  color:#e7be99;
}
.mesa-command-stage .mesa-action-row{
  display:flex;
  gap:22px;
  align-items:center;
  margin-top:23px;
  flex-wrap:wrap;
}
.mesa-command-stage .mesa-action-row>.btn-outline{
  margin-top:0;
  text-decoration:none;
  color:#fff3e3;
  background:#976e5c61;
  border:1px solid #e8b68c;
  display:inline-flex;
  justify-content:space-between;
  align-items:center;
  min-height:47px;
  gap:22px;
  font-weight:700;
  transition:background .15s ease,transform .15s ease;
}
.mesa-command-stage .mesa-action-row>.btn-outline:hover,
.mesa-command-stage .mesa-action-row>.btn-outline:focus-visible{
  background:#ad795e;
  transform:translateY(-2px);
}
.mesa-command-stage .mesa-action-row>p{
  color:#d7c3d0;
  max-width:255px;
  font-size:10px;
  line-height:1.45;
}
.mesa-command-stage .mesa-disclaimer{
  color:#d6c6c7;
  font-size:11px;
  margin-top:23px;
  border-left:2px solid #d6a580;
  padding-left:15px;
  line-height:1.75;
}
.mesa-command-stage .mesa-noscript{
  margin-top:22px;
  background:#2b2233;
  color:#f2ebdf;
  padding:20px;
}
.mesa-command-stage .mesa-noscript summary{padding:10px;cursor:pointer}
.mesa-command-stage .mesa-noscript p{padding:7px 10px 17px;font-size:13px}
/* Motion perceptible but restrained; only on user selection or first intersection. */
.mesa-command-stage .mesa-command-panel.mesa-shift>h3,
.mesa-command-stage .mesa-command-panel.mesa-shift .mesa-story,
.mesa-command-stage .mesa-command-panel.mesa-shift .mesa-outcome{
  animation:mesaReveal 370ms cubic-bezier(.18,.7,.28,1) both;
}
.mesa-command-stage .mesa-command-panel.mesa-shift .mesa-story{animation-delay:65ms}
.mesa-command-stage .mesa-command-panel.mesa-shift .mesa-outcome{animation-delay:150ms}
@keyframes mesaDraw{0%{transform:scaleX(0)}100%{transform:scaleX(1)}}
@keyframes mesaPoint{
  0%{background:#50384b;box-shadow:0 0 0 4px #4c3447;transform:scale(.88)}
  45%{background:#cf9a73;box-shadow:0 0 0 7px #ddb18848;transform:scale(1.12)}
  100%{background:#50384b;box-shadow:0 0 0 4px #4c3447;transform:scale(1)}
}
@keyframes mesaReveal{0%{opacity:.62;transform:translateY(13px)}100%{opacity:1;transform:translateY(0)}}
@media(max-width:1200px){
 .mesa-command-stage .mesa-command-frame{grid-template-columns:minmax(240px,.72fr) minmax(0,1.28fr)}
 .mesa-command-stage .mesa-sidebar button{grid-template-columns:24px 37px minmax(0,1fr) 14px;gap:9px;padding:18px 14px;min-height:95px}
 .mesa-command-stage .mesa-tab-icon{width:36px;height:36px}
 .mesa-command-stage .mesa-tab-icon svg{width:27px;height:27px}
 .mesa-command-stage .mesa-command-panel{padding:29px}
 .mesa-command-stage .mesa-story{grid-template-columns:1fr;gap:10px}
 .mesa-command-stage .mesa-story-arrow{display:none}
 .mesa-command-stage .mesa-story-block{min-height:0}
 .mesa-command-stage .mesa-command-panel>h3{font-size:clamp(32px,3.2vw,43px)}
}
@media(max-width:820px){
 .mesa-command-stage .mesa-heading{grid-template-columns:1fr;gap:18px}
 .mesa-command-stage .mesa-heading h2{font-size:clamp(47px,7vw,63px)}
 .mesa-command-stage .mesa-heading>p{max-width:700px}
 .mesa-command-stage .mesa-command-frame{grid-template-columns:1fr}
 .mesa-command-stage .mesa-sidebar{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-right:0;
  border-bottom:1px solid #d4a585;
 }
 .mesa-command-stage .mesa-sidebar button{
  grid-template-columns:24px 36px minmax(0,1fr);
  min-height:78px;
  padding:15px 14px;
 }
 .mesa-command-stage .mesa-tab-arrow{display:none}
 .mesa-command-stage .mesa-sidebar-foot{grid-column:1/-1;padding:9px 16px 14px;font-size:12px}
 .mesa-command-stage .mesa-command-panel{padding:35px}
 .mesa-command-stage .mesa-story{grid-template-columns:1fr 30px 1fr;gap:10px}
 .mesa-command-stage .mesa-story-arrow{display:block}
}
@media(max-width:520px){
 .mesa.mesa-command-stage{padding:58px 19px 42px}
 .mesa-command-stage .mesa-experience-eyebrow{font-size:9px;gap:9px}
 .mesa-command-stage .mesa-experience-eyebrow span:last-child{font-size:8px;letter-spacing:.05em}
 .mesa-command-stage .mesa-heading h2{font-size:clamp(42px,10.4vw,58px)}
 .mesa-command-stage .mesa-heading>p{font-size:12px}
 .mesa-command-stage .mesa-context{gap:14px;align-items:start;flex-direction:column;font-size:9px}
 .mesa-command-stage .mesa-context-copy{font-size:8px}
 .mesa-command-stage .mesa-command-frame{margin-top:0}
 .mesa-command-stage .mesa-sidebar button{
   grid-template-columns:22px 26px minmax(0,1fr);
   padding:15px 9px;
   gap:7px;
   min-height:83px;
 }
 .mesa-command-stage .mesa-tab-index{font-size:21px}
 .mesa-command-stage .mesa-tab-icon{width:27px;height:27px}
 .mesa-command-stage .mesa-tab-icon svg{width:22px;height:22px}
 .mesa-command-stage .mesa-tab-label{font-size:12px;line-height:1.26}
 .mesa-command-stage .mesa-sidebar-foot{font-size:11px;padding:13px}
 .mesa-command-stage .mesa-command-panel{padding:27px 19px 30px}
 .mesa-command-stage .mesa-panel-top{font-size:9px}
 .mesa-command-stage #mesa-counter{font-size:17px;padding:5px 8px}
 .mesa-command-stage .mesa-command-panel>h3{font-size:clamp(29px,8vw,37px);margin:23px 0}
 .mesa-command-stage .mesa-story{grid-template-columns:1fr;gap:10px}
 .mesa-command-stage .mesa-story-arrow{display:none}
 .mesa-command-stage .mesa-story-block{padding:15px}
 .mesa-command-stage .mesa-story-block p{font-size:12px}
 .mesa-command-stage .mesa-route-header{flex-direction:column;align-items:start;gap:5px;font-size:9px}
 .mesa-command-stage .mesa-route-status{font-size:8px}
 .mesa-command-stage .mesa-steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 .mesa-command-stage .mesa-steps li{font-size:9px;padding:10px 0;min-height:99px}
 .mesa-command-stage .mesa-steps li:before{width:35px;height:35px;font-size:18px;margin-bottom:13px}
 .mesa-command-stage .mesa-flow-track{top:39px;left:12%;right:12%}
 .mesa-command-stage .mesa-outcome{padding:17px 14px}
 .mesa-command-stage .mesa-outcome p{font-size:16px}
 .mesa-command-stage .mesa-outcome-mark{font-size:21px}
 .mesa-command-stage .mesa-action-row{flex-direction:column;align-items:stretch;gap:12px}
 .mesa-command-stage .mesa-action-row>p{max-width:unset}
}
@media(prefers-reduced-motion:reduce){
 .mesa-command-stage *,
 .mesa-command-stage *::before,
 .mesa-command-stage *::after{
   animation-duration:0.01ms!important;
   animation-delay:0ms!important;
   transition-duration:0.01ms!important;
 }
 .mesa-command-stage .mesa-panel-rule{transform:scaleX(1)}
 .mesa-command-stage .mesa-flow-track span{transform:scaleX(1)}
}
