@media screen and (max-width: 768px) {
  :root {
    --bg: #f7f3eb;
    --bg-soft: #fffdf9;
    --text: #243126;
    --muted: #6f756c;
    --primary: #365c3b;
    --primary-hover: #28462c;
    --accent: #b58b47;
    --border: rgba(54, 92, 59, 0.1);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    --radius: 22px;
  }

  * {
    box-sizing: border-box;
  }

  body {
    min-width: 0;
    overflow-x: hidden;
    background: linear-gradient(to bottom, #faf7f2, #f4efe6);
  }

  .page-wrap {
    width: 100%;
    max-width: none;
  }

  #header {
    width: 100%;
    padding: 20px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;

    text-align: left;

    border-bottom: 1px solid rgba(54, 92, 59, 0.12);

    margin-bottom: 12px;
  }

  #header a.logo {
    display: block;
    width: 220px;
    max-width: 70%;
    margin: 0;
  }

  #header a.logo img {
    width: 100%;
    display: block;
    margin: 0;
  }

  #mobile-navigation {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    margin: 0;
    flex-shrink: 0;

    border-radius: 15%;

    background: #f9f6f0 url(../images/mobile-menu.png) no-repeat center;
    box-shadow: var(--shadow-soft);

    transition: 0.3s ease;
  }

  #mobile-navigation:hover {
    transform: scale(1.04);
  }

  #header ul {
    display: none;

    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;

    width: auto;

    margin: 0;
    padding: 12px;

    border: 1px solid var(--border);
    border-radius: 24px;

    background: #f9f6f0;

    box-shadow: var(--shadow);

    z-index: 9999;
  }

  #header ul li {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #header ul li + li {
    margin-top: 8px;
  }

  #header ul li a {
    display: block;

    padding: 16px 18px;

    border-radius: 14px;

    background: transparent;
    color: var(--text);

    font-size: 14px;
    font-weight: 600;

    letter-spacing: 0.5px;
    line-height: normal;

    text-decoration: none;

    transition: 0.3s ease;
  }

  #header ul li a:hover,
  #header ul li.selected a {
    background: rgba(54, 92, 59, 0.08);
    color: var(--primary);
  }

  #header ul ul {
    display: none;
    position: relative;
    width: 100%;
    margin-top: 8px;
    border: none;
  }

  #header ul ul li a {
    padding-left: 30px;
    font-size: 13px;
  }

  #header ul li span {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: rgba(54, 92, 59, 0.08) url(../images/mobile-expand.png)
      no-repeat center;

    border: none;
  }

  #body {
    width: 100%;
  }

  #body > div,
  #body > ul,
  #body form,
  #body ul.gallery {
    width: 100%;

    padding-left: 16px;
    padding-right: 16px;

    margin-left: auto;
    margin-right: auto;
  }

  #body #featured {
    display: none;
  }

  #body h1 {
    width: 100%;

    font-size: 32px;
    line-height: 1.15;

    color: var(--text);

    margin-bottom: 24px;
  }

  #body h1 span {
    background: none;

    font-size: large;

    color: var(--text);

    padding: 0;
  }

  #body img,
  #body > div img,
  #body > ul li a img,
  #body div ul li .figure img,
  #body ul.gallery li img {
    display: block;

    width: 100%;
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    border: none;
    border-radius: var(--radius);

    box-shadow: var(--shadow-soft);

    object-fit: cover;
  }

  #body > div img {
    margin-top: 24px;
    margin-bottom: 24px;
  }

  #body > div .article {
    width: 100%;
    padding: 0;
  }

  #body > div .article h2 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 18px;
  }

  #body > div .article h3 {
    font-size: medium;
  }

  #body > div .article h4 {
    display: inline-block;

    background: rgba(54, 92, 59, 0.08);
    color: var(--primary);

    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;

    padding: 10px 18px;

    margin-bottom: 24px;
  }

  #body > ul {
    overflow: visible;
  }

  #body > ul li {
    width: 100%;

    margin: 0 0 24px;

    list-style: none;

    float: none;
  }

  #body > ul li a {
    display: block;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.82);

    border: 1px solid var(--border);
    border-radius: 24px;

    box-shadow: var(--shadow-soft);

    text-decoration: none;

    transition: 0.3s ease;
  }

  #body > ul li a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }

  #body > ul li a img {
    width: 100%;
    border-radius: 0;
    margin: 0;
  }

  #body > ul li a span {
    display: block;

    padding: 24px;

    color: var(--text);

    font-size: 24px;
    font-weight: 700;
  }

  #body ul.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 14px;

    padding-top: 0;
  }

  #body ul.gallery li {
    width: calc(50% - 7px);

    margin: 0;

    list-style: none;
  }

  #body ul.gallery li img {
    border-radius: 18px;
  }

  #body div ul {
    width: 100%;

    margin: 0;
    padding: 10px 0 0;
  }

  #body div ul li {
    overflow: hidden;

    margin: 0 0 24px;

    padding: 0;

    list-style: none;

    border: none;
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.82);

    box-shadow: var(--shadow-soft);
  }

  #body div ul li .figure {
    width: 100%;

    margin: 0;
    padding: 0;

    float: none;
  }

  #body div ul li .figure img {
    width: 100%;

    margin: 0 auto;

    border-radius: 0;
  }

  #body div ul li div {
    width: 100%;

    padding: 28px 24px 32px;

    float: none;

    text-align: left;
  }

  #body div ul li div h3 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  #body div ul li div p {
    margin-bottom: 24px;
  }

  #body > ul li a span {
    font-weight: 500;
  }

  body.services-page #body > div {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.services-page #body div ul {
    width: 100%;

    margin: 0 auto;

    padding: 0;
  }

  body.services-page #body div ul li {
    display: block;

    width: 100%;

    margin: 0 auto 24px;

    padding: 0;

    overflow: hidden;

    text-align: center;
  }

  body.services-page #body div ul li .figure {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;
  }

  body.services-page #body div ul li .figure img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0 auto;

    border-radius: 0;
  }

  body.services-page #body div ul li div {
    width: 100%;

    padding: 28px 24px 32px;

    text-align: center;
  }

  body.services-page #body div ul li div h3 {
    text-align: center;
  }

  body.services-page #body div ul li div p {
    text-align: center;
  }

  #body div ul li div h3 {
    font-weight: 500;
  }

  a.more,
  #body form #send {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: var(--primary);
    color: white;

    border: none;
    border-radius: 999px;

    padding: 14px 24px;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    box-shadow: 0 10px 22px rgba(54, 92, 59, 0.18);

    transition: 0.3s ease;
  }

  a.more:hover,
  #body form #send:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
  }

  #body form {
    padding-top: 10px;
  }

  #body form input,
  #body form textarea {
    width: 100%;

    margin-bottom: 18px;

    padding: 16px 18px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.82);

    color: var(--text);

    font-size: 15px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  }

  #body form textarea {
    min-height: 180px;
    resize: none;
  }

  .section-featured {
    padding: 0.5rem 0.5rem 0.1rem;
  }

  .container {
    max-width: 700px;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }

  .logos {
    display: flex;
    justify-content: space-between;
    gap: 6px;
  }

  .logos img {
    height: 1.4rem;
    width: auto;
    box-shadow: none !important;
  }

  #footer {
    margin-top: 60px;

    padding: 40px 20px;

    background: linear-gradient(to right, #1f3522, #365c3b);
  }

  #footer div {
    width: 100%;
  }

  #footer div p {
    color: rgba(255, 255, 255, 0.88);

    text-align: center;
    line-height: 1.8;

    float: none;
  }

  #ultima-article {
    padding: 0 0 0 0 !important;
  }
  #ultima-article h1 {
    font-weight: 600;
  }
  #ultima-article h3 {
    font-weight: 500;
  }

  .logos img {
    height: 1.6rem;
  }

  .section-featured {
    padding: 16px 8px 14px;
  }

  .logos {
    min-height: 34px;
  }

  .section-featured .logos img {
    width: auto !important;
    /* max-width: 31% !important; */

    height: auto !important;
    max-height: 28px !important;

    margin: 0 !important;

    object-fit: contain !important;

    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .section-featured .logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .container {
    margin-left: 16px;
    margin-right: 16px;
  }

  .expat-btn {
    box-shadow: inherit;
    background: transparent !important;
    padding: 0;
    margin-top: 0px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12); */
  }
  .expat-btn img {
    display: block;
    max-width: 260px;
    width: 100%;
    height: auto;
  }

  #body img[alt="Migración legal y segura a México"] {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  }
}

.expat-btn,
.expat-btn:visited,
.expat-btn:focus,
.expat-btn:active {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.expat-btn img,
.expat-btn img:hover,
.expat-btn:focus img,
.expat-btn:active img {
  box-shadow: none !important;
  transform: none !important;
}
