/* Estilos solo de la página de inicio (index.html).
   Lo que comparten todas las páginas está en base.css */

/* HERO */
/* Ocupa todo el ancho para que la red animada llegue a los bordes de la pantalla */
.hero {
  position: relative;
  overflow: hidden;
}

/* Red animada de fondo. Se desvanece hacia el centro para que no pase por
   detrás del texto, y se ve más en los bordes */
.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 35%, #000 80%);
          mask-image: radial-gradient(ellipse at center, transparent 35%, #000 80%);
}

/* Contenido del hero, por encima de la red */
.hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* Primera pantalla: hero + flecha llenan el viewport menos la navbar (60px) */
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px); /* dvh evita el salto por la barra del navegador en móvil */
}

.hero-content {
  margin-block: auto; /* centra el contenido en vertical y deja la flecha pegada al fondo */
}

.hero-avatar {
  /* Muestra cabeza + hombros; recorta el cuerpo/patas.
     Sin borde ni fondo: el PNG transparente se funde con el blanco de la página. */
  width: 190px;
  height: 150px;
  margin: 0 auto 0.75rem;
  overflow: hidden;
  /* el borde inferior se desvanece para que el corte se pierda en el blanco */
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

.hero-avatar img {
  display: block;
  width: 100%;
}

/* El hero se lee en tres bloques: mensaje (título + subtítulo), beneficios y
   botón. Dentro de cada bloque el espacio es corto y entre bloques es amplio */
.hero-title {
  max-width: 22ch;
  margin: 0 auto 0.75rem;
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--my-green-dark);
}

.hero-subtitle {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: var(--my-gray-text);
}

/* Beneficios en pastillas verde claro, para que se separen del fondo blanco */
.hero-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 820px;
  margin: 0 auto 2rem;
  padding: 0;
  list-style: none;
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  background: var(--my-badge-green-bg);
  border-radius: 999px;
  text-align: left;
  font-size: 0.95rem;
}

.hero-benefits i {
  flex: none;
  width: 1.1rem;
  text-align: center;
  color: var(--my-green-dark);
}

.hero-cta {
  font-family: var(--font-title);
  font-weight: 500;
  /* En desktop alarga el botón; el min() evita que desborde en móviles angostos */
  min-width: min(320px, 100%);
}

.hero-cta.btn-outline-success {
  color: var(--my-green-dark);
  border-color: var(--my-green-dark);
}

.hero-cta.btn-outline-success:hover {
  background-color: var(--my-green-dark);
  color: #fff;
}

/* Al pasar el mouse, el botón se levanta un poco */
.hero-cta {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--my-shadow-card);
}

/* Entrada del hero al cargar la página: las piezas aparecen en cascada */
.hero-avatar,
.hero-title,
.hero-subtitle,
.hero-benefits li,
.hero-cta-group {
  animation: hero-enter 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-title { animation-delay: 0.1s; }
.hero-subtitle { animation-delay: 0.2s; }
.hero-benefits li:nth-child(1) { animation-delay: 0.3s; }
.hero-benefits li:nth-child(2) { animation-delay: 0.38s; }
.hero-benefits li:nth-child(3) { animation-delay: 0.46s; }
.hero-benefits li:nth-child(4) { animation-delay: 0.54s; }
.hero-cta-group { animation-delay: 0.65s; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(16px); }
}

.hero-scroll-cue {
  align-self: center; /* solo la flecha es tocable, no todo el ancho */
  display: flex;
  justify-content: center;
  padding: 12px 12px 40px;
}

.chevron-down {
  width: 20px;
  height: 20px;
  border-right: 3px solid var(--my-green-dark);
  border-bottom: 3px solid var(--my-green-dark);
  transform: rotate(45deg);
  animation: chevron-bounce 1.8s ease-in-out infinite;
}

@keyframes chevron-bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50%      { transform: translateY(6px) rotate(45deg); }
}

@media (prefers-reduced-motion: reduce) {
  .chevron-down,
  .hero-avatar,
  .hero-title,
  .hero-subtitle,
  .hero-benefits li,
  .hero-cta-group {
    animation: none;
  }
  .hero-cta,
  .hero-cta:hover {
    transition: none;
    transform: none;
  }
}
/* END HERO */


/* APARICIÓN AL BAJAR
   Las piezas con .reveal suben y se aclaran la primera vez que entran en
   pantalla. Solo se ocultan si js/index_reveal.js agregó reveal-ready a <html>
   (no lo agrega si la persona pidió reducir movimiento) */
.reveal {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

/* En "Cómo funciona" aparecen en orden: título, subtítulo y reproductor */
.how-subtitle.reveal { transition-delay: 0.1s; }
.how-player.reveal { transition-delay: 0.2s; }
/* END APARICIÓN AL BAJAR */


/* CÓMO FUNCIONA
   Reproductor de 4 pasos: arriba una escena con una pantalla de muestra y un
   búho, abajo el texto del paso y los controles. El avance y el orden en que
   aparecen las cosas los maneja js/index_how_it_works.js */
/* Mide al menos una pantalla, con el contenido centrado en vertical: al bajar
   con la flecha del hero solo se ve esta sección, no lo que sigue */
.how {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.how-title {
  text-align: center;
  color: var(--my-green-dark);
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.how-subtitle {
  text-align: center;
  color: var(--my-icon-gray-dark);
  margin-bottom: 2.5rem;
}

/* Escenario. Tocarlo pasa al paso siguiente */
.how-stage {
  position: relative;
  cursor: pointer;
  height: 380px;
  border-radius: 24px;
  border: 1px solid var(--my-gray-light);
  overflow: hidden;
  background: var(--my-stage-bg);
}

.how-scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 220px;
  align-items: center;
  gap: 2rem;
  padding: 2rem 3rem;
  /* El fondo va en cada escena (y no solo en el escenario) para que el búho
     en vuelo, que trae fondo blanco, se funda con él usando mix-blend-mode */
  background: var(--my-stage-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.how-scene.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease;
}

.how-ui {
  justify-self: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.how-owl {
  justify-self: center;
  max-height: 230px;
  max-width: 100%;
}

.how-owl--wide {
  width: 220px;
  height: 170px;
  object-fit: cover;
  object-position: 76% 50%;
  mix-blend-mode: multiply;
}

/* Las piezas con .how-in aparecen en orden; el retraso (--delay) lo pone el JS
   a partir de data-delay */
.how-in {
  opacity: 0;
  transform: translateY(12px);
}

.how-scene.is-active .how-in {
  animation: how-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes how-in {
  to { opacity: 1; transform: none; }
}

.how-scene.is-active .how-owl {
  animation: how-owl 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes how-owl {
  from { opacity: 0; transform: translateX(24px) scale(0.96); }
}

/* Paso 1: perfil (como el perfil del proveedor) */
.mk-profile {
  position: relative;
  width: 340px;
  margin-top: 2.5rem;
  padding: 3.25rem 1.25rem 1.25rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 5px 2.5px 9px var(--my-shadow-card);
  text-align: center;
}

.mk-profile__photo {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--my-avatar-green-bg);
  color: var(--my-green-dark);
  display: grid;
  place-items: center;
  font-size: 2rem;
  box-shadow: 0 6px 16px var(--my-shadow-soft);
}

.mk-profile__name {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--my-green-dark);
  font-size: 1.35rem;
}

.mk-profile__title {
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0.15rem 0 0.6rem;
}

.mk-cedula {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--my-badge-green-bg);
  border: 1px solid var(--my-badge-green-border);
  border-radius: 6px;
  color: var(--my-badge-green-text);
  font-size: 0.85rem;
}

.mk-profile__about {
  color: var(--my-icon-gray-dark);
  font-size: 0.85rem;
  margin: 0.7rem 0;
}

.mk-profile__place {
  font-size: 0.8rem;
  color: var(--my-icon-gray-dark);
}

.mk-share {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--my-green-dark);
  box-shadow: 0 2px 10px var(--my-shadow-soft);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Paso 2: tarjetas de servicio (como en Mis servicios) */
.mk-service {
  flex: none;
  width: 290px;
  background: #fff;
  border: 1px solid var(--my-card-border);
  border-radius: 10px;
  box-shadow: 5px 2.5px 9px var(--my-shadow-card);
  overflow: hidden;
}

.mk-service__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--my-card-header-bg);
  border-bottom: 1px solid var(--my-card-border);
}

.mk-switch {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 2em;
  height: 1em;
  border-radius: 2em;
  border: 1px solid var(--my-switch-off);
  background: #fff;
  font-size: 1.1rem;
}

.mk-switch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--my-switch-off);
  transform: translateY(-50%);
}

.mk-switch--on {
  background: var(--my-green-dark);
  border-color: var(--my-green-dark);
}

.mk-switch--on::after {
  left: calc(100% - 0.7em - 2px);
  background: #fff;
}

/* El interruptor de la primera tarjeta se enciende durante la escena */
.how-scene.is-active .mk-switch--animate {
  animation: mk-switch-bg 0.3s ease 1.3s forwards;
}

.how-scene.is-active .mk-switch--animate::after {
  animation: mk-switch-dot 0.3s ease 1.3s forwards;
}

@keyframes mk-switch-bg {
  to { background: var(--my-green-dark); border-color: var(--my-green-dark); }
}

@keyframes mk-switch-dot {
  to { left: calc(100% - 0.7em - 2px); background: #fff; }
}

.mk-active {
  color: var(--my-icon-gray-dark);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.mk-service__body {
  padding: 1rem;
}

.mk-service__name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.mk-service__desc {
  color: var(--my-icon-gray-dark);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.mk-service__data {
  display: flex;
  border-top: 1px solid var(--my-card-border);
  padding-top: 0.75rem;
}

.mk-service__data > div {
  flex: 1;
}

.mk-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--my-gray-label);
  font-weight: 600;
}

.mk-value {
  font-size: 1.15rem;
  font-weight: 500;
}

/* Paso 3: calendario semanal (como Calendario). Las celdas las arma el JS */
.mk-cal {
  width: 420px;
  padding: 1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 5px 2.5px 9px var(--my-shadow-card);
}

.mk-cal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.mk-cal__week {
  font-family: var(--font-title);
  font-weight: 600;
}

.mk-legend {
  display: flex;
  gap: 0.6rem;
  font-size: 0.7rem;
  color: var(--my-icon-gray-dark);
}

.mk-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 3px;
  vertical-align: -1px;
  border: 1px solid var(--my-border-light);
  border-radius: 2px;
  background: #fff;
}

.mk-swatch--off {
  background: var(--my-calendar-unavailable);
}

.mk-grid {
  display: grid;
  grid-template-columns: 44px repeat(6, 1fr);
  font-size: 0.72rem;
}

.mk-grid > span {
  height: 30px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--my-border-light);
  border-bottom: 1px solid var(--my-border-light);
}

.mk-grid .mk-cal__day {
  height: 36px;
  line-height: 1.1;
  text-align: center;
  font-weight: 600;
}

.mk-grid .mk-cal__day small {
  display: block;
  font-weight: 400;
  color: var(--my-icon-gray-dark);
}

.mk-grid .mk-hour {
  color: var(--my-icon-gray-dark);
  border-left: 1px solid var(--my-border-light);
}

.mk-cell {
  background: var(--my-calendar-unavailable);
}

/* Celdas que se abren: las del horario recurrente y, al final, una suelta */
.how-scene.is-active .mk-cell--open {
  animation: mk-open 0.35s ease forwards;
  animation-delay: var(--delay, 0s);
}

.how-scene.is-active .mk-cell--loose {
  animation: mk-open 0.35s ease forwards, mk-pulse 0.6s ease forwards;
  animation-delay: var(--delay, 0s), var(--delay, 0s);
}

@keyframes mk-open {
  to { background: #fff; }
}

@keyframes mk-pulse {
  50% { box-shadow: inset 0 0 0 2px var(--my-green-dark); }
}

.mk-cal__note {
  display: flex;
  gap: 1rem;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--my-icon-gray-dark);
}

.mk-cal__note b {
  color: var(--my-green-dark);
  font-weight: 600;
}

/* Paso 4: publicación de Instagram y Mi agenda */
.mk-post {
  flex: none;
  width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 5px 2.5px 9px var(--my-shadow-card);
  overflow: hidden;
}

.mk-post__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.mk-post__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--my-avatar-green-bg);
  color: var(--my-green-dark);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.mk-post__img {
  height: 90px;
  padding: 0 0.75rem;
  display: grid;
  place-items: center;
  background: var(--my-badge-green-bg);
  color: var(--my-green-dark);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
}

.mk-post__text {
  padding: 0.55rem 0.7rem 0.7rem;
  font-size: 0.78rem;
}

.mk-post__link {
  display: inline-block;
  margin-top: 0.3rem;
  color: var(--my-instagram-link);
  font-weight: 600;
}

/* El enlace se resalta como si lo tocaran */
.how-scene.is-active .mk-post__link {
  animation: mk-tap 0.5s ease 1.1s;
}

@keyframes mk-tap {
  50% { background: var(--my-instagram-link-tap); border-radius: 4px; }
}

.mk-arrow {
  flex: none;
  color: var(--my-green-dark);
  font-size: 1.4rem;
}

.mk-agenda {
  flex: none;
  width: 330px;
  padding: 0.9rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 5px 2.5px 9px var(--my-shadow-card);
}

.mk-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  margin-bottom: 0.7rem;
  background: var(--my-gray-100);
  border-radius: 999px;
}

.mk-tabs span {
  flex: 1;
  padding: 0.3rem;
  text-align: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--my-gray-text);
}

.mk-tabs .is-on {
  background: var(--my-green-dark);
  color: #fff;
  font-weight: 700;
}

.mk-agenda__date {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
}

.mk-agenda__summary {
  font-size: 0.78rem;
  color: var(--my-icon-gray-dark);
  margin-bottom: 0.5rem;
}

.mk-day {
  border: 1px solid var(--my-border-light);
  border-radius: 1rem;
  overflow: hidden;
}

.mk-row {
  padding: 0.6rem 0.75rem;
}

.mk-row--next {
  background: var(--my-agenda-next-bg);
}

.mk-row__flag {
  margin-bottom: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--my-agenda-next-text);
}

.mk-row__body {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mk-row__time {
  flex: none;
  width: 2.6rem;
  display: flex;
  flex-direction: column;
}

.mk-row__time b {
  font-size: 0.95rem;
  line-height: 1.2;
}

.mk-row__time small {
  font-size: 0.7rem;
  color: var(--my-icon-gray-dark);
}

.mk-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--my-avatar-gray-bg);
  color: var(--my-gray-text);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.mk-row--next .mk-avatar {
  background: #fff;
  color: var(--my-agenda-next-text);
}

.mk-row__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mk-row__text b {
  font-size: 0.88rem;
  line-height: 1.2;
}

.mk-row__text small {
  font-size: 0.75rem;
  color: var(--my-icon-gray-dark);
}

.mk-action {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--my-border-button);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--my-green-dark);
  font-size: 0.85rem;
}

.mk-row--next .mk-action {
  border-color: var(--my-agenda-next-border);
}

.mk-gcal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--my-gray-100);
  color: var(--my-gray-text);
  font-size: 0.75rem;
}

/* Texto del paso */
.how-caption {
  margin-top: 1.75rem;
  min-height: 5.5rem;
}

.how-count {
  font-variant-numeric: tabular-nums; /* números del mismo ancho: "01 / 04" no se mueve al cambiar */
  color: var(--my-icon-gray-dark);
  font-size: 0.85rem;
}

.how-step-title {
  font-size: 1.6rem;
  margin: 0.25rem 0 0.35rem;
}

.how-step-text {
  color: var(--my-icon-gray-dark);
  font-size: 1.05rem;
  margin: 0;
}

/* Controles: play/pausa y una barra por paso */
.how-controls {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.25rem;
}

.how-play {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--my-green-dark);
  color: #fff;
}

.how-tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.how-tab {
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  color: var(--my-icon-gray-dark);
  font-size: 0.9rem;
  cursor: pointer;
}

.how-tab.is-active {
  color: var(--my-green-dark);
}

.how-bar {
  display: block;
  height: 4px;
  margin: 20px 0 0.5rem;
  border-radius: 4px;
  background: var(--my-gray-light);
  overflow: hidden;
}

.how-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--my-green-dark);
}

.how-tab.is-done .how-fill {
  width: 100%;
}

/* Cuando la barra del paso actual se llena, el JS pasa al siguiente */
.how-tab.is-active .how-fill {
  animation: how-fill var(--how-duration) linear forwards;
}

@keyframes how-fill {
  to { width: 100%; }
}

.how-tab-num {
  font-variant-numeric: tabular-nums;
  margin-right: 0.35rem;
}

/* En pausa, todo se detiene donde está */
.how.is-paused *,
.how.is-paused *::after {
  animation-play-state: paused !important;
}

/* Si la persona pidió reducir movimiento: sin animaciones ni avance solo, y
   cada escena en su estado final */
@media (prefers-reduced-motion: reduce) {
  .how *,
  .how *::after {
    animation: none !important;
    transition: none !important;
  }
  .how-in {
    opacity: 1;
    transform: none;
  }
  .mk-cell--open,
  .mk-cell--loose {
    background: #fff;
  }
  .mk-switch--animate {
    background: var(--my-green-dark);
    border-color: var(--my-green-dark);
  }
  .mk-switch--animate::after {
    left: calc(100% - 0.7em - 2px);
    background: #fff;
  }
}
/* END CÓMO FUNCIONA */


/* LLAMADO FINAL
   Recuadro verde claro con el mismo botón del hero, para quien llegó hasta
   abajo sin registrarse */
.final-cta__box {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  border-radius: 24px;
  background: var(--my-badge-green-bg);
  text-align: center;
}

.final-cta__title {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: var(--my-green-dark);
}

.final-cta__text {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--my-gray-text);
}
/* END LLAMADO FINAL */


@media only screen and (max-width: 991.98px) {
  .how-scene {
    grid-template-columns: 1fr 160px;
    gap: 1rem;
    padding: 1.5rem 2rem;
  }
  .how-owl {
    max-height: 170px;
  }
  .how-owl--wide {
    width: 160px;
    height: 130px;
  }
  /* En tableta solo cabe una pantalla de muestra por escena */
  .mk-service--extra,
  .mk-post,
  .mk-arrow {
    display: none;
  }
}

@media only screen and (max-width: 767.98px) {
  /* "Cómo funciona" casi no deja margen abajo en celular (mide una pantalla) */
  .final-cta {
    padding-top: 2rem;
  }
  .final-cta__box {
    padding: 2rem 1.25rem;
  }
  .final-cta__title {
    font-size: 1.5rem;
  }
  .final-cta__text {
    font-size: 1rem;
  }

  /* Hero en celular: búho más chico y las pastillas una debajo de otra, para
     que todo quepa en la primera pantalla */
  .hero-avatar {
    width: 140px;
    height: 110px;
  }
  .hero-title {
    font-size: 1.625rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .hero-benefits {
    grid-template-columns: 1fr;
    max-width: 340px;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
  }
  /* Esquinas menos redondas: en celular alguna pastilla ocupa dos líneas */
  .hero-benefits li {
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 14px;
  }

  /* En celular la sección ocupa una pantalla, igual que el hero: título,
     barras de progreso arriba (como las historias de Instagram), el escenario
     con todo el espacio que sobre y el texto del paso debajo */
  .how {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .how-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  /* Los textos de cada paso ya explican lo mismo que el subtítulo */
  .how-subtitle {
    display: none;
  }
  /* Escenario, barras y texto forman una sola tarjeta, como una historia de
     Instagram: al ver su borde de abajo se sabe que la sección terminó */
  .how-player {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--my-gray-light);
    border-radius: 24px;
    overflow: hidden;
    background: var(--my-stage-bg);
  }
  .how-controls {
    order: -1; /* arriba del escenario */
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.75rem 1rem 0;
  }
  .how-play {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  .how-tabs {
    gap: 0.35rem;
  }
  .how-bar {
    margin: 0;
  }
  /* Solo las barras: el número y el nombre del paso no caben y la barra ya
     dice en cuál vas */
  .how-tab-num,
  .how-tab-label,
  .how-count {
    display: none;
  }
  .how-stage {
    flex: 1 1 0;
    height: auto;
    min-height: 340px;
    border: none;
    border-radius: 0;
  }
  .how-caption {
    min-height: 7rem;
    margin: 0;
    padding: 0.75rem 1rem 1rem;
    background: #fff;
    border-top: 1px solid var(--my-gray-light);
  }
  .how-step-title {
    font-size: 1.3rem;
    margin-top: 0;
  }
  .how-step-text {
    font-size: 0.95rem;
  }
  /* En celular el búho va arriba y la pantalla de muestra debajo, los dos
     centrados en el alto del escenario (que cambia según el celular) */
  .how-scene {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    align-items: start;
    gap: 0.5rem;
    padding: 1rem;
  }
  .how-owl {
    grid-row: 1;
    max-height: 90px;
  }
  .how-owl--wide {
    width: 130px;
    height: 90px;
  }
  .how-ui {
    flex-direction: column;
    gap: 0.75rem;
  }
  .mk-profile,
  .mk-service,
  .mk-cal,
  .mk-agenda {
    width: 100%;
    max-width: 340px;
  }
  .mk-profile {
    margin-top: 2.75rem;
  }
  .mk-post {
    display: block;
    width: 100%;
    max-width: 340px;
  }
  .mk-post__img,
  .mk-legend {
    display: none;
  }
  .mk-grid > span {
    height: 26px;
  }
}

/* Celulares bajitos (como el iPhone SE): en el hero, búho más chico y menos
   espacio para que quepa en la primera pantalla; en "Cómo funciona", sin el
   búho para que la pantalla de muestra quepa completa */
@media only screen and (max-width: 767.98px) and (max-height: 700px) {
  .hero-avatar {
    width: 100px;
    height: 78px;
    margin-bottom: 0.5rem;
  }
  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .hero-benefits {
    gap: 0.35rem;
    margin-bottom: 1rem;
  }
  .hero-benefits li {
    padding: 0.35rem 0.8rem;
  }
  .how-scene {
    grid-template-rows: auto;
  }
  .how-owl {
    display: none;
  }
}
