	.mm-home-hero {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  margin-bottom: 10%;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 45%, rgba(242, 127, 13, 0.11), transparent 26%),
    radial-gradient(circle at 52% 53%, rgba(79, 64, 27, 0.08), transparent 24%),
    var(--color-cream);
}

.mm-section--hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-cream) url("../../resources/gastro.webp") center / cover no-repeat;
}

.mm-home-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 104px);
  min-height: 100vh;
  width: min(1240px, calc(100% - clamp(40px, 9vw, 128px)));
  margin: 0 auto;
  padding: clamp(110px, 13vh, 164px) 0 clamp(76px, 10vh, 118px);
}

.mm-home-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  isolation: isolate;
}

.mm-home-copy::before {
  content: "";
  position: absolute;
  inset: -64px -56px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    var(--color-cream) 0%,
    var(--color-cream) 48%,
    rgba(245, 238, 225, 0.88) 62%,
    rgba(245, 238, 225, 0.4) 76%,
    rgba(245, 238, 225, 0) 100%
  );
  filter: blur(24px);
}

.mm-home-actions .mm-demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mm-home-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--color-orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mm-home-copy h1 {
  margin: 0 0 24px;
  max-width: 15ch;
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.mm-home-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(79, 64, 27, 0.82);
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
  line-height: 1.65;
}

.mm-home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
}

/* ==========================================
   ANIMACIÓN DE ENTRADA PARA EL COPY
   ========================================== */

/* 1. Definimos la animación base */
@keyframes mmFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px); /* Empieza 20px más abajo */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* Termina en su posición original */
  }
}

/* 2. Aplicamos la animación a los hijos directos del copy */
.mm-home-copy > * {
  opacity: 0; /* Asegura que no parpadeen antes de iniciar */
  animation: mmFadeInUp 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

/* 3. Creamos el efecto cascada (desfase de tiempo) */
.mm-home-copy .mm-home-kicker {
  animation-delay: 0.1s;
}

.mm-home-copy h1 {
  animation-delay: 0.25s;
}

.mm-home-copy p {
  animation-delay: 0.4s;
}

.mm-home-copy .mm-home-actions {
  animation-delay: 0.55s;
}


.mm-home-visual {
  position: relative;
  z-index: 1;
  min-height: clamp(520px, 72vh, 720px);
  transform-style: preserve-3d;
  perspective: 1200px;
}

.mm-home-projected-shadow {
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(86%, 560px);
  aspect-ratio: 1.1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(242, 127, 13, 0.13), transparent 42%),
    radial-gradient(ellipse at 50% 62%, rgba(79, 64, 27, 0.18), transparent 56%);
  filter: blur(42px);
  opacity: 0.76;
  transform: translate(-50%, -50%) scale(calc(1 + (var(--home-depth-abs, 0) * 0.08)));
  pointer-events: none;
}

.mm-home-phone {
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: 4;
  width: min(58vw, 370px);
  max-height: 76vh;
  object-fit: contain;
  transform:
    translate3d(calc(-50% + var(--home-phone-x, 0px)), calc(-50% + var(--home-phone-y, 0px)), 80px)
    rotateZ(-3deg)
    rotateY(calc(var(--home-depth, 0) * -5deg))
    scale(calc(1 + (var(--home-depth-abs, 0) * 0.035)));
  filter: drop-shadow(0 34px 42px rgba(79, 64, 27, 0.2));
  will-change: transform;
}

.mm-home-floating-card {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 2px;
  min-width: 170px;
  padding: 16px 20px;
  border-radius: 1em;
  background: rgba(255, 249, 240, 0.74);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  color: var(--text-on-light);
  box-shadow: 0 18px 36px rgba(79, 64, 27, 0.13);
  transform: translate3d(var(--home-card-x, 0px), var(--home-card-y, 0px), 120px);
}

.mm-home-floating-card strong {
  font-size: 1rem;
  line-height: 1.1;
}

.mm-home-floating-card span {
  font-size: 0.82rem;
  opacity: 0.72;
}

.mm-home-card-left {
  left: 5%;
  top: 25%;
}

.mm-home-card-right {
  right: 2%;
  bottom: 21%;
  transform: translate3d(calc(var(--home-card-x, 0px) * -0.75), calc(var(--home-card-y, 0px) * 0.75), 80px) rotate(7deg);
  opacity: 0.82;
}

.mm-home-orbit {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 240px;
  height: 200px;
  transform: none;
}

.mm-home-orbit img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mm-home-orbit-top {
  top: -10%;
  left: -5%;
  transform: translate3d(calc(var(--home-card-x, 0px) * -0.25), calc(var(--home-card-y, 0px) * 0.4), 70px);
}

.mm-home-orbit-bottom {
  right: -5%;
  bottom: 0;
  transform: translate3d(calc(var(--home-card-x, 0px) * -0.35), calc(var(--home-card-y, 0px) * -0.35), 70px);
}


/* ==========================================
   RESPONSIVE DESIGN (MÓVIL Y TABLET)
   ========================================== */
@media (max-width: 768px) {
  
  /* Ajustamos la sección para que el contenido fluya de forma natural */
  .mm-home-hero {
    position: relative; /* Cambiamos de sticky a relative en móvil para evitar bugs de scroll */
    min-height: auto;
    height: auto;
    overflow: visible;
    padding-bottom: 60px;
  }

  /* Reordenamos las columnas a una sola fila */
  .mm-home-shell {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: calc(100% - 40px);
    min-height: auto;
    padding: 100px 0 40px 0; /* Espacio para el header fijo */
  }

  /* ------------------------------------------
     1. EL VISUAL PRIMERO (ARRIBA Y REDUCIDO)
     ------------------------------------------ */
  .mm-home-visual {
    order: 1; /* Lo posiciona al principio de la estructura visual */
    min-height: auto;
    height: 380px; /* Reducimos la altura del contenedor contenedor */
    width: 100%;
    max-width: 340px; /* Evita que se desborde */
    margin: 0 auto;
    transform: scale(0.8); /* Escalamos todo el conjunto de forma proporcional */
    transform-origin: center center;
  }

  /* Ajustes finos de los elementos del visual para que no colisionen */
  .mm-home-phone {
    width: 220px; /* Teléfono más pequeño para pantallas móviles */
  }

  .mm-home-projected-shadow {
    top: 65%;
    width: 260px;
  }

  .mm-home-floating-card {
    min-width: 140px;
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  
  .mm-home-card-left {
    left: -10px;
    top: 20%;
  }

  .mm-home-card-right {
    right: -10px;
    bottom: 25%;
  }

  /* ------------------------------------------
     2. EL COPY SEGUNDO (ABAJO DEL VISUAL)
     ------------------------------------------ */
  .mm-home-copy {
    order: 2; /* Lo posiciona debajo del visual */
    text-align: center; /* Centramos el texto para una mejor estética móvil */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Optimizamos los tamaños de texto */
  .mm-home-copy h1 {
    font-size: 2.2rem; /* Tamaño de letra legible en móviles */
    max-width: 100%;
    margin: 15px 0 15px;
    line-height: 1.15;
  }

  .mm-home-copy p {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 10px;
  }

  /* Ajustamos los botones para que se apilen correctamente */
  .mm-home-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 16px;
    margin-top: 28px;
  }

}
