/* ==========================================================================
   El Diario Global — hoja de estilos (rediseño moderno)
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-surface: #f5f5f7;
  --color-text: #1d1d1f;
  --color-text-muted: #6e6e73;
  --color-accent: #0071e3;
  --color-accent-dark: #0058b0;
  --color-border: #e8e8ed;
  --color-dark: #0b0b0f;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.06), 0 24px 48px rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* ==========================================================================
   Cabecera
   ========================================================================== */

.topbar {
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}

.topbar a {
  transition: color 0.2s var(--ease);
}

.topbar a:hover {
  color: var(--color-text);
}

.topbar-links {
  display: flex;
  gap: 20px;
}

.site-header {
  background: var(--color-bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 22px;
}

.logo {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo span {
  color: var(--color-accent);
}

.header-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.btn-subscribe {
  background: var(--color-accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-subscribe:hover {
  background: var(--color-accent-dark);
  transform: scale(1.04);
}

/* Navegación principal — cristal esmerilado sticky */

.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
}

.main-nav a {
  display: block;
  padding: 13px 18px;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  border-radius: 100px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.main-nav a:hover {
  color: var(--color-text);
}

.main-nav a.active {
  color: var(--color-text);
  font-weight: 600;
}

/* ==========================================================================
   Bloques de anuncio (placeholders para Google Ad Manager)
   ========================================================================== */

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: var(--radius);
  color: #a1a1a6;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 28px auto;
}

.ad-slot::before {
  content: "Publicidad";
  font-weight: 600;
  margin-bottom: 4px;
}

.ad-slot::after {
  content: attr(data-size);
}

/* Con creatividad servida el placeholder sobra: se retira el texto y el fondo
   para no verse por detrás del iframe del anuncio */
.ad-slot.ad-servido {
  background: transparent;
}

.ad-slot.ad-servido::before,
.ad-slot.ad-servido::after {
  content: none;
}

.ad-leaderboard {
  width: 100%;
  max-width: 970px;
  min-height: 250px;
}

.ad-banner {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
}

.ad-mpu {
  width: 300px;
  min-height: 250px;
}

.ad-halfpage {
  width: 300px;
  min-height: 600px;
}

.ad-inarticle {
  width: 100%;
  max-width: 728px;
  min-height: 250px;
}

.ad-sticky {
  position: sticky;
  top: 66px;
}

/* La reserva de altura se ajusta al mayor tamaño que cabe en cada viewport
   (el JS afina el valor exacto por bloque con style.minHeight) */
@media (max-width: 992px) {
  .ad-leaderboard {
    max-width: 728px;
    min-height: 90px;
  }
}

@media (max-width: 768px) {
  .ad-leaderboard {
    max-width: 320px;
    min-height: 100px;
  }

  .ad-banner {
    max-width: 320px;
    min-height: 50px;
  }

  .ad-inarticle {
    max-width: 300px;
    min-height: 250px;
  }
}

/* ==========================================================================
   Portada — hero
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding: 36px 0;
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.hero-main:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-hover);
}

.hero-main .card-img {
  position: absolute;
  inset: 0;
}

.hero-main .card-body {
  position: relative;
  z-index: 2;
  padding: 36px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
  width: 100%;
}

.hero-main h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 12px 0;
}

.hero-main p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  max-width: 60ch;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-side .card {
  flex: 1;
}

/* ==========================================================================
   Tarjetas y listados
   ========================================================================== */

.card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  /* Fondo de respaldo: si la foto de stock no carga, el hueco no se queda
     en blanco (el background-image inline tiene prioridad sobre este color) */
  background-color: #e3e3ea;
  transition: transform 0.5s var(--ease);
}

.card:hover > .card-img {
  transform: scale(1.04);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  background: var(--color-bg);
  position: relative;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card h3 a:hover {
  color: var(--color-accent);
}

.card p {
  font-size: 0.87rem;
  color: var(--color-text-muted);
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.tag {
  display: inline-block;
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  color: var(--color-accent);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: 100px;
  width: fit-content;
}

.tag--light {
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
}

/* Rejillas */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Layout con sidebar */

.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  padding: 36px 0;
}

/* Secciones */

.section {
  padding: 44px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-header h2 span {
  color: var(--color-accent);
}

.section-header a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: opacity 0.2s var(--ease);
}

.section-header a:hover {
  opacity: 0.7;
}

/* Lista horizontal (artículo con miniatura) */

.list-item {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  padding: 22px;
  margin-bottom: 18px;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.list-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.list-item .card-img {
  border-radius: 12px;
  aspect-ratio: 16 / 10;
}

.list-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 8px 0;
}

.list-item h3 a:hover {
  color: var(--color-accent);
}

.list-item p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* Ranking "lo más leído" */

.ranked-list {
  list-style: none;
  counter-reset: ranked;
}

.ranked-list li {
  counter-increment: ranked;
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}

.ranked-list li:last-child {
  border-bottom: none;
}

.ranked-list li::before {
  content: counter(ranked);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  min-width: 26px;
}

.ranked-list a {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.2s var(--ease);
}

.ranked-list a:hover {
  color: var(--color-accent);
}

/* Widget sidebar */

.widget {
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 26px;
}

.widget h4 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

/* Newsletter */

.newsletter {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1c1c22 55%, color-mix(in srgb, var(--color-accent) 30%, #0b0b0f) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 44px 0;
}

.newsletter h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.newsletter-form input {
  padding: 13px 20px;
  border-radius: 100px;
  border: none;
  min-width: 260px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
  transition: background 0.2s var(--ease);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.newsletter-form button:hover {
  background: var(--color-accent-dark);
  transform: scale(1.04);
}

/* ==========================================================================
   Página de sección
   ========================================================================== */

.section-hero {
  background: var(--color-bg);
  padding: 64px 0 20px;
}

.section-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--color-text) 30%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}

.section-hero p {
  color: var(--color-text-muted);
  max-width: 70ch;
  margin-top: 10px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Página de artículo
   ========================================================================== */

.article-header {
  max-width: 780px;
  margin: 48px auto 0;
  padding: 0 22px;
}

.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 16px 0;
}

.article-header .standfirst {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.article-byline strong {
  color: var(--color-text);
}

.article-figure {
  max-width: 980px;
  margin: 28px auto;
  padding: 0 22px;
}

.article-figure .card-img {
  border-radius: var(--radius-lg);
  aspect-ratio: 21 / 9;
  box-shadow: var(--shadow);
}

.article-figure figcaption {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 10px;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 22px 44px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 34px 0 14px;
}

.article-body blockquote {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 30px 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

/* ==========================================================================
   Pie de página
   ========================================================================== */

.site-footer {
  background: var(--color-surface);
  color: var(--color-text-muted);
  margin-top: 48px;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.site-footer .logo {
  color: var(--color-text);
  font-size: 1.4rem;
}

.site-footer h5 {
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 9px;
  font-size: 0.85rem;
}

.site-footer a {
  transition: color 0.2s var(--ease);
}

.site-footer a:hover {
  color: var(--color-text);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Inspector de bloques de anuncio (ver inspectorBloques en js/config.js)
   ========================================================================== */

/* Modo notorio: los huecos se ven de un vistazo */
.ads-notorios .ad-slot {
  position: relative;
  border: 2px dashed var(--color-accent);
  background:
    repeating-linear-gradient(
      45deg,
      color-mix(in srgb, var(--color-accent) 7%, transparent) 0 12px,
      transparent 12px 24px
    ),
    var(--color-surface);
  color: color-mix(in srgb, var(--color-accent) 70%, var(--color-text));
}

.ad-slot-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 100px;
}

/* Hueco cuya petición a GAM volvió vacía (solo visible en modo QA) */
.ads-notorios .ad-slot.ad-sin-fill {
  border-color: #b6b6bd;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0 12px, transparent 12px 24px),
    var(--color-surface);
  color: #8e8e93;
}

.ad-slot.ad-sin-fill::before {
  content: "Sin anuncio (no fill)";
}

.ads-notorios .ad-slot.ad-sin-fill .ad-slot-chip {
  background: #8e8e93;
}

/* Destello al saltar a un bloque desde el panel */
.ad-flash {
  animation: adFlash 1s ease 2;
}

@keyframes adFlash {
  0%, 100% {
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    box-shadow: 0 0 0 12px color-mix(in srgb, var(--color-accent) 45%, transparent);
  }
}

/* Panel flotante lateral */
.ad-inspector {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ad-inspector-toggle {
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 10px 16px;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease);
}

.ad-inspector-toggle:hover {
  transform: scale(1.06);
}

.ad-inspector-lista {
  display: none;
  flex-direction: column;
  gap: 3px;
  width: 210px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(15, 15, 20, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  max-height: 60vh;
  overflow-y: auto;
}

.ad-inspector.abierto .ad-inspector-lista {
  display: flex;
}

.ad-inspector-item {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  text-align: left;
  color: #fff;
  padding: 8px 12px;
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transition: background 0.15s var(--ease);
}

.ad-inspector-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ad-inspector-item strong {
  font-size: 0.78rem;
  font-weight: 700;
}

.ad-inspector-item small {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.55);
}

.ad-inspector-item.inactivo {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 640px) {
  .ad-inspector {
    right: 10px;
  }

  .ad-inspector-lista {
    width: 180px;
  }
}

/* ==========================================================================
   Distintivo de web (identifica cada web clonada — ver js/config.js)
   ========================================================================== */

.site-badge {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 100px;
  background: rgba(15, 15, 20, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  color: #fff;
  font-size: 0.76rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.site-badge strong {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 35%, transparent);
}

.site-badge-info {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
  .site-badge {
    bottom: 12px;
    left: 12px;
    font-size: 0.7rem;
    padding: 7px 13px;
  }

  .site-badge-info {
    display: none;
  }
}

/* ==========================================================================
   Easter egg 🥚 (escribe "ignacio")
   ========================================================================== */

.easter-egg {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 14, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  cursor: pointer;
  overflow: hidden;
  animation: eggFade 0.25s ease;
}

.easter-egg-tarjeta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px;
  text-align: center;
  animation: eggPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.easter-egg-foto {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--color-accent);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  background: #fff;
}

.easter-egg-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
}

.easter-egg-frase {
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 26ch;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.easter-egg-pista {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
}

.easter-egg-confeti {
  position: absolute;
  top: -8%;
  animation-name: eggCaida;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  pointer-events: none;
}

@keyframes eggFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes eggPop {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes eggCaida {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(115vh) rotate(360deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-side {
    flex-direction: row;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-sidebar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-side {
    flex-direction: column;
  }

  .hero-main {
    min-height: 380px;
  }

  .list-item {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    flex-direction: column;
    gap: 12px;
  }

  .header-date {
    display: none;
  }

  .newsletter {
    padding: 36px 24px;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-form input {
    min-width: 0;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
