/*
Theme Name: Medano4you Theme
Description: Custom WordPress theme converted from React project.
Version: 1.0
Author: Lucas Acosta
Text Domain: medano4you
*/

/* ==================================================
   GLOBAL PAGE LOADER
================================================== */

.booking-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf8f3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.booking-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.booking-loader-inner {
  width: min(260px, 70vw);
  text-align: center;
}

.booking-loader-logo {
  display: block;
  width: 180px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 26px;
}

.booking-loader-line {
  position: relative;
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: rgba(26, 26, 26, 0.12);
}

.booking-loader-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: #c9a45d;
  animation: m4u-loader-progress 1.1s ease-in-out infinite;
}

@keyframes m4u-loader-progress {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(260%);
  }
}

body.m4u-is-loading {
  overflow: hidden;
}

/* ==================================================
   PÁGINA DE AGRADECIMIENTO
================================================== */

main.m4u-gracias-page {
  box-sizing: border-box;
  width: 100%;
  min-height: calc(100svh - 112px);
  margin: 0;
  padding: 0;
  background: #f8f5ef;
}

main.m4u-gracias-page > section,
main.m4u-gracias-page > div,
main.m4u-gracias-page .entry-content,
main.m4u-gracias-page .wp-block-post-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.m4u-thank-you {
  box-sizing: border-box;
  width: 100%;
  min-height: calc(100svh - 112px);
  margin: 0;
  padding: 70px 24px 90px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #f8f5ef;
}

.m4u-thank-you-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 70px !important;
  padding-bottom: 70px !important;
  text-align: center;
}

.m4u-thank-you-logo {
  display: none;
}

.m4u-thank-you-card {
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto !important;
  padding: 64px 48px;
  background: #ffffff;
  border: 1px solid rgba(26, 26, 26, 0.06);
  box-shadow: 0 20px 60px rgba(26, 26, 26, 0.08);
}

.m4u-thank-you-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #c9a45d;
  background: rgba(201, 164, 93, 0.14);
}

.m4u-thank-you-label {
  display: block;
  margin-bottom: 20px;
  color: #c9a45d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.m4u-thank-you h1 {
  margin: 0 0 28px;
  color: #1a1a1a;
  font-family: serif;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 300;
  line-height: 1.1;
}

.m4u-thank-you-main-text {
  margin: 0 0 10px;
  color: #4a4a4a;
  font-size: 18px;
  line-height: 1.8;
}

.m4u-thank-you-secondary-text {
  max-width: 580px;
  margin: 0 auto 38px;
  color: #666666;
  font-size: 16px;
  line-height: 1.8;
}

.m4u-thank-you-button {
  display: inline-block;
  padding: 19px 34px;
  color: #ffffff;
  background: #1a1a1a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.m4u-thank-you-button:hover {
  color: #ffffff;
  opacity: 0.88;
  transform: translateY(-2px);
}

/* ==================================================
   ESTADO DE ENVÍO DE FORMULARIOS
================================================== */

.m4u-submit-loading {
  cursor: wait !important;
  opacity: 0.8;
  pointer-events: none;
}

.m4u-submit-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.m4u-submit-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: m4u-submit-spin 0.7s linear infinite;
}

@keyframes m4u-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================================================
   TAMAÑO DEL MENÚ PRINCIPAL
================================================== */

@media (min-width: 1120px) {
  .m4u-desktop-navigation .nav-link {
    font-size: 12px !important;
  }

  .m4u-desktop-actions #lang-btn,
  .m4u-desktop-actions .nav-btn {
    font-size: 12px !important;
  }
}

@media (min-width: 1360px) {
  .m4u-desktop-navigation .nav-link {
    font-size: 13px !important;
  }

  .m4u-desktop-actions #lang-btn,
  .m4u-desktop-actions .nav-btn {
    font-size: 13px !important;
  }
}

/* ==================================================
   BLOG MEDANO4YOU
================================================== */

.m4u-blog-page {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 125px 24px 100px;
  background: #faf8f3;
  color: #1a1a1a;
}

.m4u-blog-intro {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 65px !important;
}

.m4u-blog-eyebrow,
.m4u-blog-cta-eyebrow {
  margin: 0 0 22px !important;
  color: #b28a47;
  font-family: sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.m4u-blog-main-title {
  max-width: 850px;
  margin: 0 auto 30px !important;
  font-family: serif;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.m4u-blog-intro-text {
  max-width: 720px;
  margin: 0 auto !important;
  color: #5b5b5b;
  font-size: 18px;
  line-height: 1.8;
}

.m4u-blog-separator {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 80px !important;
  border-color: rgba(26, 26, 26, 0.1);
}

.m4u-blog-articles {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 110px !important;
}

.m4u-blog-section-heading {
  align-items: flex-end;
  margin-bottom: 45px;
}

.m4u-blog-section-title {
  margin: 0 !important;
  font-family: serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300;
}

.m4u-blog-section-label {
  margin: 0 !important;
  color: rgba(26, 26, 26, 0.5);
  font-family: sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.m4u-blog-grid {
  gap: 34px !important;
}

.m4u-blog-card {
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(26, 26, 26, 0.07);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.m4u-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(26, 26, 26, 0.08);
}

.m4u-blog-card-image {
  margin: 0 !important;
  overflow: hidden;
}

.m4u-blog-card-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.m4u-blog-card:hover .m4u-blog-card-image img {
  transform: scale(1.035);
}

.m4u-blog-card-content {
  padding: 30px 30px 34px;
}

.m4u-blog-card-date {
  margin-bottom: 16px !important;
  color: rgba(26, 26, 26, 0.46);
  font-family: sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.m4u-blog-card-title {
  margin: 0 0 18px !important;
  font-family: serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.18;
}

.m4u-blog-card-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.m4u-blog-card-excerpt {
  margin-bottom: 25px !important;
  color: #626262;
  font-size: 15px;
  line-height: 1.7;
}

.m4u-blog-read-more {
  color: #1a1a1a;
  font-family: sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.m4u-blog-read-more::after {
  content: " →";
  margin-left: 5px;
}

.m4u-blog-read-more:hover {
  color: #ff6f1c;
}

.m4u-blog-empty {
  padding: 60px 20px;
  color: #666666;
  font-size: 17px;
}

.m4u-blog-pagination {
  margin-top: 55px;
  gap: 20px;
  font-family: sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.m4u-blog-pagination a {
  color: #1a1a1a;
  text-decoration: none;
}

.m4u-blog-cta {
  max-width: 850px;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 85px 40px;
  background: #ffffff;
  border: 1px solid rgba(26, 26, 26, 0.07);
  text-align: center;
}

.m4u-blog-cta-title {
  margin: 0 0 24px !important;
  font-family: serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 300;
}

.m4u-blog-cta-text {
  max-width: 620px;
  margin: 0 auto 34px !important;
  color: #666666;
  font-size: 17px;
  line-height: 1.75;
}

.m4u-blog-cta-button .wp-block-button__link {
  padding: 18px 32px;
  border-radius: 0;
  background: #1a1a1a;
  color: #ffffff;
  font-family: sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.m4u-blog-cta-button .wp-block-button__link:hover {
  background: #ff6f1c;
  transform: translateY(-2px);
}

/* ==================================================
   PÁGINAS PRINCIPALES DEL BLOG
   ESPAÑOL, INGLÉS, ALEMÁN E ITALIANO
================================================== */

/*
 * Oculta el título automático generado por WordPress,
 * pero conserva el título editorial incluido dentro
 * del contenido de Gutenberg.
 */
body.m4u-blog-index-page main h1:not(.m4u-blog-main-title),
body.m4u-blog-index-page .entry-title,
body.m4u-blog-index-page .page-title,
body.m4u-blog-index-page main .entry-header,
body.m4u-blog-index-page main .page-header,
body.m4u-blog-index-page main header.entry-header,
body.m4u-blog-index-page main header.page-header {
  display: none !important;
}

/*
 * Elimina los anchos, márgenes y rellenos de la
 * plantilla general de WordPress.
 */
body.m4u-blog-index-page main,
body.m4u-blog-index-page main > article,
body.m4u-blog-index-page main .entry-content,
body.m4u-blog-index-page main .page-content,
body.m4u-blog-index-page main .wp-block-post-content {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/*
 * El grupo principal del blog ocupa todo el ancho.
 */
body.m4u-blog-index-page .m4u-blog-page {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding-top: 125px !important;
}

/*
 * Evita posibles márgenes superiores añadidos
 * por el primer bloque de Gutenberg.
 */
body.m4u-blog-index-page .m4u-blog-page > :first-child,
body.m4u-blog-index-page .m4u-blog-intro > :first-child {
  margin-top: 0 !important;
}

/* ==================================================
   RESPALDO POR SLUG
================================================== */

/*
 * Estos selectores sirven como respaldo mientras
 * WordPress o la caché todavía no hayan cargado la
 * clase m4u-blog-index-page.
 */
body.page-blog main h1:not(.m4u-blog-main-title),
body.page-travel-guide main h1:not(.m4u-blog-main-title),
body.page-ratgeber main h1:not(.m4u-blog-main-title),
body.page-guida main h1:not(.m4u-blog-main-title) {
  display: none !important;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 900px) {
  .m4u-blog-page {
    padding-top: 105px;
  }

  .m4u-blog-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  body.m4u-blog-index-page .m4u-blog-page {
    padding-top: 105px !important;
  }
}

@media (max-width: 640px) {
  main.m4u-gracias-page {
    min-height: calc(100svh - 90px);
  }

  .m4u-thank-you {
    min-height: calc(100svh - 90px);
    padding: 45px 18px 60px;
  }

  .m4u-thank-you-content {
    padding-top: 45px !important;
    padding-bottom: 45px !important;
  }

  .m4u-thank-you-card {
    padding: 48px 24px;
  }

  .m4u-thank-you h1 {
    font-size: 38px;
  }

  .m4u-thank-you-main-text {
    font-size: 17px;
  }

  .m4u-thank-you-secondary-text {
    font-size: 15px;
  }

  .m4u-blog-page {
    padding-right: 18px;
    padding-bottom: 70px;
    padding-left: 18px;
  }

  body.m4u-blog-index-page .m4u-blog-page {
    padding-top: 90px !important;
  }

  .m4u-blog-intro {
    margin-bottom: 50px !important;
  }

  .m4u-blog-eyebrow {
    margin-bottom: 18px !important;
    font-size: 10px;
  }

  .m4u-blog-main-title {
    font-size: 43px;
  }

  .m4u-blog-intro-text {
    font-size: 16px;
  }

  .m4u-blog-separator {
    margin-bottom: 55px !important;
  }

  .m4u-blog-articles {
    margin-bottom: 75px !important;
  }

  .m4u-blog-card-content {
    padding: 25px 23px 29px;
  }

  .m4u-blog-card-title {
    font-size: 26px;
  }

  .m4u-blog-cta {
    padding: 60px 24px;
  }
}