/* El primer día (bloque 2a): la Bienvenida (2.1-2.3), /huevo (2.4-2.7) y /huevo/espera (2.8), y lo que
   compartirán las pantallas siguientes (eclosión, nombre, tutorial, avisos). Con los tokens de tokens.css
   (--mc-…). Reglas del kit de pruebas (tests/mobile_kit.py): lo que se toca mide 44 px, el texto se lee a
   4,5:1, nada empuja la página de lado y ninguna capa grande tapa un botón (las decorativas llevan
   pointer-events:none y las que no se usan, `hidden`). Móvil y tableta, derechos y tumbados (regla 26). */

/* `hidden` manda siempre: .mc-btn y compañía ponen su propio display y, sin esto, un botón «oculto» se vería. */
.mc-first [hidden], .mc-first[hidden] { display: none !important; }

.mc-first {
  max-width: 40rem; display: flex; flex-direction: column; gap: var(--mc-space-8, 16px);
  background: radial-gradient(circle at 50% 30%, var(--mc-yellow-soft, #fdefba) 0, rgba(253, 239, 186, 0) 55%);
}
.mc-first h1, .mc-first h2 { overflow-wrap: anywhere; }

/* ── La Bienvenida ────────────────────────────────────────────────────────── */

.mc-welcome { align-items: center; text-align: center; justify-content: center; margin-top: var(--mc-space-6, 12px); }
.mc-welcome-head { display: flex; flex-direction: column; align-items: center; gap: var(--mc-space-4, 8px); grid-area: head; }
.mc-welcome h1 { margin: 0; font-size: var(--mc-fs-hero, 34px); }
.mc-welcome-stage {
  grid-area: stage; display: flex; align-items: flex-end; justify-content: center; position: relative;
  height: 210px; width: 100%;
}
.mc-welcome-stage::before {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 190px; height: 40px; margin-left: -95px;
  border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, #cdbfb2, #ab9b8f 78%); pointer-events: none;
}
.mc-welcome-stage .mc-pet { z-index: 1; }
.mc-welcome-actions { grid-area: actions; width: 100%; max-width: 22rem; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.mc-welcome-links { grid-area: links; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--mc-space-2, 4px); }
.mc-offline-note {
  grid-area: note; display: none; margin: 0; padding: var(--mc-space-4, 8px) var(--mc-space-8, 16px);
  border-radius: var(--mc-radius-card, 16px); background: var(--mc-ink, #31231b); color: var(--mc-on-dark, #fefbf6) !important;
  font-weight: var(--mc-weight-text-strong, 700);
}
/* Sin conexión: los botones de entrar se apagan (opacidad; no `disabled`: el enlace sigue yendo a /zt/card y
   el service worker pinta allí su página sin conexión) y sale el motivo. */
html[data-zt-offline] .mc-needs-net { opacity: .55; }
html[data-zt-offline] .mc-offline-note { display: block; }

@media (orientation: landscape) and (max-height: 520px) {
  .mc-welcome {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--mc-space-12, 24px);
    grid-template-areas: "head actions" "stage actions" "stage note" "stage links"; align-content: center; justify-items: center;
    max-width: 52rem;
  }
  .mc-welcome-stage { height: 150px; align-self: start; }
  .mc-welcome-stage .mc-pet { --mc-pet-size: 140px !important; }
  .mc-welcome-stage::before { width: 130px; margin-left: -65px; height: 28px; }
  .mc-welcome-actions { align-self: end; }
  .mc-welcome-head { flex-direction: row; }
  .mc-welcome h1 { font-size: var(--mc-fs-headline, 28px); }
}
@media (min-width: 700px) and (orientation: portrait) {
  .mc-welcome { margin-top: var(--mc-space-12, 24px); gap: var(--mc-space-12, 24px); }
  .mc-welcome-stage { height: 260px; }
  .mc-welcome-stage .mc-pet { --mc-pet-size: 250px !important; }
}

/* ── /huevo: Antes de empezar, los huevos, la hoja ────────────────────────── */

.mc-before, .mc-pick { display: flex; flex-direction: column; gap: var(--mc-space-8, 16px); }
.mc-before h1 { margin: 0; text-align: center; }
.mc-card {
  display: flex; flex-direction: column; gap: var(--mc-space-5, 10px); padding: var(--mc-space-8, 16px);
  border-radius: var(--mc-radius-card-l, 20px); background: var(--mc-paper, #fefbf6);
  border: var(--mc-border-hairline, 1px solid #ebe2d4); box-shadow: 0 1px 0 var(--mc-line-card-edge, #e6dccd);
}
.mc-card h2 { margin: 0; font-family: var(--mc-font-display, sans-serif); font-weight: var(--mc-weight-display, 600); font-size: var(--mc-fs-title-m, 22px); line-height: var(--mc-lh-heading, 1.15); }
.mc-card p { margin: 0; }
.mc-card-sub { color: var(--mc-text-body, #4f4239); }
.mc-card-note { font-size: var(--mc-fs-text-s, 14px) !important; color: var(--mc-text-muted, #695a50) !important; text-align: center; }
.mc-card-actions { display: flex; flex-direction: column; gap: var(--mc-space-4, 8px); align-items: center; }
.mc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mc-space-5, 10px); }
.mc-steps li {
  display: flex; align-items: center; gap: var(--mc-space-4, 8px); padding: var(--mc-space-5, 10px); border-radius: var(--mc-radius-card, 16px);
  background: var(--mc-chip, #f3ead9); font-weight: var(--mc-weight-text-strong, 700); font-size: var(--mc-fs-label, 15px); line-height: var(--mc-lh-ui, 1.3);
}
.mc-step-art { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--mc-paper, #fefbf6); border: 2px solid var(--mc-ink, #31231b); }
.mc-pick-small { font-size: var(--mc-fs-text, 16px); }
.mc-pick .mc-screen-head { text-align: center; margin-bottom: 0; }

.mc-eggs-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mc-space-4, 8px); }
.mc-egg-choice {
  appearance: none; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: var(--mc-space-3, 6px);
  min-height: var(--mc-touch-min, 44px); padding: var(--mc-space-6, 12px) var(--mc-space-2, 4px) var(--mc-space-5, 10px);
  border: 3px solid transparent; border-radius: 22px; background: var(--tint, var(--mc-chip, #f3ead9)); color: var(--mc-ink, #31231b);
  font: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.mc-egg-choice[data-element="fuego"] { --tint: var(--mc-fuego-tint, #fde3c4); }
.mc-egg-choice[data-element="tierra"] { --tint: var(--mc-tierra-tint, #e3f0c8); }
.mc-egg-choice[data-element="agua"] { --tint: var(--mc-agua-tint, #d4effb); }
.mc-egg-choice[aria-pressed="true"] { border-color: var(--mc-ink, #31231b); box-shadow: 0 4px 0 var(--mc-ink, #31231b); background: var(--mc-yellow-soft, #fdefba); }
.mc-egg-choice .mc-egg { --mc-pet-size: min(104px, 24vw) !important; }
.mc-egg-element { font-family: var(--mc-font-display, sans-serif); font-weight: var(--mc-weight-display, 600); font-size: var(--mc-fs-ui, 16px); text-transform: capitalize; }
.mc-drag-hint { margin: 0; padding: var(--mc-space-4, 8px) var(--mc-space-6, 12px); border-radius: var(--mc-radius-card, 16px); background: var(--mc-yellow-pale, #fff6cf); text-align: center; color: var(--mc-ink, #31231b) !important; }
.mc-pick-actions { display: flex; justify-content: center; }
.mc-pick-actions .mc-btn { max-width: 24rem; }

@media (min-width: 700px), (orientation: landscape) {
  .mc-egg-choice .mc-egg { --mc-pet-size: min(132px, 20vw, 26vh) !important; }
  .mc-eggs { max-width: 44rem; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .mc-first { gap: var(--mc-space-6, 12px); }
  .mc-pick .mc-screen-head p { margin-bottom: 0; }
}

/* La hoja Confirmar (un <dialog> del núcleo): su letra y sus colores, no los de la carcasa. */
.mc-confirm { background: var(--mc-paper, #fefbf6); color: var(--mc-ink, #31231b); font-family: var(--mc-font-text, system-ui, sans-serif); }
.mc-confirm .zt-dialog-title { font-family: var(--mc-font-display, sans-serif); font-weight: var(--mc-weight-display, 600); font-size: var(--mc-fs-title-l, 26px); text-align: center; }
.mc-confirm .mc-sheet { align-items: center; text-align: center; }
.mc-confirm-egg { display: block; width: 100px; height: 125px; flex: none; }
.mc-confirm-egg img { display: block; width: 100%; height: 100%; }
.mc-confirm-warn { margin: 0; font-family: var(--mc-font-display, sans-serif); font-weight: var(--mc-weight-display, 600); font-size: var(--mc-fs-title-m, 22px); }
.mc-confirm .mc-sheet-actions { justify-content: center; }
.mc-confirm .mc-btn { min-width: 8rem; }
.mc-confirm .mc-btn[aria-busy="true"] { opacity: .6; }
@media (orientation: landscape) and (max-height: 520px) { .mc-confirm-egg { width: 64px; height: 80px; } }

/* ── /huevo/espera ────────────────────────────────────────────────────────── */

.mc-wait { align-items: center; text-align: center; gap: var(--mc-space-6, 12px); }
.mc-wait-box {
  box-sizing: border-box; width: min(100%, 22rem); display: flex; justify-content: center; padding: 26px 16px 22px;
  border-radius: 40px; background: linear-gradient(#dbb98b, #c49a6a);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -8px 0 rgba(120, 80, 40, .22);
}
.mc-egg-hold {
  position: relative; appearance: none; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  width: 210px; height: 230px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit;
  cursor: pointer; touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.mc-egg-hold .mc-egg { z-index: 1; }
.mc-glow {
  position: absolute; inset: 0; border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .25s;
  background: radial-gradient(circle, rgba(250, 202, 75, .9), rgba(250, 202, 75, 0) 68%);
}
.mc-egg-hold.is-warm .mc-glow { opacity: 1; }
.mc-hearts { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mc-hearts i {
  position: absolute; bottom: 38%; width: 22px; height: 19px; opacity: 0;
  background: url("../img/ui/icons/app/manten-el-dedo-para.svg") center / contain no-repeat;
}
.mc-hearts i:nth-child(1) { left: 22%; } .mc-hearts i:nth-child(2) { left: 40%; } .mc-hearts i:nth-child(3) { left: 58%; }
.mc-hearts i:nth-child(4) { left: 70%; } .mc-hearts i:nth-child(5) { left: 32%; }
.mc-egg-hold.is-warm .mc-hearts i { opacity: .95; }
.mc-wait-hold {
  margin: 0; padding: 0 var(--mc-space-8, 16px); min-height: 36px; display: inline-flex; align-items: center; border-radius: 18px;
  background: rgba(49, 35, 27, .82); color: var(--mc-on-dark, #fefbf6) !important; font-family: var(--mc-font-display, sans-serif);
  font-weight: var(--mc-weight-display, 600); font-size: var(--mc-fs-label-l, 15.5px);
}
.mc-wait-msg { margin: 0; min-height: 1.5em; font-size: var(--mc-fs-text-l, 17px); color: var(--mc-ink, #31231b) !important; }
.mc-wait-care {
  margin: 0; padding: var(--mc-space-2, 4px) var(--mc-space-8, 16px); border-radius: var(--mc-radius-pill, 999px);
  background: var(--mc-success-bg, #dcefc4); color: var(--mc-success-text-dark, #2b4a24) !important; font-weight: var(--mc-weight-text-strong, 700);
}
.mc-wait-soon { margin: 0; font-size: var(--mc-fs-text, 16px) !important; color: var(--mc-text-muted, #695a50) !important; }
.mc-wait-notify { display: flex; justify-content: center; width: 100%; }
.mc-wait-notify .mc-btn { width: auto; min-width: 14rem; }

@media (orientation: landscape) and (max-height: 520px) {
  .mc-wait { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: var(--mc-space-12, 24px); max-width: 52rem; }
  .mc-wait .mc-wait-box { grid-column: 1; grid-row: 1 / span 5; padding: 14px 10px; }
  .mc-wait > :not(.mc-wait-box) { grid-column: 2; justify-self: center; }
  .mc-egg-hold { width: 160px; height: 176px; }
  .mc-egg-hold .mc-egg { --mc-pet-size: 130px !important; }
}

/* ── Movimiento: sólo si la persona no pidió menos ────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .mc-egg-hold.is-warm .mc-egg { animation: mc-warm-pulse 1.2s ease-in-out infinite; }
  .mc-egg-hold.is-warm .mc-hearts i { animation: mc-heart-rise 1.9s ease-out infinite; }
  .mc-egg-hold.is-warm .mc-hearts i:nth-child(2) { animation-delay: .4s; }
  .mc-egg-hold.is-warm .mc-hearts i:nth-child(3) { animation-delay: .8s; }
  .mc-egg-hold.is-warm .mc-hearts i:nth-child(4) { animation-delay: 1.2s; }
  .mc-egg-hold.is-warm .mc-hearts i:nth-child(5) { animation-delay: 1.5s; }
  .mc-wait-care { animation: mc-care-pop .4s ease-out; }
  .mc-egg-choice { transition: box-shadow .15s, background-color .15s; }
}
@keyframes mc-warm-pulse { 50% { transform: scale(1.04); } }
@keyframes mc-heart-rise {
  0% { transform: translateY(0) scale(.7); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-90px) scale(1.1); opacity: 0; }
}
@keyframes mc-care-pop { from { transform: scale(.8); opacity: 0; } }

/* ── /huevo/eclosion ──────────────────────────────────────────────────────── */

.mc-hatch { align-items: center; text-align: center; justify-content: center; gap: var(--mc-space-6, 12px); }
.mc-hatch-stage { position: relative; display: flex; align-items: center; justify-content: center; width: 260px; height: 280px; }
.mc-hatch-egg {
  position: relative; appearance: none; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  width: 250px; height: 270px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.mc-hatch-egg:focus-visible { outline: 3px solid var(--mc-info-text, #5b46b8); outline-offset: 3px; }
.mc-hatch-step { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.mc-hatch-glow {
  position: absolute; inset: 4% 4%; border-radius: 50%; pointer-events: none; opacity: .55;
  background: radial-gradient(circle, rgba(250, 202, 75, .85), rgba(250, 202, 75, 0) 68%);
}
.mc-hatchling { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; pointer-events: none; }
.mc-hatchling img { display: block; width: 100%; height: 100%; }
/* Las arcoíris brillan (Q8: su dibujo no trae brillo propio; lo pone el CSS y tiene que verlo una persona). */
.mc-hatchling.is-rainbow img { filter: saturate(1.2) drop-shadow(0 0 10px rgba(255, 243, 196, .95)) drop-shadow(0 0 22px rgba(250, 202, 75, .7)); }
.mc-hatchling.is-rainbow::after {
  content: ""; position: absolute; inset: -14%; z-index: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(255, 99, 99, .28), rgba(255, 214, 90, .28), rgba(120, 214, 120, .28), rgba(90, 170, 255, .28), rgba(180, 120, 255, .28), rgba(255, 99, 99, .28));
  -webkit-mask-image: radial-gradient(circle, transparent 38%, #000 52%, transparent 72%); mask-image: radial-gradient(circle, transparent 38%, #000 52%, transparent 72%);
}
.mc-hatch-hint, .mc-hatch-born {
  margin: 0; font-family: var(--mc-font-display, sans-serif); font-weight: var(--mc-weight-display, 600);
  font-size: var(--mc-fs-title-m, 22px); color: var(--mc-ink, #31231b) !important;
}
.mc-hatch-born { font-size: var(--mc-fs-title-l, 26px); }
.mc-hatch-retry { max-width: 22rem; }
.mc-hatch-egg[aria-busy="true"] { cursor: default; }

/* El destello cubre la pantalla pero no recibe el toque, y `hidden` lo quita cuando no se usa. */
.mc-flash {
  position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, #fffdf4 0, #fff3c4 24%, #ffd66b 56%, #f4a43a 100%);
}
.mc-hatch-stage.is-flash ~ .mc-flash { opacity: 1; }

@media (orientation: landscape) and (max-height: 520px) {
  .mc-hatch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--mc-space-12, 24px); align-content: center; max-width: 52rem; }
  .mc-hatch-stage { grid-column: 1; grid-row: 1 / span 4; justify-self: center; transform: scale(.78); transform-origin: center; margin: -30px 0; }
  .mc-hatch > :not(.mc-hatch-stage):not(.mc-flash) { grid-column: 2; justify-self: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .mc-hatch-egg:not(.is-shaking) .mc-hatch-step:not([hidden]) .mc-pet-img { animation: mc-hatch-sway 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
  .mc-hatch-egg.is-shaking .mc-hatch-step:not([hidden]) .mc-pet-img { animation: mc-hatch-shake .6s linear 1; transform-origin: 50% 90%; }
  .mc-hatch-stage.is-flash ~ .mc-flash { transition: opacity .25s ease-in; }
  .mc-flash { transition: opacity .45s ease-out; }
  .mc-hatchling:not([hidden]) { animation: mc-hatch-pop .5s cubic-bezier(.2, 1.4, .4, 1) 1; }
  .mc-hatchling.is-rainbow:not([hidden])::after { animation: mc-hatch-spin 8s linear infinite; }
  .mc-hatchling.is-rainbow:not([hidden]) img { animation: mc-hatch-shine 2.2s ease-in-out infinite; }
}
@keyframes mc-hatch-sway { 50% { transform: rotate(3deg); } 0%, 100% { transform: rotate(-3deg); } }
@keyframes mc-hatch-shake {
  0%, 100% { transform: translateX(0) rotate(0); } 10% { transform: translateX(-6px) rotate(-5deg); } 30% { transform: translateX(6px) rotate(5deg); }
  50% { transform: translateX(-5px) rotate(-4deg); } 70% { transform: translateX(5px) rotate(4deg); } 90% { transform: translateX(-3px) rotate(-2deg); }
}
@keyframes mc-hatch-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes mc-hatch-spin { to { transform: rotate(360deg); } }
@keyframes mc-hatch-shine { 50% { filter: saturate(1.35) drop-shadow(0 0 14px rgba(255, 255, 255, 1)) drop-shadow(0 0 30px rgba(250, 202, 75, .9)); } }

/* ── /nombre ──────────────────────────────────────────────────────────────── */

.mc-name { align-items: center; text-align: center; gap: var(--mc-space-6, 12px); }
.mc-name h1 { margin: 0; font-size: var(--mc-fs-headline, 28px); }
.mc-name-pet { display: flex; justify-content: center; }
.mc-name-form { width: 100%; max-width: 26rem; display: flex; flex-direction: column; gap: var(--mc-space-6, 12px); }
.mc-name-row { display: flex; gap: var(--mc-space-5, 10px); align-items: stretch; }
.mc-name-field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--mc-space-4, 8px); min-height: 64px; padding: 0 var(--mc-space-7, 14px) 0 var(--mc-space-8, 16px);
  box-sizing: border-box; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 2.5px var(--mc-ink, #31231b), 0 5px 0 var(--mc-ink, #31231b);
}
.mc-name-field:focus-within { outline: 3px solid var(--mc-info-text, #5b46b8); outline-offset: 3px; }
.mc-name-field input {
  flex: 1; min-width: 0; width: 100%; box-sizing: border-box; border: 0; outline: 0; background: transparent; color: var(--mc-ink, #31231b);
  font-family: var(--mc-font-display, sans-serif); font-weight: var(--mc-weight-display, 600); font-size: 26px; line-height: 1.2; padding: 8px 0;
}
.mc-name-field input::placeholder { font-size: 17px; color: var(--mc-text-muted, #695a50); opacity: 1; font-weight: 400; }
.mc-name-count { flex: none; font-weight: var(--mc-weight-text-strong, 700); font-size: var(--mc-fs-label, 15px); color: var(--mc-text-muted, #695a50); }
.mc-name-dice { flex: none; width: 64px; min-height: 64px; border-radius: 22px; box-shadow: 0 5px 0 var(--mc-amber-text-dark, #5c3d00); }
.mc-name-hint { margin: 0; text-align: start; font-size: var(--mc-fs-text, 16px) !important; color: var(--mc-text-body, #4f4239) !important; }

@media (orientation: landscape) and (max-height: 520px) {
  .mc-name { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: var(--mc-space-12, 24px); align-items: center; max-width: 52rem; }
  .mc-name-pet { grid-column: 1; grid-row: 1 / span 2; }
  .mc-name-pet .mc-pet { --mc-pet-size: 130px !important; }
  .mc-name h1 { grid-column: 2; grid-row: 1; }
  .mc-name-form { grid-column: 2; grid-row: 2; }
}

/* ── /tutorial ────────────────────────────────────────────────────────────── */

/* La capa oscura es de esta página y va DENTRO de <main>: no tapa la barra ni las pestañas, no recibe el toque y
   `hidden` la quita al acabar. */
.mc-tut { position: relative; isolation: isolate; max-width: none; min-height: calc(100dvh - 190px); gap: var(--mc-space-6, 12px); background: none; padding-bottom: var(--mc-space-8, 16px); }
.mc-dim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(40, 24, 12, .52); border-radius: var(--mc-radius-card-l, 20px); }
.mc-tut-top { display: flex; justify-content: flex-end; }
.mc-skip, .app-shell a.mc-skip, .app-shell a.mc-skip:hover {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 24px; box-sizing: border-box;
  background: rgba(254, 251, 246, .94); color: var(--mc-ink, #31231b); font-family: var(--mc-font-display, sans-serif); font-weight: var(--mc-weight-display, 600);
  font-size: 18px; text-decoration: none;
}
.mc-skip:focus-visible { outline: 3px solid var(--mc-on-dark, #fefbf6); outline-offset: 3px; }
.mc-tut-cards { margin-top: auto; display: flex; flex-direction: column; gap: var(--mc-space-6, 12px); width: 100%; max-width: 32rem; align-self: center; }
.mc-tut-card {
  box-sizing: border-box; padding: 16px 16px 20px; border-radius: 32px; background: var(--mc-paper, #fefbf6);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
}
.mc-tut-art {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 200px; border-radius: 24px;
  background: var(--mc-chip, #f3ead9); overflow: hidden;
}
.mc-tut-phone { position: relative; display: block; width: 104px; height: 172px; padding: 5px; box-sizing: border-box; border-radius: 24px; background: var(--mc-ink, #31231b); }
.mc-tut-screen { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 19px; overflow: hidden; background: linear-gradient(#fff6cf, #fdefba); }
.mc-tut-screen .mc-pet { --mc-pet-size: 90px !important; }
.mc-tut-phone.is-left, .mc-tut-phone.is-right { width: 92px; height: 156px; padding: 6px; border-radius: 22px; }
.mc-tut-phone.is-left { transform: rotate(-8deg); }
.mc-tut-phone.is-right { transform: rotate(8deg); }
.mc-tut-screen.is-qr { background: #fff; }
.mc-tut-phone.is-right .mc-tut-screen { background: linear-gradient(#e3f0c8, #a4cd79); }
.mc-tut-phone.is-right .mc-pet { --mc-pet-size: 64px !important; }
.mc-tut-note { position: relative; display: block; width: 62px; height: 78px; border-radius: 10px; background: #fff; box-shadow: 0 6px 12px -6px rgba(60, 30, 5, .4); transform: rotate(-6deg); }
.mc-tut-note i { position: absolute; left: 10px; height: 3px; border-radius: 2px; background: #e4d9cb; }
.mc-tut-note i:nth-child(1) { right: 10px; top: 14px; } .mc-tut-note i:nth-child(2) { right: 22px; top: 24px; } .mc-tut-note i:nth-child(3) { right: 14px; top: 34px; }
.mc-tut-note b {
  position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; box-sizing: border-box; border-radius: 50%; border: 3px solid #ee6476;
  display: flex; align-items: center; justify-content: center; font-family: var(--mc-font-display, sans-serif); font-size: 20px; color: #a82339;
}
.mc-tut-sign { font-family: var(--mc-font-display, sans-serif); font-weight: 700; font-size: 26px; color: var(--mc-text-muted, #695a50); }
.mc-tut-bell { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 6px 12px -6px rgba(60, 30, 5, .4); }
.mc-tut-foods { display: flex; align-items: center; }
.mc-tut-foods .mc-food { margin-inline-start: -10px; }
.mc-tut-foods .mc-food:first-child { margin-inline-start: 0; }
.mc-tut-text { margin: 18px 8px 0 !important; font-family: var(--mc-font-display, sans-serif); font-weight: var(--mc-weight-display, 600); font-size: 22px !important; line-height: 1.28 !important; color: var(--mc-ink, #31231b) !important; text-wrap: pretty; }
.mc-tut-text:focus { outline: none; }
.mc-tut-foot { margin: 18px 4px 0; display: flex; align-items: center; justify-content: space-between; gap: var(--mc-space-6, 12px); }
.mc-tut-dots { display: flex; gap: 7px; }
.mc-tut-dots i { display: block; width: 10px; height: 10px; border-radius: 5px; background: #d7c8b4; }
.mc-tut-card[data-step="1"] .mc-tut-dots i:nth-child(1), .mc-tut-card[data-step="2"] .mc-tut-dots i:nth-child(2), .mc-tut-card[data-step="3"] .mc-tut-dots i:nth-child(3) { width: 26px; background: var(--mc-amber-text, #7a5200); }
.mc-tut-next { width: auto; min-width: 9rem; min-height: 56px; font-size: 20px; }

@media (orientation: landscape) and (max-height: 520px) {
  .mc-tut { min-height: 0; }
  .mc-tut-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: var(--mc-space-8, 16px); align-items: center; padding: 12px; }
  .mc-tut-art { grid-row: 1 / span 2; height: 160px; }
  .mc-tut-text { margin-top: 0 !important; }
  .mc-tut-cards { max-width: 48rem; }
}

/* ── /permiso-avisos ──────────────────────────────────────────────────────── */

.mc-push { align-items: center; text-align: center; justify-content: center; }
.mc-push-card { width: 100%; max-width: 26rem; display: flex; flex-direction: column; align-items: center; gap: var(--mc-space-6, 12px); }
.mc-push-card > div { width: 100%; }
.mc-push-pet { display: flex; justify-content: center; width: auto !important; }
.mc-push-text { font-family: var(--mc-font-display, sans-serif); font-weight: var(--mc-weight-display, 600); font-size: var(--mc-fs-title-m, 22px) !important; line-height: 1.25 !important; color: var(--mc-ink, #31231b) !important; }
.mc-push-hours { color: var(--mc-text-body, #4f4239) !important; }
@media (orientation: landscape) and (max-height: 520px) {
  .mc-push-card { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); column-gap: var(--mc-space-8, 16px); align-items: center; max-width: 46rem; }
  .mc-push-pet .mc-pet { --mc-pet-size: 110px !important; }
}
