/* Ajustes compartidos: el escritorio conserva su navegación y estilos previos. */
.yg-mobile-shell{display:none}
@media(max-width:760px){
  html{scroll-padding-top:116px}
  body.yg-responsive{margin:0;min-width:0;font-size:14px;line-height:1.5}
  body.yg-responsive .yg-desktop-header{display:none!important}
  body.yg-responsive .yg-mobile-shell{display:block;position:sticky;top:0;z-index:60;background:#fff;border-bottom:1px solid #eadfd0;box-shadow:0 3px 12px #1720330a;color:#172033;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
  .yg-mobile-shell *{box-sizing:border-box}
  .yg-mobile-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px 5px;min-height:55px}
  .yg-mobile-brand{display:flex;align-items:center;gap:8px;min-width:0;color:#182130!important;font-size:18px;font-weight:850;letter-spacing:-.05em;white-space:nowrap;text-decoration:none!important;line-height:1.15}
  .yg-mobile-brand b{color:#a94c00;font-weight:850}
  .yg-mobile-mark{width:27px;height:27px;flex:0 0 27px;border-radius:9px;background:linear-gradient(140deg,#ff8500,#ffca58)}
  .yg-mobile-menu{margin:0!important;position:relative;flex:none}
  .yg-mobile-menu summary{display:flex;align-items:center;justify-content:center;gap:5px;list-style:none;cursor:pointer;min-height:42px;padding:5px 10px;border:1px solid #eadfd0;border-radius:11px;background:#fff9f0;color:#754000;font-size:12px;font-weight:750}
  .yg-mobile-menu summary::-webkit-details-marker{display:none}
  .yg-mobile-menu summary svg{width:19px;height:19px}
  .yg-mobile-menu-links{position:absolute;right:0;top:calc(100% + 5px);width:min(245px,calc(100vw - 24px));padding:6px;border:1px solid #e9ded0;border-radius:14px;background:#fff;box-shadow:0 12px 35px #17203326;z-index:2}
  .yg-mobile-menu-links a{display:flex;align-items:center;min-height:44px;padding:10px 12px;color:#344054;font-size:14px;font-weight:650;border-radius:9px}
  .yg-mobile-menu-links a+a{border-top:1px solid #f4efe7}
  .yg-mobile-menu-links a[aria-current]{color:#945000;background:#fff1d9}
  .yg-mobile-shell .yg-mobile-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;max-width:none;margin:0;padding:0 9px 6px;align-items:stretch;justify-content:initial;flex-wrap:initial}
  .yg-mobile-tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;min-width:0;padding:5px 2px;border-radius:9px;color:#526071;font-size:11px;font-weight:700;text-decoration:none!important;line-height:1.2;white-space:nowrap}
  .yg-mobile-tabs a svg{height:20px;width:20px;flex:none}
  .yg-mobile-tabs a[aria-current]{background:#fff0d8;color:#934500}
  .yg-mobile-shell a:focus-visible,.yg-mobile-shell summary:focus-visible{outline:2px solid #a94c00;outline-offset:2px}
  body.yg-responsive main{width:100%;min-width:0;padding:12px 12px calc(88px + env(safe-area-inset-bottom,0px));margin:0 auto;max-width:100%;overflow-wrap:anywhere}
  body.yg-responsive main>*{min-width:0;max-width:100%}
  body.yg-responsive main .hero{padding:18px 15px;border-radius:18px;gap:13px}
  body.yg-responsive main .hero h1{font-size:clamp(27px,8vw,37px);line-height:1.08;letter-spacing:-.04em}
  body.yg-responsive main .hero p{font-size:14px;line-height:1.5}
  body.yg-responsive main h2{font-size:19px;line-height:1.25}
  body.yg-responsive input:not([type=checkbox]):not([type=radio]),body.yg-responsive select,body.yg-responsive textarea{max-width:100%;min-width:0;font-size:16px}
  body.yg-responsive main button,body.yg-responsive main .button,body.yg-responsive main .btn{min-height:44px}
  body.yg-responsive #activar-enlaces,body.yg-responsive #productos-participantes,body.yg-responsive #historial{scroll-margin-top:6px}
  /* Inicio: información repetida disponible en Cómo participar. */
  .yg-page-home .hero{grid-template-columns:minmax(0,1fr)}
  .yg-page-home .hero-main{gap:9px}
  .yg-page-home .hero-main .eyebrow{font-size:10px;padding:6px 10px;max-width:100%;white-space:normal}
  .yg-page-home .hero-main .lead{margin:0}
  .yg-page-home .hero-points,.yg-page-home .hero-meta,.yg-page-home .hero-aside{display:none}
  .yg-page-home .hero-id{padding:9px 11px;border-radius:11px}
  .yg-page-home .hero-id code{font-size:12px;white-space:normal;overflow-wrap:anywhere}
  .yg-page-home .hero-user{margin:0}
  .yg-page-home .hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}
  .yg-page-home .hero-btn{min-height:44px;width:100%;font-size:12px;line-height:1.25;text-align:center;padding:8px 10px;border-radius:11px}
  .yg-page-home .hero a.hero-btn.primary{color:#402100;box-shadow:none}
  .yg-page-home .hero a.hero-btn.secondary{color:#8a4a00}
  .yg-page-home .hero h1 span{background:none;-webkit-text-fill-color:#ac5000;color:#ac5000}
  .yg-page-home .notice{margin:12px 0;padding:14px;border-radius:15px;font-size:13px;line-height:1.5}
  .yg-page-home .yg-how details{margin:0}
  .yg-page-home .yg-how summary{cursor:pointer;color:#995000;font-weight:750;min-height:32px}
  .yg-page-home .yg-how details p{margin:8px 0 0}
  .yg-page-home .yg-saldos .heading{gap:8px;margin-bottom:10px;align-items:start;flex-direction:column}
  .yg-page-home .yg-saldos .heading h2{margin:0}
  .yg-page-home .yg-saldos .heading>div{width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important}
  .yg-page-home .yg-saldos .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .yg-page-home .yg-saldos .grid article{padding:11px;gap:4px;border-radius:12px;min-width:0}
  .yg-page-home .yg-saldos .grid small{letter-spacing:0;font-size:11px;line-height:1.3;margin:0}
  .yg-page-home .yg-saldos .grid .pct{font-size:clamp(15px,4.3vw,21px)!important;line-height:1.2;overflow-wrap:anywhere}
  .yg-page-home .yg-saldos .grid [data-saldo="disponible"]{grid-column:1/-1;order:-1;background:#f0faf4;border-color:#b8dfc8;padding:14px}
  .yg-page-home .yg-saldos .grid [data-saldo="disponible"] .pct{font-size:27px!important}
  .yg-page-home .yg-catalogo-heading{margin-top:20px;gap:10px}
  .yg-page-home .yg-catalogo-heading form{width:100%;flex-basis:100%;gap:6px}
  .yg-page-home .yg-catalogo-heading button{color:#402100;padding:0 12px}
  .yg-page-home .yg-catalogo-nota,.yg-page-home .yg-status-note{font-size:12px;line-height:1.45}
  .yg-page-home .yg-catalogo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .yg-page-home .yg-producto{border-radius:13px}
  .yg-page-home .yg-producto:hover{transform:none}
  .yg-page-home .yg-producto-media{aspect-ratio:1.2}
  .yg-page-home .yg-producto-media img{padding:7px}
  .yg-page-home .yg-producto-body{padding:9px;gap:7px}
  .yg-page-home .yg-producto-pct{font-size:21px;gap:3px;line-height:1.05}
  .yg-page-home .yg-producto-pct span{font-size:9px;letter-spacing:0}
  .yg-page-home .yg-producto h3{font-size:12px;line-height:1.35}
  .yg-page-home .yg-producto-importe{padding:8px;font-size:10px;line-height:1.45}
  .yg-page-home .yg-producto-importe strong{font-size:15px}
  .yg-page-home .yg-producto-acciones{gap:5px}
  .yg-page-home .yg-producto-acciones .link{font-size:12px!important;padding:6px;min-height:32px}
  .yg-page-home .yg-producto-acciones .copy,.yg-page-home .yg-producto-acciones .yg-ver,.yg-page-home .yg-lock{font-size:12px;line-height:1.25;min-height:44px;padding:7px;display:flex;align-items:center;justify-content:center;text-align:center}
  .yg-page-home .yg-producto-acciones .feedback:empty{display:none}
  .yg-page-home .yg-lock-note{font-size:11px}
  .yg-page-home .yg-terms{font-size:13px;max-height:220px;padding:10px}
  .yg-page-home .yg-consents label{font-size:13px}
  /* Rendimiento: filtros, indicadores y gráficas ajustados al ancho. */
  .yg-page-stats main{gap:11px}
  .yg-page-stats .panel{padding:12px;border-radius:14px}
  .yg-page-stats .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .yg-page-stats .kpis article{padding:11px;border-radius:12px}
  .yg-page-stats .kpis article.earn{order:-2;grid-column:1/-1;padding:14px}
  .yg-page-stats .kpis .earn strong{font-size:27px}
  .yg-page-stats .kpis strong{font-size:19px}
  .yg-page-stats .kpis p{font-size:11px;line-height:1.35}
  .yg-page-stats .filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .yg-page-stats .filters label:nth-of-type(n+3){grid-column:1/-1}
  .yg-page-stats .periods{gap:5px}
  .yg-page-stats .pill{font-size:12px;min-height:36px;padding:6px 10px}
  .yg-page-stats .charts{grid-template-columns:1fr;gap:10px}
  .yg-page-stats .chart{padding:12px 8px}
  .yg-page-stats .bars{min-width:0;width:100%;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:2px;padding-bottom:21px}
  .yg-page-stats .bar-item{position:relative}
  .yg-page-stats .bar-track{height:110px}
  .yg-page-stats .bar-item small{display:none;position:absolute;top:100%;left:50%;transform:translateX(-50%);font-size:9px;margin-top:4px;letter-spacing:0}
  .yg-page-stats .bar-item.yg-axis-label small{display:block}
  .yg-page-stats .bar-item:first-child small{left:0;transform:none}
  .yg-page-stats .bar-item:last-child small{left:auto;right:0;transform:none}
  .yg-page-stats .chart-scroll{overflow:visible}
  .yg-page-stats .table-scroll{overflow:auto;max-width:100%}
  .yg-page-stats table{table-layout:fixed;width:100%}
  .yg-page-stats th,.yg-page-stats td{padding:7px 3px;font-size:11px;white-space:normal;overflow-wrap:anywhere}
  .yg-page-stats td:not(:first-child){white-space:normal}
  .yg-page-stats .sale{padding:11px}
  .yg-page-stats .sale-values{gap:8px}
  .yg-page-stats .sale-values>div:last-child{grid-column:1/-1;background:#f0faf4;padding:8px;border-radius:8px}
  .yg-page-stats .sale-values>div:last-child dd{font-size:20px}
  .yg-page-stats .section-head .button{width:100%}
  /* Retiros y condiciones. */
  .yg-page-withdraw .layout{grid-template-columns:1fr;gap:0}
  .yg-page-withdraw .card,.yg-page-terms .card{padding:14px;margin-top:12px;border-radius:14px}
  .yg-page-withdraw .amount{font-size:29px}
  .yg-page-withdraw .bank,.yg-page-withdraw .history article{padding:11px}
  .yg-page-terms .terms{font-size:14px;line-height:1.65}
  .yg-page-terms .check{font-size:14px;line-height:1.5}
  /* Página comercial. */
  .yg-page-join main .hero{grid-template-columns:1fr;padding:20px 0;gap:15px}
  .yg-page-join main .hero h1{font-size:clamp(36px,10vw,48px)}
  .yg-page-join .hero-side{padding:16px;border-radius:15px}
  .yg-page-join .hero-side .mark{width:42px;height:42px;margin-bottom:12px;font-size:23px}
  .yg-page-join .steps,.yg-page-join .features-grid{gap:9px}
  .yg-page-join .steps article,.yg-page-join .features-grid article{padding:14px;border-radius:13px}
  .yg-page-join .section{padding:22px 0}
  .yg-page-join .final{padding:16px;border-radius:15px;margin-bottom:12px}
}
@media(max-width:350px){.yg-mobile-brand{font-size:16px}.yg-mobile-mark{width:23px;height:23px;flex-basis:23px}.yg-page-home .yg-catalogo-grid{grid-template-columns:minmax(0,1fr)}.yg-page-home .hero-actions{grid-template-columns:1fr}}
@media print{.yg-mobile-shell{display:none!important}}

/* Estados de comisión: se distinguen también por su texto, no solo por color. */
.yg-page-home .yg-saldos [data-saldo="por_pagar"]{--saldo:#475569;--fondo:#f1f5f9;--linea:#cbd5e1}
.yg-page-home .yg-saldos [data-saldo="pendiente"]{--saldo:#1d4ed8;--fondo:#eff6ff;--linea:#bfdbfe}
.yg-page-home .yg-saldos [data-saldo="validacion"]{--saldo:#92400e;--fondo:#fffbeb;--linea:#fde68a}
.yg-page-home .yg-saldos [data-saldo="retenida"]{--saldo:#b91c1c;--fondo:#fef2f2;--linea:#fecaca}
.yg-page-home .yg-saldos [data-saldo="disponible"]{--saldo:#15803d;--fondo:#f0fdf4;--linea:#bbf7d0}
.yg-page-home .yg-saldos [data-saldo="en_retiro"]{--saldo:#6d28d9;--fondo:#f5f3ff;--linea:#ddd6fe}
.yg-page-home .yg-saldos [data-saldo="liquidada"]{--saldo:#0f766e;--fondo:#f0fdfa;--linea:#99f6e4}
.yg-page-home .yg-saldos .grid article[data-saldo]{background:var(--fondo);border-color:var(--linea);border-top:3px solid var(--saldo)}
.yg-page-home .yg-saldos .grid article[data-saldo] small,.yg-page-home .yg-saldos .grid article[data-saldo] .pct{color:var(--saldo)}
.yg-sample-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.yg-sample-banner>div{flex:1 1 250px}.yg-sample-banner p{margin:6px 0;color:#526071;font-size:13px;line-height:1.5}.yg-sample-banner .hero-btn{flex:none}.yg-producto-acciones .yg-muestra-link{color:#0f766e;background:#f0fdfa;border-color:#99f6e4}
@media(max-width:760px){.yg-sample-banner .hero-btn{width:100%}.yg-producto-acciones .yg-muestra-link{min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center}}
