:root {
  color-scheme: dark;
  --bg: #12100f;
  --panel: #1d1a17;
  --ink: #f8efe3;
  --muted: #b9aa9a;
  --line: #3c332b;
  --accent: #d8a451;
  --accent-2: #6fb7a8;
  --danger: #e06b64;
}

* {
  box-sizing: border-box;
}

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

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overflow-x: hidden;
}

body {
  background: radial-gradient(circle at top, #32271e 0, var(--bg) 42rem);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
}

/* ── Layout principal ── */

.shell {
  flex: 1;
  min-height: 0;
  width: 100dvw;
  max-width: 100dvw;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

.stage {
  width: 100%;
  max-width: 960px;
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr) auto;
  overflow: hidden;
  position: relative;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.notice {
  min-width: 0;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.notice strong {
  color: var(--ink);
}

/* ── Topbar ── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--line);
  height: 48px;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.app-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  transition: background 0.3s;
}

.status-dot.is-connected {
  background: #4caf50;
}

.status-dot.is-connecting {
  background: var(--accent);
  animation: pulse 1s infinite;
}

.status-label {
  display: inline-block;
  width: 100px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.session-meter {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  width: 56px;
  font-variant-numeric: tabular-nums;
}

.credits-display {
  display: none;
  max-width: 128px;
  color: var(--accent);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-section {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  width: 184px;
  max-width: 184px;
  overflow: hidden;
}

.google-signin-button {
  display: inline-flex;
  min-height: 32px;
  max-width: 184px;
  overflow: hidden;
}

.login-fallback {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

#sessionTimer {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

#sessionCost {
  color: var(--muted);
  font-size: 11px;
}

#micMeter {
  color: var(--muted);
  font-size: 11px;
  display: none;
}

#micMeter.is-hot {
  color: var(--accent-2);
  display: inline;
}

.icon-btn {
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--panel);
}

.icon-btn:focus-visible,
.drop-menu button:focus-visible,
.btn-voice-cta:focus-visible,
.btn-dismiss:focus-visible,
.mic-fab:focus-visible,
.copy-log-btn:focus-visible,
.dialog-close:focus-visible,
.cookie-dialog button:focus-visible,
.cookie-dialog a:focus-visible,
.cookie-preferences-link:focus-visible,
.legal-footer a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.menu-btn {
  font-size: 20px;
  border: none;
  color: var(--muted);
}

/* ── Menú desplegable ── */

.drop-menu {
  position: absolute;
  top: 48px;
  right: 8px;
  z-index: 200;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.drop-menu.hidden {
  display: none;
}

.drop-menu button {
  text-align: left;
  padding: 9px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  min-height: 0;
}

.drop-menu button:hover {
  background: var(--line);
}

.drop-menu button:disabled {
  color: #75695e;
  cursor: not-allowed;
}

.drop-menu .btn-danger {
  color: var(--danger);
}

/* ── Panel de transcripción ── */

.transcript-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 45vh;
  background: var(--panel);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  z-index: 100;
  transition: opacity 0.15s;
}

.transcript-panel.hidden {
  display: none;
}

.transcript-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 1;
}

.transcript-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.transcripts {
  padding: 12px 16px 16px;
}

.line {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.line strong {
  color: var(--accent-2);
}

/* ── Zona de cartas ── */

.reading {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 12px 6px;
  min-height: 0;
  grid-row: 2;
}

.reading-head {
  flex-shrink: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.reading h2 {
  margin: 0;
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}

.reading p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.free-reading-result {
  flex-shrink: 0;
  max-height: min(28vh, 220px);
  margin-bottom: 10px;
  padding: 10px 12px;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 8px;
  background: rgba(216, 164, 81, 0.08);
}

.free-reading-result[hidden] {
  display: none;
}

.free-reading-result h3 {
  margin: 0 0 5px;
  color: var(--accent-2);
  font-size: 14px;
}

.free-reading-result .free-reading-question {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 700;
}

.free-reading-result .free-reading-text {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.reading.has-free-reading {
  overflow: auto;
}

.reading.has-free-reading .reading-head {
  order: 1;
}

.reading.has-free-reading .cards-grid {
  order: 2;
  flex: 0 0 auto;
  min-height: unset;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
}

.reading.has-free-reading .free-reading-result {
  order: 3;
  max-height: min(22vh, 168px);
  overflow: auto;
}

.reading.has-free-reading .cards-grid.layout-classic_three {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.reading.has-free-reading .tarot-card {
  min-height: 300px;
  scroll-snap-align: start;
}

.reading.has-free-reading .card-image-wrap {
  padding: 6px;
}

.reading.has-free-reading .card-image {
  max-width: min(138px, 100%);
}

.cards-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  align-content: start;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  padding-bottom: 4px;
}

.spread-label {
  align-self: end;
  justify-self: stretch;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 4px;
  background: rgba(216, 164, 81, 0.1);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.cards-grid.layout-classic_three {
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  grid-template-areas: "c1 c2 c3";
}

.cards-grid.layout-single {
  grid-template-columns: minmax(110px, 180px);
  justify-content: center;
  grid-template-areas: "c1";
}

.cards-grid.layout-five,
.cards-grid.layout-destiny,
.cards-grid.layout-love {
  grid-template-columns: repeat(5, minmax(86px, 1fr));
  grid-template-areas: "c1 c2 c3 c4 c5";
}

.cards-grid.layout-favor_contra {
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  grid-template-areas: "c2 c1 c3";
}

.cards-grid.layout-objetivos {
  grid-template-columns: minmax(100px, 160px);
  justify-content: center;
  grid-template-areas:
    "c1"
    "c2"
    "c3";
}

.cards-grid.layout-cross_five,
.cards-grid.layout-simple_cross {
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  grid-template-rows: repeat(3, minmax(140px, auto));
}

.cards-grid.layout-cross_five {
  grid-template-areas:
    ". c3 ."
    "c1 c5 c2"
    ". c4 .";
}

.cards-grid.layout-simple_cross {
  grid-template-areas:
    ". c4 ."
    "c2 c1 c3"
    ". c5 .";
}

.cards-grid.layout-via_deseos {
  grid-template-columns: repeat(5, minmax(86px, 1fr));
  grid-template-areas: "c1 c3 c4 c5 c2";
}

.cards-grid.layout-estrella {
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  grid-template-rows: repeat(5, minmax(95px, auto));
  grid-template-areas:
    ". . c1 . ."
    ". c5 . c6 ."
    ". . c7 . ."
    ". c2 . c3 ."
    ". . c4 . .";
}

.cards-grid.layout-herradura {
  grid-template-columns: repeat(7, minmax(68px, 1fr));
  grid-template-rows: repeat(4, minmax(95px, auto));
  grid-template-areas:
    ". . . c4 . . ."
    ". c3 . . . c5 ."
    "c2 . . . . . c6"
    ". c1 . . . c7 .";
}

.cards-grid.layout-piramide {
  grid-template-columns: repeat(9, minmax(56px, 1fr));
  grid-template-rows: auto minmax(96px, auto) auto minmax(96px, auto) auto minmax(96px, auto) auto minmax(96px, auto) auto minmax(96px, auto);
  grid-template-areas:
    ". . . . g1 . . . ."
    ". . . . c1 . . . ."
    ". . . g2 g2 g2 . . ."
    ". . . c2 . c3 . . ."
    ". . g3 g3 g3 g3 g3 . ."
    ". . c4 . c5 . c6 . ."
    ". g4 g4 g4 g4 g4 g4 g4 ."
    ". c7 . c8 . c9 . c10 ."
    "g5 g5 g5 g5 g5 g5 g5 g5 g5"
    "c11 . c12 . c13 . c14 . c15";
}

.cards-grid.layout-tres_septenarios {
  grid-template-columns: repeat(7, minmax(60px, 1fr));
  grid-template-rows: auto minmax(95px, auto) auto minmax(95px, auto) auto minmax(95px, auto) minmax(95px, auto);
  grid-template-areas:
    "g1 g1 g1 g1 g1 g1 g1"
    "c1 c2 c3 c4 c5 c6 c7"
    "g2 g2 g2 g2 g2 g2 g2"
    "c8 c9 c10 c11 c12 c13 c14"
    "g3 g3 g3 g3 g3 g3 g3"
    "c15 c16 c17 c18 c19 c20 c21"
    ". . . c22 . . .";
}

.cards-grid.layout-arbol_vida {
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  grid-template-rows: repeat(4, minmax(88px, auto)) auto minmax(88px, auto);
  grid-template-areas:
    ". . c10 . ."
    ". c3 . c6 ."
    ". c2 c9 c7 ."
    ". c4 c8 c5 ."
    "g1 g1 g2 g3 g3"
    ". . c1 . .";
}

.cards-grid.layout-career {
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  grid-template-areas:
    "c1 c2 c3 c4"
    ". c5 c6 c7";
}

.cards-grid.spread-celtic {
  grid-template-columns: repeat(5, minmax(86px, 1fr));
  grid-template-rows: repeat(4, minmax(150px, auto));
  align-items: stretch;
}

/* Cruz Celta — cruz central (c1+c2 cruzándose en el centro, c3 arriba,
 * c4 abajo, c5 a la izquierda, c6 a la derecha) + bastón vertical a la
 * derecha (c10 arriba → c7 abajo). */
.cards-grid.layout-celtic_cross {
  grid-template-columns: repeat(5, minmax(86px, 1fr));
  grid-template-rows: repeat(4, minmax(130px, auto));
  grid-template-areas:
    ".  c3 .  .  c10"
    "c5 c1 c2 c6 c9"
    ".  c4 .  .  c8"
    ".  .  .  .  c7";
}

/* Fallback para .spread-celtic sin áreas explícitas (orden de inserción). */
.cards-grid.spread-celtic {
  grid-template-columns: repeat(5, minmax(86px, 1fr));
  grid-template-rows: repeat(4, minmax(130px, auto));
}
.cards-grid.spread-celtic .tarot-card:nth-child(1)  { grid-column: 2; grid-row: 2; }
.cards-grid.spread-celtic .tarot-card:nth-child(2)  { grid-column: 3; grid-row: 2; }
.cards-grid.spread-celtic .tarot-card:nth-child(3)  { grid-column: 2; grid-row: 1; }
.cards-grid.spread-celtic .tarot-card:nth-child(4)  { grid-column: 2; grid-row: 3; }
.cards-grid.spread-celtic .tarot-card:nth-child(5)  { grid-column: 1; grid-row: 2; }
.cards-grid.spread-celtic .tarot-card:nth-child(6)  { grid-column: 4; grid-row: 2; }
.cards-grid.spread-celtic .tarot-card:nth-child(7)  { grid-column: 5; grid-row: 4; }
.cards-grid.spread-celtic .tarot-card:nth-child(8)  { grid-column: 5; grid-row: 3; }
.cards-grid.spread-celtic .tarot-card:nth-child(9)  { grid-column: 5; grid-row: 2; }
.cards-grid.spread-celtic .tarot-card:nth-child(10) { grid-column: 5; grid-row: 1; }

.cards-grid.spread-simple_cross {
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  grid-template-rows: repeat(3, minmax(150px, auto));
  align-items: stretch;
}

.cards-grid.spread-simple_cross .tarot-card:nth-child(1) { grid-column: 2; grid-row: 2; }
.cards-grid.spread-simple_cross .tarot-card:nth-child(2) { grid-column: 1; grid-row: 2; }
.cards-grid.spread-simple_cross .tarot-card:nth-child(3) { grid-column: 3; grid-row: 2; }
.cards-grid.spread-simple_cross .tarot-card:nth-child(4) { grid-column: 2; grid-row: 1; }
.cards-grid.spread-simple_cross .tarot-card:nth-child(5) { grid-column: 2; grid-row: 3; }

.cards-grid.spread-five,
.cards-grid.spread-destiny {
  grid-template-columns: repeat(5, minmax(86px, 1fr));
}

.cards-grid.spread-career {
  grid-template-columns: repeat(4, minmax(86px, 1fr));
}

/* Adaptación al contenedor:
 *   - mantenemos siempre las grid-template-areas (la forma geométrica de la tirada)
 *   - reducimos los minmax y los gaps en pantallas estrechas para que la
 *     forma quepa entera sin perder su silueta.
 *   - el zoom de carta sigue disponible al hacer tap. */
@media (max-width: 720px) {
  .cards-grid {
    gap: 4px;
  }
  .cards-grid.layout-classic_three,
  .cards-grid.layout-favor_contra { grid-template-columns: repeat(3, minmax(64px, 1fr)); }

  .cards-grid.layout-single { grid-template-columns: minmax(72px, 160px); }

  .cards-grid.layout-five,
  .cards-grid.layout-destiny,
  .cards-grid.layout-love,
  .cards-grid.layout-via_deseos { grid-template-columns: repeat(5, minmax(56px, 1fr)); }

  .cards-grid.layout-cross_five,
  .cards-grid.layout-simple_cross {
    grid-template-columns: repeat(3, minmax(60px, 1fr));
    grid-template-rows: repeat(3, minmax(90px, auto));
  }

  .cards-grid.layout-estrella {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    grid-template-rows: repeat(5, minmax(70px, auto));
  }

  .cards-grid.layout-herradura {
    grid-template-columns: repeat(7, minmax(40px, 1fr));
    grid-template-rows: repeat(4, minmax(70px, auto));
  }

  .cards-grid.layout-piramide {
    grid-template-columns: repeat(9, minmax(32px, 1fr));
  }

  .cards-grid.layout-tres_septenarios {
    grid-template-columns: repeat(7, minmax(40px, 1fr));
    grid-template-rows: auto minmax(70px, auto) auto minmax(70px, auto) auto minmax(70px, auto) minmax(70px, auto);
  }

  .cards-grid.layout-arbol_vida {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    grid-template-rows: repeat(4, minmax(70px, auto)) auto minmax(70px, auto);
  }

  .cards-grid.layout-career,
  .cards-grid.spread-career { grid-template-columns: repeat(4, minmax(60px, 1fr)); }

  .cards-grid.spread-celtic,
  .cards-grid.layout-celtic_cross {
    grid-template-columns: repeat(5, minmax(56px, 1fr));
    grid-template-rows: repeat(4, minmax(85px, auto));
  }

  .reading.has-free-reading .cards-grid.layout-classic_three {
    grid-template-columns: repeat(3, minmax(132px, 1fr));
  }

  .reading.has-free-reading .tarot-card {
    min-height: 276px;
  }

  .reading.has-free-reading .card-image {
    max-width: min(122px, 100%);
  }
}

/* En pantallas muy estrechas (móvil retrato), texto interno más compacto
 * para que las cartas quepan sin desbordar. */
@media (max-width: 480px) {
  .tarot-card { padding: 4px; gap: 2px; }
  .tarot-card .position { font-size: 9px; }
  .tarot-card h3 { font-size: 10px; }
  .tarot-card .meaning { font-size: 9px; }
  .tarot-card .orientation { font-size: 9px; }
}

.cards-grid:empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(216, 164, 81, 0.06), transparent),
    #151210;
}

.cards-grid:empty::before {
  content: "Las cartas aparecerán aquí durante la tirada.";
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

/* ── Carta individual ── */

.tarot-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 4px;
  padding: 6px;
  border: 1px solid #9e7c42;
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(216, 164, 81, 0.18), transparent 34%),
    linear-gradient(180deg, #2c241c, #161311);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(10px) rotate(-1deg);
  animation: reveal-card 360ms ease forwards;
  cursor: zoom-in;
  min-height: 0;
  min-width: 0;
  aspect-ratio: 2 / 3;
}

.tarot-card:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.card-image-wrap {
  display: grid;
  place-items: center;
  padding: 4px;
  border: 1px solid #6f5635;
  border-radius: 4px;
  background: #e8dcc4;
  overflow: hidden;
  min-height: 0;
}

.card-image {
  width: 100%;
  max-width: min(86px, 100%);
  aspect-ratio: 1086 / 1810;
  object-fit: contain;
  border: 1px solid #33281c;
  background: #d8c7a4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
  transition: transform 220ms ease;
}

.tarot-card.is-reversed .card-image {
  transform: rotate(180deg);
}

.tarot-card.is-reversed {
  border-color: #c87954;
}

.card-fallback {
  display: grid;
  place-items: center;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(216, 164, 81, 0.3), transparent 35%),
    linear-gradient(45deg, #2b2119, #67512f);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.card-fallback::before {
  content: "";
  grid-area: 1 / 1;
  width: 44%;
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  transform: rotate(45deg);
}

.card-fallback span {
  grid-area: 1 / 1;
  max-width: 90%;
  padding: 6px;
  background: rgba(23, 20, 18, 0.68);
}

.tarot-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.tarot-card .position {
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 700;
}

.tarot-card .meaning {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tarot-card .orientation {
  width: fit-content;
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.tarot-card.is-reversed .orientation {
  border-color: #c87954;
  color: #f0a078;
  background: rgba(200, 121, 84, 0.12);
}

@keyframes reveal-card {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Bottom bar ── */

.bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
}

.voice-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(216, 164, 81, 0.08);
  border: 1px solid rgba(216, 164, 81, 0.4);
  border-radius: 8px;
  padding: 10px 14px;
}

.voice-banner.hidden {
  display: none;
}

.banner-text {
  flex: 1;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-voice-cta {
  background: var(--accent);
  color: #12100f;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  min-height: 0;
  font-family: inherit;
}

.btn-dismiss {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  min-height: 0;
  font-family: inherit;
}

.locked-text-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(29, 26, 23, 0.82);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.locked-text-notice[hidden],
.text-form[hidden] {
  display: none;
}

.locked-text-notice span {
  flex: 1;
}

.locked-text-notice strong {
  color: var(--ink);
}

.locked-text-notice button,
.repeat-free-draw-btn,
.share-free-draw-btn {
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: rgba(216, 164, 81, 0.12);
  color: var(--accent);
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.locked-text-notice button {
  white-space: nowrap;
}

.repeat-free-draw-btn {
  margin-top: 10px;
}

.share-free-draw-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  margin-top: 8px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
}

.share-free-draw-btn .share-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-free-draw-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.text-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.text-form input {
  flex: 1;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px 16px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  min-height: 42px;
}

.text-form input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(111, 183, 168, 0.24);
}

.text-form input:disabled {
  color: #75695e;
}

.send-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #12100f;
  font-size: 18px;
  font-weight: 700;
}

/* ── Mic FAB ── */

.mic-fab {
  position: absolute;
  right: 14px;
  bottom: calc(100% + 10px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--line);
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
  z-index: 10;
  font-family: inherit;
}

.mic-fab:active {
  transform: scale(0.93);
}

.mic-fab.is-active {
  background: #1a3a1a;
  border-color: #4caf50;
  color: #4caf50;
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.25);
}

.mic-fab.is-muted {
  background: #3a1a1a;
  border-color: var(--danger);
  color: var(--danger);
}

/* ── Copy log ── */

.copy-log-btn {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  padding: 8px 18px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  z-index: 300;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.copy-log-btn.hidden {
  display: none;
}

/* ── Dialog de carta ampliada ── */

.card-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(860px, calc(100dvh - 32px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151210;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
}

.cookie-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 1px solid #3a3020;
  border-radius: 12px;
  padding: 1.4rem;
  background: #1e1a14;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
}

.cookie-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.cookie-dialog h2 {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 1.05rem;
}

.cookie-dialog p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-categories {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #17130f;
}

label.cookie-category {
  cursor: pointer;
}

.cookie-category strong,
.cookie-category small {
  display: block;
}

.cookie-category strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.cookie-category small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.cookie-category input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.cookie-dialog .cookie-dialog-legal {
  font-size: 0.8rem;
}

.cookie-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cookie-dialog-actions a,
.legal-footer a,
.cookie-preferences-link {
  color: #8f8275;
  font-size: 0.8rem;
}

.cookie-choice-btn,
.cookie-dialog-actions .btn-secondary {
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.cookie-choice-btn {
  background: rgba(216, 164, 81, 0.12);
  color: var(--accent);
}

.cookie-dialog-actions .btn-secondary {
  grid-column: 1 / -1;
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

.cookie-preferences-link {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ── Modal "Tirar cartas" (failsafe) ── */

.draw-dialog {
  border: 1px solid #3a3020;
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  max-width: 420px;
  width: calc(100% - 2rem);
  max-height: min(720px, calc(100vh - 2rem));
  overflow: auto;
  background: #1e1a14;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
}

.draw-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.draw-dialog h2 {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 1.05rem;
}

.draw-dialog p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.draw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.draw-grid button {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.draw-grid button:hover,
.draw-grid button:focus-visible {
  background: rgba(216, 164, 81, 0.12);
  border-color: var(--accent);
  outline: none;
}

.draw-dialog .btn-link {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.end-session-dialog {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171412;
  color: var(--ink);
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.end-session-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.end-session-dialog h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.end-session-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.end-session-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.end-session-actions button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
}

.end-session-actions .btn-secondary {
  background: #211c18;
  color: var(--ink);
}

.end-session-actions .btn-danger {
  background: #7f1d1d;
  color: #fff3ee;
  border-color: #b0412e;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.6rem;
  flex-shrink: 0;
  padding: 0.5rem;
  background: #0d0b0a;
  color: #5c5148;
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
}

.card-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #171412;
  color: var(--ink);
  font-size: 24px;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-dialog-content {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 22px;
  align-items: center;
}

.dialog-card-image-wrap {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid #6f5635;
  border-radius: 6px;
  background: #e8dcc4;
}

.dialog-card-image {
  width: min(100%, 280px);
  aspect-ratio: 1086 / 1810;
  object-fit: contain;
  border: 1px solid #33281c;
  background: #d8c7a4;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.dialog-card-image-wrap.is-reversed .dialog-card-image {
  transform: rotate(180deg);
}

.dialog-card-details {
  display: grid;
  gap: 10px;
}

.dialog-card-details h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.dialog-card-details .meaning {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.dialog-card-details .position {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}

.dialog-card-details .orientation {
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgb(0 0 0 / 85%);
}

.pricing-panel {
  width: min(100%, 380px);
  padding: 1.5rem;
  color: #e8dcc8;
  background: #12100f;
  border: 1px solid #3a3020;
  border-radius: 8px;
}

.pricing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pricing-header h2 {
  margin: 0;
  color: #d8a451;
  font-size: 1.2rem;
}

.pricing-close {
  color: #888;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
}

.pricing-login-hint {
  margin-bottom: 1rem;
  padding: 0.75rem;
  color: #c8a96e;
  font-size: 0.85rem;
  background: #2a2218;
  border-radius: 8px;
}

.pricing-pack-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pricing-pack {
  display: block;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  background: #1e1a14;
  border: 1px solid #3a3020;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.pricing-pack:hover {
  border-color: #d8a451;
}

.pricing-pack.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.pricing-pack.is-disabled:hover {
  border-color: #3a3020;
}

.pricing-pack.is-waitlist {
  background: #211c16;
}

.pricing-pack.is-waitlist:hover {
  border-color: #c8a96e;
}

.pricing-pack-label {
  color: #d8a451;
  font-size: 1.1rem;
  font-weight: 600;
}

.pricing-pack-price {
  margin: 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.pricing-pack-desc {
  color: #888;
  font-size: 0.85rem;
}

.pricing-pack-cta {
  display: inline-flex;
  margin-top: 0.75rem;
  color: #f2dfb8;
  font-size: 0.82rem;
  font-weight: 700;
}

.pricing-waitlist {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.pricing-waitlist label {
  color: #d8a451;
  font-size: 0.82rem;
  font-weight: 700;
}

.pricing-waitlist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.pricing-waitlist input {
  min-width: 0;
  padding: 0.72rem 0.8rem;
  color: #f5f0e8;
  background: #16130f;
  border: 1px solid #3a3020;
  border-radius: 8px;
}

.pricing-waitlist button {
  padding: 0.72rem 0.9rem;
  color: #16130f;
  font-weight: 800;
  background: #d8a451;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.pricing-waitlist-status {
  min-height: 1rem;
  margin: 0;
  color: #bcae98;
  font-size: 0.78rem;
}

.pricing-note {
  margin: 0;
  color: #777;
  font-size: 0.75rem;
  text-align: center;
}

.pricing-note a {
  color: #777;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .topbar {
    gap: 6px;
    padding-inline: 14px 10px;
  }

  .topbar-left,
  .topbar-right {
    gap: 6px;
  }

  .notice {
    display: none;
  }

  .app-title {
    font-size: 16px;
  }

  .status-label {
    width: 78px;
    max-width: 78px;
  }

  .session-meter {
    gap: 4px;
    width: 46px;
  }

  #sessionCost,
  #micMeter {
    display: none !important;
  }

  .login-section {
    width: 0;
    max-width: 0;
  }

  .login-fallback {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 6px;
  }

  .reading.has-free-reading {
    padding-inline: 10px;
  }

  .reading.has-free-reading .reading-head {
    margin-bottom: 6px;
  }

  .reading.has-free-reading .cards-grid {
    width: calc(100dvw - 20px);
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(126px, 1fr));
    gap: 10px;
    margin-inline: -2px;
  }

  .reading.has-free-reading .cards-grid.layout-classic_three {
    grid-template-columns: repeat(3, minmax(126px, 1fr));
  }

  .reading.has-free-reading .tarot-card {
    min-height: 268px;
    padding: 6px;
  }

  .card-image {
    max-width: 62px;
  }

  .reading.has-free-reading .card-image {
    max-width: min(116px, 100%);
  }

  .reading.has-free-reading .free-reading-result {
    max-height: 18vh;
    margin-bottom: 4px;
    padding: 8px 10px;
  }

  .reading.has-free-reading .free-reading-result h3 {
    font-size: 12px;
  }

  .reading.has-free-reading .free-reading-result .free-reading-question,
  .reading.has-free-reading .free-reading-result .free-reading-text {
    font-size: 12px;
    line-height: 1.35;
  }

  .reading.has-free-reading .share-free-draw-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    margin-top: 6px;
    padding: 0;
  }

  .reading.has-free-reading ~ .bottom-bar .locked-text-notice,
  .reading.has-free-reading ~ .bottom-bar .voice-banner {
    display: none;
  }

  .tarot-card h3 {
    font-size: 10px;
  }

  .tarot-card .meaning {
    display: none;
  }

  .card-dialog-content {
    grid-template-columns: 1fr;
  }

  .dialog-card-details {
    padding-right: 0;
  }

  .dialog-card-details h3 {
    font-size: 20px;
  }

  .banner-text {
    display: none;
  }

  .locked-text-notice {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .locked-text-notice button {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .shell,
  .stage {
    width: 100dvw;
    max-width: none;
    margin-inline: 0;
  }

  .stage {
    border-right: none;
    border-left: none;
  }
}

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

/* ============================================================
   ORÁCULO LANDING OVERLAY (Sprint 1)
   Capa visible al cargar la pagina, mobile-first.
   Se oculta al pulsar uno de los CTAs (free / login).
   ============================================================ */

.oraculo-landing {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: radial-gradient(circle at 50% 0%, #1a1410 0%, #0f0c0a 70%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: #f2e8d7;
  display: block;
}

.oraculo-landing.hidden {
  display: none;
}

.landing-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
  box-sizing: border-box;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.landing-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #d8a451;
}

.landing-skip {
  font-size: 0.85rem;
  color: #b8a898;
  text-decoration: none;
  border-bottom: 1px dotted #5a4222;
}
.landing-skip:hover {
  color: #d8a451;
}

.landing-hero {
  text-align: center;
  padding: 2rem 0.5rem 1.75rem;
}

.landing-hero h1 {
  font-size: clamp(1.85rem, 6vw, 2.6rem);
  margin: 0 0 1rem;
  line-height: 1.2;
  color: #f6e7c8;
  font-weight: 700;
}

.landing-tagline {
  font-size: clamp(1rem, 3vw, 1.15rem);
  color: #d6c8b3;
  margin: 0 auto 1.75rem;
  max-width: 36ch;
  line-height: 1.5;
}

.landing-free-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto 0.75rem;
}

.landing-free-form textarea {
  width: 100%;
  min-height: 96px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #5a4222;
  border-radius: 10px;
  background: #14100d;
  color: #f6e7c8;
  padding: 0.9rem 1rem;
  font: inherit;
  line-height: 1.4;
}

.landing-free-form textarea:focus {
  outline: 2px solid rgba(216, 164, 81, 0.45);
  border-color: #d8a451;
}

.landing-free-form textarea::placeholder {
  color: #8a7a68;
}

.landing-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 380px;
  margin: 0 auto;
}

.btn-cta-large {
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.btn-cta-large:active {
  transform: scale(0.98);
}

.btn-cta-large.btn-primary {
  background: linear-gradient(135deg, #d8a451 0%, #b88436 100%);
  color: #1a1410;
  box-shadow: 0 6px 20px rgba(216, 164, 81, 0.25);
}
.btn-cta-large.btn-primary:hover {
  box-shadow: 0 8px 26px rgba(216, 164, 81, 0.35);
}

.btn-cta-large.btn-secondary {
  background: #2a221b;
  border: 1px solid #8b6b3a;
  color: #f2e8d7;
}
.btn-cta-large.btn-secondary:hover {
  border-color: #d8a451;
  background: #33291f;
}

.btn-cta-large.btn-ghost {
  background: transparent;
  border: 1px solid #5a4222;
  color: #f2e8d7;
}
.btn-cta-large.btn-ghost:hover {
  background: rgba(216, 164, 81, 0.06);
}

.cta-emoji {
  font-size: 1.15rem;
}
.cta-label {
  letter-spacing: 0.2px;
}

.landing-microcopy {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: #8a7a68;
  text-align: center;
}

.landing-section {
  margin: 2rem 0;
}

.landing-section h2 {
  text-align: center;
  font-size: 1.25rem;
  color: #d8a451;
  margin: 0 0 1.25rem;
  font-weight: 600;
}

.landing-features {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .landing-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: rgba(40, 30, 22, 0.55);
  border: 1px solid #3a3020;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  text-align: left;
}

.feature-emoji {
  font-size: 1.65rem;
  display: block;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #f6e7c8;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #b8a898;
  line-height: 1.45;
}

.landing-modes {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .landing-modes {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mode-card {
  background: rgba(35, 27, 20, 0.7);
  border: 1px solid #3a3020;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.mode-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #f6e7c8;
}

.mode-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #b8a898;
  line-height: 1.4;
}

.mode-price {
  margin-top: auto;
  font-weight: 700;
  color: #d8a451;
  font-size: 0.95rem;
}

.mode-card-free .mode-price {
  color: #86efac;
}

.mode-card-featured {
  border-color: #d8a451;
  background: linear-gradient(135deg, rgba(216, 164, 81, 0.12) 0%, rgba(35, 27, 20, 0.7) 100%);
}

.landing-legal {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
  font-size: 0.78rem;
  color: #6a5d4e;
  margin-top: 2.25rem;
}

.landing-legal a {
  color: #b8a898;
}

/* Modal de continuacion por voz */

.post-free-dialog {
  max-width: 460px;
  border: 1px solid #5a4222;
  background: #1e1a14;
  color: #f2e8d7;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
}

.post-free-dialog::backdrop {
  background: rgba(8, 6, 4, 0.7);
  backdrop-filter: blur(6px);
}

.post-free-dialog h2 {
  margin: 0 0 0.4rem;
  color: #d8a451;
  font-size: 1.25rem;
}

.post-free-dialog p {
  margin: 0 0 1.25rem;
  color: #b8a898;
  font-size: 0.95rem;
}

.post-free-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.post-free-options button {
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #3a3020;
  background: #2a221b;
  color: #f2e8d7;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.post-free-options button:hover {
  border-color: #d8a451;
}

.post-free-options button strong {
  font-weight: 600;
}

.post-free-options button small {
  color: #8a7a68;
  font-size: 0.8rem;
}

.post-free-options .btn-primary {
  background: linear-gradient(135deg, #d8a451 0%, #b88436 100%);
  color: #1a1410;
  border-color: transparent;
}

.post-free-options .btn-primary small {
  color: rgba(26, 20, 16, 0.7);
}

.post-free-dialog .btn-link {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  color: #8a7a68;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-top: 0.25rem;
}

/* Indicador de modo de voz dentro del shell de la app */
.shell.free-mode .session-meter::before {
  content: "Voz · ";
  color: #86efac;
  font-weight: 600;
}

/* Banner sticky de modo desarrollador (solo dev) */
.dev-mode-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #f59e0b;
  color: #1f2937;
  padding: 8px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #d97706;
}
