/* ============================================================================
 * MENUDERÍA LIVIER • CAMPAÑA Q4 OCTUBRE 2026: "EL ALTAR DIGITAL"
 * Archivo: style.css
 * Sistema de Diseño: "Ofrenda & Fuego" (Tactile Engraved Mysticism)
 * Arquitectura: Mobile-First, 100% Tokens Semánticos CSS, Cero Librerías Pesadas
 * ============================================================================ */

:root {
  /* Paleta Semántica Canónica (Stitch DESIGN.md + PostalML_DiaMuertos.png) */
  --bg-main: #0B0908;
  --bg-surface: #161210;
  --bg-surface-elevated: #1E1916;
  --bg-surface-high: #28211D;
  --bg-input: #0E0B0A;

  --text-main: #F2E8D5;
  --text-muted: #C4B29E;
  --text-subtle: #8C7A6B;
  --text-on-flame: #1A0B00;

  --brand-flame: #E87A24;
  --brand-flame-bright: #FF943D;
  --brand-marigold: #FFB955;
  --brand-bone: #F2E8D5;

  --border-color: #4A3C31;
  --border-inner: #2A211B;
  --border-focus: #E87A24;

  --status-error: #FF8A80;
  --status-error-bg: rgba(147, 0, 10, 0.28);
  --status-error-border: #D9534F;

  /* Tipografía Editorial */
  --font-display: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Literata', Georgia, serif;
  --font-label: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaciado Mobile-First */
  --container-max: 480px;
  --radius-sm: 4px;
  --radius-md: 8px;
}

/* ----------------------------------------------------------------------------
 * 1. RESET & BASE CEREMONIAL
 * ---------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-main);
  color: var(--text-main);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

::selection {
  background-color: var(--brand-flame);
  color: var(--bg-main);
}

.hidden {
  display: none !important;
}

/* ----------------------------------------------------------------------------
 * 2. ILUMINACIÓN AMBIENTAL DEL ESTUFÓN Y GRANO DE PAPEL ALGODÓN
 * ---------------------------------------------------------------------------- */
.ambient-stove-glow {
  position: fixed;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 140vw;
  max-width: 820px;
  height: 340px;
  background: radial-gradient(
    ellipse at bottom,
    rgba(232, 122, 36, 0.26) 0%,
    rgba(245, 166, 35, 0.11) 45%,
    transparent 75%
  );
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: emberPulse 6s ease-in-out infinite alternate;
}

.paper-grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: radial-gradient(var(--text-main) 0.75px, transparent 0.75px);
  background-size: 12px 12px;
}

/* ----------------------------------------------------------------------------
 * 3. BARRA SUPERIOR (SELLO DE MARCA + PÍLDORA DE AUDIO AM 1975)
 * ---------------------------------------------------------------------------- */
.top-altar-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: rgba(11, 9, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 232, 213, 0.12);
}

.top-bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-crest {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crest-flame-icon {
  color: var(--brand-flame);
  filter: drop-shadow(0 0 8px rgba(232, 122, 36, 0.45));
  flex-shrink: 0;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-eyebrow {
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-marigold);
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-main);
  line-height: 1.15;
}

/* Píldora de Audio AM 1975 */
.audio-pill {
  appearance: none;
  background-color: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 185, 85, 0.38);
  color: var(--text-main);
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(232, 122, 36, 0.16);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.audio-pill:hover,
.audio-pill:focus-visible {
  border-color: var(--brand-flame);
  box-shadow: 0 0 18px rgba(232, 122, 36, 0.34);
  outline: none;
}

.audio-pill:active {
  transform: scale(0.96);
}

.audio-pill.is-playing {
  background-color: rgba(232, 122, 36, 0.18);
  border-color: var(--brand-marigold);
  color: var(--brand-marigold);
}

.firefly-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--brand-flame);
  box-shadow: 0 0 6px var(--brand-flame);
  animation: fireflyBlink 2.2s ease-in-out infinite;
}

.audio-icon {
  color: var(--brand-marigold);
  flex-shrink: 0;
}

/* ----------------------------------------------------------------------------
 * 4. LAYOUT PRINCIPAL Y HERO DEL ALTAR (POSTAL FÍSICA -> DIGITAL)
 * ---------------------------------------------------------------------------- */
.altar-main {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 18px 56px;
  flex: 1;
}

.hero-shrine {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 4px;
  padding-bottom: 22px;
}

.watercolor-wash-halo {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 122, 36, 0.24) 0%,
    rgba(255, 185, 85, 0.09) 55%,
    transparent 75%
  );
  filter: blur(22px);
  pointer-events: none;
  z-index: -1;
}

/* Estampa estilo PostalML_DiaMuertos.png */
.postal-linocut-frame {
  width: 100%;
  max-width: 276px;
  margin: 0 auto 14px;
  padding: 6px;
  background: linear-gradient(180deg, rgba(30, 24, 20, 0.82) 0%, rgba(18, 14, 12, 0.95) 100%);
  border: 1px solid rgba(255, 185, 85, 0.35);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(232, 122, 36, 0.18),
    inset 0 0 0 2px rgba(242, 232, 213, 0.08);
  border-radius: var(--radius-sm);
}

.linocut-cameo-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(232, 122, 36, 0.22));
}

.edition-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 185, 85, 0.28);
  border-radius: 999px;
  margin-bottom: 10px;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-marigold);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-flame);
  box-shadow: 0 0 6px var(--brand-flame);
}

.altar-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text-main);
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.altar-proverb {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--brand-marigold);
  max-width: 360px;
  margin: 0 auto 10px;
}

.altar-intro {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto;
}

.altar-intro strong {
  color: var(--text-main);
  font-weight: 500;
}

.linocut-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  opacity: 0.75;
}

.divider-line {
  height: 1px;
  flex: 1;
  max-width: 68px;
  background: linear-gradient(90deg, transparent, var(--border-color), var(--brand-marigold), transparent);
}

.divider-glyph {
  color: var(--brand-flame);
  font-size: 12px;
}

.divider-skull {
  color: var(--brand-marigold);
  font-size: 14px;
}

/* ----------------------------------------------------------------------------
 * 5. CONTENEDOR DEL NICHO / FORMULARIO (DOBLE FILETE GRABADO)
 * ---------------------------------------------------------------------------- */
.altar-nicho-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow:
    inset 0 0 0 3px var(--bg-main),
    inset 0 0 0 4px var(--border-inner),
    0 18px 40px rgba(0, 0, 0, 0.7);
  padding: 24px 18px;
  border-radius: var(--radius-sm);
}

/* Ornamentos de esquina tipo grabado en madera */
.nicho-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--brand-marigold);
  opacity: 0.55;
  pointer-events: none;
}

.nicho-tl { top: 6px; left: 6px; border-top: 2px solid; border-left: 2px solid; }
.nicho-tr { top: 6px; right: 6px; border-top: 2px solid; border-right: 2px solid; }
.nicho-bl { bottom: 6px; left: 6px; border-bottom: 2px solid; border-left: 2px solid; }
.nicho-br { bottom: 6px; right: 6px; border-bottom: 2px solid; border-right: 2px solid; }

.sacred-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Honeypot Anti-Spam estrictamente oculto */
.sacred-veil-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.form-label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.label-icon {
  color: var(--brand-flame);
  font-size: 11px;
}

.label-muted {
  font-weight: 500;
  color: var(--text-subtle);
  text-transform: none;
  letter-spacing: 0.02em;
}

.form-group:focus-within .form-label {
  color: var(--brand-marigold);
}

/* Marcos de Input y Estados Focus / Error */
.input-frame {
  position: relative;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-frame:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--border-focus), 0 0 16px rgba(232, 122, 36, 0.25);
  background-color: #130F0D;
}

.form-group.has-error .input-frame {
  border-color: var(--status-error-border);
  box-shadow: 0 0 0 1px var(--status-error-border), 0 0 12px rgba(217, 83, 79, 0.25);
  animation: gentleShake 0.32s ease-in-out;
}

.sacred-input,
.sacred-textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  /* 16px exactos previene auto-zoom en iOS Safari */
  font-size: 16px;
  line-height: 1.45;
  padding: 13px 14px;
  outline: none;
}

.sacred-input::placeholder,
.sacred-textarea::placeholder {
  color: var(--text-subtle);
  font-style: italic;
}

.phone-tracking {
  letter-spacing: 0.06em;
  font-family: var(--font-label);
}

.sacred-textarea {
  resize: vertical;
  min-height: 108px;
}

/* Input con prefijo (@ / fb/) */
.input-with-prefix {
  display: flex;
  align-items: center;
}

.input-prefix {
  padding-left: 14px;
  padding-right: 4px;
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-flame);
  user-select: none;
}

.input-with-prefix .sacred-input {
  padding-left: 4px;
}

/* ----------------------------------------------------------------------------
 * 6. SELECTOR DE REDES SOCIALES (INSTAGRAM | FACEBOOK | TIKTOK)
 * ---------------------------------------------------------------------------- */
.social-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.social-pill {
  appearance: none;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  height: 42px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.18s ease;
}

.social-pill:hover {
  border-color: var(--brand-marigold);
  color: var(--text-main);
}

.social-pill.active {
  background-color: rgba(232, 122, 36, 0.16);
  border-color: var(--brand-flame);
  color: var(--brand-marigold);
  box-shadow: 0 0 14px rgba(232, 122, 36, 0.26);
}

/* ----------------------------------------------------------------------------
 * 7. TARJETAS INTERACTIVAS DE INTENCIÓN (MEMORIA VS PRESENTE)
 * ---------------------------------------------------------------------------- */
.intent-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.intent-card {
  appearance: none;
  position: relative;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.intent-card:hover {
  border-color: var(--brand-marigold);
  background-color: var(--bg-surface-elevated);
}

.intent-card.active {
  background-color: rgba(232, 122, 36, 0.14);
  border-color: var(--brand-flame);
  box-shadow: 0 0 20px rgba(232, 122, 36, 0.28), inset 0 0 0 1px rgba(255, 185, 85, 0.25);
}

.intent-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
  transition: all 0.2s ease;
}

.intent-card.active .intent-indicator {
  background-color: var(--brand-marigold);
  box-shadow: 0 0 8px var(--brand-marigold);
}

.intent-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.intent-card.active .intent-icon-circle {
  background-color: rgba(232, 122, 36, 0.22);
  border-color: var(--brand-flame);
  color: var(--brand-marigold);
  box-shadow: 0 0 12px rgba(232, 122, 36, 0.4);
}

.intent-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
}

.intent-subtitle {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  margin-top: 4px;
}

.intent-card.active .intent-subtitle {
  color: var(--brand-marigold);
}

/* ----------------------------------------------------------------------------
 * 8. MENSAJES DE ERROR SOLEMNES Y CONTADOR
 * ---------------------------------------------------------------------------- */
.char-counter {
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--text-subtle);
}

.field-error {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-style: italic;
  color: var(--status-error);
  line-height: 1.35;
  min-height: 0;
  display: none;
}

.form-group.has-error .field-error {
  display: block;
}

.form-global-alert {
  background-color: var(--status-error-bg);
  border: 1px solid var(--status-error-border);
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: center;
}

/* ----------------------------------------------------------------------------
 * 9. BOTÓN DE ENVÍO (FUEGO DEL ESTUFÓN) Y SPINNER
 * ---------------------------------------------------------------------------- */
.submit-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn-ignite-offering {
  position: relative;
  appearance: none;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--brand-flame-bright) 0%, var(--brand-flame) 60%, #C85A12 100%);
  border: 1px solid var(--brand-marigold);
  border-radius: var(--radius-sm);
  color: var(--text-on-flame);
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(232, 122, 36, 0.52);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-ignite-offering:hover,
.btn-ignite-offering:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 0 32px rgba(255, 185, 85, 0.75);
  outline: none;
}

.btn-ignite-offering:active {
  transform: scale(0.985);
}

.btn-ignite-offering:disabled {
  cursor: wait;
  opacity: 0.88;
}

.btn-shimmer {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: shimmerSweep 3.4s infinite;
  pointer-events: none;
}

.btn-content,
.btn-spinner-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.ember-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(26, 11, 0, 0.25);
  border-top-color: var(--text-on-flame);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.submit-footnote {
  font-size: 12px;
  font-style: italic;
  color: var(--text-subtle);
  text-align: center;
}

/* ----------------------------------------------------------------------------
 * 10. PIE DE PÁGINA (MANIFIESTO CREATIVO)
 * ---------------------------------------------------------------------------- */
.manifesto-footer {
  margin-top: 26px;
  text-align: center;
  padding: 0 8px;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footprint-trinity {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-subtle);
}

.trinity-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--brand-flame);
}

/* ----------------------------------------------------------------------------
 * 11. PANTALLA 2: ESTADO DE CONFIRMACIÓN ("OFRENDA ENCENDIDA")
 * ---------------------------------------------------------------------------- */
.confirmation-shrine {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
}

.candle-relic-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}

.candle-ambient-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 185, 85, 0.28) 0%, rgba(232, 122, 36, 0.08) 60%, transparent 75%);
  filter: blur(18px);
  pointer-events: none;
  animation: emberPulse 3.5s ease-in-out infinite alternate;
}

.candle-linocut-svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 18px rgba(232, 122, 36, 0.35));
}

.candle-flame-outer {
  transform-origin: 100px 80px;
  animation: flameFlicker 3s ease-in-out infinite alternate;
}

/* Tarjeta de Reliquia / Recibo de Ofrenda */
.relic-receipt-card {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow:
    inset 0 0 0 3px var(--bg-main),
    inset 0 0 0 4px var(--border-inner),
    0 14px 32px rgba(0, 0, 0, 0.65);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.relic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
}

.relic-intent-title {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-marigold);
}

.relic-folio {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
}

.relic-details-box {
  background-color: var(--bg-input);
  border: 1px solid var(--border-inner);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.relic-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.relic-key {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  flex-shrink: 0;
}

.relic-val {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-main);
  text-align: right;
  word-break: break-word;
}

.relic-val.highlight {
  color: var(--brand-marigold);
  font-weight: 500;
}

.relic-val.mono {
  font-family: var(--font-label);
  font-size: 12px;
}

.relic-blessing {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
}

.confirmation-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-secondary-relic {
  appearance: none;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--brand-marigold);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-relic:hover,
.btn-secondary-relic:focus-visible {
  border-color: var(--brand-flame);
  background-color: var(--bg-surface-elevated);
  outline: none;
}

.postal-seal-footer {
  margin-top: 28px;
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0.8;
}

.seal-line {
  width: 100%;
  height: 1.5px;
  background-color: var(--brand-marigold);
}

.seal-wordmark {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--text-main);
}

/* ----------------------------------------------------------------------------
 * 12. ANIMACIONES Y TRANSICIONES DE ESTADO
 * ---------------------------------------------------------------------------- */
.fade-in-up {
  animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fade-out-up {
  animation: fadeOutUp 0.38s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes emberPulse {
  0%, 100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.06);
  }
}

@keyframes fireflyBlink {
  0%, 100% {
    opacity: 0.45;
    box-shadow: 0 0 4px var(--brand-flame);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 10px var(--brand-marigold);
  }
}

@keyframes flameFlicker {
  0%, 100% {
    transform: scaleY(1) rotate(-1deg);
  }
  50% {
    transform: scaleY(1.06) rotate(1.2deg);
  }
}

@keyframes shimmerSweep {
  0% {
    transform: translateX(-120%);
  }
  45%, 100% {
    transform: translateX(120%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gentleShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Accesibilidad: Respeto a prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Escalado elegante en Tablets y Desktop */
@media (min-width: 540px) {
  .altar-main {
    padding-top: 28px;
    padding-bottom: 72px;
  }

  .postal-linocut-frame {
    max-width: 310px;
  }

  .altar-title {
    font-size: 40px;
  }

  .altar-nicho-card {
    padding: 30px 28px;
  }
}
