/* Tipografías de la Suite Digital Carmelo: Inter para todo, Cinzel para el título. */
@font-face { font-family: 'Inter'; src: url('fonts/Inter-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('fonts/Cinzel-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  /* Colores de la Suite Digital Carmelo: cabecera azul noche, pantallas de trabajo claras */
  --navy: #0d0e32;
  --navy-dark: #06071f;
  --bg: #f5f6fb;
  --card: #ffffff;
  --line: #e4e6f0;
  --surface: #f7f8fc;
  --surface-2: #eceef6;
  --stage: #e9ebf3;
  --ink: #171923;
  --muted: #666b80;
  --shadow: 0 8px 24px rgba(23, 25, 35, 0.07);
  --accent: #d3ac49;
  --accent-light: #fcca55;
  --gold-grad: linear-gradient(135deg, #f7dc8a 0%, #d3ac49 45%, #a8812a 100%);
  --accent-ink: #0d0e32;
  --danger: #e0455f;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --s-sm: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --s-body: 1rem;
  --s-title: 1.75rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--s-body)/1.5 'Inter', system-ui, sans-serif;
  letter-spacing: 0.005em;
}
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }

.app {
  display: grid;
  grid-template-columns: minmax(340px, 400px) 1fr;
  height: 100vh;
}

/* ---------- Panel ---------- */
.panel {
  overflow-y: auto;
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
h1 {
  margin: 0;
  font-family: 'Cinzel', Georgia, serif;
  font-size: var(--s-title);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff3cf 0%, #fcca55 45%, #c99a2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.block { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
legend, summary { font-weight: 700; padding: 0; margin-bottom: 10px; }
.hint { margin: -6px 0 0; color: var(--muted); font-size: var(--s-sm); }

.events { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.formats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.option input:checked + span { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--accent); }
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .option input:not(:checked):hover + span { background: var(--surface-2); }
}
.swatch { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; flex: none; }

.formats .option span { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 4px; text-align: center; font-size: var(--s-sm); line-height: 1.2; min-height: 96px; }
.formats small { color: var(--muted); font-size: var(--s-sm); }
.shape { display: block; border: 2px solid currentColor; border-radius: 3px; opacity: 0.85; }

.texts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.texts li { display: flex; gap: 8px; }
.texts input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  font-size: 1.0625rem;
}
.texts input:focus-visible { outline-offset: 0; }
.remove {
  flex: none;
  width: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.remove svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .remove:hover { color: var(--ink); background: var(--surface-2); } }

.link {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.07em;
}
.link[disabled] { opacity: 0.4; cursor: default; }

.more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease-out); }
.more[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.more[open] { gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--s-sm); color: var(--muted); }
.field output { color: var(--ink); font-variant-numeric: tabular-nums; }
input[type='range'] { accent-color: var(--accent); width: 100%; }
.seg { display: flex; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 40px; border-radius: 8px; background: var(--surface); color: var(--ink); font-variant-numeric: tabular-nums; }
.seg input:checked + span { box-shadow: inset 0 0 0 2px var(--accent); background: var(--surface-2); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 32px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.go { margin-top: auto; display: flex; flex-direction: column; gap: 12px; position: sticky; bottom: -32px; padding: 16px 0 32px; background: var(--bg); }
.primary, .secondary {
  height: 52px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.primary { background: var(--gold-grad); color: var(--accent-ink); box-shadow: 0 12px 28px -12px rgba(211, 172, 73, 0.8); }
.secondary { background: var(--surface-2); color: var(--ink); padding: 0 20px; height: 44px; font-size: var(--s-body); }
.primary:active, .secondary:active { transform: scale(0.97); }
.primary[disabled] { opacity: 0.5; cursor: default; }
.progress p { margin: 8px 0 0; display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transform-origin: left; }
.error { margin: 0; color: var(--danger); }

/* ---------- Vista previa ---------- */
.stage {
  background: var(--stage);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  gap: 16px;
  overflow: hidden;
}
.screen {
  flex: 1;
  min-height: 0;
  position: relative;
  display: grid;
  place-items: center;
}
canvas { display: block; background: #000; }
.loading { position: absolute; margin: 0; color: var(--muted); }
.transport { display: flex; align-items: center; gap: 14px; }
.play {
  width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%;
  background: var(--surface-2);
  display: grid; place-items: center;
  cursor: pointer;
}
.play svg { width: 18px; height: 18px; fill: var(--ink); }
#time { min-width: 4.5em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.result {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 20px;
  align-items: center;
  background: var(--bg);
  border-radius: 8px;
  padding: 16px;
}
.result video { width: 100%; max-height: 150px; background: #000; border-radius: 4px; }
.resultInfo p { margin: 0 0 8px; }
.resultActions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 12px; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; height: auto; }
  .stage { order: -1; padding: 16px; }
  .screen { min-height: 0; height: 56vh; }
  .panel { padding: 24px 16px 32px; overflow: visible; }
  .go { bottom: 0; padding-bottom: 16px; }
  .result { grid-template-columns: 1fr; }
}

[hidden] { display: none !important; }

/* ---------- Efectos ---------- */
.addEffect { display: flex; gap: 8px; }
.addEffect select, .field select {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  font-size: var(--s-body);
}
.effects { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.effects:empty { display: none; }
.effects li {
  display: grid;
  grid-template-columns: 64px 1fr auto 36px 36px 36px;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 10px;
  border-radius: 8px;
  background: var(--surface);
}
.effects li.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.effects .kind { font-size: var(--s-sm); color: var(--muted); }
.effects .name { background: none; border: 0; padding: 0; text-align: left; font-weight: 700; cursor: pointer; }
.effects .when { font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--s-sm); padding-right: 4px; }
.effects .step, .effects .remove { width: 36px; height: 36px; border: 0; border-radius: 6px; background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 1.125rem; line-height: 1; }
.effects .remove svg { width: 16px; height: 16px; }

/* ---------- Música ---------- */
.music { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.musicName { color: var(--muted); font-size: var(--s-sm); overflow-wrap: anywhere; flex: 1; min-width: 8em; }
.musicOptions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Línea de tiempo ---------- */
.transport { align-items: flex-end; }
.timeline { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.markers { position: relative; height: 56px; }
.marker {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: var(--s-sm);
  white-space: nowrap;
  cursor: grab;
  touch-action: none;
}
.marker.up { bottom: 30px; }
.marker::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 2px; height: 6px; margin-left: -1px; background: currentColor; opacity: 0.6; }
.marker.up::after { height: 36px; bottom: -36px; }
.marker.kind-camara { box-shadow: inset 0 0 0 1.5px var(--accent); }
.marker.kind-luz { background: var(--ink); color: var(--bg); }
.marker.sel { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.marker:active { cursor: grabbing; }
.lane {
  position: relative;
  height: 40px;
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  touch-action: none;
  overflow: hidden;
}
.segments { display: flex; height: 100%; }
.segments span {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: var(--s-sm);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.segments span:nth-child(even) { background: var(--surface-2); }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.transport .play { margin-bottom: -2px; }
#time { padding-bottom: 10px; }
.field select { flex: none; }

/* ---------- Detalles y fundido ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--surface); font-size: var(--s-sm); transition: background-color 160ms ease; }
.pill input:checked + span { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .pill input:not(:checked):hover + span { background: var(--surface-2); } }
.twoCols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* ---------- Tiempos por texto ---------- */
.texts li { flex-direction: column; gap: 6px; padding-bottom: 6px; }
.textRow { display: flex; gap: 8px; }
.timing { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; align-items: end; }
.timing label { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: var(--s-sm); color: var(--muted); }
.timing select { width: 100%; height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--surface); font-size: var(--s-sm); color: var(--ink); min-width: 0; }
.hold { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: var(--s-sm); color: var(--muted); }
.hold output { min-width: 3.5em; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }
.hold .step { width: 36px; height: 32px; border: 0; border-radius: 6px; background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 1.125rem; line-height: 1; }

/* ---------- Márgenes seguros (solo en la vista previa) ---------- */
.safe { position: absolute; pointer-events: none; }
.safe i { position: absolute; border: 1px dashed rgba(255, 255, 255, 0.55); }
.safe .action { inset: 3.5%; }
.safe .title { inset: 5%; border-color: rgba(252, 202, 85, 0.8); }
.safe b { position: absolute; top: 4px; left: 6px; font: 600 11px/1 'Inter', sans-serif; color: rgba(255, 255, 255, 0.75); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.safe .title b { top: auto; bottom: 4px; color: rgba(252, 202, 85, 0.95); }
.safeToggle { flex: none; padding-bottom: 8px; font-size: var(--s-sm); color: var(--muted); }
/* ---------- Colores a elección y textos juntos ---------- */
.custom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.custom label { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 4px 6px 4px 12px; border-radius: 8px; background: var(--surface); font-size: var(--s-sm); }
.custom input[type='color'] { width: 40px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; }
.custom .link { grid-column: 1 / -1; }
.junto { grid-column: 1 / -1; font-size: var(--s-sm); color: var(--muted); }
/* ---------- Interruptor de sonido ---------- */
.switch { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span::before { content: ''; display: inline-block; vertical-align: middle; width: 44px; height: 26px; margin-right: 12px; border-radius: 13px; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); transition: background-color 160ms ease; }
.switch span::after { content: ''; position: absolute; left: 4px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--muted); transition: transform 200ms var(--ease-out), background-color 160ms ease; }
.switch input:checked + span::before { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--accent-ink); }
.switch input:focus-visible + span::before { outline: 2px solid var(--accent); outline-offset: 2px; }
.soundControls { display: flex; flex-direction: column; gap: 10px; }
.musicName { font-style: italic; }
/* ---------- Diseño claro de la Suite (cabecera azul, adentro claro) ---------- */
body { display: flex; flex-direction: column; height: 100vh; }
.app { flex: 1; min-height: 0; height: auto; }
.hero {
  flex: none;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(211, 172, 73, 0.18), transparent 55%),
    radial-gradient(ellipse at 100% 0%, rgba(252, 202, 85, 0.1), transparent 45%),
    var(--navy);
  color: #fff;
  border-bottom: 3px solid transparent;
  border-image: var(--gold-grad) 1;
}
.heroIn { display: flex; align-items: center; gap: 16px; padding: 12px 24px; }
.logo { width: 60px; height: 60px; object-fit: cover; mix-blend-mode: lighten; flex: none; }
.brandTexts { display: flex; flex-direction: column; min-width: 0; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.hero h1 {
  margin: 0;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  background: linear-gradient(180deg, #fff3cf 0%, #fcca55 45%, #c99a2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline { color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; }

/* Panel: cada sección es una tarjeta blanca */
.panel { gap: 14px; padding: 18px 18px 0; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
legend { float: left; width: 100%; color: var(--navy); }
legend + * { clear: both; }
.more summary { color: var(--navy); }
.go { background: var(--bg); bottom: 0; padding: 14px 0 18px; }

/* Controles claros con borde */
.option span, .texts input, .remove, .addEffect select, .field select, .seg span, .pill span,
.timing select, .custom label, .effects li, .hold .step, .effects .step, .effects .remove {
  border: 1px solid var(--line);
}
.option input:checked + span, .seg input:checked + span { background: #fbf3dc; box-shadow: inset 0 0 0 1.5px var(--accent); border-color: var(--accent); }
.pill input:checked + span { border-color: var(--accent); }
.link { color: var(--navy); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.secondary { background: var(--navy); color: #fff; }
@media (hover: hover) and (pointer: fine) { .secondary:hover { background: var(--navy-dark); } }
.bar { background: var(--surface-2); }
.bar span { background: var(--gold-grad); }
.swatch { box-shadow: 0 0 0 1px rgba(13, 14, 50, 0.15); }
.switch span::before { box-shadow: inset 0 0 0 1px var(--line); }
.switch span::after { background: #fff; box-shadow: 0 1px 3px rgba(23, 25, 35, 0.3); }
.switch input:checked + span::after { background: #fff; }

/* Vista previa: el video sobre fondo oscuro, controles claros */
.screen { background: var(--navy-dark); border-radius: 14px; }
.play { background: var(--navy); }
.play svg { fill: #fff; }
.lane { background: var(--card); border: 1px solid var(--line); }
.marker { background: var(--card); border: 1px solid var(--line); color: var(--navy); box-shadow: var(--shadow); }
.marker.kind-camara { box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow); }
.marker.kind-luz { background: var(--navy); color: #fff; border-color: var(--navy); }
.marker.sel { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.result { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }

@media (max-width: 860px) {
  body { height: auto; }
  .heroIn { padding: 10px 16px; }
  .logo { width: 48px; height: 48px; }
  .hero h1 { font-size: 1.35rem; }
  .tagline { display: none; }
  .screen { border-radius: 0; }
}
.panel { overflow-x: hidden; }
.formats .option { min-width: 0; }
.formats .option span { padding: 10px 4px; }
.events .option, .pills .pill { min-width: 0; }

.formats { grid-template-columns: repeat(3, 1fr); }
.formats .option span { min-height: 84px; }
.timing .junto { flex-direction: row; align-items: center; gap: 10px; }
.junto input { flex: none; width: 18px; height: 18px; margin: 0; }
@media (max-width: 860px) {
  .transport { flex-wrap: wrap; }
  .timeline { flex-basis: 100%; order: -1; }
  .screen { height: 42vh; }
  .eyebrow { letter-spacing: 0.12em; font-size: 0.62rem; }
}

/* ---------- Ingreso con la cuenta de Digital Carmelo ---------- */
.cuenta { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: var(--s-sm); color: rgba(255, 255, 255, 0.82); }
.btnHero { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 8px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .btnHero:hover { background: rgba(255, 255, 255, 0.15); } }
.login { flex: 1; display: grid; place-items: start center; padding: 48px 16px; overflow-y: auto; }
.loginCard { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.loginCard h2 { margin: 0; color: var(--navy); font-size: 1.35rem; }
.loginCard .hint { margin: 0; }
.loginCard input { height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: var(--s-body); color: var(--ink); }
.loginCard .link { align-self: center; }
.ok { margin: 0; color: #1f7a50; font-size: var(--s-sm); }

/* Acceso: misma base azul noche y dorado de la Suite. */
body.auth-screen { min-height: 100svh; height: auto; background: #0a0e1a; color: #f3efe6; color-scheme: dark; }
.auth-screen .hero { background: #0a0e1a; border-image: none; border-bottom: 1px solid rgb(226 184 102 / 18%); }
.auth-screen .login {
  width: 100%; min-height: calc(100svh - 100px); place-items: center; padding: 48px 20px;
  background: radial-gradient(ellipse at 80% 0, rgb(111 140 245 / 13%), transparent 60%), radial-gradient(ellipse at 15% 30%, rgb(226 184 102 / 8%), transparent 55%);
}
.loginCard {
  max-width: 460px; gap: 18px; padding: 36px; border-radius: 24px;
  color: #f3efe6; background: #11162a; border: 1px solid rgb(255 255 255 / 9%);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 70%);
}
.auth-emblem { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #e2b866; border: 1px solid rgb(226 184 102 / 40%); }
.auth-emblem svg { width: 24px; height: 24px; }
.loginCard .eyebrow { margin: 0; color: #e2b866; }
.loginCard h2 { margin: 0; color: #f3efe6; font: 600 clamp(1.6rem, 5vw, 2rem)/1.2 'Cinzel', Georgia, serif; letter-spacing: -.02em; }
.loginCard .hint, .auth-status { color: #b9bccb; font-size: .875rem; line-height: 1.7; margin: 0; }
.loginCard form { display: flex; flex-direction: column; gap: 20px; margin-top: 4px; }
.loginCard .field { gap: 8px; color: #d4d4de; font-size: .8rem; font-weight: 600; letter-spacing: .03em; }
.loginCard input { width: 100%; min-width: 0; height: 48px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 12px; background: #0a0e1a; color: #f3efe6; padding: 0 14px; font-size: 1rem; }
.loginCard input::placeholder { color: #8a8fa3; }
.loginCard input:focus { border-color: #e2b866; outline: 2px solid rgb(226 184 102 / 24%); outline-offset: 1px; }
.passwordWrap { position: relative; }
.passwordWrap input { padding-right: 84px; }
.passwordToggle { position: absolute; right: 4px; top: 4px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: #f0cf86; cursor: pointer; font-size: .75rem; }
.loginCard .primary { width: 100%; min-height: 48px; border-radius: 999px; border: 0; background: linear-gradient(135deg, #f6dc9b, #c98a2e); color: #1a1408; font-weight: 700; cursor: pointer; }
.loginCard .primary:disabled { opacity: .6; cursor: wait; }
.auth-links, .auth-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.loginCard .link { align-self: center; min-height: 40px; color: #f0cf86; font-size: .85rem; text-decoration-color: rgb(226 184 102 / 45%); }
.auth-note { margin: 4px 0 0; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 9%); color: #b9bccb; text-align: center; font-size: .75rem; line-height: 1.7; }
.loginCard .error, .loginCard .ok { margin: 0; border-radius: 12px; padding: 12px; font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }
.loginCard .error { color: #ffb4be; background: rgb(224 69 95 / 10%); border: 1px solid rgb(224 69 95 / 30%); }
.loginCard .ok { color: #9fe3c4; background: rgb(79 209 154 / 8%); border: 1px solid rgb(79 209 154 / 25%); }
.auth-caps { margin: 0; color: #f0cf86; font-size: .8rem; }
.no-script { margin: 24px; text-align: center; color: #f0cf86; }
#cuentaEmail { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .auth-screen .login { padding: 28px 16px; }
  .loginCard { padding: 26px 22px; gap: 16px; }
  .heroIn { flex-wrap: wrap; gap: 12px; }
  .cuenta { flex-basis: 100%; justify-content: flex-end; font-size: .75rem; }
}
