/* public/layout-record.css -- "Grabar mi voz" simple: pasos con botones de colores (solo celular + skin Video; ver layout-record.js) */
.rg-wrap { display: none; }
html[data-layout="video"].is-big .rg-wrap { display: grid; gap: 18px; margin: 8px 0 14px; min-width: 0; }
/* los controles de siempre se esconden (siguen ahi y los botones los usan); "Más ajustes" los muestra */
html[data-layout="video"].is-big:not(.rg-more) #recordVoiceSection > :not(h2):not(.rg-wrap):not(#recStatus):not(#recTakesList):not(#recExportStatus) { display: none !important; }
html[data-layout="video"].is-big #recordVoiceSection > h2 { display: none; }
.rg-step { display: grid; gap: 10px; min-width: 0; }
.rg-step h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.02rem; font-weight: 800; }
.rg-step h3 b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.95rem; background: rgba(255, 255, 255, 0.14); }
.rg-step h3 b::before { content: attr(data-n); }
.rg-step.is-done h3 b { background: #2fbf71; color: #07210f; }
.rg-step.is-done h3 b::before { content: '✓'; }
.rg-src { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rg-s { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; min-height: 86px; padding: 8px 4px; border-radius: 20px; border: 2px solid transparent; color: #fff; font-weight: 800; font-size: 0.8rem; line-height: 1.15; text-align: center;
  background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); opacity: 0.75; transition: transform 0.12s ease, opacity 0.2s ease; }
.rg-s i { font-style: normal; font-size: 1.6rem; }
.rg-s:active { transform: scale(0.94); }
.rg-s.is-on { opacity: 1; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 10px 26px rgba(0, 0, 0, 0.4); }
.rg-list { display: grid; gap: 8px; max-height: 250px; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px; min-width: 0; }
.rg-list[hidden] { display: none; }
.rg-row { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 14px; font-weight: 700; text-align: left;
  background: rgba(255, 255, 255, 0.07); color: var(--text, #fff); border: 1.5px solid rgba(255, 255, 255, 0.16); box-shadow: none; }
.rg-row span { min-width: 0; font-size: 0.84rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rg-row i { flex: none; font-style: normal; min-width: 74px; text-align: center; padding: 7px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07070c; }
.rg-row.is-on { border-color: #2fbf71; background: rgba(47, 191, 113, 0.14); }
.rg-row.is-on i { background: #2fbf71; color: #07210f; }
.rg-row:active { transform: scale(0.98); }
.rg-tracks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rg-tracks small { width: 100%; opacity: 0.75; }
.rg-empty { margin: 0; font-size: 0.88rem; opacity: 0.8; }
.rg-info { margin: 0; font-size: 0.82rem; opacity: 0.8; }
.rg-info:empty { display: none; }
.rg-chips, .rg-fmt, .rg-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-ctl[hidden], .rg-ctl [hidden] { display: none; }
.rg-chip { min-height: 46px; padding: 8px 16px; border-radius: 999px; font-size: 0.92rem; font-weight: 800; background: rgba(255, 255, 255, 0.08); color: var(--text, #fff); border: 1.5px solid rgba(255, 255, 255, 0.2); box-shadow: none; }
.rg-chip:active { transform: scale(0.95); }
.rg-chip.is-on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07070c; border-color: transparent; box-shadow: 0 6px 18px rgb(var(--accent-rgb) / 40%); }
.rg-orbwrap { display: grid; justify-items: center; gap: 6px; }
.rg-orb { position: relative; width: 156px; height: 156px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) 0, rgba(255, 255, 255, 0.12) 0); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.1); }
.rg-wave { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 107, 139, 0.8); opacity: 0; pointer-events: none; }
.rg-orb.is-rec .rg-wave { opacity: 1; animation: rgWave 1.4s ease-out infinite; }
.rg-rec { position: relative; width: 114px; height: 114px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; border: 0; color: #07070c; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 30px rgb(var(--accent-rgb) / 45%); transition: transform 0.12s ease; }
.rg-rec:active { transform: scale(0.95); }
.rg-rec svg { width: 52px; height: 52px; fill: currentColor; }
.rg-rec.is-rec { background: linear-gradient(135deg, #e0245e, #ff6b8b); color: #fff; box-shadow: 0 10px 34px rgba(224, 36, 94, 0.55); }
.rg-clock { margin: 0; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; min-height: 1.5em; }
.rg-cap { margin: 0; font-size: 0.92rem; font-weight: 700; }
.rg-msg { margin: 0; text-align: center; font-size: 0.88rem; font-weight: 700; color: var(--danger, #ff9a8a); min-height: 1.1em; }
.rg-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rg-tile { position: relative; display: grid; place-items: center; align-content: center; gap: 6px; aspect-ratio: 1 / 1; min-height: 0; padding: 6px; border-radius: 20px; border: 0; color: #fff; font-weight: 800; font-size: 0.78rem; line-height: 1.15; text-align: center;
  background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); transition: transform 0.12s ease; }
.rg-tile i { font-style: normal; font-size: 1.7rem; }
.rg-tile:active { transform: scale(0.94); }
.rg-tile.is-off { filter: grayscale(0.85) brightness(0.8); opacity: 0.55; }
.rg-more { justify-self: center; min-height: 42px; padding: 6px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 700; background: transparent; color: var(--text, #fff); border: 1.5px dashed rgba(255, 255, 255, 0.3); box-shadow: none; }
.rg-pop { animation: rgPop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
.rg-shake { animation: rgShake 0.45s ease; }
@keyframes rgPop { 0% { transform: scale(0.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes rgShake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@keyframes rgWave { 0% { transform: scale(0.75); opacity: 0.9; } 100% { transform: scale(1.12); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rg-pop, .rg-shake, .rg-orb.is-rec .rg-wave { animation: none; } }
