/* ========================================================================
   MEZQUITE NOTICIAS — Hoja de estilos principal
   ========================================================================
   Estructura (busca el comentario para ir directo a esa sección):
   1. VARIABLES — Paleta, tipografía, espaciado
   2. RESET — Normalizado básico
   3. UTILIDADES — Container, btn, badge, kicker, tag
   4. TOPBAR — Barra superior con fecha y enlaces
   5. HEADER — Logo, menú, búsqueda
   6. NAV — Navegación principal
   7. OFFCANVAS — Menú lateral mobile
   8. SEARCH — Overlay de búsqueda
   9. HERO — Nota principal + 3 destacadas
   10. TRENDING — Tags
   11. FEED — Cuadrícula cronológica
   12. INSTAGRAM — Sección @mezquiite
   13. AGENDA — Eventos de la semana
   14. VOCES — Featured columnista (Brenda Paniagua)
   15. NEWSLETTER — Bloque terracota
   16. FOOTER
   17. RESPONSIVE — Mobile breakpoints
   ======================================================================== */

/* ====================================================================
   1. VARIABLES
   ==================================================================== */
:root {
  /* Paleta Mezquite */
  --color-bg: #355d4a;
  --color-bg-deep: #2a4838;
  --color-bg-darker: #1f3a2c;
  --color-cream: #f0e9d6;
  --color-cream-soft: rgba(240, 233, 214, 0.85);
  --color-cream-mute: rgba(240, 233, 214, 0.6);
  --color-cream-dim: rgba(240, 233, 214, 0.4);
  --color-line: rgba(240, 233, 214, 0.15);
  --color-line-soft: rgba(240, 233, 214, 0.08);
  --color-accent: #d4a574;          /* Terracota / dorado del logo */
  --color-accent-soft: #e8c08e;
  --color-accent-deep: #b8895a;
  --color-ink: #2d4a3e;             /* Verde oscuro para texto sobre crema */

  /* Tipografía */
  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  /* Layout */
  --max-w: 1240px;
  --gutter: 32px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transición global */
  --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================================================================
   2. RESET
   ==================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-cream);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--color-accent-soft); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
input, button { font-family: inherit; }

/* ====================================================================
   3. UTILIDADES
   ==================================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1.2px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--outline {
  border-color: var(--color-cream-dim);
  color: var(--color-cream);
}
.btn--outline:hover {
  border-color: var(--color-cream);
  background: rgba(240, 233, 214, 0.06);
  color: var(--color-cream);
}
.btn--solid {
  background: var(--color-accent);
  color: var(--color-ink);
  border-color: var(--color-accent);
}
.btn--solid:hover {
  background: var(--color-accent-soft);
  color: var(--color-ink);
}
.btn--light {
  border-color: var(--color-cream-dim);
  color: var(--color-cream);
}
.btn--lg { padding: 14px 28px; font-size: 13px; }

/* Badges (etiqueta de categoría sobre imagen) */
.badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge--accent { background: var(--color-accent); color: var(--color-ink); }
.badge--light { background: var(--color-cream); color: var(--color-ink); }
.badge--ghost {
  background: rgba(240, 233, 214, 0.18);
  color: var(--color-cream);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Kicker (etiqueta encima del titular) */
.kicker {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.kicker--accent { color: var(--color-accent); }

/* Tags */
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(240, 233, 214, 0.06);
  border: 1px solid rgba(240, 233, 214, 0.15);
  color: var(--color-cream-soft);
  transition: all var(--t);
}
.tag:hover {
  background: rgba(240, 233, 214, 0.12);
  border-color: rgba(240, 233, 214, 0.3);
  color: var(--color-cream);
}
.tag--featured {
  background: rgba(212, 165, 116, 0.18);
  border-color: rgba(212, 165, 116, 0.4);
  color: var(--color-accent-soft);
}

/* ====================================================================
   4. TOPBAR
   ==================================================================== */
.topbar {
  background: var(--color-bg-darker);
  border-bottom: 1px solid var(--color-line);
  font-size: 11px;
  color: var(--color-cream-mute);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar__date {
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.topbar__links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.topbar__links a:hover { color: var(--color-cream); }
.topbar__newsletter { color: var(--color-accent); }

/* ====================================================================
   5. HEADER
   ==================================================================== */
.header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow var(--t), background var(--t);
}
.header.is-scrolled {
  box-shadow: 0 1px 0 var(--color-line);
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  padding-top: 18px;
  padding-bottom: 18px;
}
.header__menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-left: -10px;
  width: max-content;
}
.header__menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-cream);
  transition: all var(--t);
}
.header__menu-btn span:last-child { width: 14px; }
.header__menu-btn:hover span:last-child { width: 22px; }

.header__logo {
  justify-self: center;
  display: block;
  transition: opacity var(--t);
}
.header__logo:hover { opacity: 0.85; }
.header__logo-img {
  height: 80px;
  width: auto;
  display: block;
}

.header__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}
.header__search-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--t);
}
.header__search-btn:hover { background: rgba(240, 233, 214, 0.08); }

/* ====================================================================
   6. NAV
   ==================================================================== */
.nav {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.nav__inner { padding-top: 0; padding-bottom: 0; }
.nav__list {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__list a {
  display: inline-block;
  padding: 14px 0;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-cream-soft);
  border-bottom: 2px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
}
.nav__list a:hover {
  color: var(--color-cream);
  border-bottom-color: rgba(212, 165, 116, 0.4);
}
.nav__list a.is-active {
  color: var(--color-cream);
  border-bottom-color: var(--color-accent);
}

/* ====================================================================
   7. OFFCANVAS
   ==================================================================== */
.offcanvas {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.offcanvas.is-open {
  pointer-events: auto;
  visibility: visible;
}
.offcanvas__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 58, 44, 0.6);
  opacity: 0;
  transition: opacity var(--t);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.offcanvas.is-open .offcanvas__overlay { opacity: 1; }

.offcanvas__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 86vw;
  background: var(--color-bg-deep);
  padding: 32px 28px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.offcanvas.is-open .offcanvas__panel { transform: translateX(0); }

.offcanvas__close {
  align-self: flex-end;
  font-size: 32px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
}
.offcanvas__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.offcanvas__list a {
  display: block;
  padding: 14px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-cream);
}
.offcanvas__list a:hover { color: var(--color-accent); }
.offcanvas__footer { margin-top: auto; }
.offcanvas__footer .btn { width: 100%; justify-content: center; }

/* ====================================================================
   8. SEARCH OVERLAY
   ==================================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(42, 72, 56, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.search-overlay__close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 40px;
  line-height: 1;
  color: var(--color-cream);
}
.search-overlay__inner {
  width: 100%;
  max-width: 720px;
  padding: 0 var(--gutter);
}
.search-overlay__label {
  display: block;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
  font-weight: 600;
}
.search-overlay__input {
  width: 100%;
  font-size: clamp(28px, 5vw, 44px);
  font-family: var(--font-serif);
  font-weight: 500;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-cream-dim);
  color: var(--color-cream);
  padding: 12px 0;
  outline: none;
  transition: border-color var(--t);
}
.search-overlay__input:focus { border-bottom-color: var(--color-accent); }
.search-overlay__input::placeholder { color: var(--color-cream-mute); }
.search-overlay__suggestions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--color-cream-mute);
}
.search-overlay__suggestions a {
  color: var(--color-cream-soft);
  border: 1px solid var(--color-cream-dim);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  transition: all var(--t);
}
.search-overlay__suggestions a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-soft);
}

/* ====================================================================
   9. HERO
   ==================================================================== */
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 24px;
}

.hero__main {
  position: relative;
  height: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hero__main-img {
  position: absolute;
  inset: 0;
}
.hero__main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero__main:hover .hero__main-img img { transform: scale(1.04); }

.hero__main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 58, 44, 0.05) 0%,
    rgba(31, 58, 44, 0.35) 45%,
    rgba(20, 40, 30, 0.94) 100%
  );
}
.hero__main-content {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}
.hero__badges {
  display: flex;
  gap: 8px;
}
.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-cream);
  margin-bottom: 14px;
  max-width: 720px;
}
.hero__excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-cream-soft);
  margin-bottom: 18px;
  max-width: 600px;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--color-cream-soft);
  flex-wrap: wrap;
}
.hero__author { font-weight: 700; color: var(--color-cream); }
.hero__sep { opacity: 0.5; }
.hero__cta {
  margin-left: auto;
  padding: 7px 16px;
  border: 1px solid var(--color-cream-dim);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all var(--t);
}
.hero__main:hover .hero__cta {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
}

.hero__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card link wrapper (toda la tarjeta clickeable) */
.card-link { position: relative; }
.card-link__anchor {
  position: absolute;
  inset: 0;
  z-index: 5;
}

/* ====================================================================
   Card genérico (lo más reciente, hero side, etc.)
   ==================================================================== */
.card {
  background: rgba(240, 233, 214, 0.04);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
}
.card:hover {
  background: rgba(240, 233, 214, 0.08);
  transform: translateY(-2px);
}

.card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover .card__img img { transform: scale(1.05); }

.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.card__video {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--color-cream);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--color-cream);
}
.card__excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-cream-soft);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--color-cream-mute);
  margin-top: auto;
  padding-top: 4px;
}
.card__cta {
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color var(--t);
  position: relative;
  z-index: 6;
}
.card:hover .card__cta { color: var(--color-accent-soft); }

/* Card en sidebar del hero — variante horizontal */
.card--side .card__img { aspect-ratio: 16 / 9; }
.card--side .card__title { font-size: 16px; }

/* ====================================================================
   10. TRENDING
   ==================================================================== */
.trending {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 24px;
}
.trending__label {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--color-cream-mute);
  text-transform: uppercase;
  font-weight: 700;
  margin-right: 4px;
}

/* ====================================================================
   11. FEED
   ==================================================================== */
.feed { padding-bottom: var(--space-3xl); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-line);
}
.section-head--light { border-bottom-color: rgba(240, 233, 214, 0.18); }
.section-head__title {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: 4px;
}
.section-head__sub {
  font-size: 12px;
  color: var(--color-cream-mute);
}
.section-head__kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.section-head__meta {
  font-size: 11px;
  color: var(--color-cream-mute);
}
.section-head__link {
  font-size: 12px;
  color: var(--color-cream-mute);
  white-space: nowrap;
}
.section-head__link:hover { color: var(--color-accent); }

.feed__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feed__more {
  text-align: center;
  margin-top: 36px;
}

/* ====================================================================
   12. INSTAGRAM — Feed embed real / fallback diseñado
   ==================================================================== */
.instagram {
  background: var(--color-bg-deep);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
.instagram__pattern {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 360px;
  height: 360px;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g stroke='%23f0e9d6' stroke-width='0.4' fill='none'><path d='M50 10 Q55 30 60 35 M50 10 Q45 30 40 35 M55 30 L65 28 M45 30 L35 28 M50 35 Q52 50 55 55 M50 35 Q48 50 45 55 M55 55 L70 50 M45 55 L30 50 M50 55 Q52 70 55 78 M50 55 Q48 70 45 78'/></g><g fill='%23f0e9d6'><ellipse cx='68' cy='52' rx='1.8' ry='5'/><ellipse cx='72' cy='56' rx='1.8' ry='5'/><ellipse cx='32' cy='52' rx='1.8' ry='5'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Handle @mezquiite con icono */
.instagram__handle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
  transition: color var(--t);
}
.instagram__handle:hover { color: var(--color-accent-soft); }

/* Contenedor del feed (con loader) */
.instagram__feed {
  position: relative;
  min-height: 200px;
}
.ig-feed__loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}
.instagram__feed.is-loading .ig-feed__loader { display: flex; }
.instagram__feed.is-loading .instagram__grid { opacity: 0.4; }
.ig-feed__loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: ig-pulse 1.2s ease-in-out infinite;
}
.ig-feed__loader span:nth-child(2) { animation-delay: 0.15s; }
.ig-feed__loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ig-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.7); }
  40% { opacity: 1; transform: scale(1); }
}

/* Grid del feed */
.instagram__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  transition: opacity var(--t);
}

/* Cada tile del feed */
.ig-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
  background: rgba(0, 0, 0, 0.2);
}
.ig-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ig-tile:hover img { transform: scale(1.08); }

/* Overlay con gradient + stats */
.ig-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.ig-tile:hover .ig-tile__overlay { opacity: 1; }
.ig-tile--reel .ig-tile__overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
  opacity: 1;
}

/* Icono central de play (solo reels) */
.ig-tile__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s ease;
  z-index: 1;
}
.ig-tile--reel .ig-tile__icon { display: block; }
.ig-tile:not(.ig-tile--reel) .ig-tile__icon { display: none; }
.ig-tile:hover .ig-tile__icon { transform: translate(-50%, -50%) scale(1); }

/* Stats (likes, comments, views) */
.ig-tile__stats {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.ig-tile__stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ig-tile__stats svg { flex-shrink: 0; }

/* Etiqueta tipo de post (Reel / Carrusel) — esquina superior derecha */
.ig-tile__type {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
  z-index: 3;
  pointer-events: none;
}

/* Footer del bloque IG */
.instagram__footer {
  margin-top: 24px;
  text-align: center;
}
.instagram__follow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-cream-soft);
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-cream-dim);
  transition: all var(--t);
}
.instagram__follow:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ====================================================================
   13. AGENDA
   ==================================================================== */
.agenda {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
}
.agenda__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.agenda-card {
  background: rgba(240, 233, 214, 0.05);
  border-radius: var(--radius-md);
  padding: 18px;
  border-left: 3px solid var(--color-accent);
  transition: all var(--t);
  cursor: pointer;
}
.agenda-card:hover {
  background: rgba(240, 233, 214, 0.09);
  transform: translateX(2px);
}
.agenda-card__date {
  margin-bottom: 14px;
}
.agenda-card__day {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.agenda-card__month {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--color-cream-mute);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
  display: inline-block;
}
.agenda-card__type {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.agenda-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1.3;
  margin-bottom: 10px;
}
.agenda-card__where {
  font-size: 11px;
  color: var(--color-cream-mute);
}

/* ====================================================================
   14. VOCES
   ==================================================================== */
.voces {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}
.voces-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: rgba(240, 233, 214, 0.04);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}
.voces-feature__author {
  display: flex;
  gap: 20px;
  align-items: center;
}
.voces-feature__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-accent);
}
.voces-feature__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.voces-feature__name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.voces-feature__role {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 1.8px;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.voces-feature__bio {
  font-size: 12.5px;
  color: var(--color-cream-soft);
  line-height: 1.5;
}
.voces-feature__column { padding-left: 0; }
.voces-feature__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-cream);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.voces-feature__excerpt {
  font-size: 13px;
  color: var(--color-cream-soft);
  line-height: 1.6;
  margin-bottom: 16px;
}
.voces-feature__link {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
}
.voces-feature__link:hover { color: var(--color-accent-soft); }

/* ====================================================================
   15. NEWSLETTER
   ==================================================================== */
.newsletter {
  background: var(--color-accent);
  color: var(--color-ink);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
.newsletter__pattern {
  position: absolute;
  right: -50px;
  top: -50px;
  width: 320px;
  height: 320px;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g stroke='%232d4a3e' stroke-width='0.5' fill='none'><path d='M50 10 Q55 30 60 35 M50 10 Q45 30 40 35 M55 30 L65 28 M45 30 L35 28 M50 35 Q52 50 55 55 M50 35 Q48 50 45 55 M55 55 L70 50 M45 55 L30 50'/></g><g fill='%232d4a3e'><ellipse cx='68' cy='52' rx='2' ry='6'/><ellipse cx='72' cy='56' rx='2' ry='6'/><ellipse cx='32' cy='52' rx='2' ry='6'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}
.newsletter__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.newsletter__kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.7;
}
.newsletter__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.newsletter__sub {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 24px;
  opacity: 0.85;
  max-width: 600px;
}
.newsletter__form {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin-bottom: 12px;
}
.newsletter__input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--color-ink);
  border-radius: 6px;
  font-size: 14px;
  background: var(--color-cream);
  color: var(--color-ink);
  outline: none;
  transition: box-shadow var(--t);
}
.newsletter__input:focus { box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.2); }
.newsletter__btn {
  padding: 14px 26px;
  background: var(--color-ink);
  color: var(--color-cream);
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  transition: background var(--t);
}
.newsletter__btn:hover { background: #1f3329; }
.newsletter__small {
  font-size: 11px;
  opacity: 0.65;
}
.newsletter__small a {
  color: var(--color-ink);
  text-decoration: underline;
}

/* ====================================================================
   16. FOOTER
   ==================================================================== */
.footer {
  background: var(--color-bg-darker);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-md);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
  padding-bottom: 28px;
}
.footer__brand { padding-right: 12px; }
.footer__logo {
  width: 130px;
  height: auto;
  margin-bottom: 18px;
  display: block;
  opacity: 0.92;
  transition: opacity var(--t);
}
.footer__logo:hover { opacity: 1; }
.footer__tagline {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-cream-soft);
  margin-bottom: 16px;
  max-width: 340px;
}
.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-cream-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  transition: all var(--t);
}
.footer__social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.footer__heading {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__list a {
  font-size: 13px;
  color: var(--color-cream-soft);
}
.footer__list a:hover { color: var(--color-cream); }

.footer__small {
  font-size: 12px;
  color: var(--color-cream-mute);
  margin-bottom: 12px;
}
.footer__form { display: flex; flex-direction: column; gap: 8px; }
.footer__form input {
  padding: 10px 12px;
  border: 1px solid var(--color-cream-dim);
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: rgba(240, 233, 214, 0.06);
  color: var(--color-cream);
  outline: none;
}
.footer__form input::placeholder { color: var(--color-cream-mute); }
.footer__form input:focus { border-color: var(--color-accent); }
.footer__form button {
  padding: 10px;
  background: var(--color-accent);
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  transition: background var(--t);
}
.footer__form button:hover { background: var(--color-accent-soft); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-cream-mute);
  padding-top: 18px;
  border-top: 1px solid var(--color-line-soft);
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom a { color: var(--color-cream-soft); }
.footer__bottom a:hover { color: var(--color-cream); }

/* ====================================================================
   17. RESPONSIVE
   ==================================================================== */

/* Tablet (≤ 980px) */
@media (max-width: 980px) {
  :root { --gutter: 24px; }

  .hero { grid-template-columns: 1fr; gap: 18px; }
  .hero__main { height: 460px; }
  .hero__title { font-size: clamp(26px, 4.2vw, 36px); }

  .feed__grid { grid-template-columns: repeat(2, 1fr); }
  .agenda__grid { grid-template-columns: repeat(2, 1fr); }
  .voces-feature { grid-template-columns: 1fr; gap: 20px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }

  .instagram__grid { grid-template-columns: repeat(3, 1fr); }

  .header__logo-img { height: 64px; }

  .nav__list { gap: 22px; }
  .nav__list a { font-size: 10.5px; letter-spacing: 1.5px; }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --space-3xl: 3rem;
    --space-2xl: 2.25rem;
  }

  body { font-size: 14px; }

  /* Topbar: solo fecha visible, links escondidos */
  .topbar { font-size: 10px; }
  .topbar__inner { padding-top: 8px; padding-bottom: 8px; }
  .topbar__date { letter-spacing: 0.8px; }
  .topbar__links { gap: 12px; }
  .topbar__links a:not(.topbar__newsletter) { display: none; }

  /* Header: layout reorganizado */
  .header__inner {
    padding-top: 12px;
    padding-bottom: 12px;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }
  .header__menu-btn { padding: 8px; margin-left: -8px; }
  .header__menu-btn span { width: 20px; }
  .header__menu-btn span:last-child { width: 12px; }
  .header__logo-img { height: 56px; }
  .header__actions { gap: 8px; }
  .header__actions .btn { display: none; }
  .header__search-btn { width: 32px; height: 32px; }

  /* Nav: oculta, se accede vía hamburguesa */
  .nav { display: none; }

  /* Hero */
  .hero {
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 14px;
  }
  .hero__main { height: 420px; border-radius: var(--radius-md); }
  .hero__main-content { padding: 20px; }
  .hero__badges { gap: 6px; }
  .hero__title {
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 10px;
    line-height: 1.1;
  }
  .hero__excerpt {
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.45;
  }
  .hero__meta {
    font-size: 11px;
    gap: 8px;
  }
  .hero__cta { display: none; }
  .hero__side { gap: 12px; }
  .card--side .card__title { font-size: 15px; }
  .card--side .card__img { aspect-ratio: 16/8; }

  /* Trending tags */
  .trending {
    gap: 8px;
    padding-bottom: 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .trending::-webkit-scrollbar { display: none; }
  .trending__label { flex-shrink: 0; }
  .tag { white-space: nowrap; flex-shrink: 0; font-size: 11px; }

  /* Feed */
  .feed { padding-bottom: var(--space-2xl); }
  .feed__grid { grid-template-columns: 1fr; gap: 16px; }
  .card__title { font-size: 16px; }
  .card__excerpt { font-size: 12.5px; -webkit-line-clamp: 2; }
  .card__img { aspect-ratio: 16/10; }
  .feed__more { margin-top: 24px; }

  /* Section heads */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }
  .section-head__title { font-size: 12px; letter-spacing: 2px; }
  .section-head__sub { font-size: 11.5px; }

  /* Instagram */
  .instagram { padding: var(--space-2xl) 0; }
  .instagram__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  /* En mobile mostramos 6 igual, en 2 filas de 3 */
  .ig-tile__stats { font-size: 9.5px; bottom: 6px; left: 8px; right: 8px; gap: 8px; }
  .ig-tile__type { width: 22px; height: 22px; top: 6px; right: 6px; }
  .ig-tile__type svg { width: 11px; height: 11px; }
  .ig-tile__icon { width: 16px !important; height: 16px !important; }

  /* Agenda */
  .agenda { padding-top: var(--space-2xl); }
  .agenda__grid { grid-template-columns: 1fr; gap: 10px; }
  .agenda-card { padding: 14px 16px; }
  .agenda-card__date { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
  .agenda-card__day { font-size: 22px; }
  .agenda-card__month { margin-top: 0; }
  .agenda-card__title { font-size: 13.5px; }

  /* Voces */
  .voces { padding-bottom: var(--space-2xl); }
  .voces-feature { padding: 22px 20px; gap: 18px; }
  .voces-feature__author {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .voces-feature__avatar { width: 64px; height: 64px; }
  .voces-feature__name { font-size: 18px; }
  .voces-feature__bio { font-size: 11.5px; }
  .voces-feature__title { font-size: 18px; }
  .voces-feature__excerpt { font-size: 12.5px; }

  /* Newsletter */
  .newsletter { padding: var(--space-2xl) 0; }
  .newsletter__title { font-size: clamp(22px, 6.5vw, 28px); }
  .newsletter__sub { font-size: 13px; margin-bottom: 18px; }
  .newsletter__form { flex-direction: column; gap: 8px; }
  .newsletter__btn { width: 100%; }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 22px;
  }
  .footer__logo { width: 110px; }
  .footer__tagline { font-size: 12.5px; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 10.5px;
  }
}

/* Mobile pequeño (≤ 380px) */
@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .header__logo-img { height: 48px; }
  .topbar__newsletter { display: none; }
  .topbar__date { letter-spacing: 0.5px; }
  .hero__main { height: 380px; }
  .hero__main-content { padding: 16px; }
  .hero__title { font-size: 22px; }
}
