/* Cuponera: minisitio de cupones y descuentos */
:root { --cu: #e3a33b; --cu-dark: #b97d16; --cu-soft: #fbefd5; --cu-cta: #b4532a; --cu-cta-dark: #8f3f1d; }

/* Barra propia del minisitio */
.cu-bar { background: var(--ink); color: var(--bg); }
.cu-bar .wrap-wide { display: flex; align-items: center; gap: 22px; min-height: 58px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.cu-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bg); font-family: "Fraunces", serif; font-weight: 700; font-size: 1.3rem; }
.cu-brand .tk { width: 34px; height: 34px; border-radius: 9px; background: var(--cu); color: var(--ink); display: grid; place-items: center; font-size: 1rem; }
.cu-brand small { font-family: "Inter", sans-serif; font-weight: 500; font-size: 0.75rem; color: #c9bfb1; display: block; line-height: 1; }
.cu-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.cu-nav a { color: #e9e1d5; text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 7px 12px; border-radius: 999px; }
.cu-nav a:hover, .cu-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.cu-pub { background: var(--cu); color: var(--ink); border: 0; font: inherit; font-weight: 700; font-size: 0.88rem; padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.cu-pub:hover { background: #f0b552; }

/* Carrusel de destacados */
.cu-hero { padding: 28px 0 10px; }
.cu-slider { position: relative; }
.cu-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px; }
.cu-track::-webkit-scrollbar { display: none; }
.cu-slide { flex: 0 0 min(860px, 88%); scroll-snap-align: center; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; min-height: 280px; }
.cu-slide .txt { padding: 32px 34px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.cu-slide h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; }
.cu-slide h2 em { font-style: normal; color: var(--cu-cta); font-family: "Inter", sans-serif; font-weight: 800; font-size: 0.8em; letter-spacing: 0.02em; text-transform: uppercase; margin-right: 6px; }
.cu-slide .who { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; }
.cu-slide .art { min-height: 220px; }
.cu-slide .cu-cta { max-width: 260px; }
.cu-ctrl { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
.cu-ctrl button.arr { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.1rem; }
.cu-dots { display: flex; gap: 6px; }
.cu-dots span { width: 8px; height: 8px; border-radius: 50%; background: #d9cfbf; }
.cu-dots span.on { background: var(--ink); width: 20px; border-radius: 999px; }

/* Arte de cada cupón */
.art { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--c1), var(--c2)); color: #fff; display: flex; align-items: center; justify-content: center; }
.art .big { font-family: "Fraunces", serif; font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; position: relative; z-index: 1; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2); text-align: center; padding: 0 12px; }
.art .ico { position: absolute; right: -14px; bottom: -18px; opacity: 0.16; }
.art .ico svg { width: 150px; height: 150px; }
.art .ring { position: absolute; left: 12%; top: -50px; width: 140px; height: 140px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.16); }
.art svg.land { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; }
.art svg.land path { fill: #fff; }

.cu-logo { width: 44px; height: 44px; flex: none; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--ink); }

/* Botón Ver código con esquina despegada */
.cu-cta { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; border: 0; border-radius: 999px; background: var(--cu-cta); color: #fff; font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer; overflow: hidden; text-decoration: none; }
.cu-cta:hover { background: var(--cu-cta-dark); }
.cu-cta.code { padding-right: 46px; }
.cu-cta .peel { position: absolute; right: 0; top: 0; bottom: 0; width: 58px; background: var(--cu-soft); color: var(--ink); font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; border-radius: 0 999px 999px 0; border: 2px dashed var(--cu); border-left: 0; }
.cu-cta .peel::before { content: ""; position: absolute; left: -16px; top: 0; bottom: 0; width: 28px; background: linear-gradient(115deg, var(--cu-cta) 48%, #f6dca8 50%, #e9c27a 100%); transform: skewX(-12deg); transition: transform .2s; }
.cu-cta:hover .peel::before { transform: skewX(-12deg) translateX(-6px); background: linear-gradient(115deg, var(--cu-cta-dark) 48%, #f6dca8 50%, #e9c27a 100%); }

/* Grilla de cupones */
.cu-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 10px 0 20px; }
.cu-search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.cu-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cu-search input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 0 16px 0 40px; font: inherit; font-size: 0.95rem; outline: none; }
.cu-search input:focus { border-color: var(--cu-dark); }
.cu-sel { height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 0 14px; font: inherit; font-size: 0.92rem; }
.cu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cu-chips button { border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 0.88rem; font-weight: 600; padding: 8px 15px; border-radius: 999px; cursor: pointer; }
.cu-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.cupon { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.cupon:hover { box-shadow: 0 14px 30px rgba(31, 26, 20, 0.09); transform: translateY(-2px); }
.cupon.is-hidden { display: none; }
.cupon.hot { border-color: #e7a08a; }
.cu-ribbon { background: #c8402a; color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 5px 12px; display: flex; gap: 6px; align-items: center; }
.cu-ribbon.excl { background: var(--ink); }
.cu-ribbon.excl b { color: var(--cu); }
.cupon .art { height: 128px; }
.cupon .art .big { font-size: 2.6rem; }
.cu-body { display: flex; gap: 12px; padding: 14px 16px 6px; align-items: flex-start; }
.cu-body h3 { font-family: "Inter", sans-serif; font-size: 0.98rem; font-weight: 600; line-height: 1.35; }
.cu-merchant { font-size: 0.82rem; color: var(--muted); margin-top: 3px; }
.cu-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 16px 12px; font-size: 0.75rem; }
.cu-tag { font-weight: 700; padding: 3px 9px; border-radius: 6px; background: #eef1f4; color: #3c4a5a; }
.cu-tag.oferta { background: #e3f1ea; color: #1f5a3f; }
.cu-exp { color: var(--muted); }
.cu-exp.soon { color: #b42318; font-weight: 600; }
.cu-ej { margin-left: auto; font-weight: 700; color: var(--cu-dark); background: var(--cu-soft); padding: 3px 8px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.68rem; }
.cupon .cu-cta { margin: auto 16px 16px; width: auto; }
.cu-empty { display: none; grid-column: 1 / -1; text-align: center; padding: 40px; border: 1.5px dashed var(--line); border-radius: 16px; color: var(--muted); }
.cu-empty.show { display: block; }

/* Banners y bloques */
.cu-banner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(100deg, #f8ebe2, #fbefd5); border: 1px solid #efd7c8; border-radius: 18px; padding: 16px 20px; margin: 26px 0 40px; }
.cu-banner .cu-logo { background: var(--terra); color: #fff; border: 0; }
.cu-banner strong { font-family: "Fraunces", serif; font-size: 1.35rem; display: block; }
.cu-banner small { color: var(--muted); }
.cu-banner .go { margin-left: auto; background: #fff; border: 1px solid var(--line); font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.cu-sec { padding-bottom: 56px; }
.cu-sec > h2, .cu-sec .v-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 140px; padding: 16px; border-radius: 18px; color: #fff; text-decoration: none; background: linear-gradient(150deg, var(--c1), var(--c2)); }
.cat-tile strong { font-family: "Fraunces", serif; font-size: 1.3rem; position: relative; }
.cat-tile small { position: relative; opacity: 0.9; }
.cat-tile .ico { position: absolute; right: -10px; top: -6px; opacity: 0.2; }
.cat-tile .ico svg { width: 90px; height: 90px; }
.cat-tile:hover { filter: brightness(1.06); }
.merchant-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; background: var(--ink); color: var(--bg); border-radius: 24px; padding: 34px; margin-bottom: 64px; }
.merchant-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.merchant-band p { color: #c9bfb1; margin-top: 8px; }
.merchant-band ul { list-style: none; display: grid; gap: 8px; }
.merchant-band li { display: flex; gap: 10px; font-size: 0.95rem; }
.merchant-band li::before { content: "✓"; color: var(--cu); font-weight: 700; }
.merchant-band .cu-pub { margin-top: 18px; font-size: 1rem; padding: 12px 22px; }
.cat-head { position: relative; overflow: hidden; border-radius: 24px; color: #fff; padding: 40px 36px; margin: 24px 0 26px; background: linear-gradient(150deg, var(--c1), var(--c2)); }
.cat-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); position: relative; }
.cat-head p { position: relative; max-width: 56ch; margin-top: 8px; opacity: 0.92; }
.cat-head .ico { position: absolute; right: 20px; bottom: -20px; opacity: 0.16; }
.cat-head .ico svg { width: 200px; height: 200px; }

/* Ventana del cupón */
dialog.cu-dlg { margin: auto; border: 0; border-radius: 22px; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); color: var(--ink); background: var(--surface); }
dialog.cu-dlg::backdrop { background: rgba(31, 26, 20, 0.6); }
.cu-dlg .art { height: 120px; }
.cu-dlg .x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.9); font-size: 1.3rem; cursor: pointer; }
.cu-dlg .in { padding: 20px 24px 24px; }
.cu-dlg .who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cu-dlg h2 { font-size: 1.45rem; line-height: 1.25; }
.cu-dlg .desc { color: var(--muted); margin: 8px 0 16px; }
.code-box { display: flex; align-items: center; gap: 10px; border: 2px dashed var(--cu); background: var(--cu-soft); border-radius: 14px; padding: 10px 10px 10px 18px; }
.code-box code { flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 1.45rem; font-weight: 800; letter-spacing: 0.08em; }
.code-box button { border: 0; background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 10px; cursor: pointer; }
.no-code { background: #e3f1ea; color: #1f5a3f; border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.cu-dlg .conds { margin-top: 16px; font-size: 0.9rem; color: var(--muted); display: grid; gap: 6px; }
.cu-dlg .conds b { color: var(--ink); font-weight: 600; }
.cu-dlg .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cu-dlg .acts a { text-decoration: none; font-weight: 700; font-size: 0.92rem; padding: 11px 18px; border-radius: 999px; }
.cu-dlg .acts a.pri { background: var(--cu-cta); color: #fff; }
.cu-dlg .acts a.sec { border: 1.5px solid var(--line); color: var(--ink); }
.cu-dlg form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.cu-dlg form .full { grid-column: 1 / -1; }
.cu-dlg .head-pub { background: var(--ink); color: var(--bg); padding: 22px 24px; }
.cu-dlg .head-pub h2 { font-size: 1.4rem; }
.cu-dlg .head-pub p { color: #c9bfb1; font-size: 0.92rem; margin-top: 4px; }
.cu-dlg .head-pub .x { background: rgba(255, 255, 255, 0.15); color: #fff; }
.cu-dlg .ok { text-align: center; padding: 10px 0; }
.cu-dlg .ok h3 { font-size: 1.4rem; }
.cu-dlg .ok p { color: var(--muted); margin: 6px 0 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 0.93rem; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); transition: transform .3s, opacity .3s; opacity: 0; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

@media (max-width: 1000px) {
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .merchant-band { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cu-slide { grid-template-columns: 1fr; flex-basis: 92%; }
  .cu-slide .art { min-height: 150px; order: -1; }
  .cu-slide .txt { padding: 20px; }
  .cat-tiles { grid-template-columns: 1fr 1fr; }
  .cu-nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .cu-dlg form .form-grid { grid-template-columns: 1fr; }
  .merchant-band { padding: 24px; }
}
.cu-pub-nota { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.cat-head .eyebrow { position: relative; z-index: 1; }
.cat-head.has-foto { min-height: 280px; display: flex; flex-direction: column; justify-content: center; }
.cat-head .ch-foto { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; object-position: center 45%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.6) 22%, #000 48%); mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.6) 22%, #000 48%); }
.cat-head.has-foto .ico { display: none; }
.cat-head.has-foto h1, .cat-head.has-foto p { max-width: 520px; z-index: 1; text-shadow: 0 1px 12px rgba(0,0,0,.18); }
@media (max-width: 760px) {
  .cat-head.has-foto { padding-top: 190px; }
  .cat-head .ch-foto { width: 100%; height: 200px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
}
.cat-head .ch-foto.ch-digitales, .cat-head .ch-foto.ch-belleza-y-spa { object-position: 78% center; }
.cat-head .ch-foto.ch-productos, .cat-head .ch-foto.ch-servicios { object-position: 72% center; }
