/* ==========================================================
   Revista Tamazula — estilos
   Paleta de marca: Verde Tamazula #0D2D1D · Verde Sierra #2F3E34
                    Terracota #C4603D · Ocre Maíz #E1D39E · Crema #F7F3EC
   ========================================================== */
:root {
  --verde: #0d2d1d;
  --verde-2: #163424;
  --sierra: #2f3e34;
  --terracota: #c4603d;
  --terracota-hover: #ad5232;
  --terracota-text: #a94f2f;
  --ocre: #e1d39e;
  --crema: #f7f3ec;
  --crema-2: #fbf9f4;
  --texto: #1d231f;
  --texto-suave: #545a56;
  --linea: #ddd6c8;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Playfair Display", Georgia, serif;
  --max: 1280px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--sans); color: var(--texto); background: var(--crema);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.12; }
button { font: inherit; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--verde); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--terracota); outline-offset: 3px; }
.i { width: 20px; height: 20px; flex-shrink: 0; }

.eyebrow { font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--texto-suave); margin: 0 0 10px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 15px/1.1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-primary { background: var(--terracota); color: #fff; }
.btn-primary:hover { background: var(--terracota-hover); box-shadow: 0 8px 20px rgba(196,96,61,.3); }
.btn-outline { border-color: var(--terracota); color: var(--terracota-text); background: transparent; }
.btn-outline:hover { background: var(--terracota); color: #fff; }
.btn-wa { background: var(--verde); color: var(--crema); }
.btn-wa .i { color: var(--ocre); }
.btn-wa:hover { background: var(--sierra); box-shadow: 0 8px 20px rgba(13,45,29,.22); }
.btn-tel { background: transparent; color: var(--verde); border-color: var(--verde); }
.btn-tel:hover { background: var(--verde); color: var(--crema); }
.btn-ghost-light { background: transparent; color: var(--crema); border-color: rgba(247,243,236,.45); }
.btn-ghost-light:hover { border-color: var(--crema); background: rgba(247,243,236,.08); }
.feature .btn-wa { background: var(--crema); color: var(--verde); }
.feature .btn-wa .i { color: #1f7a4a; }
.feature .btn-wa:hover { background: #fff; }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; flex-shrink: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--texto); cursor: pointer;
  transition: background .2s, transform .15s;
}
.icon-btn:hover { background: rgba(13,45,29,.08); }
.icon-btn:active { transform: scale(.92); }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--crema-2); border-bottom: 1px solid rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-frog { width: 58px; height: auto; }
.brand-divider { width: 1px; height: 34px; background: #b9b3a6; margin: 0 18px; }
.brand-mast { width: 176px; height: auto; margin-top: -6px; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: #16211a; padding: 8px 2px; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 2px; background: var(--verde); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--verde); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; gap: 5px; place-content: center; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--verde); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Anuncio principal ---------- */
.feature { background: var(--verde); color: var(--crema); position: relative; overflow: hidden; }
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background: url("../assets/tamazula-hero.jpg") center 30% / cover no-repeat;
  mix-blend-mode: luminosity;
}
.feature-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.feature-media {
  display: block; border-radius: 6px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.feature-media:hover { transform: translateY(-3px); box-shadow: 0 36px 70px rgba(0,0,0,.42); }
.feature-media img { width: 100%; height: 100%; object-fit: contain; }
.eyebrow-light { color: var(--ocre); }
.feature-copy h1 { font-size: clamp(34px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.5px; margin-bottom: 16px; }
.feature-copy h1 em { display: block; font-weight: 400; font-style: italic; color: var(--ocre); }
.feature-lead { font-size: 16.5px; color: rgba(247,243,236,.86); margin: 0 0 30px; max-width: 460px; }
.feature-card { border-top: 1px solid rgba(225,211,158,.35); padding-top: 26px; margin-bottom: 26px; }
.feature-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ocre); margin: 0 0 8px; }
.feature-card h2 { font-size: clamp(26px, 2.3vw, 34px); margin-bottom: 8px; }
.feature-meta { font-size: 15px; color: rgba(247,243,236,.82); margin: 0 0 22px; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-light { color: var(--crema); font-size: 15px; font-weight: 500; text-underline-offset: 4px; display: inline-flex; gap: 8px; min-height: 44px; align-items: center; }
.link-light:hover { color: var(--ocre); }

/* ---------- Encabezados de sección ---------- */
.section-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(24px, 2vw, 30px); white-space: nowrap; }
.head-line { flex: 1; height: 1px; background: var(--linea); }

/* ---------- Categorías ---------- */
.categories-wrap { padding-top: 52px; }
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-card {
  position: relative; display: flex; align-items: center; height: 124px; overflow: hidden;
  text-decoration: none; color: #fff; border-radius: 4px; background: var(--verde);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.08) 15%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.5)); }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.2); }
.cat-card:hover img { transform: scale(1.05); }
.cat-body { position: relative; z-index: 2; margin-left: 40%; padding-right: 48px; }
.cat-card h3 { font-size: clamp(21px, 1.7vw, 26px); }
.cat-card p { margin: 6px 0 0; font-size: 13.5px; opacity: .95; line-height: 1.35; }
.cat-arrow { position: absolute; z-index: 2; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; transition: transform .2s; }
.cat-card:hover .cat-arrow { transform: translate(4px, -50%); }

/* ---------- Directorio ---------- */
.dir-empty { text-align: center; padding: 64px 16px 40px; display: flex; flex-direction: column; align-items: center; }
.dir-empty[hidden] { display: none; }
.dir-empty img { margin-bottom: 18px; }
.dir-empty h3 { font-size: 26px; color: var(--verde); margin-bottom: 8px; }
.dir-empty p { color: var(--texto-suave); margin: 0 0 22px; }

/* ---------- Revista + Anúnciate ---------- */
.promo { display: grid; grid-template-columns: 1.1fr auto 1fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 72px; }
.promo-mag { display: flex; align-items: center; gap: 48px; }
.promo-ads { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.promo-divider { width: 1px; height: 180px; background: var(--linea); }
.promo-text h2 { font-size: clamp(28px, 2.2vw, 34px); color: var(--verde); margin-bottom: 10px; }
.promo-text p:not(.eyebrow) { font-size: 15px; color: #3b403c; margin: 0 0 20px; max-width: 380px; }
.mag-cover { width: 200px; flex-shrink: 0; transform: rotate(-6deg); box-shadow: 8px 14px 30px rgba(0,0,0,.24); background: #fff; }
.mag-cover img { width: 100%; height: auto; }
.promo-art { position: relative; width: 240px; height: 190px; flex-shrink: 0; }
.leaf { position: absolute; left: 0; bottom: 0; width: 120px; color: #6b6f67; }
.script { position: absolute; right: 0; top: 14px; margin: 0; font-family: var(--script); font-style: italic; font-size: 21px; line-height: 1.15; transform: rotate(-12deg); }
.swash { position: absolute; right: 0; top: 116px; width: 96px; color: var(--terracota); transform: rotate(-10deg); }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--verde-2); color: #efe9da; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; }
.foot-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.foot-mast { width: 130px; height: auto; margin-top: -5px; }
.foot-tag { margin: 0 0 6px; font-size: 14px; }
.foot-script { margin: 0; font-family: var(--script); font-style: italic; font-size: 18px; color: var(--ocre); }
.foot-col h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ocre); margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; }
.foot-col li { min-height: 32px; display: flex; align-items: center; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--ocre); text-decoration: underline; text-underline-offset: 3px; }
.foot-social { display: flex; gap: 6px; margin-bottom: 10px; }
.foot-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(239,233,218,.3); color: #efe9da; }
.foot-social a:hover { border-color: var(--ocre); color: var(--ocre); }
.link-cream { background: none; border: 0; padding: 0; min-height: 44px; color: #efe9da; font-size: 14.5px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-cream:hover { color: var(--ocre); }
.copyright { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(239,233,218,.15); font-size: 12.5px; color: rgba(239,233,218,.7); }

/* ---------- Visor de anuncios ---------- */
.viewer {
  width: min(1200px, calc(100% - 32px)); max-width: none; height: calc(100dvh - 32px); max-height: none;
  padding: 0; border: 0; border-radius: 8px; background: #111a14; color: var(--crema); overflow: hidden;
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: pop .25s var(--ease); }
.viewer::backdrop { background: rgba(8,16,11,.82); }
@keyframes pop { from { opacity: 0; transform: scale(.98); } }
.viewer-bar, .viewer-foot { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 20px; }
.viewer-foot { justify-content: center; padding: 10px 12px; gap: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.viewer-title { margin: 0; flex: 1; font-family: var(--serif); font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-tools { display: flex; gap: 4px; }
.viewer .icon-btn { color: var(--crema); }
.viewer .icon-btn:hover { background: rgba(255,255,255,.1); }
.viewer .icon-btn[aria-pressed="true"] { background: rgba(225,211,158,.2); color: var(--ocre); }
.viewer-stage { min-height: 0; height: 100%; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 8px 16px; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.viewer-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; cursor: zoom-in; }
.viewer-stage.is-zoomed { display: block; }
.viewer-stage.is-zoomed img { max-width: none; max-height: none; width: var(--zw); cursor: zoom-out; }
.viewer-foot .btn-wa { background: var(--crema); color: var(--verde); }
.viewer-foot .btn-wa .i { color: #1f7a4a; }
.viewer-foot .btn-tel { color: var(--crema); border-color: var(--crema); }
body.no-scroll { overflow: hidden; }

/* ---------- Pop-up Anúnciate ---------- */
.ad-modal { width: min(1000px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 10px; background: var(--crema-2); color: var(--texto); box-shadow: 0 30px 80px rgba(8,20,12,.45); overflow: hidden; }
.ad-modal::backdrop { background: rgba(8,20,12,.72); }
.ad-modal[open] { animation: pop .3s var(--ease); }
.modal-shell { position: relative; display: grid; grid-template-columns: 280px 1fr; max-height: calc(100dvh - 48px); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--verde); cursor: pointer; }
.modal-close:hover { background: rgba(13,45,29,.08); }
.modal-side { background: var(--verde); color: #efe9da; padding: 36px 28px; display: flex; flex-direction: column; gap: 32px; }
.modal-brand { display: flex; align-items: center; gap: 8px; }
.modal-mast { width: 124px; height: auto; margin-top: -5px; }
.modal-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.modal-perks li { position: relative; padding-left: 22px; font-size: 14.5px; }
.modal-perks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--terracota); }
.modal-script { margin-top: auto; }
.modal-script p { margin: 0; font-family: var(--script); font-style: italic; font-size: 23px; line-height: 1.15; color: var(--ocre); transform: rotate(-6deg); transform-origin: left; }
.modal-main { overflow-y: auto; overscroll-behavior: contain; padding: 36px 44px 32px; }
.modal-main h2 { font-size: clamp(28px, 2.4vw, 34px); color: var(--verde); margin-bottom: 8px; padding-right: 40px; }
.modal-lead { font-size: 15px; color: #3b403c; margin: 0 0 22px; }
.modal-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; padding: 0; }
.field legend { margin-bottom: 8px; }
.req { color: var(--terracota); }
.opt { color: var(--texto-suave); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: 16px/1.4 var(--sans); color: var(--texto); padding: 11px 14px; min-height: 48px; border: 1.5px solid var(--linea); border-radius: 6px; background: #fff; outline: none; }
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f3e34' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(13,45,29,.12); }
.field.is-invalid input, .field.is-invalid select { border-color: #b3261e; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex !important; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--linea); border-radius: 6px; cursor: pointer; font-weight: 400 !important; background: #fff; }
.check input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--terracota); }
.check:has(input:checked) { border-color: var(--terracota); background: rgba(196,96,61,.06); }
.form-error { margin: 0; padding: 12px 14px; border-radius: 6px; background: #fbeae6; color: #8c2a1c; font-size: 14px; }
.form-legal { margin: 0; font-size: 13px; color: var(--texto-suave); flex: 1; min-width: 200px; }
.modal-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.modal-actions .btn[disabled] { opacity: .75; cursor: progress; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.modal-thanks { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 420px; }
.modal-thanks h2 { padding-right: 0; outline: none; }
.modal-thanks p { color: #3b403c; max-width: 420px; margin: 0 0 26px; }
.thanks-frog { margin-bottom: 20px; }
.modal-view[hidden] { display: none !important; }

/* ---------- WhatsApp de la revista ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--terracota); color: #fff;
  text-decoration: none; font: 500 14.5px/1 var(--sans); box-shadow: 0 10px 26px rgba(8,20,12,.3);
  transition: transform .25s var(--ease), background .2s;
}
.wa-float .i { width: 24px; height: 24px; }
.wa-float:hover { transform: translateY(-3px); background: var(--terracota-hover); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .main-nav { gap: 22px; }
  .header-cta { display: none; }
  .feature-inner { gap: 44px; }
  .promo { grid-template-columns: 1fr; gap: 44px; }
  .promo-divider { width: 100%; height: 1px; }
  .promo-mag { padding-left: 16px; }
}

@media (max-width: 1099px) {
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--crema-2); padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.08);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--linea); }
  .main-nav a::after { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }

  .feature-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; padding-bottom: 44px; }
  .feature-ad { max-width: 720px; width: 100%; margin: 0 auto; }
  .feature-copy { max-width: 720px; width: 100%; margin: 0 auto; }

  .categories { grid-template-columns: repeat(2, 1fr); }


  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
}

@media (max-width: 699px) {
  html { scroll-padding-top: 72px; }
  .container { padding: 0 16px; }
  .header-inner { height: 64px; gap: 12px; }
  .main-nav { inset: 64px 0 auto 0; }
  .brand-frog { width: 40px; }
  .brand-divider { height: 24px; margin: 0 10px; }
  .brand-mast { width: 128px; margin-top: -3px; }
  .header-actions { gap: 4px; }

  .feature-inner { padding-top: 20px; padding-bottom: 36px; gap: 24px; }
  .feature-media { border-radius: 4px; }
  .feature-copy h1 { font-size: 32px; }
  .feature-actions .btn { width: 100%; }

  .categories-wrap { padding-top: 40px; }
  .categories { grid-template-columns: 1fr; gap: 8px; }
  .cat-card { height: 96px; }
  .cat-body { margin-left: 38%; }
  .section-head h2 { white-space: normal; }



  .promo { padding-top: 56px; padding-bottom: 96px; }
  .promo-mag { flex-direction: column; align-items: flex-start; padding-left: 0; gap: 36px; }
  .mag-cover { margin-left: 18px; width: 180px; }
  .promo-ads { flex-direction: column; align-items: flex-start; }
  .promo-art { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding-bottom: 96px; }

  .viewer { width: 100%; height: 100dvh; border-radius: 0; }
  .viewer-stage { padding: 4px; }
  .viewer-foot .btn { flex: 1; }

  .ad-modal { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .modal-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; max-height: 100dvh; height: 100%; }
  .modal-side { flex-direction: row; padding: 14px 16px; }
  .modal-perks, .modal-script { display: none; }
  .modal-close { color: #efe9da; top: 8px; right: 8px; }
  .modal-main { padding: 24px 16px 28px; }
  .field-row, .checks { grid-template-columns: 1fr; }
  .modal-actions .btn { width: 100%; }

  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}


/* ==========================================================
   Navegación por secciones (v20)
   ========================================================== */
/* Menú desplegable de categorías */
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px; border: 0; background: none; font-size: 15px; font-weight: 500; color: #16211a; cursor: pointer; min-height: 44px; }
.nav-drop-btn svg { transition: transform .2s; }
.nav-drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-drop-btn.active { color: var(--verde); box-shadow: inset 0 -2px 0 var(--verde); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, -6px); min-width: 250px;
  list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--linea); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(13,45,29,.14); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
}
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 6px; text-decoration: none; font-family: var(--serif); font-size: 18px; color: var(--verde); }
.nav-drop-menu a::after { display: none; }
.nav-drop-menu small { font-family: var(--sans); font-size: 12px; color: var(--texto-suave); }
.nav-drop-menu a:hover, .nav-drop-menu a[aria-current="page"] { background: var(--crema); }
.nav-drop-menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--terracota); }

/* Encabezado de categoría */
.cat-hero { position: relative; color: #fff; background: var(--verde); overflow: hidden; }
.cat-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,20,12,.88) 0%, rgba(8,20,12,.7) 45%, rgba(8,20,12,.25) 100%); }
.cat-hero-inner { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 48px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.crumbs a { color: #fff; }
.cat-hero h1 { font-size: clamp(42px, 5vw, 72px); font-weight: 700; letter-spacing: -.5px; }
.cat-hero-tag { font-family: var(--script); font-style: italic; font-size: clamp(20px, 2vw, 26px); color: var(--ocre); margin: 6px 0 12px; }
.cat-hero-desc { margin: 0; max-width: 480px; font-size: 16px; color: rgba(255,255,255,.88); }

/* Pestañas */
.tabs-bar { position: sticky; top: 76px; z-index: 30; background: var(--crema-2); border-bottom: 1px solid var(--linea); }
.tabs-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 18px;
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--texto-suave); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s;
}
.tab span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--crema); color: var(--texto-suave); }
.tab:hover { color: var(--verde); }
.tab[aria-current="page"] { color: var(--verde); border-bottom-color: var(--terracota); }
.tab[aria-current="page"] span { background: var(--verde); color: var(--crema); }
.page-search { width: 300px; flex-shrink: 0; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box > svg { position: absolute; left: 16px; color: var(--texto-suave); pointer-events: none; }
.search-box input { width: 100%; min-height: 44px; padding: 0 16px 0 44px; font: 16px var(--sans); color: var(--texto); border: 1.5px solid var(--linea); border-radius: 999px; background: #fff; outline: none; }
.search-box input:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(13,45,29,.12); }

/* Mosaico de anuncios */
.mosaic-wrap { padding-top: 28px; padding-bottom: 40px; }
.mosaic-status { margin: 0 0 22px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-suave); }
.mosaic { columns: 3; column-gap: 28px; }
.ad { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 34px; scroll-margin-top: 150px; }
.ad[hidden] { display: none; }
.ad-figure { position: relative; }
.ad-media { display: block; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(13,45,29,.08), 0 10px 26px rgba(13,45,29,.1); transition: transform .25s var(--ease), box-shadow .25s; }
.ad-media:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(13,45,29,.08), 0 18px 36px rgba(13,45,29,.16); }
.ad-media picture, .ad-media img { display: block; width: 100%; height: 100%; }
.zoom-ov { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--verde); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: transform .2s; }
.zoom-ov:hover { transform: scale(1.06); }
.ad-body { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 2px 0; }
.ad-text { min-width: 0; }
.ad-name { font-size: 19px; color: var(--texto); }
.ad-giro { margin: 3px 0 0; font-size: 13.5px; color: var(--texto-suave); line-height: 1.35; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; gap: 8px; flex-shrink: 0; }
.btn-sm .i { width: 18px; height: 18px; }
.ad.is-flash .ad-media { box-shadow: 0 0 0 4px var(--terracota), 0 18px 36px rgba(13,45,29,.16); }
.others { padding-bottom: 72px; }
.categories.cats-3 { grid-template-columns: repeat(3, 1fr); }

/* Buscador general */
.search-dlg { width: min(720px, calc(100% - 32px)); max-width: none; max-height: min(640px, calc(100dvh - 64px)); margin: 56px auto auto; padding: 0; border: 0; border-radius: 12px; background: var(--crema-2); color: var(--texto); box-shadow: 0 30px 80px rgba(8,20,12,.4); }
.search-dlg[open] { display: flex; flex-direction: column; animation: pop .2s var(--ease); }
.search-dlg::backdrop { background: rgba(8,20,12,.6); }
.search-dlg-top { display: flex; align-items: center; gap: 8px; padding: 16px 12px 12px 16px; border-bottom: 1px solid var(--linea); }
.search-dlg-top .search-box { flex: 1; }
.search-dlg-top input { min-height: 52px; font-size: 17px; }
.search-hint { margin: 0; padding: 12px 20px 4px; font-size: 13.5px; color: var(--texto-suave); }
.search-results { list-style: none; margin: 0; padding: 6px 10px 14px; overflow-y: auto; }
.search-results li { display: flex; align-items: center; gap: 12px; padding: 4px; border-radius: 8px; }
.search-results li:hover { background: #fff; }
.sr-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 6px; text-decoration: none; color: inherit; border-radius: 6px; }
.sr-link img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; background: #fff; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.sr-link strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--verde); }
.sr-link small { display: block; font-size: 13px; color: var(--texto-suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-wa { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--verde); color: var(--ocre); }

@media (max-width: 1099px) {
  .nav-drop { width: 100%; }
  .nav-drop-btn { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--linea); }
  .nav-drop-btn.active { box-shadow: none; }
  .nav-drop-menu { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; background: transparent; min-width: 0; }
  .nav-drop.open .nav-drop-menu { display: block; transform: none; }
  .mosaic { columns: 2; column-gap: 20px; }
  .tabs-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .page-search { width: 100%; padding: 4px 0 12px; }
  .categories.cats-3 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 699px) {
  .tabs-bar { position: relative; top: auto; }
  .tabs { gap: 0; margin: 0 -8px; }
  .tab { min-height: 50px; padding: 0 9px; font-size: 14.5px; }
  .tab span { display: none; }
  .cat-hero-inner { padding-top: 28px; padding-bottom: 32px; }
  .mosaic { columns: 1; }
  .ad { margin-bottom: 30px; }
  .ad-body { align-items: flex-start; }
  .categories.cats-3 { grid-template-columns: 1fr; }
  .search-dlg { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
}
.viewer-nav[hidden] { display: none; }

/* ==========================================================
   Revista hojeable
   ========================================================== */
.fb-hero { background: radial-gradient(ellipse at 50% 40%, #1d4630 0%, var(--verde) 55%, #081a10 100%); color: var(--crema); padding-bottom: 36px; overflow: hidden; }
.fb-hero-inner { padding-top: 18px; padding-bottom: 0; text-align: center; }
.fb-hero .crumbs { margin-bottom: 4px; }
.fb-hero .eyebrow { margin-bottom: 6px; }
.fb-hero .crumbs { text-align: left; }
.fb-hero h1 { font-size: clamp(30px, 2.8vw, 40px); font-weight: 700; }
.fb-lead { margin: 6px auto 0; max-width: 560px; color: rgba(247,243,236,.82); font-size: 15.5px; }

.fb { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px 16px 4px; }
.fb-stage { --ph: min(640px, calc(100dvh - 340px), calc((100vw - 200px) / 2 / .7908)); perspective: 2600px; }
.fb-book { position: relative; height: var(--ph); width: calc(var(--ph) * .7908 * 2); transition: transform .6s var(--ease); }
.fb-book.is-cover { transform: translateX(-25%); }
.fb-book.is-back { transform: translateX(25%); }
.fb-page { position: absolute; top: 0; width: 50%; height: 100%; background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.fb-page img, .fb-face img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.fb-left { left: 0; border-radius: 3px 0 0 3px; overflow: hidden; }
.fb-right { right: 0; border-radius: 0 3px 3px 0; overflow: hidden; }
.fb-page.is-empty { visibility: hidden; }
.fb-spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 60px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.18) 55%, rgba(0,0,0,0) 100%); }
.fb-book.is-cover .fb-spine, .fb-book.is-back .fb-spine { opacity: 0; }

.fb-leaf { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; display: none; z-index: 5; }
.fb-leaf.on { display: block; }
.fb-leaf.fwd { left: 50%; transform-origin: left center; }
.fb-leaf.back { left: 0; transform-origin: right center; }
.fb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: #fff; }
.fb-back { transform: rotateY(180deg); }
.fb-shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.fb-leaf.fwd .fb-front .fb-shade { background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); }
.fb-leaf.fwd .fb-back .fb-shade { background: linear-gradient(270deg, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); }
.fb-leaf.back .fb-front .fb-shade { background: linear-gradient(270deg, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); }
.fb-leaf.back .fb-back .fb-shade { background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); }
.fb-leaf.anim { animation: fb-turn-f var(--dur, .9s) cubic-bezier(.45,.05,.3,1) forwards; }
.fb-leaf.back.anim { animation-name: fb-turn-b; }
.fb-leaf.anim .fb-shade { animation: fb-shade var(--dur, .9s) ease-in-out forwards; }
@keyframes fb-turn-f { 0% { transform: rotateY(0) } 100% { transform: rotateY(-180deg) } }
@keyframes fb-turn-b { 0% { transform: rotateY(0) } 100% { transform: rotateY(180deg) } }
@keyframes fb-shade { 0% { opacity: 0 } 50% { opacity: 1 } 100% { opacity: 0 } }

.fb-hit { position: absolute; top: 0; height: 100%; width: 50%; border: 0; background: transparent; cursor: pointer; z-index: 6; }
.fb-hit-l { left: 0; cursor: w-resize; }
.fb-hit-r { right: 0; cursor: e-resize; }
.fb-nav { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid rgba(225,211,158,.5); background: rgba(13,45,29,.6); color: var(--crema); display: grid; place-items: center; cursor: pointer; z-index: 7; transition: background .2s, opacity .2s; }
.fb-nav:hover:not(:disabled) { background: var(--terracota); border-color: var(--terracota); }
.fb-nav:disabled { opacity: .3; cursor: default; }

.fb-bar { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 14px; }
.fb-count { margin: 0; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ocre); font-weight: 600; min-width: 180px; text-align: center; }
.fb-full { min-height: 40px; padding: 0 16px; font-size: 14px; }
.fb-thumbs { display: flex; gap: 12px; justify-content: center; padding: 20px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.fb-thumbs::-webkit-scrollbar { display: none; }
.fb-thumb { flex-shrink: 0; display: flex; padding: 3px; border: 2px solid transparent; border-radius: 4px; background: transparent; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.fb-thumb img { height: 64px; width: auto; display: block; }
.fb-thumb:hover { opacity: 1; }
.fb-thumb[aria-current="true"] { opacity: 1; border-color: var(--ocre); }

.fb-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 72px; flex-wrap: wrap; }
.fb-cta h2 { font-size: clamp(26px, 2.4vw, 34px); color: var(--verde); }
.fb-cta p { margin: 6px 0 0; color: var(--texto-suave); }
.fb-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pantalla completa */
.fb-hero:fullscreen { display: flex; flex-direction: column; justify-content: center; padding: 0; }
.fb-hero:fullscreen .fb-hero-inner { display: none; }
.fb-hero:fullscreen .fb-stage { --ph: min(calc(100dvh - 190px), calc((100vw - 200px) / 2 / .7908)); }

/* Celular: una página a la vez */
@media (max-width: 760px) {
  .fb { gap: 0; padding: 18px 0 6px; }
  .fb-stage { --ph: min(calc((100vw - 32px) / .7908), calc(100dvh - 230px)); }
  .fb-book, .fb-book.is-cover, .fb-book.is-back { width: calc(var(--ph) * .7908); transform: none; }
  .fb-left, .fb-spine, .fb-hit-l { display: none; }
  .fb-right { width: 100%; border-radius: 3px; }
  .fb-leaf { width: 100%; }
  .fb-leaf.fwd, .fb-leaf.back { left: 0; transform-origin: left center; }
  .fb-leaf.back.anim { animation-name: fb-turn-in; }
  @keyframes fb-turn-in { 0% { transform: rotateY(-180deg) } 100% { transform: rotateY(0) } }
  .fb-hit-l { display: block; width: 35%; }
  .fb-hit-r { width: 65%; }
  .fb-nav { position: absolute; bottom: -62px; width: 48px; height: 48px; }
  .fb-prev { left: 16px; } .fb-next { right: 16px; }
  .fb-bar { margin-top: 18px; padding: 0 72px; }
  .fb-full { display: none; }
  .fb-count { min-width: 0; font-size: 12.5px; }
}
@media (max-width: 760px) { .page-revista .wa-float { display: none; } }

/* ---------- Compartir ---------- */
.share-label { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ocre); }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(239,233,218,.4); background: transparent; color: #efe9da; font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.share-btn .i { width: 18px; height: 18px; }
.share-wa:hover { background: #1f7a4a; border-color: #1f7a4a; color: #fff; }
.share-ig:hover { background: #c4603d; border-color: #c4603d; color: #fff; }
.share-copy:hover { border-color: var(--ocre); color: var(--ocre); }
.share-foot { margin-top: 18px; }
.share-foot .share-btns { flex-direction: column; align-items: flex-start; }
.share-hero { display: flex; flex-direction: column; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(225,211,158,.2); }
.share-hero .share-btns { justify-content: center; }

.story-dlg { width: min(760px, calc(100% - 32px)); max-width: none; padding: 32px; border: 0; border-radius: 12px; background: var(--crema-2); color: var(--texto); box-shadow: 0 30px 80px rgba(8,20,12,.45); }
.story-dlg::backdrop { background: rgba(8,20,12,.7); }
.story-dlg[open] { animation: pop .25s var(--ease); }
.story-close { position: absolute; top: 10px; right: 10px; }
.story-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.story-grid > img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.story-dlg h2 { font-size: 30px; color: var(--verde); margin-bottom: 14px; }
.story-steps { margin: 0 0 22px; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; color: #3b403c; }
.story-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.story-note { margin: 12px 0 0; font-size: 13.5px; color: var(--verde); min-height: 20px; }
@media (max-width: 699px) {
  .story-dlg { padding: 24px 18px; }
  .story-grid { grid-template-columns: 110px 1fr; gap: 18px; align-items: start; }
  .story-dlg h2 { font-size: 24px; }
  .story-actions .btn { width: 100%; }
}
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--verde); color: var(--crema); padding: 12px 20px; border-radius: 999px; font-size: 14.5px; box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; transition: opacity .25s, transform .25s; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
