/* Portada de Múdate Ya: cálida y cercana. Se carga después de site.css. */
.home {
  --bg: #fbf7f1;
  --surface: #f3eadf;
  --kraft: #e7d3b6;
  --ink: #2b2118;
  --muted: #5a4c3e;
  --accent: #f5b83d;
  --accent-hover: #ffc857;
  --background: var(--bg);
  --foreground: var(--ink);
  --primary: var(--ink);
  --primary-hover: #000;
  --ring: var(--ink);
  --m: clamp(16px, 4vw, 64px);
  --gap: clamp(96px, 11vw, 168px);
  --r: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  background: var(--bg);
  color: var(--ink);
}
.home .sr-only {
  position: absolute;
  width: 1px; /* taste-skill-ignore: texto solo para lectores de pantalla */
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Cabecera */
.home .site-header {
  background: var(--bg);
  border-bottom: 0;
  -webkit-backdrop-filter: none; /* taste-skill-ignore: anula el desenfoque heredado */
  backdrop-filter: none; /* taste-skill-ignore */
}
.home .site-header .shell {
  width: auto;
  margin-inline: var(--m);
}
.home .header-inner {
  min-height: 76px;
}
.home .brand,
.home .brand-ya > span {
  color: var(--accent);
}
.home .brand > span {
  font-size: 24px;
  color: var(--ink);
}
.home .desktop-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.home .desktop-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.home .header-cta,
.home .button-primary,
.home .submit-button {
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  font-size: 15px;
}
.home .header-cta:hover,
.home .button-primary:hover,
.home .submit-button:hover {
  background: var(--accent-hover);
  color: var(--ink);
}
.home .menu-toggle {
  border-radius: 999px;
  border-color: var(--kraft);
}
.home .mobile-nav a {
  border-bottom-color: var(--surface);
}

/* Botones */
.mh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.18s var(--ease),
    background 0.18s;
}
.mh-button:hover {
  background: var(--accent-hover);
}
.mh-button:active {
  transform: scale(0.97);
}
.mh-link {
  font-size: 17px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  transition: text-underline-offset 0.18s var(--ease);
}
.mh-link:hover {
  text-underline-offset: 9px;
}
.home a:focus-visible,
.home button:focus-visible,
.home input:focus-visible,
.home summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Hero */
.mh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(24px, 4vh, 48px) var(--m) 0;
  min-height: calc(100svh - 76px);
}
.mh-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 6.6vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.mh-kicker {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-manrope), sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--primary);
}
.mh-word {
  display: block;
  white-space: nowrap;
}
.mh-lede {
  margin-top: 28px;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.55;
  max-width: 34ch;
}
.mh-route {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  background: var(--surface);
  padding: 10px;
  border-radius: 28px;
  max-width: 620px;
}
.mh-route-field {
  display: grid;
  gap: 2px;
  padding: 8px 14px;
  background: var(--bg);
  border-radius: 18px;
}
.mh-route label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.mh-route input {
  font: 600 18px/1.4 var(--font-manrope), sans-serif;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 2px 0;
  min-height: 32px;
  min-width: 0;
}
.mh-route input::placeholder {
  color: #75644f;
}
.mh-route input:focus {
  outline: 0;
}
.mh-route-field:focus-within {
  box-shadow: 0 0 0 2px var(--ink); /* taste-skill-ignore: anillo de foco de un campo */
}
.mh-route .mh-button {
  min-height: 64px;
  border-radius: 20px;
}
.mh-promise {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
}
.mh-promise li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.mh-hero-media {
  position: relative;
  align-self: stretch;
  margin: 0 calc(var(--m) * -1) 0 0;
  min-height: 520px;
}
.mh-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r) 0 0 var(--r);
}
.mh-hero-inset {
  position: absolute;
  left: -48px;
  bottom: 48px;
  width: clamp(160px, 15vw, 240px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  border: 6px solid var(--bg);
}
.mh-hero-media figcaption {
  position: absolute;
  right: var(--m);
  bottom: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 15px;
  font-weight: 700;
}

/* Solicitud */
.mh-request {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(32px, 6vw, 112px);
  padding: var(--gap) var(--m) 0;
  align-items: start;
}
.mh-request-copy {
  position: sticky;
  top: 100px;
}
.mh-request h2,
.mh-kinds h2,
.mh-steps h2,
.mh-list h2,
.mh-faq h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 4.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.mh-request-copy > p {
  font-size: 18px;
  line-height: 1.6;
  margin-top: 20px;
  max-width: 36ch;
}
.mh-request-photo {
  margin-top: 32px;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}
.mh-request-copy .mh-note {
  font-size: 15px;
  color: var(--muted);
}
.home .quote-card {
  background: var(--surface);
  border: 0;
  border-radius: 28px;
  box-shadow: none; /* taste-skill-ignore: anula la sombra heredada */
  padding: clamp(24px, 3.4vw, 52px);
}
.home .quote-card-header {
  border-bottom: 0;
}
.home .quote-card h2 {
  font-size: 34px;
}
.home .demo-badge {
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  border: 0;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  padding: 4px 12px;
}
.home .form-input {
  background: var(--bg);
  border: 1px solid #cdbba3; /* taste-skill-ignore: borde de campo de formulario */
  border-radius: 14px;
  font-size: 16px;
  min-height: 52px;
}
.home .form-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink); /* taste-skill-ignore: anillo de foco de un campo */
}
.home .form-field > label,
.home .form-section-label {
  font-size: 14px;
}
.home .quote-card :is(.field-hint, .route-hint, .form-intro, .form-intro span, .consent-label, .demo-note, .character-count) {
  font-size: 13px;
  color: var(--ink);
}
.home .swap-route {
  border-radius: 999px;
}

/* Tipos: mosaico de fotos */
.mh-kinds {
  padding: var(--gap) var(--m) 0;
}
.mh-kinds-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px 64px;
  flex-wrap: wrap;
}
.mh-kinds-head p {
  font-size: 18px;
  max-width: 34ch;
  line-height: 1.55;
}
.mh-mosaic {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 16px;
}
.mh-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  color: #fff;
  isolation: isolate;
}
.mh-tile-big {
  grid-row: 1 / 3;
}
.mh-tile-wide {
  grid-column: 2 / 4;
}
.mh-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.mh-tile img.mh-tile-img-top {
  object-position: 50% 12%;
}
.mh-tile:hover img {
  transform: scale(1.05);
}
.mh-tile-text {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 34ch;
  padding: 14px 18px;
  background: var(--bg);
  color: var(--ink);
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
  transition: transform 0.25s var(--ease);
}
.mh-tile:hover .mh-tile-text {
  transform: translateY(-4px);
}
.mh-tile-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 4px;
}

/* Cómo funciona */
.mh-steps {
  margin-top: var(--gap);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--kraft);
}
.mh-steps-photo {
  min-height: 560px;
}
.mh-steps-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mh-steps-copy {
  padding: clamp(56px, 7vw, 112px) var(--m);
}
.mh-step-list {
  list-style: none;
  margin: 40px 0;
  display: grid;
  gap: 28px;
}
.mh-step-list h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.mh-step-list p {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.55;
  max-width: 44ch;
}

/* Qué preparar */
.mh-list {
  padding: var(--gap) var(--m) 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(32px, 6vw, 112px);
  align-items: start;
}
.mh-list-head p {
  margin: 20px 0 24px;
  font-size: 18px;
  line-height: 1.6;
  max-width: 38ch;
}
.mh-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mh-check {
  background: var(--surface);
  border-radius: var(--r);
  padding: 28px;
  transition: background 0.2s;
}
.mh-check:hover {
  background: var(--kraft);
}
.mh-check h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
}
.mh-check p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.55;
}

/* Preguntas */
.mh-faq {
  padding: var(--gap) var(--m);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(32px, 6vw, 112px);
  align-items: start;
}
.mh-faq-head p {
  margin-top: 20px;
  font-size: 18px;
}
.mh-faq-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-top: 32px;
  border-radius: 18px;
}
@media (max-width: 1500px) {
  .mh-faq-photo {
    aspect-ratio: 4 / 3;
  }
}
.mh-faq-help {
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--surface);
}
.mh-faq-head .mh-faq-help p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
}
.mh-faq-help a {
  font-weight: 650;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mh-faq-list {
  display: grid;
  gap: 10px;
}
.home .faq-item,
.home .faq-item:first-child {
  border: 0;
  background: var(--surface);
  border-radius: 18px;
  padding: 0 24px;
}
.home .faq-item summary {
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 700;
  padding-block: 20px;
}
.home .faq-item[open] {
  padding-bottom: 20px;
}
.home .faq-native-answer p {
  font-size: 17px;
  max-width: 60ch;
  color: var(--ink);
}

/* Cierre sobre foto */
.mh-close {
  position: relative;
  min-height: 80svh;
  margin: 0 var(--m);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: clamp(24px, 4vw, 56px);
}
.mh-close > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mh-close-panel {
  position: relative;
  background: var(--ink);
  color: var(--bg);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 56px);
  max-width: 640px;
}
.mh-close h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.mh-close-panel p {
  margin: 18px 0 28px;
  font-size: 19px;
  line-height: 1.5;
}

/* Pie */
.mh-footer {
  margin-top: var(--gap);
  background: var(--ink);
  color: var(--bg);
  padding: 72px var(--m) 32px;
}
.mh-footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px 64px;
}
.mh-footer-mark {
  font-family: var(--font-display);
  font-size: 44px;
  letter-spacing: -0.03em;
}
.mh-footer-main p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 46ch;
  color: #e9dfd1;
}
.mh-footer h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
}
.mh-footer-main nav {
  display: grid;
  gap: 8px;
  align-content: start;
  font-size: 16px;
}
.mh-footer address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.6;
}
.mh-mail {
  display: inline-block;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.mh-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mh-footer-meta {
  margin-top: 56px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 14px;
  color: #e9dfd1;
}
.mh-footer-meta nav {
  display: flex;
  gap: 20px;
}

/* Entradas: solo si el script está activo */
.js-motion [data-in] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js-motion [data-in].is-in {
  opacity: 1;
  transform: none;
}
.mh-hero-photo {
  animation: mh-settle 1.4s var(--ease) both;
}
@keyframes mh-settle {
  from {
    clip-path: inset(0 0 0 100%);
    transform: scale(1.08);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mh-hero-photo {
    animation: none;
  }
  .js-motion [data-in] {
    transform: none;
    transition: opacity 0.3s;
  }
}

@media (max-width: 1100px) {
  .mh-route {
    grid-template-columns: 1fr 1fr;
  }
  .mh-route .mh-button {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .mh-hero,
  .mh-request,
  .mh-steps,
  .mh-list,
  .mh-faq {
    grid-template-columns: 1fr;
  }
  .mh-faq-photo,
  .mh-faq-help {
    display: none;
  }
  .mh-hero {
    min-height: 0;
  }
  .mh-hero-media {
    margin: 0 calc(var(--m) * -1);
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .mh-hero-photo {
    border-radius: 0;
  }
  .mh-hero-inset {
    left: var(--m);
    bottom: -32px;
  }
  .mh-request-copy {
    position: static;
  }
  .mh-request-copy > p {
    max-width: 60ch;
  }
  .mh-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 320px 240px 240px;
  }
  .mh-tile-big {
    grid-row: auto;
    grid-column: 1 / -1;
  }
  .mh-tile-wide {
    grid-column: 1 / -1;
  }
  .mh-steps-photo {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
  .mh-footer-main {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .mh-line {
    font-size: 13.5vw;
  }
  .mh-word {
    white-space: normal;
  }
  .mh-route {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }
  .mh-promise {
    gap: 16px;
    font-size: 14px;
  }
  .mh-hero-media figcaption {
    display: none;
  }
  .mh-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 300px;
  }
  .mh-tile-big,
  .mh-tile-wide {
    grid-column: auto;
  }
  .mh-checklist {
    grid-template-columns: 1fr;
  }
  .mh-close {
    margin: 0;
    border-radius: 0;
    min-height: 0;
    padding: 160px 16px 16px;
  }
  .mh-close .mh-button {
    width: 100%;
  }
  .mh-footer-main {
    grid-template-columns: 1fr;
  }
  .home .header-cta {
    display: none;
  }
}
.mh-close > img {
  object-position: center 35%;
}

/* La entrada de la foto principal (scale 1.08) no debe generar desplazamiento horizontal. */
.mh {
  overflow-x: clip;
}
