@media (max-width: 1200px) {
  .smk-content-area__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .smk-content-area__inner > * {
    min-width: 0;
  }

  .smk-content-area__inner :where(img, video, iframe, embed, object, table) {
    max-width: 100%;
    height: auto;
  }

  .smk-home-sidebar {
    display: none;
  }
}

@media (max-width: 900px) {
  .smk-home-footer__inner {
    flex-direction: column;
  }

  .smk-home-footer__col--legal {
    flex: 1 1 auto;
    width: 100%;
    margin-left: 0;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
   .smk-search-main,
   .smk-404-main {
     width: auto;
     max-width: 100%;
     margin-left: 0;
     margin-right: 0;
   }

   .smk-home-header__inner {
     position: relative;
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: 12px;
   }

  .smk-home-header__nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(54, 54, 54, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
  }

  .smk-home-header__nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .smk-menu-toggle {
    display: inline-block;
    width: 44px;
    height: 44px;
    border: 0;
    padding: 0;
    background: transparent url("../icons/menu-hamburguesa.svg") center/28px 28px no-repeat;
    cursor: pointer;
    margin-left: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .smk-menu-toggle:hover,
  .smk-menu-toggle:focus,
  .smk-menu-toggle:active {
    background-color: transparent;
    box-shadow: none;
  }

  .smk-home-header__nav .smk-home-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 16px;
    text-align: center;
  }

  .smk-home-menu > li,
  .smk-home-menu > li > a {
    width: 100%;
    text-align: center;
  }

  .smk-home-menu > li > a {
    display: block;
  }

  .smk-home-menu > li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .smk-home-menu > li.menu-item-has-children > a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.45s ease;
  }

  .smk-home-menu > li.menu-item-has-children.is-submenu-open > a::after {
    transform: rotate(-135deg);
  }

  .smk-home-menu .sub-menu {
    position: static;
    min-width: 0;
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    display: block;
  }

  .smk-home-menu > li.menu-item-has-children > .sub-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.45s ease, padding-top 0.45s ease;
  }

  .smk-home-menu > li.menu-item-has-children.is-submenu-open > .sub-menu {
    max-height: 500px;
    opacity: 1;
  }

  .smk-home-menu .sub-menu li,
  .smk-home-menu .sub-menu a {
    text-align: center;
  }

  .smk-home-menu .sub-menu::before {
    display: none;
  }

  .smk-home-menu > li > a {
    font-size: 20px;
  }

  .smk-home-menu .sub-menu a {
    font-size: 18px;
  }

  .smk-post-card {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    padding: 0;
    gap: 10px;
  }

  .smk-post-card__thumb {
    margin: 0 auto;
  }

  .smk-post-card__content {
    padding: 14px;
  }

  .smk-archive-intro__title {
    font-size: 32px;
  }

  /* En móvil dejamos solo: primero, anterior, actual, siguiente y último. */
  .smk-pagination .page-numbers:not(.smk-page-icon):not(.current) {
    display: none;
  }

  .smk-single-post__body .smk-post-banner--post_bottom {
    width: 250px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 22px 9px 14px 14px;
    min-height: 0;
    background-image: none;
  }

  .smk-single-post__body .smk-post-banner--post_bottom .smk-post-banner__left {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-rows: auto 45px auto;
    column-gap: 10px;
    row-gap: 8px;
  }

  .smk-single-post__body .smk-post-banner--post_bottom .smk-post-banner__left::before {
    content: "";
    grid-column: 1;
    grid-row: 2 / span 2;
    width: 114px;
    height: 172px;
    padding: 0;
    margin: 0 0 -14px -14px;
    justify-self: start;
    align-self: end;
    background: url("../images/banners/post-bottom-mobile-default.png") left bottom/114px 172px no-repeat;
  }

  .smk-single-post__body .smk-post-banner--post_bottom .smk-post-banner__title {
    grid-column: 1 / -1;
    margin: 0;
  }

  .smk-single-post__body .smk-post-banner--post_bottom .smk-post-banner__subtitle {
    grid-column: 2;
    margin: 0;
    text-align: center;
    font-size: 16px;
  }

  .smk-single-post__body .smk-post-banner--post_bottom .smk-post-banner__cta {
    grid-column: 2;
    margin-top: 0;
    justify-self: start;
    align-self: start;
    font-size: 10px;
  }
}

@media (max-width: 576px) {
  .smk-single-post__body .smk-post-banner__cta {
    padding: 8px 13px;
  }

  .smk-hero-search h1 {
    font-size: 38px;
  }

  .smk-search-form__field {
    font-size: 18px;
  }

  .smk-search-form input[type="search"].smk-search-form__field {
    padding: 5px 50px 5px 12px;
    background-position: right 15px center;
    background-size: 24px 24px;
  }

  .smk-search-form__field::placeholder {
    font-size: 18px;
    text-overflow: ellipsis;
  }

  .smk-category-buttons {
    --smk-category-row-height: 34px;
    max-width: 550px;
    max-height: calc((var(--smk-category-row-height) * 4) + (12px * 3));
  }
  .smk-category-button {
    padding: 7px 14px;
    min-height: 34px;
    font-size: 12px;
  }

  .smk-content-area {
    padding-left: 10px;
    padding-right: 10px;
  }

  .smk-content-area__inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .smk-post-card__meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .smk-post-card__readmore {
    order: 1;
  }

  .smk-post-card__category {
    order: 2;
    align-self: flex-end;
  }

  .smk-pagination .page-numbers {
    width: 37px;
    height: 37px;
    font-size: 19px;
  }
  .smk-pagination .smk-page-icon::before {
    width: 24px;
    height: 24px;
  }

  .smk-author-box__content {
    width: 100%;
  }

  .smk-author-box {
    flex-direction: column;
    align-items: center;
  }

  .smk-author-box__media {
    margin-left: auto;
    margin-right: auto;
  }

  .smk-author-box__name {
    text-align: center;
  }

  .smk-comments__form-wrap .smk-comments__submit,
  .smk-comments #respond .smk-comments__submit {
    padding: 10px 50px;
  }

  .smk-comments .comment-list ul.children {
    padding-left: 25px;
  }

  .smk-home-footer__inner {
    width: min(100% - 20px, var(--smk-header-max));
  }

  .smk-home-footer__copyright {
    font-size: 12px;
  }
}
