/* =========================================================
   Revista Mais Dinâmica — Modern Redesign
   ========================================================= */

:root {
  --brand: #ef7e1e;
  --brand-dark: #d96d12;
  --brand-soft: #fff3e8;
  --ink: #111418;
  --ink-2: #2a2f37;
  --muted: #5a6270;
  --muted-2: #8a93a1;
  --line: #e7eaef;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-dark: #0f1115;
  --shadow-sm: 0 2px 6px rgba(15, 17, 21, .04), 0 1px 2px rgba(15, 17, 21, .04);
  --shadow-md: 0 10px 30px rgba(15, 17, 21, .07), 0 4px 12px rgba(15, 17, 21, .04);
  --shadow-lg: 0 30px 60px rgba(15, 17, 21, .12), 0 10px 24px rgba(15, 17, 21, .06);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --header-h: 76px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-dark); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}
.section--tight { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #d8dde4; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}
.section-head .lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin: 16px auto 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(239, 126, 30, .28);
}
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(239, 126, 30, .35); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn--outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* =====================================
   HEADER / NAV
   ===================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 17, 21, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header.is-scrolled {
  background: rgba(15, 17, 21, .98);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-menu a {
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  position: relative;
  transition: color .2s ease, background .2s ease;
}
.nav-menu a:hover, .nav-menu a.is-active { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta {
  margin-left: 12px;
  background: var(--brand);
  color: #fff !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--brand-dark); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* =====================================
   HERO / BANNER SLIDER
   ===================================== */
.hero {
  margin-top: var(--header-h);
  position: relative;
  background: var(--bg-dark);
}
.slider {
  position: relative;
  overflow: hidden;
}
.slider-track {
  display: flex;
  transition: transform .7s cubic-bezier(.65,.05,.36,1);
}
.slider-slide {
  min-width: 100%;
  position: relative;
}
.slider-slide a, .slider-slide img {
  display: block;
  width: 100%;
}
.slider-slide {
  background: var(--bg-dark);
}
.slider-slide img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: initial;
  display: block;
}
.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  z-index: 3;
  box-shadow: var(--shadow-md);
  transition: background .2s ease, transform .2s ease;
}
.slider-arrow:hover { background: var(--brand); color: #fff; }
.slider-arrow--prev { left: 24px; }
.slider-arrow--next { right: 24px; }
.slider-dots {
  position: absolute;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: width .25s ease, background .2s ease;
}
.slider-dot.is-active { width: 24px; background: var(--brand); border-radius: 4px; }

/* =====================================
   SOBRE
   ===================================== */
.about {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.96)),
    url('../images/18.jpg') center/cover no-repeat fixed;
}
.about__title {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 400;
  font-style: italic;
  text-align: center;
  margin-bottom: 24px;
  color: var(--ink);
}
.about__text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* =====================================
   REVISTAS GRID
   ===================================== */
.magazines-slider {
  position: relative;
}
.magazines-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.magazine-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  aspect-ratio: 462/642;
}
.magazine-card a { display: block; height: 100%; }
.magazine-card img { width: 100%; height: 100%; object-fit: cover; }
.magazine-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.magazine-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  opacity: 0;
  transition: opacity .3s ease;
}
.magazine-card:hover::after { opacity: 1; }
.magazine-card .open-pdf {
  position: absolute;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 2;
  pointer-events: none;
}
.magazine-card:hover .open-pdf { opacity: 1; }

/* =====================================
   FLIPBOOK
   ===================================== */
.flipbook-section { padding: 64px 0; }
.flipbook-wrap {
  position: relative;
  padding-top: max(60%, 324px);
  width: 100%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.flipbook-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* =====================================
   EDITORIAS / BLOG
   ===================================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.05); }
.blog-card__body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.35;
}
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--brand); }
.blog-card__excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}
.blog-card__more {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}
.blog-card__more::after { content: ' →'; transition: margin-left .2s ease; }
.blog-card:hover .blog-card__more::after { margin-left: 4px; }

.sidebar {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.sidebar__title {
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--brand);
}
.sidebar__list { display: flex; flex-direction: column; }
.sidebar__list a {
  color: rgba(255,255,255,.85);
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s ease, padding-left .2s ease;
}
.sidebar__list a:hover, .sidebar__list a.is-active {
  color: var(--brand);
  padding-left: 6px;
}
.sidebar__list a:last-child { border-bottom: 0; }

.center-cta {
  text-align: center;
  margin-top: 48px;
  grid-column: 1 / -1;
}

/* =====================================
   PARCEIROS / LOGOS
   ===================================== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: center;
}
.partner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 5/3;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.partner-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.partner-card img {
  max-height: 80px;
  width: auto;
  filter: grayscale(100%);
  opacity: .75;
  transition: filter .25s ease, opacity .25s ease;
}
.partner-card:hover img { filter: grayscale(0); opacity: 1; }

/* =====================================
   PROFISSIONAIS / TEAM
   ===================================== */
.team {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.85), rgba(239,126,30,.85)),
    url('../images/19.jpg') center/cover no-repeat fixed;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.team-card {
  background: rgba(255,255,255,.96);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brand);
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.team-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* =====================================
   CONTATO
   ===================================== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.contact-card__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.contact-card h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.contact-card p, .contact-card a {
  font-size: 15px;
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
  word-break: break-word;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}
.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}
.contact-form input, .contact-form textarea, .form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .form-input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(239,126,30,.12);
}
.contact-form textarea {
  min-height: 156px;
  resize: vertical;
  grid-column: 2 / 3;
  grid-row: 1 / 4;
}
.contact-form .submit-row {
  grid-column: 1 / -1;
  text-align: right;
}
.contact-form button {
  background: var(--brand);
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.contact-form button:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(239,126,30,.3); }

/* =====================================
   MODAL
   ===================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.98);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
  position: relative;
}
.modal-backdrop.is-open .modal { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--muted);
  background: var(--bg-soft);
  transition: background .2s ease, color .2s ease;
}
.modal__close:hover { background: var(--brand); color: #fff; }
.modal__title {
  font-family: var(--serif);
  font-size: 28px;
  text-align: center;
  margin-bottom: 24px;
  color: var(--ink);
}
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal form button {
  background: var(--brand);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
  align-self: flex-end;
}
.modal form button:hover { background: var(--brand-dark); transform: translateY(-2px); }
.modal textarea { min-height: 110px; resize: vertical; }

/* =====================================
   FLOATING SOCIAL ICONS
   ===================================== */
.social-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  box-shadow: -3px 6px 18px rgba(15,17,21,.18);
}
.social-rail a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  transition: background .2s ease;
}
.social-rail a + a { border-top: 1px solid rgba(255,255,255,.18); }
.social-rail a:hover { background: var(--ink); color: #fff; }

/* =====================================
   FOOTER
   ===================================== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.72);
  padding: 40px 0;
  font-size: 14px;
}
.site-footer .footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--brand); }

/* =====================================
   DETAIL PAGE
   ===================================== */
.article-page {
  padding: 64px 0;
  margin-top: var(--header-h);
}
.article-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}
.article-grid h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
}
.article-resumo {
  font-size: 18px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.article-body { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.article-image {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* =====================================
   PAGE BANNER (interior pages)
   ===================================== */
.page-banner {
  background: var(--bg-dark);
  margin-top: var(--header-h);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(239,126,30,.16), transparent 60%);
  pointer-events: none;
}
.page-banner h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 8px;
  position: relative;
}
.page-banner p {
  color: rgba(255,255,255,.66);
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
  position: relative;
}

/* =====================================
   RESPONSIVE
   ===================================== */
@media (max-width: 980px) {
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; gap: 32px; }
  .article-image { position: static; }
  .contact-info { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form textarea { grid-column: 1 / -1; grid-row: auto; }
  .section { padding: 72px 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    border-bottom: 1px solid rgba(255,255,255,.08);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-menu a { padding: 14px 18px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }

  .slider-arrow { width: 38px; height: 38px; font-size: 14px; }
  .slider-arrow--prev { left: 10px; }
  .slider-arrow--next { right: 10px; }

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

  .social-rail { top: auto; bottom: 16px; transform: none; flex-direction: row; border-radius: 8px 0 0 8px; }
  .social-rail a + a { border-top: 0; border-left: 1px solid rgba(255,255,255,.18); }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }

  .site-footer .footer-row { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .magazines-track { grid-template-columns: 1fr 1fr; gap: 16px; }
  .modal { padding: 28px 22px; }
}

/* =========================================================
   v2 — REDESIGN: Stats, Spotlight, Editorial Grid, etc.
   ========================================================= */

/* ----- Stats row inside Sobre ----- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.stat-item { text-align: center; }
.stat-item__value {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--brand);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-item__label {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}

/* ----- Spotlight (replaces flipbook) ----- */
.spotlight {
  background: linear-gradient(135deg, #0c0e12 0%, #1a1f28 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.spotlight::before {
  content: '';
  position: absolute;
  top: -260px; right: -260px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(239,126,30,.22), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.spotlight::after {
  content: '';
  position: absolute;
  bottom: -180px; left: -180px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(239,126,30,.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.spotlight > .container { position: relative; z-index: 1; }
.spotlight__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.spotlight__cover {
  perspective: 1400px;
  position: relative;
}
.spotlight__cover-inner {
  position: relative;
  transform: rotateY(-10deg) rotateX(3deg);
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  transform-style: preserve-3d;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    -28px 38px 80px rgba(0,0,0,.55),
    -10px 18px 36px rgba(239,126,30,.18),
    0 0 0 1px rgba(255,255,255,.06);
  max-width: 460px;
  margin: 0 auto;
}
.spotlight__cover-inner img { display: block; width: 100%; height: auto; }

/* Branded HTML cover placeholder (when no image is provided) */
.cover-placeholder {
  width: 100%;
  aspect-ratio: 462 / 642;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(155deg, #1a1f28 0%, #ef7e1e 110%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 32px;
  position: relative;
  color: #fff;
  text-align: left;
}
.cover-placeholder::before {
  content: '';
  position: absolute;
  top: 24px; left: 32px; right: 32px;
  height: 1px;
  background: rgba(255,255,255,.25);
}
.cover-placeholder::after {
  content: '';
  position: absolute;
  bottom: 24px; left: 32px; right: 32px;
  height: 1px;
  background: rgba(255,255,255,.25);
}
.cover-placeholder__brand {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 10px;
}
.cover-placeholder__num {
  font-family: var(--serif);
  font-size: clamp(96px, 18vw, 156px);
  font-weight: 700;
  line-height: .9;
  align-self: flex-end;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.cover-placeholder__label {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .85;
  font-weight: 500;
  margin-bottom: 4px;
}
.spotlight__cover-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
  pointer-events: none;
}
.spotlight__cover-inner .pulse {
  position: absolute;
  inset: auto 16px 16px auto;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(239,126,30,.5);
}
.spotlight__content .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 16px;
}
.spotlight__content h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
}
.spotlight__content p {
  color: rgba(255,255,255,.78);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.spotlight__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--brand);
  color: #fff;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(239,126,30,.32);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.spotlight__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(239,126,30,.42);
  background: var(--brand-dark);
  color: #fff;
}
.spotlight__cta i { transition: transform .25s ease; }
.spotlight__cta:hover i { transform: translateX(4px); }
.spotlight__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
  max-width: 520px;
}
.spotlight__feature h4 {
  font-family: var(--serif);
  color: var(--brand);
  font-size: 30px;
  margin: 0 0 4px;
  font-weight: 600;
}
.spotlight__feature span {
  color: rgba(255,255,255,.55);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ----- Archive horizontal scroller ----- */
.archive-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) rgba(0,0,0,.06);
}
.archive-row::-webkit-scrollbar { height: 8px; }
.archive-row::-webkit-scrollbar-track { background: rgba(0,0,0,.06); border-radius: 4px; }
.archive-row::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 4px; }
.archive-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  aspect-ratio: 462/642;
  transition: transform .25s ease, box-shadow .25s ease;
  background: #fff;
}
.archive-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.archive-card img { width: 100%; height: 100%; object-fit: cover; }
.archive-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  opacity: 0;
  transition: opacity .25s ease;
}
.archive-card:hover::after { opacity: 1; }
.archive-card__label {
  position: absolute;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  color: #fff;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(239,126,30,.95);
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .25s ease, transform .25s ease;
}
.archive-card:hover .archive-card__label {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ----- Category pills ----- */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}
.category-pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.category-pill:hover, .category-pill.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ----- Editorial asymmetric grid ----- */
.editorial-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
}
.featured-article {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  aspect-ratio: 5/4;
  background: var(--bg-dark);
}
.featured-article img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.22,.61,.36,1);
}
.featured-article:hover img { transform: scale(1.05); }
.featured-article::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.85) 100%);
  z-index: 1;
}
.featured-article__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 36px 32px;
  z-index: 2;
  color: #fff;
}
.featured-article__tag {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
.featured-article__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 34px);
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.featured-article__excerpt {
  color: rgba(255,255,255,.86);
  font-size: 15px;
  max-width: 600px;
  margin: 0;
  line-height: 1.55;
}
.editorial-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.editorial-mini {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  align-items: stretch;
}
.editorial-mini:hover {
  border-color: var(--brand);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}
.editorial-mini__img {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.editorial-mini__img img { width: 100%; height: 100%; object-fit: cover; }
.editorial-mini__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.editorial-mini__title {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
  font-weight: 600;
}
.editorial-mini__meta {
  font-size: 11px;
  color: var(--brand);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ----- Team list (vertical elegant) ----- */
.team-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.team-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 24px 8px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: padding-left .3s ease, background .3s ease;
  position: relative;
}
.team-row::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 0;
  background: var(--brand);
  transition: height .3s ease;
  transform: translateY(-50%);
}
.team-row:hover { padding-left: 24px; background: rgba(255,255,255,.02); }
.team-row:hover::before { height: 60%; }
.team-row__num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--brand);
  font-weight: 600;
}
.team-row__name {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 24px);
  color: #fff;
  margin: 0;
  font-weight: 500;
}
.team-row__role {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
  text-align: right;
  max-width: 280px;
}

/* ----- Contact split layout ----- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-stack-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  align-items: center;
}
.contact-stack-item:hover { border-color: var(--brand); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.contact-stack-item__icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.contact-stack-item h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 6px;
  font-weight: 600;
}
.contact-stack-item p,
.contact-stack-item a {
  font-size: 14px;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
  display: block;
  word-break: break-word;
}
.contact-stack-item a:hover { color: var(--brand); }
.contact-form-card {
  background: #fff;
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.contact-form-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--ink);
}
.contact-form-card .lead {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}
.contact-form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form-stack textarea { min-height: 130px; resize: vertical; }
.contact-form-stack button {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.contact-form-stack button:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(239,126,30,.32);
}

/* ----- v2 Responsive ----- */
@media (max-width: 980px) {
  .spotlight__grid { grid-template-columns: 1fr; gap: 56px; }
  .spotlight__cover-inner { transform: none; max-width: 320px; }
  .spotlight__features { max-width: 100%; }
  .editorial-grid { grid-template-columns: 1fr; gap: 20px; }
  .featured-article { aspect-ratio: 4/3; }
  .featured-article__body { padding: 24px; }
  .contact-split { grid-template-columns: 1fr; gap: 28px; }
  .team-row { grid-template-columns: 40px 1fr; gap: 20px; }
  .team-row__role { grid-column: 1 / -1; text-align: left; padding-left: 60px; max-width: none; }
}

@media (max-width: 640px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .editorial-mini { grid-template-columns: 100px 1fr; gap: 14px; padding: 10px; }
  .editorial-mini__title { font-size: 14px; }
  .archive-card { flex-basis: 160px; }
  .featured-article__body { padding: 20px 18px; }
  .contact-form-card { padding: 24px 20px; }
}

/* =========================================================
   FLIPBOOK READER  (PDF.js + StPageFlip)
   ========================================================= */
.flipbook-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.flipbook-overlay.is-open { opacity: 1; visibility: visible; }

.flipbook-modal {
  width: 100%;
  height: 100%;
  max-width: 1480px;
  max-height: 96vh;
  background: linear-gradient(180deg, #11141a 0%, #0a0c10 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow:
    0 50px 120px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(255, 255, 255, .03) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(.96) translateY(12px);
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}
.flipbook-overlay.is-open .flipbook-modal {
  transform: scale(1) translateY(0);
}

.flipbook-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .015);
  flex-shrink: 0;
  gap: 16px;
}
.flipbook-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: #fff;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flipbook-page {
  color: rgba(255,255,255,.7);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255,255,255,.06);
  padding: 6px 14px;
  border-radius: 999px;
}
.flipbook-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
  flex-shrink: 0;
}
.flipbook-close:hover { background: var(--brand); transform: rotate(90deg); }

.flipbook-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(239, 126, 30, .04), transparent 70%),
    rgba(255, 255, 255, .015);
  min-height: 0;
}
.flipbook-canvas {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flipbook-canvas .stf__parent { box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.flipbook-canvas .stf__parent img,
.flipbook-canvas .page img,
.flipbook-canvas img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill;
  display: block;
}
.flipbook-canvas .page { background: #fff; }

.flipbook-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
  z-index: 5;
  border: 1px solid rgba(255,255,255,.08);
}
.flipbook-nav:hover { background: var(--brand); transform: translateY(-50%) scale(1.08); border-color: var(--brand); }
.flipbook-nav--prev { left: 18px; }
.flipbook-nav--next { right: 18px; }

.flipbook-loading {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, .94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  color: rgba(255,255,255,.85);
  z-index: 10;
  text-align: center;
  padding: 24px;
}
.flipbook-loading.is-visible { display: flex; }
.flipbook-loading p {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
  color: rgba(255,255,255,.7);
}
.flipbook-loading .progress {
  width: 240px;
  max-width: 80vw;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  overflow: hidden;
}
.flipbook-loading .progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  border-radius: 4px;
  transition: width .3s ease;
}
.flipbook-spinner {
  width: 54px; height: 54px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: flipbookSpin .85s linear infinite;
}
@keyframes flipbookSpin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .flipbook-overlay { padding: 0; }
  .flipbook-modal { max-height: 100vh; border-radius: 0; border: 0; }
  .flipbook-nav { width: 42px; height: 42px; font-size: 14px; }
  .flipbook-nav--prev { left: 6px; }
  .flipbook-nav--next { right: 6px; }
  .flipbook-stage { padding: 8px 56px; }
  .flipbook-toolbar { padding: 10px 14px; }
  .flipbook-title { font-size: 15px; }
  .flipbook-page { font-size: 11px; padding: 4px 10px; }
}

/* =========================================================
   AFILIADOS — discrete native cards + compact showcase
   ========================================================= */

/* Native card embedded inside the editorial blog grid */
.afiliado-card { position: relative; opacity: .96; }
.afiliado-card__image {
  background: #fafafa;
  display: flex !important;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.afiliado-card__image img {
  max-width: 70%;
  max-height: 75%;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transition: transform .4s ease;
}
.afiliado-card:hover .afiliado-card__image img { transform: scale(1.04); }
.afiliado-card .blog-card__title { font-size: 16px; }
.afiliado-card .blog-card__excerpt { font-size: 13px; -webkit-line-clamp: 2; line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.afiliado-card .blog-card__more { font-size: 11px; }
.afiliado-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, .92);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--line);
  z-index: 3;
}

/* Pre-footer product showcase grid (compact + discrete) */
.afiliados-showcase {
  background: var(--bg-soft);
  padding: 48px 0 !important;
}
.afiliados-showcase .section-head {
  margin-bottom: 28px;
}
.afiliados-showcase .section-head h2 {
  font-size: clamp(20px, 2.4vw, 26px);
}
.afiliados-showcase .section-head .eyebrow {
  font-size: 10px;
  margin-bottom: 8px;
}
.afiliados-showcase .section-head .lead { display: none; }
.afiliados-showcase .divider {
  width: 36px;
  height: 2px;
  margin: 12px auto 0;
}
.afiliados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.afiliado-product {
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.afiliado-product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(239, 126, 30, .35);
  color: inherit !important;
}
.afiliado-product__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--line);
  z-index: 2;
}
.afiliado-product__img {
  background: #fafafa;
  padding: 14px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.afiliado-product__img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .3s ease;
}
.afiliado-product:hover .afiliado-product__img img { transform: scale(1.05); }
.afiliado-product__body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.afiliado-product__title {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.afiliado-product__desc {
  font-size: 11px;
  color: var(--muted-2);
  margin: 0 0 8px;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.afiliado-product__cta {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
}
.afiliados-disclaimer {
  margin-top: 18px;
  text-align: center;
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: .03em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: .75;
}

@media (max-width: 640px) {
  .afiliados-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .afiliado-product__title { font-size: 12px; }
  .afiliado-product__desc { font-size: 10.5px; }
  .afiliado-product__img { padding: 10px; }
  .afiliados-showcase { padding: 36px 0 !important; }
}
