/* Colores */
:root {
  --White: #FFF;
  --Black: #000;
  --01Gray50: #F7F7F8;
  --01Gray100: #EDEDF1;
  --01Gray200: #D7D8E0;
  --01Gray500: #6E7189;
  --01Gray800: #3E3E4E;
  --01EV400: #53D4DD;
}

/* Fondo de página */
body {
  background-color: var(--01Gray50);
  font-family: 'Nationale', sans-serif;
}

/* Encabezado de categoría */
.archive-header {
  width: 950px;
  max-width: 100%;
  margin: 0px auto 0;
  padding-top: 6px;
  text-align: center;
}

.archive-title {
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
  color: var(--01Gray900);
}

.archive-empty {
  width: 950px;
  max-width: 100%;
  margin: 20px auto 0;
  text-align: center;
  color: var(--01Gray500);
}

/* Footer */
.site-footer {
  margin-top: 30px;
  /* separación respecto a los últimos posts */
}

.site-footer-divider {
  width: 100%;
  height: 1px;
  background-color: var(--01Gray200);
}

.site-footer-credits {
  width: 100%;
  max-width: 1152px;
  /* Restaurado para desktop */
  margin: 30px auto 40px;
  padding: 0 20px;
  box-sizing: border-box;
  color: var(--01Gray500);
  font-family: 'Nationale';
  font-size: 14px;
  line-height: 18px;
  display: flex;
  justify-content: center;
}

@media (max-width: 767px) {
  .site-footer-credits {
    max-width: 100%;
  }
}

/* Enlace de créditos (01Digital.mx) */
.site-footer-credits a {
  color: inherit;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.site-footer-credits a:hover {
  color: var(--01EV400);
}

/* Logo */
.logo-wrapper {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Línea divisoria */
.header-divider {
  height: 1px;
  width: 100%;
  background-color: var(--01Gray200);
}

/* Navegación desktop */
.desktop-navigation {
  margin: 0;
  position: relative;
}

.desktop-navigation::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--01Gray200);
}

.desktop-navigation ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.desktop-navigation ul li {
  margin: 0;
  position: relative;
}

.desktop-navigation ul li a {
  color: var(--01Gray800);
  text-decoration: none;
  font-family: 'Nationale';
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  padding: 15px 20px;
  display: block;
  transition: background-color 0.3s ease;
  position: relative;
}

.desktop-navigation ul li a:hover {
  background-color: var(--01Gray100);
}

/* Ocultar elementos con atributo hidden */
[hidden] {
  display: none !important;
}

/* Accesible: solo para lectores de pantalla */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Navegación móvil */
.mobile-navigation {
  display: none;
  position: relative;
  padding: 10px 0;
}

.mobile-navigation__toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--01Gray200);
  border-radius: 6px;
  background-color: var(--White);
  background-image: url('../icons/icon-menu.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  cursor: pointer;
  display: block;
  margin: 10px auto;
}

.mobile-navigation__toggle[aria-expanded="true"] {
  display: none; /* ocultar el toggle cuando el panel está abierto */
}

.mobile-navigation__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 998;
}

.mobile-navigation__panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--White);
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
  border-left: 1px solid var(--01Gray100);
  transform: translateX(100%);
  transition: transform 0.2s ease-out;
  z-index: 999;
  overflow-y: auto;
  /* Compensar barra admin fija */
  padding-top: var(--admin-bar-offset, 0);
}

/* Header dentro del panel para botón de cierre */
.mobile-navigation__header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--01Gray100);
  position: sticky;
  top: 0;
  background: var(--White);
}

.mobile-navigation__close {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--01Gray200);
  border-radius: 6px;
  background-color: var(--White);
  background-image: url('../icons/icon-close.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  cursor: pointer;
}

/* Ajustes cuando la barra de admin está presente */
body.admin-bar .mobile-navigation__overlay {
  top: 32px; /* barra admin en móviles/desktop comunes */
}
body.admin-bar .mobile-navigation__panel {
  top: 32px;
  height: calc(100vh - 32px);
}

@media (max-width: 782px) {
  body.admin-bar .mobile-navigation__overlay { top: 46px; }
  body.admin-bar .mobile-navigation__panel {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

.mobile-navigation__panel.is-open {
  transform: translateX(0);
}

#mobile-primary-menu {
  list-style: none;
  margin: 0;
  padding: 16px;
}

#mobile-primary-menu > li {
  border-bottom: 1px solid var(--01Gray100);
}

#mobile-primary-menu a {
  display: block;
  padding: 14px 12px;
  color: var(--01Gray800);
  text-decoration: none;
  font-family: 'Nationale';
  font-size: 16px;
  line-height: 20px;
}

.mobile-navigation .menu-item-has-children {
  position: relative;
}

.mobile-navigation .menu-item-has-children > .submenu-toggle {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--01Gray200);
  border-radius: 6px;
  background-color: var(--White);
  background-image: url('../icons/chevron-down.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 6px;
}

.mobile-navigation .menu-item-has-children > .submenu-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
}

.mobile-navigation .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 12px;
  display: none;
}

.mobile-navigation .sub-menu.is-open {
  display: block;
}

@media (max-width: 1023px) {
  /* El contenedor del header sirve de referencia para posicionar el toggle */
  .site-header .container { position: relative; }
  /* Logo alineado a la izquierda en móvil */
  .site-header .logo-wrapper { justify-content: flex-start; }
  /* Ocultar línea divisoria en versión responsive */
  .site-header .header-divider { display: none; }
  /* La navegación móvil no necesita ser contenedor relativo */
  .mobile-navigation { position: static; padding: 0; }
  /* Posicionar el ícono del menú a la derecha del logo y centrado verticalmente */
  .mobile-navigation__toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 1000;
  }
  /* Ocultar menú desktop; mostrar móvil */
  .desktop-navigation { display: none; }
  .mobile-navigation { display: block; }
}

@media (min-width: 1024px) {
  .mobile-navigation {
    display: none;
  }
}

/* Estilos para la opción activa */
.desktop-navigation ul li.current-menu-item a,
.desktop-navigation ul li.current-page-ancestor a {
  font-weight: 700;
}

.desktop-navigation ul li.current-menu-item a::before,
.desktop-navigation ul li.current-page-ancestor a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--01EV400);
}

/* Estado activo en navegación móvil */
.mobile-navigation #mobile-primary-menu li.current-menu-item > a,
.mobile-navigation #mobile-primary-menu li.current-page-ancestor > a {
  font-weight: 700;
  position: relative;
}
.mobile-navigation #mobile-primary-menu li.current-menu-item > a::after,
.mobile-navigation #mobile-primary-menu li.current-page-ancestor > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--01EV400);
}

/* Menú desplegable */
.desktop-navigation ul li.menu-item-has-children>a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 4px;
  background-image: url('../icons/chevron-down.svg');
  background-repeat: no-repeat;
  background-size: 8px 4px;
  margin-left: 5px;
  vertical-align: middle;
}

.desktop-navigation ul li.menu-item-has-children .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--White, #FFF);
  min-width: 200px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  z-index: 100;
  padding: 0;
  overflow: hidden;
}

.desktop-navigation ul li.menu-item-has-children:hover .sub-menu {
  display: block;
}

.desktop-navigation ul li.menu-item-has-children .sub-menu li {
  margin: 0;
  display: block;
}

.desktop-navigation ul li.menu-item-has-children .sub-menu li a {
  padding: 10px 15px;
  display: block;
}

.desktop-navigation ul li.menu-item-has-children .sub-menu li a:hover {
  background-color: var(--01Gray100);
}

/* Logo desktop */
@media (min-width: 1024px) {
  .logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

/* Featured Card */
.featured-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.featured-card {
  width: 306px;
  height: 438px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--White, #FFF);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.featured-card__media {
  width: 100%;
  padding: 10px;
  line-height: 0;
  /* evita espacio extra alrededor del inline-block */
  box-sizing: border-box;
  /* incluye padding dentro del ancho del contenedor */
  pointer-events: none;
  /* evita que el contenedor capture clics del padding */
}

.featured-card__media-link {
  display: inline-block;
  width: 286px;
  /* igual que la imagen */
  height: 204px;
  /* igual que la imagen */
  vertical-align: top;
  overflow: hidden;
  /* limita el área clicable al contenedor */
  border-radius: 3px;
  /* mismo radio que la imagen */
  pointer-events: auto;
  /* sólo el enlace es clicable */
  position: relative;
}

.featured-card__media-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.0);
  transition: background 0.2s ease;
  border-radius: 3px;
}

.featured-card__media-link:hover::after {
  background: rgba(0, 0, 0, 0.08);
  /* oscurecimiento suave al hover */
}

.featured-card__image,
.featured-card__image--placeholder {
  width: 286px;
  height: 204px;
  flex-shrink: 0;
  aspect-ratio: 143/102;
  border-radius: 3px;
  background: var(--01Gray100, #EDEDF1);
}

.featured-card__image {
  object-fit: cover;
  display: block;
}

.featured-card__image--placeholder {
  display: block;
}

.featured-card__content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.featured-card__meta {
  color: var(--01Gray500, #6E7189);
  font-family: 'Nationale';
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px 10px 20px;
}

.featured-card__title {
  color: var(--01Gray800, #3E3E4E);
  font-family: 'Nationale';
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  /* 125% */
  margin: 0;
  padding: 0 20px 10px;
  /* top 0, left/right 20, bottom 10 */
}

.featured-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-card__title a:hover {
  color: var(--01EV400);
}

.featured-card__category {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-card__category:hover {
  color: var(--01EV400);
}

.featured-card__excerpt {
  color: var(--01Gray500, #6E7189);
  font-family: 'Nationale';
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  /* 128.571% */
  margin: 0;
  padding: 0 20px 20px;
  /* top 0, left/right 20, bottom 20 */
}

/* Single usando diseño de Featured: mostrar contenido completo con misma estética */
.single .featured-grid {
  justify-content: center;
}

.single .featured-card {
  width: 100%;
  max-width: 960px;
  /* Restaurado para desktop */
  height: auto;
  box-sizing: border-box;
}

.single .featured-card__excerpt {
  color: var(--01Gray800, #3E3E4E);
}

.single .featured-card__excerpt>p {
  margin: 0 0 12px;
}

.single .featured-card__excerpt img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  display: block;
}

/* Desktop: tipografías para single */
@media (min-width: 768px) {
  .single .featured-grid {
    justify-content: center;
  }

  .single .featured-card {
    width: 100%;
    max-width: 960px;
    /* Restaurado para desktop */
    margin: 0 auto;
    box-sizing: border-box;
  }

  .single .featured-card__media {
    padding: 10px 10px 0;
  }

  .single .featured-card__image,
  .single .featured-card__image--placeholder {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .single .featured-card__meta {
    font-size: 16px;
    line-height: 20px;
    padding-top: 20px;
  }

  .single .featured-card__title {
    font-size: 22px;
    line-height: 26px;
  }

  .single .featured-card__divider {
    height: 1px;
    background-color: var(--01Gray200);
    margin: 10px 20px;
  }

  .single .featured-card__excerpt {
    font-size: 18px;
    line-height: 24px;
    margin-top: 10px;
  }
}

/* Encabezados dentro del contenido de la nota: line-height + DemiBold */
.single .featured-card__excerpt h1,
.single .featured-card__excerpt h2,
.single .featured-card__excerpt h3,
.single .featured-card__excerpt h4,
.single .featured-card__excerpt h5,
.single .featured-card__excerpt h6 {
  line-height: 1.3;
  font-family: 'Nationale';
  font-weight: 600;
}

/* Blockquote con línea lateral con espacio vertical en la línea */
.single .featured-card__excerpt blockquote,
.single-card__entry blockquote,
blockquote {
  margin: 12px 20px;
  padding: 10px 16px;
  /* separación interna arriba/abajo */
  position: relative;
  font-style: italic;
  color: var(--01Gray500, #6E7189);
}

.single .featured-card__excerpt blockquote::before,
.single-card__entry blockquote::before,
blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background-color: var(--01Gray800, #3E3E4E);
}

/* Soporte para layout legado */
.single-card__entry h1,
.single-card__entry h2,
.single-card__entry h3,
.single-card__entry h4,
.single-card__entry h5,
.single-card__entry h6 {
  line-height: 1.3;
  font-family: 'Nationale';
  font-weight: 600;
}

@media (max-width: 767px) {
  .single .featured-grid {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    overflow-x: hidden;
    /* Previene scroll horizontal */
  }

  .single .featured-card {
    width: 100%;
    max-width: 100%;
    /* Cambiado de 560px a 100% */
    height: auto;
    box-sizing: border-box;
  }

  /* En single, la imagen no es clickeable: quitamos estilos del enlace */
  .single .featured-card__media-link {
    display: none;
  }

  .single .featured-card__image,
  .single .featured-card__image--placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 143/102;
    object-fit: cover;
    border-radius: 6px;
  }

  /* Tipografía móvil para single igual a featured */
  .single .featured-card__title {
    font-size: 22px;
    line-height: 26px;
  }

  .single .featured-card__divider {
    height: 1px;
    background-color: var(--01Gray200);
    margin: 10px 20px;
  }

  .single .featured-card__excerpt {
    font-size: 18px;
    line-height: 24px;
    margin-top: 10px;
  }
}

/* Slider de galería (simple) */
.ev-gallery {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--White, #FFF);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
  transition: height 0.25s ease;
}

.ev-gallery__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 100%;
}

.ev-gallery__track::-webkit-scrollbar {
  display: none;
}

.ev-gallery__item {
  min-width: 100%;
  scroll-snap-align: start;
  line-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  object-fit: cover;
}

.ev-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 20px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ev-gallery__prev {
  left: 12px;
}

.ev-gallery__next {
  right: 12px;
}

@media (max-width: 767px) {
  .ev-gallery {
    max-width: 100%;
  }
}

.index-divider {
  width: 950px;
  /* ancho de 3 cards (3*306) + 2 gaps (2*16) */
  max-width: 100%;
  margin: 20px auto 0;
  /* 20px bajo el título */
  height: 1px;
  background-color: var(--01Gray200);
}

.posts-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  width: 950px;
  /* 3 cards por fila (3*306 + 2*16) */
  max-width: 100%;
  margin: 20px auto 0;
  /* 20px bajo la línea divisora, centrado */
}

.post-card {
  width: 306px;
  height: auto;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--White, #FFF);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card__media {
  width: 100%;
  padding: 10px;
  line-height: 0;
  box-sizing: border-box;
}

.post-card__media-link {
  display: inline-block;
  width: 286px;
  height: 204px;
  vertical-align: top;
  overflow: hidden;
  border-radius: 3px;
  position: relative;
}

.post-card__media-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.0);
  transition: background 0.2s ease;
  border-radius: 3px;
}

.post-card__media-link:hover::after {
  background: rgba(0, 0, 0, 0.08);
}

.post-card__image,
.post-card__image--placeholder {
  width: 286px;
  height: 204px;
  flex-shrink: 0;
  aspect-ratio: 143/102;
  border-radius: 3px;
  background: var(--01Gray100, #EDEDF1);
}

.post-card__image {
  object-fit: cover;
  display: block;
}

.post-card__image--placeholder {
  display: block;
}

.post-card__content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card__meta {
  color: var(--01Gray500, #6E7189);
  font-family: 'Nationale';
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px 10px 20px;
}

.post-card__category {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card__category:hover {
  color: var(--01EV400);
}

.post-card__title {
  color: var(--01Gray800, #3E3E4E);
  font-family: 'Nationale';
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  margin: 0;
  padding: 0 20px 20px;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card__title a:hover {
  color: var(--01EV400);
}

/* Single Card */
.single-card {
  width: 100%;
  max-width: 800px;
  margin: 30px auto 0;
  border-radius: 6px;
  background: var(--White, #FFF);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.single-card__media {
  width: 100%;
  padding: 14px;
  line-height: 0;
  box-sizing: border-box;
}

.single-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.single-card__image--placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 6px;
  background: var(--01Gray100);
}

.single-card__content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.single-card__meta {
  color: var(--01Gray500);
  font-family: 'Nationale';
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px 10px 20px;
}

.single-card__category {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.single-card__category:hover {
  color: var(--01EV400);
}

.single-card__title {
  color: var(--01Gray800);
  font-family: 'Nationale';
  font-size: 20px;
  /* desktop */
  font-style: normal;
  font-weight: 700;
  line-height: 26px;
  margin: 0;
  padding: 0 20px 10px;
}

.single-card__entry {
  color: var(--01Gray800);
  font-family: 'Nationale';
  font-size: 16px;
  line-height: 24px;
  padding: 0 20px 20px;
}

.single-card__entry img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Line-height para encabezados en contenido legacy del single-card */
.single-card__entry h1,
.single-card__entry h2,
.single-card__entry h3,
.single-card__entry h4,
.single-card__entry h5,
.single-card__entry h6 {
  line-height: 1.3;
}

@media (max-width: 767px) {
  .single-card {
    max-width: 560px;
    margin: 20px auto 0;
  }

  .single-card__media {
    padding: 10px;
  }

  /* Igualar imagen y radios a featured en móvil */
  .single-card__image,
  .single-card__image--placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 143/102;
    border-radius: 3px;
  }

  .single-card__title {
    font-size: 18px;
    line-height: 22px;
  }

  .single-card__meta {
    font-size: 14px;
    line-height: 20px;
  }

  .single-card__entry {
    font-size: 16px;
    line-height: 22px;
    padding: 0 20px 28px;
  }
}

/* Mobile: ampliar cards al ancho completo */
@media (max-width: 767px) {

  .featured-grid,
  .posts-grid {
    width: 100%;
    max-width: 100%;
    padding: 0; /* evitar sumar padding al contenedor en móvil */
    box-sizing: border-box;
    justify-content: center;
  }

  .featured-card,
  .post-card {
    width: 100%;
    max-width: 560px;
    /* limita ancho en móviles grandes para estética */
    height: auto;
    /* evitar altura fija cuando hay más texto */
  }

  .featured-card__media,
  .post-card__media {
    padding: 10px;
  }

  .featured-card__media-link,
  .post-card__media-link {
    display: block;
    width: 100%;
    height: auto;
  }

  .featured-card__image,
  .featured-card__image--placeholder,
  .post-card__image,
  .post-card__image--placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 143/102;
  }

  /* Más espacio al final del excerpt del featured en móvil */
  .featured-card__excerpt {
    padding: 0 20px 28px;
  }

  /* Aumentar tamaños de fuente en móvil */
  .featured-card__title {
    font-size: 22px;
    line-height: 26px;
  }

  .post-card__title {
    font-size: 22px;
    line-height: 26px;
  }

  .featured-card__excerpt {
    font-size: 18px;
    line-height: 24px;
  }
}

/* Single: reducir márgenes laterales sin alterar el ancho máximo global */
.single .site-main > .container {
  padding-left: 8px;
  padding-right: 8px;
}

/* Ajuste en desktop para mantener un pequeño espacio de respiración */
@media (min-width: 1024px) {
  .single .site-main > .container {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 1152px; /* igual que el header/menu */
  }
}

/* Override móvil: eliminar padding extra del grid para no exceder 10px totales */
@media (max-width: 767px) {
  .single .featured-grid {
    padding-left: 0; /* consistente con grids globales */
    padding-right: 0; /* consistente con grids globales */
  }
}

/* Mobile FINAL override: igualar exactamente a single (respiración lateral) */
@media (max-width: 767px) {
  .home .site-main > .container,
  .blog .site-main > .container,
  .category .site-main > .container,
  .archive .site-main > .container {
    padding-left: 8px !important;  /* mismo que single container */
    padding-right: 8px !important; /* mismo que single container */
  }

  /* Grids con padding interno igual que single */
  .home .site-main .featured-grid,
  .blog .site-main .featured-grid,
  .category .site-main .featured-grid,
  .archive .site-main .featured-grid,
  .home .site-main .posts-grid,
  .blog .site-main .posts-grid,
  .category .site-main .posts-grid,
  .archive .site-main .posts-grid {
    padding-left: 12px !important; /* igual que .single .featured-grid */
    padding-right: 12px !important;
    box-sizing: border-box;
  }
}

/* (REMOVED) Bloque global previo: causaba inconsistencias de márgenes en móvil */

/* Desktop: asegurar ancho coherente con el menú también en categorías */
@media (min-width: 1024px) {
  .category .site-main > .container {
    max-width: 1152px;
  }
}

/* ===== PÁGINA 404 ===== */
.error-404-section {
  padding: 60px 0;
  text-align: center;
}

.error-404-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.error-404-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-404-number {
  font-size: 120px;
  font-weight: 700;
  color: var(--01Gray800);
  line-height: 1;
  margin-bottom: 20px;
  font-family: 'Nationale', Arial, sans-serif;
}

.error-404-title {
  font-size: 36px;
  font-weight: 600;
  color: var(--01Gray800);
  margin-bottom: 20px;
  font-family: 'Nationale', Arial, sans-serif;
}

.error-404-description {
  font-size: 18px;
  color: var(--01Gray500);
  line-height: 1.6;
  margin-bottom: 40px;
}

.error-404-actions {
  margin-bottom: 50px;
}

.error-404-home-link {
  color: var(--01Gray800);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.error-404-home-link:hover {
  color: #00bcd4;
  text-decoration: none;
}

/* Responsive para página 404 */
@media (max-width: 767px) {
  .error-404-section {
    padding: 40px 0;
  }

  .error-404-number {
    font-size: 80px;
  }

  .error-404-title {
    font-size: 28px;
  }

  .error-404-description {
    font-size: 18px;
  }
}



.featured-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.featured-card {
  width: 306px;
  height: 438px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--White, #FFF);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.featured-card__media {
  width: 100%;
  padding: 10px;
  line-height: 0;
  /* evita espacio extra alrededor del inline-block */
  box-sizing: border-box;
  /* incluye padding dentro del ancho del contenedor */
  pointer-events: none;
  /* evita que el contenedor capture clics del padding */
}

.featured-card__media-link {
  display: inline-block;
  width: 286px;
  /* igual que la imagen */
  height: 204px;
  /* igual que la imagen */
  vertical-align: top;
  overflow: hidden;
  /* limita el área clicable al contenedor */
  border-radius: 3px;
  /* mismo radio que la imagen */
  pointer-events: auto;
  /* sólo el enlace es clicable */
  position: relative;
}

.featured-card__media-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.0);
  transition: background 0.2s ease;
  border-radius: 3px;
}

.featured-card__media-link:hover::after {
  background: rgba(0, 0, 0, 0.08);
  /* oscurecimiento suave al hover */
}

.featured-card__image,
.featured-card__image--placeholder {
  width: 286px;
  height: 204px;
  flex-shrink: 0;
  aspect-ratio: 143/102;
  border-radius: 3px;
  background: var(--01Gray100, #EDEDF1);
}

.featured-card__image {
  object-fit: cover;
  display: block;
}

.featured-card__image--placeholder {
  display: block;
}

.featured-card__content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.featured-card__meta {
  color: var(--01Gray500, #6E7189);
  font-family: 'Nationale';
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px 10px 20px;
  /* top 10 (hacia imagen), left/right 20, bottom 10 (hacia título) */
}

.featured-card__title {
  color: var(--01Gray800, #3E3E4E);
  font-family: 'Nationale';
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  /* 125% */
  margin: 0;
  padding: 0 20px 10px;
  /* top 0, left/right 20, bottom 10 */
}

.featured-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-card__title a:hover {
  color: var(--01EV400);
}

.featured-card__category {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-card__category:hover {
  color: var(--01EV400);
}

.featured-card__excerpt {
  color: var(--01Gray500, #6E7189);
  font-family: 'Nationale';
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  /* 128.571% */
  margin: 0;
  padding: 0 20px 20px;
  /* top 0, left/right 20, bottom 20 */
}

/* Single usando diseño de Featured: mostrar contenido completo con misma estética */
.single .featured-grid {
  justify-content: center;
}

.single .featured-card {
  width: 100%;
  max-width: 960px;
  /* Restaurado para desktop */
  height: auto;
  box-sizing: border-box;
}

.single .featured-card__excerpt {
  color: var(--01Gray800, #3E3E4E);
}

.single .featured-card__excerpt>p {
  margin: 0 0 12px;
}

.single .featured-card__excerpt img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  display: block;
}

/* Desktop: tipografías para single */
@media (min-width: 768px) {
  .single .featured-grid {
    justify-content: center;
  }

  .single .featured-card {
    width: 100%;
    max-width: 100%;
    /* Cambiado de 960px para evitar zoom horizontal */
    margin: 0 auto;
    box-sizing: border-box;
  }

  .single .featured-card__media {
    padding: 10px 10px 0;
  }

  .single .featured-card__image,
  .single .featured-card__image--placeholder {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .single .featured-card__meta {
    font-size: 16px;
    line-height: 20px;
    padding-top: 20px;
  }

  .single .featured-card__title {
    font-size: 22px;
    line-height: 26px;
  }

  .single .featured-card__divider {
    height: 1px;
    background-color: var(--01Gray200);
    margin: 10px 20px;
  }

  .single .featured-card__excerpt {
    font-size: 18px;
    line-height: 24px;
    margin-top: 10px;
  }
}

/* Encabezados dentro del contenido de la nota: line-height + DemiBold */
.single .featured-card__excerpt h1,
.single .featured-card__excerpt h2,
.single .featured-card__excerpt h3,
.single .featured-card__excerpt h4,
.single .featured-card__excerpt h5,
.single .featured-card__excerpt h6 {
  line-height: 1.3;
  font-family: 'Nationale';
  font-weight: 600;
}

/* Blockquote con línea lateral con espacio vertical en la línea */
.single .featured-card__excerpt blockquote,
.single-card__entry blockquote,
blockquote {
  margin: 12px 20px;
  padding: 10px 16px;
  /* separación interna arriba/abajo */
  position: relative;
  font-style: italic;
  color: var(--01Gray500, #6E7189);
}

.single .featured-card__excerpt blockquote::before,
.single-card__entry blockquote::before,
blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background-color: var(--01Gray800, #3E3E4E);
}

/* Soporte para layout legado */
.single-card__entry h1,
.single-card__entry h2,
.single-card__entry h3,
.single-card__entry h4,
.single-card__entry h5,
.single-card__entry h6 {
  line-height: 1.3;
  font-family: 'Nationale';
  font-weight: 600;
}

@media (max-width: 767px) {
  .single .featured-grid {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .single .featured-card {
    width: 100%;
    max-width: 100%;
    /* Cambiado de 560px a 100% */
    height: auto;
    box-sizing: border-box;
  }

  /* En single, la imagen no es clickeable: quitamos estilos del enlace */
  .single .featured-card__media-link {
    display: none;
  }

  .single .featured-card__image,
  .single .featured-card__image--placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 143/102;
    object-fit: cover;
    border-radius: 6px;
  }

  /* Tipografía móvil para single igual a featured */
  .single .featured-card__title {
    font-size: 22px;
    line-height: 26px;
  }

  .single .featured-card__divider {
    height: 1px;
    background-color: var(--01Gray200);
    margin: 10px 20px;
  }

  .single .featured-card__excerpt {
    font-size: 18px;
    line-height: 24px;
    margin-top: 10px;
  }
}

/* Slider de galería (simple) */
.ev-gallery {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--White, #FFF);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
  transition: height 0.25s ease;
}

.ev-gallery__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 100%;
}

.ev-gallery__track::-webkit-scrollbar {
  display: none;
}

.ev-gallery__item {
  min-width: 100%;
  scroll-snap-align: start;
  line-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  object-fit: cover;
}

.ev-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 20px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ev-gallery__prev {
  left: 12px;
}

.ev-gallery__next {
  right: 12px;
}

@media (max-width: 767px) {
  .ev-gallery {
    max-width: 100%;
  }
}

.index-divider {
  width: 950px;
  /* ancho de 3 cards (3*306) + 2 gaps (2*16) */
  max-width: 100%;
  margin: 20px auto 0;
  /* 20px bajo el título */
  height: 1px;
  background-color: var(--01Gray200);
}

.posts-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  width: 950px;
  /* 3 cards por fila (3*306 + 2*16) */
  max-width: 100%;
  margin: 20px auto 0;
  /* 20px bajo la línea divisora, centrado */
}

.post-card {
  width: 306px;
  height: auto;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--White, #FFF);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card__media {
  width: 100%;
  padding: 10px;
  line-height: 0;
  box-sizing: border-box;
}

.post-card__media-link {
  display: inline-block;
  width: 286px;
  height: 204px;
  vertical-align: top;
  overflow: hidden;
  border-radius: 3px;
  position: relative;
}

.post-card__media-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.0);
  transition: background 0.2s ease;
  border-radius: 3px;
}

.post-card__media-link:hover::after {
  background: rgba(0, 0, 0, 0.08);
}

.post-card__image,
.post-card__image--placeholder {
  width: 286px;
  height: 204px;
  flex-shrink: 0;
  aspect-ratio: 143/102;
  border-radius: 3px;
  background: var(--01Gray100, #EDEDF1);
}

.post-card__image {
  object-fit: cover;
  display: block;
}

.post-card__image--placeholder {
  display: block;
}

.post-card__content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card__meta {
  color: var(--01Gray500, #6E7189);
  font-family: 'Nationale';
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px 10px 20px;
}

.post-card__category {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card__category:hover {
  color: var(--01EV400);
}

.post-card__title {
  color: var(--01Gray800, #3E3E4E);
  font-family: 'Nationale';
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  margin: 0;
  padding: 0 20px 20px;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card__title a:hover {
  color: var(--01EV400);
}

/* Single Card */
.single-card {
  width: 100%;
  max-width: 800px;
  margin: 30px auto 0;
  border-radius: 6px;
  background: var(--White, #FFF);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.single-card__media {
  width: 100%;
  padding: 14px;
  line-height: 0;
  box-sizing: border-box;
}

.single-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.single-card__image--placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 6px;
  background: var(--01Gray100);
}

.single-card__content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.single-card__meta {
  color: var(--01Gray500);
  font-family: 'Nationale';
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px 10px 20px;
}

.single-card__category {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.single-card__category:hover {
  color: var(--01EV400);
}

.single-card__title {
  color: var(--01Gray800);
  font-family: 'Nationale';
  font-size: 20px;
  /* desktop */
  font-style: normal;
  font-weight: 700;
  line-height: 26px;
  margin: 0;
  padding: 0 20px 10px;
}

.single-card__entry {
  color: var(--01Gray800);
  font-family: 'Nationale';
  font-size: 16px;
  line-height: 24px;
  padding: 0 20px 20px;
}

.single-card__entry img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Line-height para encabezados en contenido legacy del single-card */
.single-card__entry h1,
.single-card__entry h2,
.single-card__entry h3,
.single-card__entry h4,
.single-card__entry h5,
.single-card__entry h6 {
  line-height: 1.3;
}

@media (max-width: 767px) {
  .single-card {
    max-width: 560px;
    margin: 20px auto 0;
  }

  .single-card__media {
    padding: 10px;
  }

  /* Igualar imagen y radios a featured en móvil */
  .single-card__image,
  .single-card__image--placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 143/102;
    border-radius: 3px;
  }

  .single-card__title {
    font-size: 18px;
    line-height: 22px;
  }

  .single-card__meta {
    font-size: 14px;
    line-height: 20px;
  }

  .single-card__entry {
    font-size: 16px;
    line-height: 22px;
    padding: 0 20px 28px;
  }
}

/* Mobile: ampliar cards al ancho completo */
@media (max-width: 767px) {

  .featured-grid,
  .posts-grid {
    width: 100%;
    max-width: 100%;
    padding: 0; /* quitar padding lateral en móvil para usar el del contenedor */
    box-sizing: border-box;
    justify-content: center;
  }

  .featured-card,
  .post-card {
    width: 100%;
    max-width: 560px;
    /* limita ancho en móviles grandes para estética */
    height: auto;
    /* evitar altura fija cuando hay más texto */
  }

  .featured-card__media,
  .post-card__media {
    padding: 10px;
  }

  .featured-card__media-link,
  .post-card__media-link {
    display: block;
    width: 100%;
    height: auto;
  }

  .featured-card__image,
  .featured-card__image--placeholder,
  .post-card__image,
  .post-card__image--placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 143/102;
  }

  /* Más espacio al final del excerpt del featured en móvil */
  .featured-card__excerpt {
    padding: 0 20px 28px;
  }

  /* Aumentar tamaños de fuente en móvil */
  .featured-card__title {
    font-size: 22px;
    line-height: 26px;
  }

  .post-card__title {
    font-size: 22px;
    line-height: 26px;
  }

  .featured-card__excerpt {
    font-size: 18px;
    line-height: 24px;
  }
}