/**
 * JujuyConectado · V679 · MASTER MICROSITIOS JC · Cuponeta testigo
 * APP móvil autoridad visual · APP Windows frame 768 derivado.
 * Identidad > Tabs > Filtros > Cards > Modal.
 */

:root{
  --jc-ms-blue:#0c3f89;
  --jc-ms-blue-2:#0a2f67;
  --jc-ms-coral:#c51d4d;
  --jc-ms-coral-2:#a70f3c;
  --jc-ms-ink:#082957;
  --jc-ms-muted:#66778a;
  --jc-ms-surface:#fff;
  --jc-ms-soft:#f5f7fb;
  --jc-ms-line:rgba(9,43,87,.12);
  --jc-ms-radius:16px;
  --jc-ms-shadow:0 10px 28px rgba(8,41,87,.09);
}

/* ====== MASTER SHELL ====== */
.jc-cuponeta-hub-v591,
.jc-cuponeta-shell{
  width:min(100%,768px)!important;
  margin-inline:auto!important;
}
.jc-cuponeta-hub-v591{
  padding:8px 12px 6px!important;
}
.jc-cuponeta-hub-v591__card{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* ====== IDENTIDAD ====== */
.jc-cuponeta-v627__microhead{
  position:relative;
  isolation:isolate;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 44px!important;
  align-items:center!important;
  gap:8px!important;
  min-height:94px!important;
  padding:8px 10px!important;
  overflow:hidden!important;
  border-radius:16px!important;
  background:
    radial-gradient(circle at 78% 26%,rgba(255,184,74,.72),transparent 22%),
    linear-gradient(118deg,#0b4ba0 0%,#1787d1 48%,#ef7148 100%)!important;
  box-shadow:0 9px 24px rgba(8,41,87,.13)!important;
}
.jc-cuponeta-v627__microhead::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.24;
  background-image:
    linear-gradient(135deg,transparent 0 57%,rgba(255,255,255,.18) 57% 58%,transparent 58%),
    radial-gradient(circle at 14% 78%,rgba(255,255,255,.55) 0 1px,transparent 2px);
  background-size:auto,20px 20px;
}
.jc-cuponeta-v627__back{
  grid-column:1!important;
  width:44px!important;
  height:44px!important;
  border:1px solid rgba(255,255,255,.8)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.94)!important;
  color:var(--jc-ms-ink)!important;
  box-shadow:0 5px 14px rgba(5,25,58,.18)!important;
}
.jc-cuponeta-v627__back svg{width:22px!important;height:22px!important}
.jc-cuponeta-v627__brand{
  grid-column:2!important;
  min-width:0!important;
  height:74px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:3px 8px!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.91)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.62)!important;
}
.jc-cuponeta-v627__logo{
  width:100%!important;
  height:100%!important;
  max-width:560px!important;
  max-height:68px!important;
  object-fit:contain!important;
  object-position:center!important;
}
.jc-cuponeta-v627__spacer{width:44px!important;height:44px!important}

/* ====== TABS ====== */
.jc-cuponeta-hub-v591__tabs{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(118px,1fr))!important;
  gap:4px!important;
  width:100%!important;
  margin:7px 0 0!important;
  padding:4px!important;
  overflow:visible!important;
  border:1px solid var(--jc-ms-line)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 5px 16px rgba(8,41,87,.07)!important;
}
.jc-cuponeta-hub-v591__tab{
  min-width:0!important;
  min-height:44px!important;
  padding:0 10px!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  color:#122a4f!important;
  font-size:14px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
.jc-cuponeta-hub-v591__tab::after{display:none!important}
.jc-cuponeta-hub-v591__tab.is-active{
  background:linear-gradient(135deg,var(--jc-ms-coral),var(--jc-ms-coral-2))!important;
  color:#fff!important;
  box-shadow:0 5px 14px rgba(181,18,67,.22)!important;
}

/* ====== CONTENT / FILTERS ====== */
.jc-cuponeta-main{
  width:100%!important;
  max-width:768px!important;
  min-height:0!important;
  margin:0 auto!important;
  padding:0 12px calc(84px + env(safe-area-inset-bottom,0px))!important;
  background:transparent!important;
}
.jc-cuponeta-shell__layout{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
.jc-cuponeta-filters-v592{
  margin:0 0 12px!important;
  padding:0!important;
}
.jc-cuponeta-filters-v592__rail{
  display:grid!important;
  grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1.15fr)!important;
  gap:8px!important;
  width:100%!important;
  overflow:visible!important;
}
.jc-cuponeta-filters-v592__pill{
  width:100%!important;
  min-width:0!important;
  min-height:42px!important;
  margin:0!important;
  padding:0 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid var(--jc-ms-line)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#112c59!important;
  box-shadow:0 4px 12px rgba(8,41,87,.05)!important;
  font-size:13.5px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
.jc-cuponeta-filters-v592__pill.is-active{
  border-color:var(--jc-ms-blue)!important;
  background:linear-gradient(135deg,#104ca1,#0b3377)!important;
  color:#fff!important;
}
.jc-cuponeta-filters-v592__pill.has-value{
  border-color:rgba(12,63,137,.28)!important;
  background:#eef5ff!important;
  color:#0a3c85!important;
}
.jc-cuponeta-filters-v592__active{
  margin-top:8px!important;
  gap:6px!important;
}
.jc-cuponeta-filters-v592__chip,
.jc-cuponeta-filters-v592__clear{
  min-height:34px!important;
  border-radius:999px!important;
}

/* ====== GRID ====== */
.jc-cuponeta-shell .jc-cuponeta-flow-grid-v283{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  margin:0!important;
}
.jc-coupon-master-v679-card{
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.jc-coupon-master-v679{
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--jc-ms-line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--jc-ms-shadow);
}
.jc-coupon-master-v679__media{
  position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#eef2f6;
}
.jc-coupon-master-v679__media img,
.jc-coupon-master-v679__placeholder{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.jc-coupon-master-v679__placeholder{display:grid;place-items:center;font-size:40px}
.jc-coupon-master-v679__benefit{
  position:absolute;
  top:9px;
  left:9px;
  z-index:2;
  max-width:72%;
  padding:8px 10px;
  border-radius:12px;
  background:linear-gradient(135deg,#ef3e68,#c41244);
  color:#fff;
  box-shadow:0 7px 16px rgba(169,14,58,.26);
  font-size:clamp(16px,4.8vw,25px);
  font-weight:950;
  line-height:.95;
  text-align:center;
  text-transform:uppercase;
  overflow-wrap:anywhere;
}
.jc-coupon-master-v679__category{
  position:absolute;
  left:8px;
  bottom:8px;
  z-index:2;
  max-width:calc(100% - 16px);
  padding:5px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#b83d25;
  box-shadow:0 3px 10px rgba(0,0,0,.10);
  font-size:10px;
  font-weight:900;
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.jc-coupon-master-v679__save{
  position:absolute!important;
  top:8px!important;
  right:8px!important;
  left:auto!important;
  z-index:3!important;
  width:38px!important;
  min-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(255,255,255,.88)!important;
  border-radius:999px!important;
  background:rgba(20,22,28,.42)!important;
  color:#fff!important;
  box-shadow:0 4px 12px rgba(0,0,0,.15)!important;
  font-size:23px!important;
  line-height:1!important;
}
.jc-coupon-master-v679__save.is-saved{background:#fff!important;color:var(--jc-ms-coral)!important}
.jc-coupon-master-v679__body{
  flex:1;
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:10px 10px 11px;
}
.jc-coupon-master-v679__body h2{
  margin:0!important;
  color:#092c61!important;
  font-size:16px!important;
  font-weight:900!important;
  line-height:1.08!important;
  letter-spacing:-.2px!important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.jc-coupon-master-v679__location,
.jc-coupon-master-v679__offer,
.jc-coupon-master-v679__validity{
  margin:5px 0 0!important;
  color:#5d6c7e!important;
  font-size:12px!important;
  line-height:1.2!important;
}
.jc-coupon-master-v679__location,
.jc-coupon-master-v679__validity{display:flex;align-items:center;gap:4px}
.jc-coupon-master-v679__location span{color:#1769e0;font-size:15px}
.jc-coupon-master-v679__validity{color:#8b4351!important}
.jc-coupon-master-v679__offer{
  color:#253b59!important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.jc-coupon-master-v679__open{
  width:100%!important;
  min-height:42px!important;
  margin:10px 0 0!important;
  margin-top:auto!important;
  padding:0 10px!important;
  border:0!important;
  border-radius:999px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  background:linear-gradient(135deg,#c91e4d,#a70d3d)!important;
  color:#fff!important;
  box-shadow:0 7px 16px rgba(168,13,60,.17)!important;
  font-size:13px!important;
  font-weight:900!important;
}

/* ====== MODAL ====== */
.jc-coupon-modal-backdrop-v593{
  position:fixed!important;
  inset:0!important;
  z-index:10020!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
  border-radius:0!important;
  background:rgba(5,18,38,.68)!important;
  backdrop-filter:blur(2px)!important;
  -webkit-backdrop-filter:blur(2px)!important;
}
.jc-coupon-modal-v593-open{overflow:hidden!important}
.jc-coupon-master-v679-modal{
  position:fixed!important;
  z-index:10030!important;
  left:50%!important;
  top:50%!important;
  width:min(calc(100vw - 24px),704px)!important;
  max-height:min(88svh,760px)!important;
  margin:0!important;
  padding:0!important;
  overflow:auto!important;
  transform:translate(-50%,-50%)!important;
  border:1px solid rgba(255,255,255,.54)!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 24px 70px rgba(0,0,0,.34)!important;
  outline:0!important;
  overscroll-behavior:contain!important;
}
.jc-coupon-master-v679-modal[hidden]{display:none!important}
.jc-coupon-master-v679-modal__close{
  position:sticky;
  float:right;
  top:10px;
  right:10px;
  z-index:5;
  width:44px;
  height:44px;
  margin:10px 10px -54px 0;
  display:grid;
  place-items:center;
  border:1px solid rgba(8,41,87,.12);
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:#0a2448;
  box-shadow:0 5px 14px rgba(0,0,0,.16);
  font-size:28px;
  line-height:1;
}
.jc-coupon-master-v679-modal__media{
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#eef2f6;
}
.jc-coupon-master-v679-modal__media img,
.jc-coupon-master-v679-modal__media .jc-coupon-master-v679__placeholder{
  width:100%;height:100%;object-fit:cover;
}
.jc-coupon-master-v679-modal__benefit{
  position:absolute;
  left:14px;
  top:14px;
  max-width:56%;
  padding:10px 13px;
  border-radius:14px;
  background:linear-gradient(135deg,#f04870,#c41244);
  color:#fff;
  box-shadow:0 8px 18px rgba(169,14,58,.27);
  font-size:25px;
  font-weight:950;
  line-height:1;
  text-transform:uppercase;
}
.jc-coupon-master-v679-modal__content{padding:14px 16px 16px}
.jc-coupon-master-v679-modal__title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.jc-coupon-master-v679-modal__title-row h2{
  margin:0!important;
  color:#082957!important;
  font-size:24px!important;
  line-height:1.08!important;
  font-weight:950!important;
}
.jc-coupon-master-v679-modal__title-row p{
  margin:4px 0 0!important;
  color:#5e6d7f!important;
  font-size:14px!important;
}
.jc-coupon-master-v679-modal__title-row>span{
  flex:0 0 auto;
  max-width:42%;
  padding:7px 10px;
  border-radius:999px;
  background:#fff1eb;
  color:#d05026;
  font-size:11px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.jc-coupon-master-v679-modal__location{
  margin:9px 0 0!important;
  display:flex;
  align-items:center;
  gap:6px;
  color:#55687d!important;
  font-size:13px!important;
}
.jc-coupon-master-v679-modal__location span{color:#1769e0;font-size:17px}
.jc-coupon-master-v679-modal__facts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin:13px 0 0;
  padding:12px 0;
  border-top:1px solid var(--jc-ms-line);
  border-bottom:1px solid var(--jc-ms-line);
}
.jc-coupon-master-v679-modal__facts>span{
  min-width:0;
  padding:0 9px;
  text-align:center;
  border-right:1px solid var(--jc-ms-line);
}
.jc-coupon-master-v679-modal__facts>span:last-child{border-right:0}
.jc-coupon-master-v679-modal__facts b,
.jc-coupon-master-v679-modal__facts small{display:block}
.jc-coupon-master-v679-modal__facts b{
  color:#0b3f85;
  font-size:13px;
  line-height:1.15;
  overflow-wrap:anywhere;
}
.jc-coupon-master-v679-modal__facts small{margin-top:3px;color:#6f7c8c;font-size:10.5px}
.jc-coupon-master-v679-modal__section{margin-top:14px}
.jc-coupon-master-v679-modal__section h3{
  margin:0 0 5px;
  color:#082957;
  font-size:16px;
  font-weight:900;
}
.jc-coupon-master-v679-modal__section p,
.jc-coupon-master-v679-modal__days,
.jc-coupon-master-v679-modal__availability,
.jc-coupon-master-v679-modal__loyalty{
  margin:0!important;
  color:#394b60!important;
  font-size:13px!important;
  line-height:1.48!important;
}
.jc-coupon-master-v679-modal__days,
.jc-coupon-master-v679-modal__availability,
.jc-coupon-master-v679-modal__loyalty{margin-top:9px!important}
.jc-coupon-master-v679-modal__actions{
  position:sticky;
  bottom:-1px;
  z-index:4;
  display:grid;
  gap:8px;
  margin:16px -16px -16px;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));
  border-top:1px solid var(--jc-ms-line);
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.jc-coupon-master-v679-modal__primary,
.jc-coupon-master-v679-modal__secondary{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  text-decoration:none;
  font-size:14px;
  font-weight:950;
  cursor:pointer;
}
.jc-coupon-master-v679-modal__primary{
  border:1px solid #a90e3e!important;
  background:linear-gradient(135deg,#c51d4d,#a40b3a)!important;
  color:#fff!important;
}
.jc-coupon-master-v679-modal__primary.is-disabled{border-color:#aab3bd!important;background:#aab3bd!important}
.jc-coupon-master-v679-modal__secondary{
  border:1px solid #0b2f64!important;
  background:#fff!important;
  color:#0b2f64!important;
}

/* Sheets de filtros con mismo lenguaje Master */
.jc-cuponeta-filter-sheet-v592{z-index:10040!important}
.jc-cuponeta-filter-sheet-v592__panel{border-radius:20px!important}
.jc-cuponeta-filter-sheet-v592__option.is-current{
  border-color:#0c3f89!important;
  background:#eef5ff!important;
  color:#0c3f89!important;
  box-shadow:inset 0 -3px 0 #0c3f89!important;
}

/* ====== WINDOWS 768: misma arquitectura, más aire ====== */
@media(min-width:681px){
  .jc-cuponeta-hub-v591{padding:10px 32px 7px!important}
  .jc-cuponeta-main{padding-inline:32px!important}
  .jc-cuponeta-v627__microhead{min-height:104px!important;padding-inline:14px!important}
  .jc-cuponeta-v627__brand{height:82px!important}
  .jc-cuponeta-v627__logo{max-height:76px!important}
  .jc-cuponeta-hub-v591__tab{font-size:15px!important}
  .jc-cuponeta-filters-v592__rail{gap:10px!important}
  .jc-cuponeta-filters-v592__pill{min-height:44px!important;font-size:14px!important}
  .jc-cuponeta-shell .jc-cuponeta-flow-grid-v283{gap:16px!important}
  .jc-coupon-master-v679__body{padding:12px 13px 13px}
  .jc-coupon-master-v679__body h2{font-size:18px!important}
  .jc-coupon-master-v679__location,.jc-coupon-master-v679__offer,.jc-coupon-master-v679__validity{font-size:13px!important}
}

@media(max-width:380px){
  .jc-cuponeta-hub-v591{padding-inline:8px!important}
  .jc-cuponeta-main{padding-inline:8px!important}
  .jc-cuponeta-v627__microhead{grid-template-columns:40px minmax(0,1fr) 40px!important;min-height:86px!important}
  .jc-cuponeta-v627__back{width:40px!important;height:40px!important}
  .jc-cuponeta-v627__brand{height:66px!important;padding-inline:5px!important}
  .jc-cuponeta-v627__logo{max-height:60px!important}
  .jc-cuponeta-hub-v591__tab{font-size:13px!important;padding-inline:6px!important}
  .jc-cuponeta-filters-v592__rail{gap:6px!important}
  .jc-cuponeta-filters-v592__pill{padding-inline:7px!important;font-size:12.5px!important}
  .jc-cuponeta-shell .jc-cuponeta-flow-grid-v283{gap:9px!important}
  .jc-coupon-master-v679__body{padding:9px 8px 9px}
  .jc-coupon-master-v679__body h2{font-size:14.5px!important}
  .jc-coupon-master-v679__location,.jc-coupon-master-v679__offer,.jc-coupon-master-v679__validity{font-size:11px!important}
  .jc-coupon-master-v679__open{min-height:40px!important;font-size:12px!important}
  .jc-coupon-master-v679__benefit{font-size:16px;padding:7px 8px}
  .jc-coupon-master-v679-modal{width:calc(100vw - 16px)!important;max-height:90svh!important}
  .jc-coupon-master-v679-modal__content{padding-inline:13px}
  .jc-coupon-master-v679-modal__title-row h2{font-size:21px!important}
  .jc-coupon-master-v679-modal__actions{margin-inline:-13px;padding-inline:13px}
}

@media(prefers-reduced-motion:reduce){
  .jc-cuponeta-hub-v591 *,
  .jc-cuponeta-shell *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}


/* Wallet: conserva motor V598 pero comparte identidad y jerarquía Master. */
.jc-cuponeta-wallet-master-v679 + .jc-wallet-v598-page{
  width:min(100%,768px)!important;
  margin-inline:auto!important;
  padding-top:0!important;
}
.jc-cuponeta-wallet-master-v679 + .jc-wallet-v598-page > .jc-container{
  width:100%!important;
  max-width:none!important;
  padding-inline:12px!important;
}
.jc-cuponeta-wallet-master-v679 + .jc-wallet-v598-page .jc-wallet-v598-hero{
  display:none!important;
}
@media(min-width:681px){
  .jc-cuponeta-wallet-master-v679 + .jc-wallet-v598-page > .jc-container{padding-inline:32px!important}
}
