/* Reclutamiento externo: panel interno (rx-) y formulario público (pub-).
   Usa los tokens corporativos de main.css (verde Contactamos, tema claro). */

:root {
  --rx-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --rx-tint: rgba(15, 61, 28, 0.1);          /* sombras teñidas del verde corporativo */
  --rx-ring: rgba(27, 107, 46, 0.14);
}

@keyframes rx-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rx-spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════
   PANEL INTERNO
   ════════════════════════════════════════════════════════════════ */
.rx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.rx-title { font-size: var(--fs-xl); line-height: 1.2; letter-spacing: -0.01em; }
.rx-lead { margin-top: .3rem; color: var(--muted); max-width: 62ch; }

.rx-tabs { display: inline-flex; gap: .25rem; padding: .25rem; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--rx-ring), 0 6px 18px -10px var(--rx-tint); }
.rx-tab { padding: .5rem 1.05rem; border-radius: 9px; color: var(--muted); font-size: .85rem; font-weight: 650; text-decoration: none; transition: background .25s var(--rx-ease), color .25s var(--rx-ease); }
.rx-tab:hover { color: var(--accent-2); background: var(--surface); }
.rx-tab--active, .rx-tab--active:hover { color: #fff; background: var(--accent-2); }

.rx-alert { border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1.1rem; font-size: .875rem; }
.rx-alert--ok { background: #eefaf0; border: 1px solid #bfe8c9; color: #145222; }
.rx-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* Doble marco: bandeja exterior + núcleo interior con radios concéntricos. */
.rx-bezel { padding: .4rem; border-radius: 22px; background: linear-gradient(160deg, #fff, var(--surface)); box-shadow: 0 0 0 1px var(--rx-ring), 0 22px 40px -28px var(--rx-tint); }
.rx-bezel__core { height: 100%; border-radius: 17px; background: #fff; box-shadow: inset 0 1px 0 #fff; }

/* Franja superior compacta: el QR (pequeño, con sus acciones al lado) y los indicadores
   comparten una sola fila para que la tabla de aspirantes quede a la vista sin tanto scroll. */
.rx-top { display: grid; grid-template-columns: minmax(340px, 31rem) minmax(0, 1fr); gap: 1rem; align-items: stretch; margin-bottom: 1rem; }

.rx-qr { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 1rem; align-items: center; padding: .9rem 1rem; }
.rx-qr__img { display: block; width: 116px; height: 116px; border-radius: 12px; box-shadow: 0 0 0 1px var(--border); image-rendering: pixelated; }
.rx-qr__title { font-size: .98rem; font-weight: 750; line-height: 1.2; }
.rx-qr__hint { margin-top: .15rem; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.rx-url { margin-top: .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .35rem .6rem; background: var(--ground); border-radius: 8px; color: var(--muted); font-size: .72rem; }
.rx-qr__actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.rx-qr__actions .btn { justify-content: center; }

/* Indicadores por fuente */
.rx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: .6rem; }
.rx-kpi { display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: .6rem .85rem; border-radius: 14px; background: #fff; color: var(--text); text-decoration: none; box-shadow: 0 0 0 1px var(--border), 0 10px 24px -20px var(--rx-tint); transition: transform .3s var(--rx-ease), box-shadow .3s var(--rx-ease); }
.rx-kpi:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--surface-2), 0 16px 28px -18px var(--rx-tint); }
.rx-kpi__value { font-size: 1.4rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rx-kpi__label { margin-top: .15rem; color: var(--muted); font-size: .74rem; font-weight: 600; line-height: 1.25; }
.rx-kpi--total { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 1rem; color: #fff; background: linear-gradient(135deg, var(--accent-dark), var(--accent-2)); box-shadow: 0 18px 30px -22px rgba(15, 61, 28, .7); }
.rx-kpi--total { justify-content: flex-start; padding: .6rem 1.1rem; }
.rx-kpi--total .rx-kpi__value { font-size: 1.85rem; }
.rx-kpi--total .rx-kpi__label { margin: 0 0 0 auto; color: rgba(255, 255, 255, .85); font-size: .85rem; }
.rx-kpi--on { box-shadow: 0 0 0 2px var(--accent-2); }

/* Filtros */
.rx-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; align-items: end; padding: 1rem 1.15rem; border-bottom: 1px solid var(--border); }
.rx-filters .form-group { margin: 0; }
.rx-filters .form-label { font-size: .7rem; }
.rx-filters .form-input, .rx-filters .form-select { padding: .5rem .65rem; font-size: .88rem; }
.rx-filters__actions { display: flex; gap: .5rem; }

/* Tabla de registros */
.rx-panel { overflow: hidden; }
.rx-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.15rem; border-bottom: 1px solid var(--border); }
.rx-panel__title { font-size: var(--fs-lg); line-height: 1.25; }
.rx-panel__sub { margin-top: .15rem; color: var(--muted); font-size: .78rem; }
.rx-scroll { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.rx-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: .84rem; }
.rx-table th, .rx-table td { padding: .8rem .75rem; text-align: left; white-space: nowrap; vertical-align: middle; border-bottom: 1px solid var(--border); }
.rx-table th { position: sticky; top: 0; z-index: 2; background: #fbfdfb; color: var(--muted); font-size: .69rem; letter-spacing: .04em; text-transform: uppercase; }
.rx-table tbody tr:hover td { background: #f7fbf8; }
.rx-table th:first-child, .rx-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 210px; max-width: 270px; overflow: hidden; text-overflow: ellipsis; background: #fff; box-shadow: 1px 0 0 var(--border); font-weight: 650; }
.rx-table th:first-child { z-index: 3; background: #fbfdfb; }
.rx-table tbody tr:hover td:first-child { background: #f7fbf8; }
.rx-cell-detail { max-width: 300px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.rx-empty { padding: 2.5rem 1rem !important; text-align: center !important; color: var(--muted); white-space: normal !important; }

.rx-badge { display: inline-flex; align-items: center; padding: .22rem .6rem; border-radius: 99px; background: var(--accent-2-soft); color: var(--accent-2); font-size: .72rem; font-weight: 700; }
.rx-badge--off { background: #f1f2f1; color: var(--muted); }
.rx-link { display: inline-flex; padding: .28rem .55rem; border-radius: 7px; background: var(--accent-2-soft); color: var(--accent-2); font-size: .76rem; font-weight: 700; text-decoration: none; }
.rx-link:hover { background: var(--surface-2); }
button.rx-link { border: 0; font-family: inherit; line-height: 1.3; cursor: pointer; }

.rx-pager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .85rem 1.15rem; color: var(--muted); font-size: .8rem; }
.rx-pager__nav { display: flex; gap: .4rem; }
.rx-pager .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Ferias */
.rx-new { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; padding: 1.1rem 1.25rem; }
.rx-new .form-group { flex: 1 1 260px; margin: 0; }
.rx-actions { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; }
.rx-switch { display: inline-flex; align-items: center; gap: .55rem; padding: .25rem .65rem .25rem .3rem; border: 0; border-radius: 99px; background: var(--surface); color: var(--accent-2); font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; transition: background .25s var(--rx-ease), color .25s var(--rx-ease); }
.rx-switch__track { position: relative; width: 32px; height: 18px; border-radius: 99px; background: var(--accent-2); transition: background .25s var(--rx-ease); }
.rx-switch__track::after { content: ''; position: absolute; top: 2px; left: 16px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s var(--rx-ease); }
.rx-switch--off { background: #f1f2f1; color: var(--muted); }
.rx-switch--off .rx-switch__track { background: #b8c0ba; }
.rx-switch--off .rx-switch__track::after { transform: translateX(-14px); }

.rx-note { display: flex; gap: .55rem; margin-top: 1rem; padding: .75rem .85rem; border-radius: 9px; background: #fffbeb; border: 1px solid #fde68a; color: #854d0e; font-size: .8rem; }
.rx-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: rx-spin .7s linear infinite; }
.is-loading .rx-spin { display: inline-block; }
.is-loading { cursor: wait; opacity: .85; }
.btn--danger-solid { margin-left: auto; background: #c62828; color: #fff; }
.btn--danger-solid:hover { background: #a91f1f; opacity: 1; }
body.modal-open, body.qr-modal-open { overflow: hidden; }

/* QR ampliado */
.rx-fs { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(8, 18, 11, .94); }
.rx-fs.is-open { display: flex; }
.rx-fs__box { position: relative; width: min(92vw, 720px); max-height: 96vh; overflow: auto; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 22px; background: #fff; text-align: center; }
.rx-fs__title { font-size: clamp(1.2rem, 3vw, 1.75rem); line-height: 1.2; }
.rx-fs__hint { margin-top: .35rem; color: var(--muted); }
.rx-fs__img { display: block; width: min(76vw, 560px); max-height: 66vh; height: auto; margin: 1rem auto 0; object-fit: contain; image-rendering: pixelated; }
.rx-fs__close { position: absolute; top: .7rem; right: .7rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 900px) { .rx-top { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .rx-qr { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rx-qr__body { width: 100%; }
  .rx-qr__actions { justify-content: center; }
}
@media (max-width: 600px) {
  .rx-head { align-items: stretch; }
  .rx-tabs { width: 100%; } .rx-tab { flex: 1; text-align: center; }
  .rx-panel__head .btn, .rx-new .btn { width: 100%; justify-content: center; }
  .modalf__actions { flex-direction: column-reverse; } .modalf__actions .btn { justify-content: center; width: 100%; }
}

/* ════════════════════════════════════════════════════════════════
   FORMULARIO PÚBLICO
   ════════════════════════════════════════════════════════════════ */
.pub-hero { position: relative; overflow: hidden; padding: clamp(1.75rem, 5vw, 3.25rem) 1.25rem clamp(5.5rem, 11vw, 7.5rem); color: #fff; background: radial-gradient(120% 140% at 85% -20%, rgba(255, 255, 255, .13), transparent 55%), linear-gradient(135deg, var(--accent-dark) 0%, #14532a 58%, var(--accent-2) 100%); }
/* Símbolo de Contactamos (solo el globo, sin nombre ni eslogan) como marca de agua en el verde */
.pub-hero::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: clamp(380px, 52vw, 640px); aspect-ratio: 2220 / 1890; right: clamp(-150px, -9vw, -50px); top: 50%; transform: translateY(-50%) rotate(-8deg);
  background: url('../img/logo.png') center / contain no-repeat; filter: brightness(0) invert(1); opacity: .09;
  -webkit-mask-image: linear-gradient(100deg, transparent 5%, #000 55%); mask-image: linear-gradient(100deg, transparent 5%, #000 55%);
}
.pub-hero__inner { z-index: 1; position: relative; max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem 2.5rem; }
.pub-brand { display: inline-flex; padding: .5rem .9rem; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55); }
.pub-brand img { display: block; height: 44px; width: auto; }
.pub-hero__marca { display: block; margin-bottom: .9rem; font-size: .74rem; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.pub-hero__title { margin-top: 0; font-size: clamp(1.9rem, 5.2vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.pub-hero__lead { margin-top: .85rem; max-width: 48ch; color: rgba(255, 255, 255, .86); font-size: clamp(.95rem, 2.2vw, 1.08rem); line-height: 1.55; }

.pub-shell { position: relative; max-width: 760px; margin: calc(-1 * clamp(3.25rem, 7vw, 4.5rem)) auto 3rem; padding: .5rem; border-radius: 28px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px var(--rx-ring), 0 40px 70px -40px rgba(15, 61, 28, .55); }
.pub-core { padding: clamp(1.25rem, 4.5vw, 2.5rem); border-radius: 22px; background: #fff; box-shadow: inset 0 1px 0 #fff; }
.pub-shell { animation: rx-rise .8s var(--rx-ease) both; }

.pub-error { margin-bottom: 1.25rem; padding: .8rem 1rem; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: .9rem; }

.pub-seccion { min-width: 0; margin: 0 0 1.75rem; padding: 0; border: 0; }
.pub-seccion__titulo { display: flex; align-items: center; gap: .6rem; width: 100%; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border); font-size: 1rem; font-weight: 750; color: var(--text); }
.pub-seccion__num { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-2-soft); color: var(--accent-2); font-size: .78rem; font-weight: 800; }
.pub-seccion__ayuda { margin: -.35rem 0 1rem; color: var(--muted); font-size: .85rem; }
.pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.pub-full { grid-column: 1 / -1; }

.pub-core .form-input, .pub-core .form-select { padding: .7rem .85rem; border-radius: 11px; }
.pub-core .form-label { text-transform: none; letter-spacing: 0; font-size: .82rem; color: #2d3a31; }
.pub-core input[type="file"] { padding: .5rem; background: var(--ground); }
.pub-core input[type="file"]::file-selector-button { margin-right: .8rem; padding: .45rem .9rem; border: 0; border-radius: 8px; background: var(--accent-2); color: #fff; font: inherit; font-size: .82rem; font-weight: 650; cursor: pointer; }

/* Asistente por pasos: sin JavaScript el formulario se ve completo. */
.pub-progreso { margin-bottom: 1.6rem; scroll-margin-top: 1rem; }
.pub-progreso[hidden] { display: none; }
.pub-progreso__texto { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; }
.pub-progreso__texto span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.pub-progreso__texto strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.pub-progreso__barra { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .4rem; }
.pub-progreso__barra span { position: relative; height: 6px; overflow: hidden; border-radius: 99px; background: var(--surface); }
.pub-progreso__barra span::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--rx-ease); }
.pub-progreso__barra .is-hecho::after, .pub-progreso__barra .is-actual::after { transform: scaleX(1); }
.pub-progreso__barra .is-actual::after { background: linear-gradient(90deg, var(--accent-2), #5fa66e); }
.pub-wizard .pub-paso { display: none; }
.pub-wizard .pub-paso.is-activo { display: block; animation: rx-rise .5s var(--rx-ease) both; }
.pub-wizard .pub-seccion:last-child { margin-bottom: .5rem; }
.pub-nav { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.pub-nav .pub-enviar { flex: 1; }
.pub-nav [hidden] { display: none; }
.pub-atras { flex: 0 0 auto; padding: .95rem 1.4rem; border: 0; border-radius: 99px; background: var(--ground); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; box-shadow: 0 0 0 1.5px var(--border); transition: box-shadow .3s var(--rx-ease), transform .3s var(--rx-ease); }
.pub-atras:hover { box-shadow: 0 0 0 1.5px var(--surface-2); }
.pub-atras:active { transform: scale(.985); }
.pub-atras:focus-visible { outline: 3px solid rgba(27, 107, 46, .4); outline-offset: 3px; }

/* Opciones seleccionables (fuente y red social) */
.pub-opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.pub-opcion { position: relative; display: block; cursor: pointer; }
.pub-opcion input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pub-opcion__cuerpo { display: flex; flex-direction: column; justify-content: center; gap: .15rem; height: 100%; min-height: 62px; padding: .8rem .95rem; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1.5px var(--border); transition: box-shadow .3s var(--rx-ease), background .3s var(--rx-ease), transform .3s var(--rx-ease); }
.pub-opcion__cuerpo strong { font-size: .92rem; line-height: 1.25; }
.pub-opcion__cuerpo small { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.pub-opcion:hover .pub-opcion__cuerpo { box-shadow: 0 0 0 1.5px var(--surface-2); background: var(--ground); }
.pub-opcion input:checked + .pub-opcion__cuerpo { background: var(--accent-2-soft); box-shadow: 0 0 0 2px var(--accent-2); }
.pub-opcion input:focus-visible + .pub-opcion__cuerpo { outline: 3px solid rgba(27, 107, 46, .35); outline-offset: 2px; }
.pub-opcion:active .pub-opcion__cuerpo { transform: scale(.985); }

.pub-redes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pub-opciones:not(.pub-redes) > .pub-opcion:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pub-red .pub-opcion__cuerpo { align-items: center; justify-content: center; gap: .45rem; padding: .85rem .5rem; text-align: center; }
.pub-red img { width: 30px; height: 30px; }
.pub-red strong { font-size: .82rem; }

/* Datos adicionales según la fuente */
.pub-detalle { margin-top: 1rem; padding: 1.1rem 1.15rem .35rem; border-radius: 16px; background: var(--ground); box-shadow: 0 0 0 1px var(--border); animation: rx-rise .5s var(--rx-ease) both; }
.pub-detalle[hidden], .pub-bloque[hidden] { display: none; }
.pub-bloque { margin-bottom: .35rem; animation: rx-rise .5s var(--rx-ease) both; }
.pub-bloque__titulo { margin-bottom: .6rem; font-size: .85rem; font-weight: 700; color: var(--text); }
.pub-detalle .form-input, .pub-detalle .form-select { background: #fff; }
.pub-vacio { margin-bottom: .9rem; padding: .7rem .85rem; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #854d0e; font-size: .84rem; }

/* Envío */
.pub-enviar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; padding: .55rem .6rem .55rem 1.5rem; border: 0; border-radius: 99px; background: var(--accent-2); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .3s var(--rx-ease), transform .3s var(--rx-ease); }
.pub-enviar:hover { background: var(--accent-hover); }
.pub-enviar:active { transform: scale(.985); }
.pub-enviar:focus-visible { outline: 3px solid rgba(27, 107, 46, .4); outline-offset: 3px; }
.pub-enviar__icono { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: transform .3s var(--rx-ease); }
.pub-enviar:hover .pub-enviar__icono { transform: translateX(3px); }
.pub-enviar:disabled { cursor: wait; opacity: .85; }
.pub-enviar.is-loading .pub-enviar__icono svg { display: none; }
.pub-enviar.is-loading .pub-enviar__icono::after { content: ''; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: rx-spin .7s linear infinite; }
.pub-legal { margin-top: .9rem; text-align: center; color: var(--muted); font-size: .78rem; }

/* Tami en la portada, la guía de pasos y la confirmación */
.pub-hero__tami { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; padding-right: .5rem; }
.pub-hero__tami .tami-escena { --tami: 188px; }
.pub-hero__tami .tami-escena::before { border-color: rgba(255, 255, 255, .45); }
.pub-hero__tami .tami-retrato { box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(255, 255, 255, .3), 0 30px 40px -20px rgba(0, 0, 0, .55); }
.tami-burbuja--izq { right: auto; left: -58%; top: 8%; border-radius: 16px 16px 4px 16px; transform-origin: 100% 100%; text-align: right; white-space: normal; width: max-content; max-width: 9.5rem; }
.tami-burbuja--izq::before { left: auto; right: 14px; }

.pub-guia { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.pub-guia__msg { position: relative; margin: 0; padding: .65rem .9rem; border-radius: 4px 16px 16px 16px; background: var(--accent-2-soft); color: #1b4a28; font-size: .9rem; font-weight: 650; line-height: 1.35; box-shadow: inset 0 0 0 1px rgba(27, 107, 46, .1); }
.pub-guia__msg.is-nuevo { animation: rx-rise .45s var(--rx-ease) both; }

.pub-exito__tami { display: flex; justify-content: center; margin-bottom: 1.6rem; }
.pub-exito__tami .tami-escena { --tami: 176px; }
.pub-exito__check { position: absolute; right: 2%; bottom: 4%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-2); color: #fff; box-shadow: 0 0 0 4px #fff, 0 12px 20px -8px rgba(15, 61, 28, .6); animation: tami-pop .6s .9s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* Confirmación */
.pub-exito { padding: 1.5rem 0 .5rem; text-align: center; }
.pub-exito__marca { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--accent-2-soft); color: var(--accent-2); box-shadow: 0 0 0 8px rgba(227, 242, 230, .55); }
.pub-exito h2 { font-size: 1.6rem; letter-spacing: -0.01em; }
.pub-exito p { max-width: 42ch; margin: .6rem auto 0; color: var(--muted); }

@media (max-width: 600px) {
  .pub-hero { padding-top: 1.6rem; padding-bottom: 5.2rem; }
  /* Marca de agua alineada a la izquierda */
  .pub-hero::before { width: 380px; top: 34%; left: -150px; right: auto; transform: translateY(-50%) rotate(8deg); opacity: .11; -webkit-mask-image: linear-gradient(80deg, #000 35%, transparent 95%); mask-image: linear-gradient(80deg, #000 35%, transparent 95%); }
  .pub-hero__inner { grid-template-columns: 1fr; grid-template-rows: minmax(142px, auto) auto; gap: 0; }
  .pub-hero__texto { display: contents; }
  .pub-hero__cabeza { align-self: center; max-width: calc(100% - 112px); }
  .pub-hero__marca { margin-bottom: .6rem; font-size: .66rem; letter-spacing: .28em; }
  .pub-hero__title { font-size: 1.85rem; }
  .pub-hero__lead { margin-top: .5rem; }
  .pub-hero__tami { position: absolute; top: 0; right: 0; gap: .3rem; padding: 0; }
  .pub-hero__tami .tami-escena { --tami: 88px; }
  .pub-hero__tami .tami-escena::before, .pub-hero__tami .tami-escena::after, .pub-hero__tami .tami-burbuja { display: none; }
  .pub-hero__tami .tami-firma__nombre { font-size: 2.1rem; }
  .pub-hero__tami .tami-retrato { box-shadow: 0 0 0 3px #fff, 0 14px 20px -10px rgba(0, 0, 0, .55); }
  .pub-guia { gap: .65rem; } .pub-guia__msg { font-size: .85rem; }
  .pub-grid { grid-template-columns: 1fr; }
  .pub-full { grid-column: auto; }
  .pub-opcion__cuerpo { padding: .7rem .75rem; }
  .pub-opcion__cuerpo small { font-size: .72rem; }
  .pub-redes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pub-shell { margin-left: .6rem; margin-right: .6rem; border-radius: 22px; }
  .pub-core { border-radius: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .pub-shell, .pub-wizard .pub-paso.is-activo, .pub-detalle, .pub-bloque, .pub-guia__msg.is-nuevo, .pub-exito__check { animation: none; }
  .pub-progreso__barra span::after, .pub-atras { transition: none; }
  .pub-opcion__cuerpo, .pub-enviar, .pub-enviar__icono, .rx-kpi, .rx-tab, .rx-switch, .rx-switch__track::after { transition: none; }
}


/* Aviso de información de la metodología anterior pendiente de migrar */
.rx-legado { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; padding: .95rem 1.1rem; border-radius: 14px; background: #fffbeb; box-shadow: 0 0 0 1px #fde68a, 0 14px 26px -22px rgba(133, 77, 14, .5); color: #854d0e; }
.rx-legado__texto { flex: 1 1 340px; font-size: .88rem; line-height: 1.5; }
.rx-legado__texto strong { display: block; margin-bottom: .1rem; color: #713f12; font-size: .95rem; }
.rx-legado .btn { background: #854d0e; color: #fff; }
.rx-paso { display: flex; gap: .7rem; align-items: flex-start; margin-top: .9rem; font-size: .88rem; color: var(--muted); }
.rx-paso__num { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-2-soft); color: var(--accent-2); font-size: .76rem; font-weight: 800; }
.rx-check { display: flex; gap: .55rem; align-items: flex-start; margin-top: 1rem; font-size: .85rem; cursor: pointer; }
.rx-check input { margin-top: .2rem; accent-color: var(--accent-2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Selección y envío a Hunty ─────────────────────────────────────── */
.rx-bulk { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .75rem 1.15rem; border-bottom: 1px solid var(--border); background: #fbfdfb; }
.rx-selall { display: inline-flex; align-items: center; gap: .55rem; font-size: .82rem; font-weight: 650; cursor: pointer; }
.rx-selall input, .rx-name input { width: 17px; height: 17px; accent-color: var(--accent-2); cursor: pointer; flex-shrink: 0; }
.rx-bulk__count { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rx-bulk .btn { margin-left: auto; }
.rx-name { display: flex; align-items: center; gap: .65rem; cursor: pointer; font-weight: inherit; min-width: 0; }
.rx-name span { overflow: hidden; text-overflow: ellipsis; }

/* En el celular la tabla se lee como tarjetas (la casilla queda junto al nombre) */
@media (max-width: 720px) {
  .rx-table--cards { display: block; width: 100%; min-width: 0; }
  .rx-table--cards thead { display: none; }
  .rx-table--cards tbody { display: grid; gap: .75rem; padding: .75rem; }
  .rx-table--cards tr { display: block; padding: .9rem 1rem; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--border), 0 12px 22px -20px var(--rx-tint); }
  .rx-table--cards td, .rx-table--cards td:first-child { position: static; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; min-width: 0; max-width: none; padding: .38rem 0; border: 0; border-bottom: 1px dashed var(--border); box-shadow: none; background: transparent !important; text-align: right; white-space: normal; overflow: visible; }
  .rx-table--cards td:last-child { border-bottom: 0; }
  .rx-table--cards td::before { content: attr(data-label); flex-shrink: 0; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; }
  .rx-table--cards td[data-principal] { display: block; padding: 0 0 .6rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 1.02rem; font-weight: 800; }
  .rx-table--cards td[data-principal]::before { content: none; }
  .rx-table--cards .rx-cell-detail { max-width: none; }
  .rx-table--cards .rx-empty { display: block; text-align: center; }
  .rx-table--cards .rx-empty::before { content: none; }
  .rx-bulk { gap: .6rem .9rem; }
  .rx-bulk .btn { flex: 1 1 100%; margin-left: 0; justify-content: center; }
}
