/* Mundo Ejecutivo digital edition — scoped to .me-mag */
.me-mag {
	--bg: #121212;
	--panel: #1c1c1c;
	--line: rgba(255,255,255,.1);
	--muted: rgba(255,255,255,.62);
	--accent: #fd4f5a;
	--gold: #b8924a;
	--ease: cubic-bezier(.2,.8,.2,1);
}
.me-mag * { box-sizing: border-box; }
.me-mag { margin: 0; background: var(--bg); color: #fff; font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
.me-mag a { color: inherit; text-decoration: none; }
.me-mag button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.me-mag .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.me-mag svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.me-mag /* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.me-mag .hero__bg { position: absolute; inset: -10%; background: url(/wp-content/uploads/magazine/oct-2026-full/hd/p-01.jpg) center/cover; filter: blur(60px) saturate(1.2); opacity: .35; z-index: -2; transform: scale(1.1); }
.me-mag .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 70% 50%, rgba(18,18,18,0) 0%, rgba(18,18,18,.75) 55%, #121212 100%); }
.me-mag .hero__inner { width: 100%; max-width: 1280px; margin: 0 auto; padding: 96px 24px 80px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.me-mag .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.me-mag .kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.me-mag .hero h1 { font-family: Aleo, serif; font-weight: 700; font-size: clamp(56px, 8vw, 112px); line-height: .92; margin: 18px 0 18px; letter-spacing: -.02em; }
.me-mag .hero h1 span { display: block; font-style: italic; font-weight: 400; color: var(--gold); }
.me-mag .hero__deck { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 30ch; margin: 0 0 28px; }
.me-mag .hero__also { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 10px; }
.me-mag .hero__also li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: rgba(255,255,255,.85); }
.me-mag .hero__also li b { color: var(--accent); font-size: 12px; letter-spacing: .1em; min-width: 22px; }
.me-mag .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.me-mag .btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .3s var(--ease), background .3s, box-shadow .3s; }
.me-mag .btn--primary { background: var(--accent); box-shadow: 0 10px 30px rgba(253,79,90,.35); }
.me-mag .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(253,79,90,.5); }
.me-mag .btn--ghost { border: 1px solid rgba(255,255,255,.25); }
.me-mag .btn--ghost:hover { background: rgba(255,255,255,.08); }
.me-mag .btn small { font-weight: 400; color: var(--muted); }
.me-mag .meta { margin-top: 28px; display: flex; gap: 22px; font-size: 13px; color: var(--muted); }
.me-mag .meta b { color: #fff; font-weight: 500; }
.me-mag /* 3D book */
.stage { position: relative; display: flex; justify-content: center; align-items: center; perspective: 1800px; height: 640px; }
.me-mag .book { --rx: 6deg; --ry: -22deg; --t: 22px; position: relative; width: 400px; height: 518px; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .8s var(--ease); cursor: pointer; animation: mm-bob 7s ease-in-out infinite; }
.me-mag .book.is-tracking { transition: transform .15s linear; }
@keyframes mm-bob { 50% { translate: 0 -10px; } }

.me-mag .book__face { position: absolute; inset: 0; }
.me-mag .book__front { transform: translateZ(calc(var(--t) / 2)); border-radius: 2px 6px 6px 2px; overflow: hidden; box-shadow: inset 4px 0 8px rgba(0,0,0,.35); }
.me-mag .book__front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-mag .book__front::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: rgba(0,0,0,.25); box-shadow: 1px 0 0 rgba(255,255,255,.15); z-index: 2; }
.me-mag .book__glare { position: absolute; inset: 0; z-index: 3; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.35), rgba(255,255,255,0) 45%); mix-blend-mode: overlay; pointer-events: none; }
.me-mag .book__back { transform: translateZ(calc(var(--t) / -2)) rotateY(180deg); background: #0c0c0c; border-radius: 6px 2px 2px 6px; }
.me-mag .book__pages { left: calc(100% - var(--t) / 2); width: var(--t); transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #f3f0ea 0 1px, #d9d4ca 1px 2px); top: 4px; bottom: 4px; }
.me-mag .book__top { top: calc(var(--t) / -2); height: var(--t); transform: rotateX(90deg); background: repeating-linear-gradient(0deg, #f3f0ea 0 1px, #d9d4ca 1px 2px); left: 4px; right: 4px; }
.me-mag .floor { position: absolute; bottom: 30px; left: 50%; width: 420px; height: 60px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(0,0,0,.7), rgba(0,0,0,0) 70%); filter: blur(8px); animation: mm-shadow 7s ease-in-out infinite; }
@keyframes mm-shadow { 50% { transform: translateX(-50%) scale(.92); opacity: .8; } }

.me-mag .stage__hint { position: absolute; bottom: -4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.me-mag .stage__hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: mm-blink 1.6s infinite; }
@keyframes mm-blink { 50% { opacity: .2; } }

.me-mag /* ---------- Inside this issue ---------- */
.inside { max-width: 1280px; margin: 0 auto; padding: 40px 24px 100px; }
.me-mag .inside__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.me-mag .inside__head h2 { font-family: Aleo, serif; font-size: 34px; margin: 6px 0 0; }
.me-mag .scroller-nav { display: flex; gap: 8px; }
.me-mag .scroller-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .2s; }
.me-mag .scroller-nav button:hover { background: rgba(255,255,255,.08); }
.me-mag .cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
.me-mag .cards::-webkit-scrollbar { display: none; }
.me-mag .card { scroll-snap-align: start; text-align: left; }
.me-mag .card__img { position: relative; aspect-ratio: 1.546; border-radius: 10px; overflow: hidden; background: #222; }
.me-mag .card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.me-mag .card:hover .card__img img { transform: scale(1.06); }
.me-mag .card__pg { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 6px 10px; border-radius: 999px; }
.me-mag .card__sec { display: block; margin: 16px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.me-mag .card__title { font-family: Aleo, serif; font-size: 20px; line-height: 1.25; margin: 0; }
.me-mag .card__who { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.me-mag /* ---------- Reader ---------- */
.reader { position: fixed; inset: 0; z-index: 100; background: #0b0b0b; display: grid; grid-template-rows: 64px minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.me-mag .reader.is-open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.me-mag .reader__ambient { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(70px) saturate(1.3); opacity: .28; transition: background-image .6s; z-index: 0; }
.me-mag .reader > .bar, .me-mag .reader > .view, .me-mag .reader > .rail { position: relative; z-index: 1; }
.me-mag .bar { display: flex; align-items: center; gap: 6px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); background: rgba(11,11,11,.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.me-mag .bar__title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px; white-space: nowrap; overflow: hidden; }
.me-mag .bar__title strong { font-family: Aleo, serif; font-size: 17px; }
.me-mag .bar__title span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.me-mag .bar__count { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); padding: 0 10px; }
.me-mag .ib { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; position: relative; }
.me-mag .ib:hover { background: rgba(255,255,255,.1); }
.me-mag .ib[data-tip]:hover::after { content: attr(data-tip); position: absolute; top: 48px; right: 0; white-space: nowrap; font-size: 12px; background: #000; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); }
.me-mag .view { position: relative; overflow: hidden; perspective: 2200px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.me-mag .slide { position: absolute; left: 50%; top: 50%; background: #1a1a1a center/cover no-repeat; box-shadow: 0 30px 80px rgba(0,0,0,.6); border-radius: 3px; will-change: transform, opacity; transform: translate(-50%, -50%); }
.me-mag .slide.is-spread::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 60px; transform: translateX(-50%); background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.22) 48%, rgba(255,255,255,.06) 50%, rgba(0,0,0,.18) 52%, rgba(0,0,0,0)); pointer-events: none; }
.me-mag .slide.is-zoom { cursor: zoom-out; }
.me-mag .view.can-zoom .slide { cursor: zoom-in; }
.me-mag .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); border: 1px solid var(--line); backdrop-filter: blur(10px); z-index: 5; transition: background .2s, opacity .2s; }
.me-mag .nav:hover { background: var(--accent); border-color: var(--accent); }
.me-mag .nav[disabled] { opacity: 0; pointer-events: none; }
.me-mag .nav--prev { left: 20px; }
.me-mag .nav--next { right: 20px; }
.me-mag .rail { border-top: 1px solid var(--line); background: rgba(11,11,11,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); }
.me-mag .rail__progress { height: 2px; background: var(--line); margin: 0 20px 10px; border-radius: 2px; overflow: hidden; }
.me-mag .rail__progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.me-mag .thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 20px; scrollbar-width: none; scroll-behavior: smooth; }
.me-mag .thumbs::-webkit-scrollbar { display: none; }
.me-mag .thumb { flex: 0 0 auto; height: 64px; border-radius: 3px; overflow: hidden; opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .25s, outline-color .25s, transform .25s; }
.me-mag .thumb img { height: 100%; width: auto; display: block; }
.me-mag .thumb:hover { opacity: .85; transform: translateY(-2px); }
.me-mag .thumb.is-active { opacity: 1; outline-color: var(--accent); }
.me-mag .toc { position: absolute; top: 64px; right: 0; bottom: 0; width: min(420px, 100%); background: rgba(16,16,16,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-left: 1px solid var(--line); z-index: 20; transform: translateX(100%); transition: transform .45s var(--ease); overflow-y: auto; padding: 24px 0 40px; }
.me-mag .toc.is-open { transform: none; }
.me-mag .toc h3 { font-family: Aleo, serif; font-size: 24px; margin: 0 24px 16px; }
.me-mag .toc button { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 12px 24px; transition: background .2s; }
.me-mag .toc button:hover, .me-mag .toc button.is-current { background: rgba(255,255,255,.06); }
.me-mag .toc img { width: 72px; border-radius: 2px; display: block; }
.me-mag .toc small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 3px; }
.me-mag .toc span { font-family: Aleo, serif; font-size: 15px; line-height: 1.3; }
.me-mag .toast { position: fixed; left: 50%; bottom: 120px; transform: translate(-50%, 20px); background: #fff; color: #111; font-weight: 500; font-size: 14px; padding: 10px 18px; border-radius: 999px; opacity: 0; transition: .3s var(--ease); z-index: 200; pointer-events: none; }
.me-mag .toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.me-mag .fly { position: fixed; z-index: 150; background: center/cover no-repeat; box-shadow: 0 30px 80px rgba(0,0,0,.6); pointer-events: none; border-radius: 3px; }
@media (max-width: 960px) {
.me-mag .hero__inner { grid-template-columns: 1fr; padding-top: 48px; gap: 8px; text-align: center; }
.me-mag .hero__copy { order: 2; }
.me-mag .hero__deck { margin-left: auto; margin-right: auto; }
.me-mag .hero__also { justify-items: center; }
.me-mag .hero__also li b { display: none; }
.me-mag .ctas, .me-mag .meta { justify-content: center; }
.me-mag .kicker::before { display: none; }
.me-mag .stage { height: 460px; }
.me-mag .book { width: 280px; height: 362px; --t: 16px; }
.me-mag .floor { width: 300px; }
}

@media (max-width: 640px) {
.me-mag .bar__title span, .me-mag .bar [data-hide-sm] { display: none; }
.me-mag .nav { display: none; }
.me-mag .thumb { height: 52px; }
.me-mag .cards { grid-auto-columns: 82%; }
.me-mag .inside__head h2 { font-size: 26px; }
.me-mag .scroller-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
.me-mag .book, .me-mag .floor, .me-mag .stage__hint i { animation: none; }
}

/* ---------- WordPress integration ---------- */
.me-mag:not(.me-mag--portal) { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: calc(-1 * var(--me-mag-offset, 0px)); }
.me-mag .hero { min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); }
.me-mag--portal { position: relative; z-index: 100000; }
.me-mag .reader { z-index: 100000; }
.me-mag .toast { z-index: 100001; }
.me-mag h1, .me-mag h2, .me-mag h3 { color: #fff; text-transform: none; }
.me-mag button { padding: 0; min-height: 0; line-height: inherit; letter-spacing: inherit; text-transform: none; background: none; border-radius: 0; box-shadow: none; }
.me-mag .btn, .me-mag .ib, .me-mag .nav, .me-mag .scroller-nav button { border-radius: 999px; }
.me-mag .btn--primary { background: var(--accent); }
.me-mag .nav { background: rgba(0,0,0,.45); }
.me-mag .nav:hover { background: var(--accent); }
.me-mag .thumb { border-radius: 3px; }
.me-mag .toc button { border-radius: 0; }
.me-rev-page .cs-entry__header { display: none; }
.me-rev-page .cs-site-primary, .me-rev-page .cs-site-content, .me-rev-page .cs-main-content { padding-top: 0; padding-bottom: 0; margin-top: 0; }
.me-rev-page .cs-main-content { overflow: visible; }

/* Read counter badge */
.me-mag .me-reads, .me-teaser .me-reads { display: inline-flex; align-items: center; gap: 6px; }
.me-mag .me-reads[hidden], .me-teaser .me-reads[hidden] { display: none; }
.me-mag .me-reads svg, .me-teaser .me-reads svg { width: 15px; height: 15px; fill: none; stroke: #fd4f5a; stroke-width: 2; }
.me-mag .me-reads b { color: #fff; font-weight: 500; }
.me-teaser .me-reads--teaser { font-size: 13px; color: rgba(255, 255, 255, .55); }
.me-teaser .me-reads--teaser b { color: #fff; font-weight: 500; }

/* Archive of past editions */
.me-mag .archive { padding-top: 0; }
.me-mag .archive__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px; }
.me-mag .archive__item { display: block; text-align: center; }
.me-mag .archive__cover { display: block; aspect-ratio: .773; border-radius: 3px; overflow: hidden; box-shadow: 0 14px 30px rgba(0,0,0,.45); transition: transform .4s var(--ease); background: #222; }
.me-mag .archive__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-mag .archive__item:hover .archive__cover { transform: translateY(-6px) rotate(-1deg); }
.me-mag .archive__name { display: block; margin-top: 12px; font-family: Aleo, serif; font-size: 15px; color: #fff; }
.me-mag--empty { padding: 120px 24px; text-align: center; color: rgba(255,255,255,.7); font-size: 18px; }
