/* RecuerdoChat — look & feel D2 (2026-06-15): calidez ilustrada contenida.
   Paleta cerrada: crema cálido + índigo noche + oro estrella. Texto gris topo.
   Tipografía: Fraunces (títulos/marca, alma) + Nunito Sans (cuerpo, legibilidad).
   El <link> de fuentes se carga en _layout.php. */
:root {
  --bg: #F7F3EC;          /* crema cálido */
  --surface: #ffffff;
  --ink: #3a352f;         /* gris topo cálido (cuerpo) */
  --muted: #7d756b;
  --line: #e8ded0;        /* arena suave */
  --primary: #2E3A59;     /* índigo noche — marca, títulos, acciones */
  --primary-deep: #232c45;
  --accent: #D9A86C;      /* oro estrella — acentos en dosis pequeñas */
  --accent-deep: #c2925a;
  --ok: #9CAE9A;          /* salvia */
  --shadow: 0 12px 34px rgba(46, 58, 89, 0.10);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 "Nunito Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  letter-spacing: .1px;
  overflow-wrap: break-word;   /* cadenas largas sin espacios (correos/URLs) no fuerzan scroll horizontal en móvil */
}
h1, h2, h3 { font-family: "Fraunces", "Iowan Old Style", Georgia, serif; color: var(--primary); }
main { max-width: 760px; margin: 0 auto; padding: 40px 22px 64px; }

/* Header / footer */
header.site, footer.site {
  max-width: 760px; margin: 0 auto; padding: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
/* Cabecera = banda índigo "cielo nocturno", full-bleed, contenido re-centrado a 760px. */
header.site {
  flex-wrap: wrap;
  max-width: none;
  background: var(--primary);
  padding: 16px max(22px, calc((100% - 760px) / 2));
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.8rem; font-weight: 600; color: var(--primary);
  text-decoration: none; letter-spacing: .2px;
  white-space: nowrap;   /* la estrella y el wordmark nunca se separan (móvil) */
}
header.site .brand { color: var(--bg); }       /* crema sobre la banda */
header.site .rc-star { width: .56em; height: .56em; vertical-align: .08em; margin-right: .12em; }
/* D7: el control de menú móvil (casilla + etiqueta) nunca se muestra en escritorio. */
.rc-menu-toggle, .rc-menu-btn { display: none; }
nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--primary); }
header.site .rc-headnav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
header.site nav a { color: #e9ecf5; }
header.site nav a:hover { color: #fff; }
header.site .ghost { color: rgba(255,255,255,.75) !important; }
header.site .rc-actions a.entrar { color: #e9ecf5; font-weight: 600; }
header.site .rc-actions a.rc-cta-primary { padding: 10px 20px; font-size: .92rem; }
/* D7: la cabecera colapsa a una sola línea (marca + control) bajo 560px; el índice y las acciones
   se envuelven en un panel que el navegador muestra/oculta sin JavaScript, vía el selector de
   hermanos de la casilla oculta. Va después de las reglas incondicionales de arriba a propósito:
   misma especificidad que "header.site .rc-headnav", y en CSS gana la que aparece última. */
@media (max-width: 560px) {
  .brand { font-size: 1.6rem; }        /* deja sitio al control de menú en la misma línea (D7) */
  header.site { gap: 10px; position: sticky; top: 0; z-index: 50; } /* D31: cabecera fija en móvil, sitio completo */
  .rc-menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
  .rc-menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px; color: #e9ecf5; cursor: pointer;
  }
  .rc-menu-btn:hover { background: rgba(255,255,255,.12); }
  header.site .rc-headnav { display: none; }
  #rc-menu-toggle:checked ~ .rc-headnav {
    display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 14px;
  }
  header.site .rc-nav { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  header.site .rc-nav a { min-height: 44px; display: flex; align-items: center; border-top: 1px solid rgba(255,255,255,.18); }
  /* D30: el desplegable expande en línea dentro del menú apilado, en vez de flotar. */
  header.site .rc-nav-dd > summary { min-height: 44px; display: flex; align-items: center; border-top: 1px solid rgba(255,255,255,.18); }
  header.site .rc-nav-dd .rc-nav-dd-panel { position: static; box-shadow: none; border: none; background: transparent; padding: 0; }
  header.site .rc-nav-dd .rc-nav-dd-panel a { color: #e9ecf5 !important; min-height: 44px; display: flex; align-items: center; padding-left: 14px; }
  header.site .rc-nav-dd .rc-nav-dd-panel a:hover { background: transparent; color: #fff !important; }
  /* Entrar y el CTA se apilan a todo el ancho; el dorado queda último y centrado, único botón
     dorado visible en la primera pantalla (el hero trae el suyo propio, ver D7). */
  header.site .rc-actions { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  header.site .rc-actions a.entrar { text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  header.site .rc-actions a.rc-cta-primary { text-align: center; }
  .dash-cta { text-align: center; }                            /* CTA principal del dashboard centrado en móvil */
  /* C-dash: la tarjeta apila en móvil — nombre+meta a ancho completo (nombre nunca se trunca), acción a la derecha */
  .chat { flex-direction: column; align-items: stretch; gap: 14px; }
  .chat-action, .chat-end { align-self: flex-end; }
}
/* Alineación óptica: el ícono circular de cuenta (40px) mide más que el glifo → se tira hacia el
   borde para que quede a ras, simétrico con el contenido de la izquierda. El área de tap sigue siendo 40px. */
header.site .user-menu { margin-right: -9px; }
.who { color: var(--muted); font-size: .9rem; font-weight: 400; }
header.site .who { color: rgba(255,255,255,.7); }
footer.site { display: block; text-align: center; color: var(--muted); font-size: .92rem; margin-top: 40px; }
footer.site .fine { font-size: .82rem; opacity: .8; }
/* Footer delgado y digno (N9): fila de enlaces legales, sobria. */
footer.site .foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 10px; }
footer.site .foot-links a { color: var(--muted); text-decoration: none; font-size: .88rem; }
footer.site .foot-links a:hover { color: var(--primary); text-decoration: underline; }

/* Botones */
.cta, button, .btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; text-decoration: none;
  padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem;
  transition: background .2s, transform .05s;
}
.cta:hover, button:hover, .btn:hover { background: var(--primary-deep); }
.cta.gold { background: var(--accent); color: #2E3A59; }
.cta.gold:hover { background: var(--accent-deep); }
button:active { transform: translateY(1px); }
/* Un botón deshabilitado (ej. comprar.php sin marcar el checkbox de acuerdo) heredaba
   `cursor: pointer` y el mismo color activo — se veía clickeable y no lo era, causa real de
   confusión reportada por Danny. `pointer-events: none` de paso apaga el :hover que oscurecía el
   fondo al pasar el mouse por encima. */
.cta:disabled, button:disabled, .btn:disabled {
  opacity: .45; cursor: not-allowed; pointer-events: none;
}
.ghost { color: var(--muted) !important; background: none !important; padding: 0 !important; }

/* --- N11: caja de acción igualada en la lista de recuerdos (Descargar = Creándose…) --- */
.chat-action { display: inline-flex; align-items: center; justify-content: center; min-width: 152px; height: 44px; box-sizing: border-box; flex: none; }
.chat-action .btn { width: 100%; height: 100%; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; }
.chat-action .tag { width: 100%; height: 100%; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: .9rem; }
.chat-end { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; max-width: 260px; text-align: right; }
.chat-note { margin: 0; color: var(--muted); font-size: .82rem; }
.link-danger { background: none !important; color: #9a3b2e !important; padding: 0 !important; font-weight: 700; font-size: .9rem; }
.link-danger:hover { color: #7a2e23 !important; text-decoration: underline; }

/* --- N11: menú de usuario (dropdown nativo <details>, sin JS) --- */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; color: #e9ecf5; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; transition: background .15s, color .15s; }
.user-menu > summary:hover, .user-menu[open] > summary { background: rgba(255,255,255,.12); color: #fff; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary svg { display: block; }
.user-menu .menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; min-width: 200px; max-width: 78vw; display: flex; flex-direction: column; }
.user-menu .menu-panel .menu-email { display: block; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); line-height: 1.3; }
.user-menu .menu-panel .me-user { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu .menu-panel .me-dom { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu .menu-panel a { color: var(--ink) !important; padding: 9px 12px; border-radius: 8px; font-weight: 600; }
.user-menu .menu-panel a:hover { background: var(--bg); color: var(--primary) !important; }

/* D30: desplegable del nav logeado, agrupa Temas+Precio — mismo mecanismo <details> nativo
   que .user-menu, anclado en línea dentro de .rc-nav (no un ícono flotante). */
.rc-nav-dd { position: relative; }
.rc-nav-dd > summary { list-style: none; cursor: pointer; color: #e9ecf5; font-weight: 600; }
.rc-nav-dd > summary::-webkit-details-marker { display: none; }
.rc-nav-dd > summary::after { content: " \25be"; }
.rc-nav-dd > summary:hover { color: #fff; }
.rc-nav-dd .rc-nav-dd-panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; min-width: 160px; display: flex; flex-direction: column; }
.rc-nav-dd .rc-nav-dd-panel a { color: var(--ink) !important; padding: 9px 12px; border-radius: 8px; font-weight: 600; }
.rc-nav-dd .rc-nav-dd-panel a:hover { background: var(--bg); color: var(--primary) !important; }

/* --- N11: bloque "¿Con qué abro mi recuerdo?" --- */
.opener { margin: 32px 0 8px; }
.opener h3 { font-family: "Fraunces", serif; color: var(--primary); margin: 0 0 12px; }
.opener-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.opener-opt { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); }
a.opener-opt:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.opener-ic { font-size: 2rem; line-height: 1; color: var(--accent); display: inline-block; }
.opener .rc-star { width: 1.4rem; height: 1.4rem; }
.opener-l { font-weight: 700; color: var(--primary); }
.opener-s { font-size: .82rem; color: var(--muted); }
.opener-opt.disabled { opacity: .6; }
.soon { display: inline-block; font-size: .68rem; font-weight: 700; color: var(--accent-deep); background: #f6ecdb; border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: middle; }
/* Acción secundaria (versión portátil): enlace callado en la voz de la marca — el oro queda
   reservado a la acción principal (instalador). Subrayado del color del texto (no var(--line))
   para que se lea como enlace ya en reposo. */
.dl-portable { text-align: center; margin: 16px 0 0; font-size: .95rem; }
.dl-portable a { color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.dl-portable a:hover { color: var(--primary); }

/* --- i18n: selector de idioma en el footer --- */
.lang-switch { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.lang-switch a { color: var(--muted); text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.lang-switch a:hover { color: var(--primary); }
.lang-switch a.active { color: var(--accent-deep); }

/* Hero */
.hero { text-align: center; padding: 36px 0 12px; }
.hero h1 { font-size: 2.6rem; line-height: 1.18; margin: .2em 0 .3em; font-weight: 600; }
.hero p.lead { font-size: 1.22rem; color: var(--muted); max-width: 32ch; margin: 0 auto 1.6em; }
.hero .cta { font-size: 1.08rem; padding: 14px 30px; }

/* Secciones suaves */
.soft {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; margin: 26px 0;
}
.steps { display: grid; gap: 18px; margin: 30px 0; }
.steps .step { display: flex; gap: 14px; align-items: baseline; }
.steps .n { color: var(--accent); font-weight: 700; font-size: 1.15rem; min-width: 1.4em; font-family: "Fraunces", serif; }
h2 { font-weight: 600; font-size: 1.55rem; margin: 1.4em 0 .5em; }

/* Demo del producto (D19, enmienda en vivo): el mismo preview real de temas.php (MessageList +
   tema Clásico), no una maqueta CSS aparte — Danny lo pidió tras ver que la maqueta estática no
   se leía como un preview real. Vive en su propio bundle de un solo archivo
   (server/public/demo-assets/demo.html, VITE_DEMO=1) montado en un <iframe sandbox="allow-scripts">
   — mismo tamaño (420px de alto) que la vista previa de temas.php. */
.demo-frame {
  display: block; width: 100%; max-width: 480px; height: 420px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.demo-caption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 10px; }

/* Rejilla de los seis pasos del producto (D19, círculo+centrado en enmienda en vivo) */
.flow-steps { display: grid; gap: 18px; margin: 18px 0; grid-template-columns: 1fr; }
.flow-step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.flow-step .n {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; background: var(--accent);
  color: var(--primary); font-family: "Fraunces", serif; font-weight: 700; font-size: 1.05rem;
}
.flow-step a { color: var(--primary); text-decoration: none; font-weight: 700; }
.flow-step a:hover { color: var(--accent-deep); text-decoration: underline; }
.flow-more {
  display: block; text-align: center; margin-top: 14px; color: var(--accent-deep);
  font-weight: 700; text-decoration: none;
}
.flow-more:hover { color: var(--primary); text-decoration: underline; }
.trust-line { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 8px; }
@media (min-width: 561px) {
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .flow-steps { grid-template-columns: repeat(3, 1fr); }
}

/* Rectángulo de pasarela (N19, enmienda 2026-08-20) — comprar.php: un bloque por moneda con el
   logo de la marca (sin nombre en texto — el logo ya lo dice) y el detalle del monto. */
.pay-rect {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; flex: 1; min-width: 240px;
}
.pay-rect-header { display: flex; align-items: center; margin-bottom: 14px; }
.pay-rect-header img { height: 28px; width: auto; }
.pay-rect .line { display: flex; justify-content: space-between; gap: 10px; font-size: .95rem; margin: .25em 0; }
.pay-rect .line.total {
  font-weight: 700; font-size: 1.15rem; margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--line);
}

/* Formularios */
form.card { max-width: 420px; margin: 10px auto; }
label { display: block; margin: 16px 0 6px; color: var(--muted); font-size: .95rem; font-weight: 600; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; font: inherit; background: var(--surface); color: var(--ink);
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* D23: dropzone del input de archivo — reemplaza el <input type=file> visible por una
   zona clickeable/arrastrable, el input real sigue en el DOM (accesibilidad, teclado). */
.rc-dropzone-input {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
.rc-dropzone {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; margin: 16px 0 6px; padding: 28px 20px; cursor: pointer;
  background: var(--bg); border: 2px dashed var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, background .15s ease;
}
.rc-dropzone:hover, .rc-dropzone:focus-within { border-color: var(--accent); }
.rc-dropzone.is-dragover { border-color: var(--accent-deep); background: var(--surface); box-shadow: var(--shadow); }
.rc-dropzone.is-error { border-color: #9a4b3c; background: #f7e9e6; }
.rc-dropzone .rc-dropzone-icon { width: 1.8rem; height: 1.8rem; }
.rc-dropzone-copy { display: flex; flex-direction: column; gap: 2px; }
.rc-dropzone-main { color: var(--ink); font-weight: 600; }
.rc-dropzone-hint { color: var(--muted); font-size: .85rem; }
.rc-dropzone.is-error .rc-dropzone-main { color: #9a4b3c; }

.full { width: 100%; text-align: center; margin-top: 22px; }
.alt { text-align: center; color: var(--muted); margin-top: 18px; font-size: .95rem; }
.alt a { color: var(--primary); }
.error { background: #f7e9e6; color: #9a4b3c; padding: 12px 16px; border-radius: 12px; margin: 14px 0; }

/* .rc-help-link — enlace de texto con la marca: sin subrayado por defecto, oro estrella, peso
 * fuerte; mismo principio que .flow-step a, sin competir visualmente con el CTA dorado (D24). */
.rc-help-link { color: var(--accent-deep); text-decoration: none; font-weight: 700; }
.rc-help-link:hover { color: var(--primary); text-decoration: underline; }

/* Dashboard / listado */
.chat-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.chat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.chat .meta { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 2px; }
.chat .meta-item { white-space: nowrap; }                       /* cada dato es grupo indivisible: salta entero al apretarse */
.chat .meta-item:not(:last-child)::after { content: "·"; margin-left: 6px; }  /* hereda el color muted del meta (punto visible, como antes) */
.chat .name { font-size: 1.15rem; font-family: "Fraunces", serif; color: var(--primary); }
.tag { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--muted); font-weight: 600; }
.tag.live { background: #eef2ec; color: #5f7a5a; }
.tag.expired { background: #f6ecdb; color: var(--accent-deep); }
.tag.working { background: #efe7d8; color: var(--primary); }
.tag.working::before { content: "● "; color: var(--accent); animation: rc-pulse 1.2s ease-in-out infinite; }
.tag.error { background: #f6e3e0; color: #9a3b2e; }
@keyframes rc-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* .rc-progress (D24) — indicador de progreso de seis pasos, línea + puntos con tres estados
 * (pendiente/activo/logrado). Espejo exacto en app/src/styles/site-chrome.css para ProgressSteps.tsx. */
.rc-progress ol { display: flex; justify-content: space-between; list-style: none; margin: 24px 0; padding: 0; width: 100%; }
/* Seis columnas exactamente iguales (flex: 1 cada una, 1/6 del ancho), punto y etiqueta centrados
 * en cada una (align-items: center) — equidistantes por construcción, sin casos especiales para
 * los extremos. La etiqueta usa el ancho real de su columna vía shrink-to-fit, nunca un max-width
 * calculado aparte (ese cálculo fue lo que la colapsó a 0px en un intento anterior). */
.rc-progress li { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; position: relative; }
.rc-progress li:not(:last-child)::after {
  content: ""; position: absolute; top: 7px; left: 50%; width: 100%; height: 2px;
  background: var(--line); z-index: 0;
}
.rc-progress .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); z-index: 1; }
.rc-progress li.is-done .dot { background: var(--accent); border-color: var(--accent); }
.rc-progress li.is-active .dot { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(46,58,89,.12); }
.rc-progress li.is-done ~ li::after { background: var(--accent); }
.rc-progress .label { font-size: .78rem; color: var(--muted); text-align: center; }
.rc-progress li.is-active .label { color: var(--primary); font-weight: 600; }
/* Solo teléfono (mismo quiebre que D7): las etiquetas alternan arriba/abajo del punto en vez de
 * apilarse todas debajo — así una que crece a dos o tres líneas nunca choca con la vecina
 * inmediata (queda dos pasos más lejos, no una columna al lado). El punto y la línea quedan fijos
 * al centro vertical de un carril de 96px (40px de margen a cada lado + sus 16px), calculado, no a
 * ojo: `li` deja de depender del flujo columna/gap de escritorio porque el punto y la etiqueta
 * pasan a `position: absolute` dentro de él. En escritorio (>560px) nada de esto aplica. */
@media (max-width: 560px) {
  .rc-progress li { height: 96px; }
  .rc-progress li:not(:last-child)::after { top: 47px; }
  .rc-progress .dot { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); }
  .rc-progress .label {
    position: absolute; left: 50%; transform: translateX(-50%);
    width: max-content; max-width: 100px;
  }
  .rc-progress li:nth-child(odd) .label { top: 62px; }
  .rc-progress li:nth-child(even) .label { bottom: 62px; }
}

/* (D25) Recorrido de exportación de WhatsApp — movido desde el <style> inline de
 * exportar-whatsapp.php a la hoja compartida, sin cambio de selector ni de valor, para que
 * exportar.php (nuevo, D25) lo reuse sin duplicar CSS. */
.tut-walk { margin-top: 40px; }
.tut-walk .lead { color: var(--muted); max-width: 46ch; }

.tut-plat { display: flex; gap: 4px; margin: 20px 0 0; border-bottom: 1px solid var(--line); }
.tut-plat-tab {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-weight: 700; font-size: .92rem; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tut-plat-tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.tut-steps { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
.tut-step { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

.tut-phone {
  width: 100%; min-height: 220px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 12px; overflow: hidden;
}
.tut-appbar {
  display: flex; align-items: center; justify-content: space-between; background: var(--primary);
  color: #e9ecf5; border-radius: 10px; padding: 8px 10px; margin: -14px -12px 10px;
}
.tut-appbar .tut-row-name { color: #e9ecf5; font-weight: 700; font-size: .88rem; }
.tut-dots { font-weight: 700; padding: 2px 6px; border-radius: 8px; }

.tut-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-radius: 10px; }
.tut-avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--line); flex: none; }
.tut-row-name { font-weight: 700; font-size: .88rem; color: var(--ink); }

.tut-menu { list-style: none; margin: 0; padding: 0; }
.tut-menu li {
  padding: 8px 6px; font-size: .84rem; color: var(--ink); border-radius: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.tut-chevron { color: var(--accent-deep); font-weight: 700; }
.tut-flag {
  display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
  border-radius: 999px; background: #f6e3e0; color: #9a3b2e; font-size: .72rem; font-weight: 800;
  flex: none;
}

.tut-dialog { padding: 6px 2px; }
.tut-dialog-warn { font-size: .8rem; color: var(--muted); margin: 0 0 10px; }
.tut-dialog-actions { display: grid; gap: 8px; }
.tut-btn {
  display: block; text-align: center; padding: 7px 10px; border-radius: 10px; font-size: .82rem;
  font-weight: 700; background: var(--bg); color: var(--primary); border: 1px solid var(--line);
}

.tut-notice { text-align: center; padding: 18px 4px; }
.tut-notice p { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.tut-spinner {
  display: inline-block; width: 22px; height: 22px; border-radius: 999px;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: tutSpin 1s linear infinite;
}

.tut-share-file {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: .78rem;
  color: var(--ink); margin-bottom: 12px;
}
.tut-share-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.tut-share-weight { color: var(--muted); flex: none; }
.tut-share-apps { display: flex; gap: 10px; }
.tut-app-ic { width: 30px; height: 30px; border-radius: 10px; background: var(--line); }

.tut-share-rows { display: grid; gap: 6px; }
.tut-share-action {
  padding: 8px 10px; border-radius: 10px; font-size: .82rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
}

.tut-files { display: grid; gap: 6px; }
.tut-files-row {
  padding: 8px 10px; border-radius: 10px; font-size: .82rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
}

.tut-tap { position: relative; background: rgba(217, 168, 108, .16); }
.tut-tap::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid var(--accent);
  animation: tutPulse 1.6s ease-in-out infinite;
}
span.tut-tap::after { border-radius: 999px; }

.tut-n {
  display: block; font-family: "Fraunces", serif; font-weight: 700; color: var(--accent-deep);
  margin-bottom: 0;
}

.tut-caption { padding-top: 0; }
.tut-caption p { margin: 4px 0; color: var(--ink); font-size: .95rem; }
.tut-caption .tut-warn { color: #9a3b2e; font-weight: 700; }

@keyframes tutPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes tutSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .tut-tap::after { animation: none; opacity: .8; }
  .tut-spinner { animation: none; }
}

@media (min-width: 561px) {
  .tut-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .tut-steps { grid-template-columns: repeat(3, 1fr); }
}

/* D31: el último paso (transfer, sin ilustración de teléfono) ocupa las tres columnas en vez de
   dejar espacio vacío al lado — a pedido de Danny. Aplica a ambos breakpoints ≥561px. */
@media (min-width: 561px) {
  .tut-steps > .tut-step:last-child { grid-column: 1 / -1; }
}

.tut-phone-notice {
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 12px 14px; font-weight: 700; color: var(--ink); margin: 20px 0 0; max-width: 46ch;
}
.tut-demo-badge {
  display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700;
  color: var(--accent-deep); background: rgba(217, 168, 108, .16); border-radius: 999px;
  padding: 2px 10px; margin-bottom: 6px;
}
.tut-transfer-label {
  display: block; font-family: "Nunito Sans", sans-serif; font-weight: 700; font-style: italic;
  color: var(--muted); margin-bottom: 0;
}
.tut-transfer ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.tut-transfer li { font-size: .88rem; color: var(--ink); }
.tut-demo-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; max-width: min(90vw, 46ch); text-align: center;
  cursor: pointer; box-shadow: var(--shadow);
}
