/* MIDA Soft · chat web con enlace único · estilos compartidos (chat y demostración) */

:root {
  color-scheme: light dark;
  --verde: #008069;
  --verde-osc: #00614f;
  --acento: #00a884;
  --foco: #0b6bcb;
  --fondo-app: #e4e8eb;
  --superficie: #ffffff;
  --texto: #111b21;
  --texto-suave: #4d5e68;
  --borde: rgba(17, 27, 33, 0.14);
  --chat-bg: #efeae2;
  --chat-punto: rgba(11, 20, 26, 0.05);
  --header-bg: #008069;
  --header-fg: #ffffff;
  --in-bg: #ffffff;
  --in-fg: #111b21;
  --out-bg: #d9fdd3;
  --out-fg: #111b21;
  --meta: #5b6b74;
  --tick: #53bdeb;
  --bar-bg: #f0f2f5;
  --campo-bg: #ffffff;
  --campo-fg: #111b21;
  --chip-bg: #ffffff;
  --chip-borde: #c4ccd1;
  --chip-fg: #00614f;
  --aviso-bg: #fff3c4;
  --aviso-fg: #54410a;
  --error: #b3261e;
  --bueno: #137333;
  --malo: #b3261e;
  --enlace: #027eb5;
  --sombra: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  --telefono: #0d1114;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo-app: #0b141a;
    --superficie: #111b21;
    --texto: #e9edef;
    --texto-suave: #9aa8b1;
    --borde: rgba(233, 237, 239, 0.16);
    --chat-bg: #0b141a;
    --chat-punto: rgba(233, 237, 239, 0.04);
    --header-bg: #202c33;
    --header-fg: #e9edef;
    --in-bg: #202c33;
    --in-fg: #e9edef;
    --out-bg: #005c4b;
    --out-fg: #e9edef;
    --meta: rgba(233, 237, 239, 0.7);
    --bar-bg: #202c33;
    --campo-bg: #2a3942;
    --campo-fg: #e9edef;
    --chip-bg: #202c33;
    --chip-borde: #33424b;
    --chip-fg: #53bdeb;
    --aviso-bg: #2b2a1c;
    --aviso-fg: #f1dd8f;
    --error: #f2b8b5;
    --bueno: #81c995;
    --malo: #f28b82;
    --enlace: #53bdeb;
    --sombra: 0 1px 0.5px rgba(0, 0, 0, 0.4);
    --telefono: #000000;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--texto);
  background: var(--fondo-app);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }

.solo-lector {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.ico { width: 1.25rem; height: 1.25rem; fill: currentColor; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============ Chat ============ */

/* 100vh queda de respaldo para navegadores sin unidades dinámicas (iPhone con iOS anterior a 15.4). */
.pagina-chat { height: 100vh; height: 100dvh; overflow: hidden; }

.marco {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

@media (min-width: 720px) {
  .pagina-chat:not(.embed-pagina) .marco { padding: 24px; }
  .pagina-chat:not(.embed-pagina) .app {
    max-width: 460px;
    max-height: 900px;
    margin-block: auto;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(11, 20, 26, 0.28);
  }
}

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--chat-bg);
}

.barra {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  background: var(--header-bg);
  color: var(--header-fg);
  flex: none;
}

.embed .barra { padding-top: 30px; }

.avatar {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #12c2a2, #006b58);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  flex: none;
}

.barra-titulo { min-width: 0; }
.barra-titulo h1,
.barra-titulo h3 { margin: 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.2; }
.barra-titulo p { margin: 2px 0 0; font-size: 0.8125rem; opacity: 0.88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.candado {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  white-space: nowrap;
}
.candado .ico { width: 0.95rem; height: 0.95rem; }

.mensajes {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 10px 8px;
  background-color: var(--chat-bg);
  background-image: radial-gradient(var(--chat-punto) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
}

.fecha { display: flex; justify-content: center; margin: 4px 0 10px; }
.fecha span {
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--in-bg);
  color: var(--meta);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  box-shadow: var(--sombra);
}

.msg { display: flex; margin: 2px 0; }
.msg.out { justify-content: flex-end; }
.msg.primero { margin-top: 9px; }

.burbuja {
  position: relative;
  max-width: min(84%, 34rem);
  padding: 6px 8px 7px 9px;
  border-radius: 9px;
  font-size: 0.9375rem;
  line-height: 1.38;
  box-shadow: var(--sombra);
  overflow-wrap: anywhere;
}
.in .burbuja { background: var(--in-bg); color: var(--in-fg); }
.out .burbuja { background: var(--out-bg); color: var(--out-fg); }
.in.primero .burbuja { border-top-left-radius: 0; }
.out.primero .burbuja { border-top-right-radius: 0; }

.in.primero .burbuja::before,
.out.primero .burbuja::before {
  content: "";
  position: absolute;
  top: 0;
  width: 0; height: 0;
  border-style: solid;
}
.in.primero .burbuja::before {
  left: -7px;
  border-width: 0 8px 9px 0;
  border-color: transparent var(--in-bg) transparent transparent;
}
.out.primero .burbuja::before {
  right: -7px;
  border-width: 0 0 9px 8px;
  border-color: transparent transparent transparent var(--out-bg);
}

.cuerpo { display: flow-root; white-space: normal; }
.cuerpo strong { font-weight: 650; }
.cuerpo a.enlace { color: var(--enlace); text-decoration: underline; text-underline-offset: 2px; }

.meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 7px 0 -3px 12px;
  font-size: 0.6875rem;
  line-height: 1;
  color: var(--meta);
  user-select: none;
}
.out .meta { color: var(--meta); }

.tick { width: 1.05rem; height: 0.8rem; color: var(--meta); }
.tick-leido { color: var(--tick); }

.fallido .burbuja { outline: 1px solid var(--error); }
.reintentar {
  min-height: 24px;
  padding: 2px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--error);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: underline;
}

.escribiendo .burbuja { padding: 11px 14px; }
.puntos { display: inline-flex; gap: 4px; align-items: center; height: 10px; }
.puntos i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--meta);
  opacity: 0.55;
  animation: salto 1.1s infinite ease-in-out;
}
.puntos i:nth-child(2) { animation-delay: 0.16s; }
.puntos i:nth-child(3) { animation-delay: 0.32s; }
@keyframes salto {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.aviso {
  margin: 12px auto;
  max-width: 92%;
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--aviso-bg);
  color: var(--aviso-fg);
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: center;
  box-shadow: var(--sombra);
}
.aviso strong { font-weight: 650; }
.ico-aviso { width: 0.9rem; height: 0.9rem; vertical-align: -2px; }

.banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 1160px;
  margin: 10px 20px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--aviso-bg);
  color: var(--aviso-fg);
  font-size: 0.875rem;
  line-height: 1.4;
}
.banner .ico { margin-top: 2px; width: 1rem; height: 1rem; }
@media (min-width: 1200px) {
  .banner { margin-inline: auto; }
}

.rapidas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 12px 10px;
  background: var(--chat-bg);
  flex: none;
}
.chip {
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--chip-borde);
  border-radius: 22px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--sombra);
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.chip:hover { background: color-mix(in srgb, var(--chip-bg) 88%, var(--acento)); }
.chip:active { transform: scale(0.97); }

/* En pantallas angostas las respuestas rápidas van en una sola fila deslizable para no tapar la conversación. */
@media (max-width: 420px) {
  .rapidas {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .chip { flex: none; scroll-snap-align: start; white-space: nowrap; }
}

.compositor {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  background: var(--bar-bg);
  flex: none;
}
.compositor textarea,
.compositor input[type="text"] {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 120px;
  padding: 11px 16px;
  border: 0;
  border-radius: 22px;
  background: var(--campo-bg);
  color: var(--campo-fg);
  /* 16 px: con menos, el iPhone amplía la página al escribir y la deja cortada a la derecha. */
  font-size: 1rem;
  line-height: 1.3;
  resize: none;
}
.compositor textarea::placeholder,
.compositor input::placeholder { color: var(--texto-suave); }
.compositor textarea:disabled,
.compositor input:disabled { opacity: 0.6; }

.enviar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--acento);
  color: #fff;
  flex: none;
  transition: background-color 0.12s ease, opacity 0.12s ease;
}
.enviar:hover:not(:disabled) { background: var(--verde); }
.enviar:disabled { opacity: 0.45; cursor: not-allowed; }

.pantalla {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  background: var(--chat-bg);
}
.pantalla h2 { margin: 6px 0 0; font-size: 1.125rem; }
.pantalla p { margin: 0; max-width: 28ch; color: var(--texto-suave); font-size: 0.9375rem; }
.pantalla .boton {
  margin-top: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 22px;
  background: var(--acento);
  color: #fff;
  font-weight: 600;
}
.girar {
  width: 34px; height: 34px;
  border: 3px solid var(--borde);
  border-top-color: var(--acento);
  border-radius: 50%;
  animation: giro 0.8s linear infinite;
}
@keyframes giro { to { transform: rotate(360deg); } }
.insignia {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--error) 14%, transparent);
  color: var(--error);
  font-size: 1.6rem; font-weight: 700;
}

@media (max-width: 330px) {
  .candado span { display: none; }
}

/* ============ Adjuntos y estado de la red ============ */

.adjuntar {
  display: grid;
  place-items: center;
  width: 40px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--texto-suave);
  flex: none;
}
.adjuntar:hover:not(:disabled) { color: var(--acento); }
.adjuntar:disabled { opacity: 0.4; cursor: not-allowed; }
.adjuntar .ico { width: 1.5rem; height: 1.5rem; transform: rotate(45deg); }

.previa {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bar-bg);
  border-top: 1px solid var(--borde);
  flex: none;
}
.previa-miniatura {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--campo-bg);
  color: var(--acento);
  flex: none;
}
.previa-miniatura img { display: block; width: 100%; height: 100%; object-fit: cover; }
.previa-miniatura .ico { width: 1.6rem; height: 1.6rem; }
.previa-texto { display: grid; flex: 1; min-width: 0; }
.previa-texto strong { font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.previa-texto span { font-size: 0.75rem; color: var(--texto-suave); }
.quitar {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--texto-suave);
  flex: none;
}
.quitar:hover { color: var(--error); }

.burbuja .media {
  display: block;
  max-width: 100%;
  max-height: 320px;
  margin: -2px -4px 6px;
  border-radius: 7px;
  object-fit: cover;
}
.archivo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.06);
}
.archivo .ico { width: 1.6rem; height: 1.6rem; color: var(--acento); }
.archivo div { display: grid; min-width: 0; }
.archivo strong { font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archivo span { font-size: 0.75rem; color: var(--meta); }

.aviso-fallo {
  margin: 2px 6px 8px auto;
  max-width: min(84%, 34rem);
  color: var(--error);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: right;
}
.aviso.aviso-error { background: var(--aviso-bg); color: var(--error); }

.red {
  padding: 8px 14px;
  background: var(--aviso-bg);
  color: var(--aviso-fg);
  font-size: 0.8125rem;
  text-align: center;
  flex: none;
}

/* ============ Demostración ============ */

.pagina-escenario {
  background:
    radial-gradient(60rem 36rem at 8% -8%, color-mix(in srgb, var(--acento) 16%, transparent), transparent 70%) no-repeat,
    var(--fondo-app);
  padding-bottom: 40px;
}

.cabecera {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 4px;
  display: grid;
  gap: 12px 24px;
}
.cabecera-texto { display: grid; gap: 8px; }
@media (min-width: 961px) {
  .cabecera { grid-template-columns: 1fr auto; align-items: end; }
  .cabecera .marca { grid-column: 1 / -1; }
}
.marca { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.marca .logo {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #12c2a2, #006b58);
  color: #fff; font-weight: 700;
}
.marca span { display: block; color: var(--texto-suave); font-size: 0.8125rem; }
.cabecera h1 {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1.55rem, 1rem + 1.7vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.cabecera p { margin: 0; max-width: 64ch; color: var(--texto-suave); font-size: 1rem; }

.herramientas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: end;
}
.campo { display: grid; gap: 4px; font-size: 0.8125rem; color: var(--texto-suave); }
.campo input {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--borde);
  border-radius: 10px;
  background: var(--superficie);
  color: var(--texto);
  font-size: 1rem;
}
.boton-secundario {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--borde);
  border-radius: 10px;
  background: var(--superficie);
  color: var(--texto);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.boton-secundario:hover { border-color: var(--acento); }

.escenario {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(12px, 3vw, 40px);
  align-items: start;
}
.paso h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0 14px;
  font-size: 1.0625rem;
  line-height: 1.25;
}
.paso h2 small { color: var(--texto-suave); font-weight: 400; font-size: 0.8125rem; }
.num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--acento);
  color: #fff; font-size: 0.875rem; font-weight: 700;
  flex: none;
}
.nota { margin: 12px auto 0; max-width: 360px; color: var(--texto-suave); font-size: 0.8125rem; text-align: center; }
.nota.destacado { color: var(--texto); font-size: 0.9375rem; font-weight: 600; }
.tarjeta .nota { max-width: none; margin-inline: 0; text-align: left; }

.puente {
  align-self: center;
  display: grid; justify-items: center; gap: 8px;
  color: var(--acento);
  font-size: 0.8125rem; font-weight: 600;
}
.puente .ico { width: 2.6rem; height: 2.6rem; }

.telefono {
  position: relative;
  width: min(100%, 360px);
  height: clamp(560px, 76vh, 700px);
  margin-inline: auto;
  padding: 10px;
  border-radius: 40px;
  background: var(--telefono);
  box-shadow: 0 24px 60px rgba(11, 20, 26, 0.34), inset 0 0 0 2px #2b343a;
}
.telefono::before {
  content: "";
  position: absolute; z-index: 4;
  top: 17px; left: 50%;
  width: 84px; height: 20px;
  translate: -50% 0;
  border-radius: 12px;
  background: var(--telefono);
}
.telefono-pantalla {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: var(--chat-bg);
}
.telefono-pantalla .barra { padding-top: 32px; }
.telefono iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--chat-bg); }

.vacio {
  display: grid; place-content: center; justify-items: center; gap: 12px;
  height: 100%;
  padding: 28px;
  text-align: center;
  color: var(--texto-suave);
  border: 2px dashed var(--borde);
  border-radius: 30px;
}
.vacio .ico { width: 3rem; height: 3rem; color: var(--acento); }
.vacio p { margin: 0; max-width: 24ch; font-size: 0.9375rem; }

.wa-sugerencias { padding: 4px 12px 8px; background: var(--chat-bg); flex: none; }

.vista-enlace {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  margin: 6px 0 4px;
  padding: 8px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--in-fg) 7%, transparent);
  color: inherit;
  text-decoration: none;
}
.vista-img {
  display: grid; place-items: center;
  height: 56px; border-radius: 7px;
  background: linear-gradient(135deg, #12c2a2, #006b58);
  color: #fff; font-size: 1.5rem; font-weight: 700;
}
.vista-txt { display: grid; gap: 1px; min-width: 0; align-content: center; }
.vista-txt strong { font-size: 0.875rem; }
.vista-txt span { font-size: 0.78rem; color: var(--meta); }
.vista-txt small { font-size: 0.72rem; color: var(--meta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.paneles {
  max-width: 1200px;
  margin: 36px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tarjeta {
  padding: 20px;
  border: 1px solid var(--borde);
  border-radius: 16px;
  background: var(--superficie);
}
.tarjeta h2 { margin: 0 0 12px; font-size: 1.0625rem; }
.metricas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.metricas div { display: grid; gap: 2px; }
.metricas dt { color: var(--texto-suave); font-size: 0.8125rem; }
.metricas dd { margin: 0; font-size: 2.3rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.metricas .bueno dd { color: var(--bueno); }
.metricas .malo dd { color: var(--malo); }
.metricas span { color: var(--texto-suave); font-size: 0.75rem; }
.barras { display: grid; gap: 8px; margin: 0 0 14px; }
.barra-meta { display: grid; gap: 4px; font-size: 0.75rem; color: var(--texto-suave); }
.barra-meta i {
  display: block; height: 12px; border-radius: 6px;
  background: color-mix(in srgb, var(--texto) 10%, transparent);
  overflow: hidden;
}
.barra-meta i::after {
  content: "";
  display: block; height: 100%;
  width: calc(var(--w, 0) * 1%);
  border-radius: 6px;
  transition: width 0.5s ease;
}
.barra-meta.sin i::after { background: var(--malo); }
.barra-meta.con i::after { background: var(--bueno); }

.ficha { display: grid; gap: 8px; margin: 12px 0 0; }
.ficha div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 8px; font-size: 0.875rem; }
.ficha dt { color: var(--texto-suave); }
.ficha dd { margin: 0; overflow-wrap: anywhere; }
.estado-chip {
  display: inline-block;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--texto) 9%, transparent);
  font-size: 0.8125rem; font-weight: 600;
}
.estado-chip.transferido { background: color-mix(in srgb, var(--bueno) 18%, transparent); color: var(--bueno); }
.tarjeta details summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.tarjeta ul { margin: 10px 0 0; padding-left: 1.1rem; display: grid; gap: 8px; font-size: 0.875rem; color: var(--texto-suave); }
.pie { max-width: 1200px; margin: 28px auto 0; padding: 0 20px; color: var(--texto-suave); font-size: 0.8125rem; }

@media (max-width: 960px) {
  .escenario { grid-template-columns: 1fr; }
  .puente { display: none; }
  .paneles { grid-template-columns: 1fr; }
  .telefono { height: clamp(540px, 80vh, 680px); }
}
@media (max-width: 480px) {
  .ficha div { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============ Portada de producción ============ */

.portada {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 20px 0;
  display: grid;
  gap: 18px;
}
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pasos li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--borde);
  border-radius: 16px;
  background: var(--superficie);
}
.pasos strong { display: block; font-size: 1.0625rem; }
.pasos p { margin: 4px 0 0; color: var(--texto-suave); font-size: 0.9375rem; }
.portada .tarjeta ul { margin-top: 0; }

.portada{max-width:42rem;margin:12vh auto;padding:2rem;color:#16353a}.portada h1{font-size:clamp(2rem,6vw,3rem);line-height:1.15}.portada p{font-size:1.125rem;line-height:1.65}
