/* Estilos Globales Evocamail - Producción */
:root {
  --bg-color: #080a0c;
  --card-bg: rgba(18, 22, 28, 0.7);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-dark-bg: rgba(10, 12, 16, 0.85);
  --card-dark-border: rgba(255, 255, 255, 0.04);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --primary: #d4af37; /* Oro Legado */
  --primary-hover: #bda02e;
  --accent-red: #e63946; /* Alertas / Defunción */
  --accent-red-hover: #bd1f2d;
  --success: #2a9d8f;
  --console-bg: #050608;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Variables para Tema Claro "Celestial" */
.light-theme {
  --bg-color: #f1f5f9;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-dark-bg: rgba(226, 232, 240, 0.85);
  --card-dark-border: rgba(0, 0, 0, 0.08);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --primary: #a87f18; /* Oro con más contraste en fondo claro */
  --primary-hover: #8e6b12;
  --accent-red: #d9383a;
  --accent-red-hover: #b82a2b;
  --success: #1d7c71;
  --console-bg: #1e293b; /* Mantener la consola oscura para legibilidad */
}

/* Reset Estándar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Transiciones para cambio de tema */
body, .card-glass, .card-dark, input, select, textarea, button, header, aside, section, span, div {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Utilidades */
.margin-b-1 { margin-bottom: 1rem; }
.margin-b-2 { margin-bottom: 2rem; }
.margin-t-1 { margin-top: 1rem; }
.margin-t-2 { margin-top: 2rem; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.w-100 { width: 100%; }
.justify-center { justify-content: center; }

/* Fondo Animado de Degradado */
.background-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(230, 57, 70, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(8, 10, 12, 1) 0%, rgba(4, 5, 6, 1) 100%);
}

/* Sobreescrituras de Tema Claro "Celestial" */
.light-theme .background-glow {
  background: 
    radial-gradient(circle at 15% 15%, rgba(168, 127, 24, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(217, 56, 58, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #ffffff 0%, #e2e8f0 100%) !important;
}

.light-theme .form-group input,
.light-theme .form-group select,
.light-theme .form-group textarea,
.light-theme .wiz-input-area textarea,
.light-theme .wizard-steps-container input,
.light-theme .wizard-steps-container select,
.light-theme .wizard-steps-container textarea {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: #1e293b !important;
}

.light-theme .form-group input::placeholder,
.light-theme .form-group textarea::placeholder,
.light-theme .wizard-steps-container input::placeholder,
.light-theme .wizard-steps-container textarea::placeholder {
  color: #94a3b8 !important;
}

.light-theme .btn-mode-toggle {
  color: #475569;
  border-color: rgba(0, 0, 0, 0.08);
}

.light-theme .btn-mode-toggle.active {
  color: #000;
}

/* Apariencia adaptativa para el acceso y bloqueo (Login, Registro RUT, E2EE, etc.) */
.auth-overlay {
  background: var(--bg-color) !important;
  color: var(--text-main) !important;
  z-index: 9999 !important;
}
.auth-overlay h1, 
.auth-overlay h2, 
.auth-overlay h3, 
.auth-overlay label, 
.auth-overlay p, 
.auth-overlay strong {
  color: var(--text-main) !important;
}
.auth-overlay input {
  background: var(--card-dark-bg) !important;
  border: 1px solid var(--card-border) !important;
  color: var(--text-main) !important;
}
.light-theme .text-muted {
  color: var(--text-muted) !important;
}

/* Sobreescrituras de Tema Claro "Celestial" para Modales, Tarjetas y Botones */
.light-theme .modal-content {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1e293b !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

.light-theme .modal-content h1,
.light-theme .modal-content h2,
.light-theme .modal-content h3,
.light-theme .modal-content h4,
.light-theme .modal-content h5,
.light-theme .modal-content strong {
  color: #0f172a !important;
}

.light-theme .modal-content p,
.light-theme .modal-content label {
  color: #334155;
}

.light-theme .modal-content .text-muted {
  color: #64748b !important;
}

.light-theme .card-dark,
.light-theme .paywall-checkout-card,
.light-theme .scheduling-container {
  background: rgba(241, 245, 249, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #1e293b !important;
}

.light-theme .delivery-option-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1e293b !important;
}

.light-theme .delivery-option-card.active {
  background: rgba(168, 127, 24, 0.1) !important;
  border-color: var(--primary) !important;
}

.light-theme .delivery-option-card div {
  color: #1e293b !important;
}

.light-theme .delivery-option-card .text-muted {
  color: #64748b !important;
}

.light-theme .pay-method-option {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1e293b !important;
}

.light-theme .pay-method-option strong {
  color: #0f172a !important;
}

.light-theme .format-card,
.light-theme .wiz-rec-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #1e293b !important;
}

.light-theme .btn-logout {
  background: rgba(0, 0, 0, 0.05);
  color: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.light-theme .btn-logout:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
}

.light-theme .btn-secondary,
.light-theme .btn-cancel {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #1e293b !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

.light-theme .coupon-btn {
  background: #1e293b !important;
  color: #ffffff !important;
}

.light-theme .coupon-input {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  color: #1e293b !important;
}




/* Contenedor General */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.logo-dot {
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary);
  background-color: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
  animation: pulse-glow 2s infinite alternate;
  flex-shrink: 0;
}

.logo-dot::after {
  content: '';
  width: 4px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 50%;
  display: block;
}

.logo-dot.legacy {
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.logo-dot.legacy::after {
  background-color: var(--accent-red);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none; /* Permite EvocaMail en camelCase */
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* SELECTOR DE VISTA */
.mode-switch-container {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-mode-toggle {
  background: none;
  border: none;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-mode-toggle.active {
  background: var(--primary);
  color: #000;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.active {
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-indicator.warning {
  background-color: #f4a261;
  box-shadow: 0 0 8px #f4a261;
}

.status-indicator.deceased {
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

.status-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-logout {
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(230, 57, 70, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-logout:hover {
  background: var(--accent-red);
  color: #fff;
}

/* MAIN LAYOUT */
.app-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* BANNER DE EMERGENCIA */
.cooling-off-banner {
  background: linear-gradient(135deg, #780016 0%, #4a000d 100%);
  border: 2px solid var(--accent-red);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
  animation: flash-border 2s infinite alternate;
}

.cooling-off-banner .banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.warning-icon {
  font-size: 2.5rem;
}

.banner-text {
  flex: 1;
}

.banner-text strong {
  font-size: 1.2rem;
  color: #fff;
  display: block;
  margin-bottom: 0.25rem;
}

.banner-text p {
  font-size: 0.95rem;
  color: #fca5a5;
}

.btn-cancel-report {
  background: #fff;
  color: #780016;
  border: none;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-cancel-report:hover {
  background: #fca5a5;
}

/* TARJETAS GLASSMORPHISM */
.card-glass {
  background: var(--card-bg);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.card-dark {
  background: rgba(10, 12, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.25rem;
}

/* PESTAÑAS (TABS) */
.tabs-navigation {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--primary);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

/* ================= VISTA ASISTIDA (ADULTO MAYOR) ================= */
.assisted-hero {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.assisted-hero h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.assisted-hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.assisted-checkin-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.btn-assisted-checkin {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border: 4px solid #fff;
  color: #fff;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-assisted-checkin:hover {
  transform: scale(1.06);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.6);
}

.btn-assisted-checkin span {
  display: block;
}

.btn-assisted-checkin small {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* .pulse-ring removed to prevent viewport deadlocks */

.assisted-timer-display {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.8rem 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.font-large {
  font-size: 2.2rem !important;
  font-weight: 700;
  color: var(--primary);
}

.assisted-action-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: var(--transition-smooth);
}

.assisted-action-card:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.1);
}

.assisted-action-card.referral-banner {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-color: rgba(37, 211, 102, 0.2);
}

.assisted-action-card.referral-banner:hover {
  border-color: #25d366;
}

.action-icon {
  font-size: 3.5rem;
  background: rgba(255, 255, 255, 0.03);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.action-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.action-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.assisted-messages-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.assisted-msg-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.assisted-msg-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.assisted-msg-info h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.assisted-msg-meta {
  font-size: 1rem;
  color: var(--text-muted);
}

.assisted-msg-actions {
  display: flex;
  gap: 0.75rem;
}

/* ================= COMPONENTES WIZARD ================= */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 30px;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 30px;
  transition: width 0.3s ease;
  z-index: 1;
}

.progress-step {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
}

.progress-step.active {
  color: var(--primary);
}

.wizard-steps-container {
  min-height: 280px;
}

.wiz-step-3-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.wiz-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.wiz-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.wiz-recipients-select {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wiz-rec-card {
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.wiz-rec-card:hover, .wiz-rec-card.selected {
  border-color: var(--primary);
  background: rgba(212, 175, 55, 0.08);
}

.format-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.format-card {
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.format-card:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.format-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.input-large {
  font-size: 1.15rem;
  padding: 0.8rem 1.2rem;
  width: 100%;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-bottom: 1rem;
  outline: none;
}

.wiz-input-area textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1.1rem;
  outline: none;
  resize: vertical;
}

/* GRABADORES */
.recorder-container {
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.btn-record {
  background: rgba(230, 57, 70, 0.1);
  border: 2px solid var(--accent-red);
  color: var(--accent-red);
  padding: 1rem 2rem;
  border-radius: 30px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-record.recording {
  background: var(--accent-red);
  color: #fff;
  animation: flash 1s infinite alternate;
}

.record-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-red);
  border-radius: 50%;
  display: inline-block;
}

.btn-record.recording .record-dot {
  background: #fff;
}

.audio-wave {
  display: flex;
  gap: 4px;
  height: 40px;
  align-items: center;
}

.wave-bar {
  width: 4px;
  height: 15px;
  background: var(--accent-red);
  border-radius: 2px;
  animation: bounce-wave 0.8s infinite alternate ease-in-out;
}

.wave-bar:nth-child(2) { animation-delay: 0.15s; height: 25px; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; height: 35px; }

.video-camera-box {
  width: 100%;
  max-width: 400px;
  height: 220px;
  background: #000;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  color: #4b5563;
}

.blink-rec {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  animation: flash 0.5s infinite alternate;
}

.dummy-video-screen {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* PLANTILLAS PANEL */
.templates-panel {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.templates-panel h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.btn-template-option {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-template-option:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--primary);
}

.btn-template-option strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.btn-template-option small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* PAYWALL */
.paywall-checkout-card {
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
  padding: 2rem;
}

.paywall-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  background: rgba(212, 175, 55, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1rem;
}

.checkout-price-row {
  margin-bottom: 1.5rem;
}

.checkout-price-row .price-val {
  font-size: 2.8rem;
  font-weight: 800;
}

.checkout-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.checkout-features li {
  margin-bottom: 0.5rem;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.pay-method-option {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.pay-method-option.active {
  border-color: var(--primary);
  background: rgba(212, 175, 55, 0.05);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.25rem;
}

/* ================= GRIDS Y COMPONENTES REUTILIZABLES ================= */
.btn-primary {
  background: var(--primary);
  color: #000;
  border: none;
  font-family: var(--font-family);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-family);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-cancel {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
}

.btn-danger-action {
  background: var(--accent-red);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

.badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.badge.delivered {
  background: rgba(42, 157, 143, 0.15);
  color: #2a9d8f;
}

.badge.scheduled {
  background: rgba(212, 175, 55, 0.15);
  color: var(--primary);
}

.recipients-grid, .verifiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.recipient-card, .verifier-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.relationship-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--primary);
}

.verifier-token-box {
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verifier-token-box code {
  font-family: monospace;
  color: var(--primary);
}

.verifier-token-box button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: 12px;
  text-align: center;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

/* ================= ESPACIO MEMORIAL ================= */
.memorial-header-visual {
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.memorial-candle {
  font-size: 2.5rem;
  animation: flicker 1.5s infinite alternate ease-in-out;
  display: inline-block;
}

.memorial-tagline {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--primary);
}

.tributes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 250px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 0.75rem;
}

.tribute-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.75rem;
}

.tribute-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.tribute-text {
  font-style: italic;
}

/* ================= SIMULADOR ================= */
.simulation-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sim-badge {
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent-red);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.sim-controls {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 1.25rem;
}

.btn-sim {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: var(--font-family);
  font-weight: 600;
  padding: 0.45rem;
  border-radius: 6px;
  cursor: pointer;
}

.btn-sim.active {
  background: rgba(42, 157, 143, 0.15);
  color: #2a9d8f;
  border-color: rgba(42, 157, 143, 0.3);
}

.btn-sim-action {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 0.55rem;
  border-radius: 6px;
  cursor: pointer;
}

.btn-sim-action.danger {
  color: var(--accent-red);
  background: rgba(230, 57, 70, 0.05);
  border-color: rgba(230, 57, 70, 0.1);
}

/* CONSOLA */
.console-box {
  background: var(--console-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  font-family: monospace;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  height: 220px;
}

.console-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.4rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-console-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
}

.console-log {
  padding: 0.75rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.console-line {
  line-height: 1.4;
}

.console-line.system { color: #5c6370; }
.console-line.info { color: #61afef; }
.console-line.success { color: #98c379; }
.console-line.warning { color: #d19a66; }
.console-line.error { color: #e06c75; }

/* MODALES */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200; /* Aumentado para sobreponerse a todo */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto; /* Permitir scroll vertical en pantallas chicas */
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

/* Modales secundarios (deben estar encima de otros modales primarios como ajustes) */
#recipientModal, 
#verifierModal {
  z-index: 1000 !important;
}

.modal-content {
  width: 100%;
  max-width: 520px;
  position: relative;
  margin: auto; /* Permite espaciado uniforme cuando hay scroll */
}

.modal-content.modal-large {
  max-width: 780px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.7rem;
  cursor: pointer;
}

/* FORMULARIOS */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  outline: none;
}

.file-uploader-box {
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
}

.portal-info-box {
  background: rgba(230, 57, 70, 0.06);
  border: 1px solid rgba(230, 57, 70, 0.12);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  color: #fca5a5;
}

/* PORTAL DE ENTREGA */
.delivery-modal {
  border: 2px solid var(--accent-red);
}

.delivery-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.delivery-message-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
}

.delivery-content {
  font-size: 1.05rem;
  line-height: 1.7;
  white-space: pre-line;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}

.delivery-attachment {
  margin-top: 1.25rem;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.attachment-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-download-attached {
  background: var(--primary);
  color: #000;
  border: none;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ANIMACIONES */
@keyframes heartbeat {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 5px var(--primary); }
  100% { box-shadow: 0 0 15px var(--primary); }
}

@keyframes pulse-ring-animation {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes bounce-wave {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.2); }
}

@keyframes flash {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes flash-border {
  0% { border-color: var(--accent-red); }
  100% { border-color: rgba(230, 57, 70, 0.2); }
}

@keyframes flicker {
  0% { transform: rotate(-1deg); opacity: 0.95; }
  50% { transform: rotate(1deg) scale(1.02); opacity: 0.9; }
  100% { transform: rotate(-2deg); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ================= PANTALLA DE BIENVENIDA (AUTH) ================= */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-color);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.auth-card {
  max-width: 480px;
  width: 100%;
  padding: 2.5rem 2rem;
  margin-top: auto;
  margin-bottom: auto;
}

.auth-tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.auth-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem;
  border-radius: 10px;
  border: none;
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-auth.google {
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-auth.google:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}

.btn-auth.email {
  background: var(--primary);
  color: #000000;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.btn-auth.email:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.email-login-form {
  margin-top: 1.5rem;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
}


/* RESPONSIVE HEADER FOR MOBILE AND TABLETS */
@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    padding-bottom: 1rem;
  }
  .header-controls {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    align-items: center;
  }
  .mode-switch-container {
    width: 100%;
    justify-content: center;
  }
  .btn-mode-toggle {
    flex: 1;
    text-align: center;
  }
  .header-status {
    margin: 0.25rem 0;
  }
  .app-main {
    padding: 0.5rem 0;
  }
}


/* ESTILO DEL SIMBOLO DE LOGO ⊙ */
.logo-symbol {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  margin-right: 0.15em;
  font-weight: bold;
  display: inline-block;
}
.logo-symbol.legacy {
  color: var(--accent-red);
  text-shadow: 0 0 10px rgba(230, 57, 70, 0.6);
}


/* AJUSTES ADICIONALES PARA MOVILES (VISTA AVANZADA) */
@media (max-width: 768px) {
  .app-container {
    padding: 0.75rem !important;
  }
  .card-glass {
    padding: 1rem !important;
  }
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  .payment-methods-grid {
    grid-template-columns: 1fr !important;
  }
  .tabs-navigation {
    gap: 0.25rem;
  }
  .tab-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  /* Garantizar que los elementos de las pestañas no desborden */
  .verifiers-grid, .messages-grid, .recipients-grid {
    grid-template-columns: 1fr !important;
  }
  .assisted-msg-card {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .assisted-msg-actions {
    width: 100%;
  }
  .assisted-msg-actions button {
    width: 100%;
    text-align: center;
  }

  /* Nuevos estilos responsivos avanzados */
  .btn-checkin-large {
    padding: 0.8rem 1rem !important;
    font-size: 1rem !important;
    width: 100% !important;
    justify-content: center;
  }
  .timer-display-advanced {
    padding: 0.8rem 1.5rem !important;
    display: block !important;
  }
  .timer-time-text {
    font-size: 1.8rem !important;
  }
  .vacation-btn-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  .vacation-btn-group button {
    width: 100% !important;
  }
  .btn-deactivate-vacation {
    width: 100% !important;
  }
  .checkin-interval-flex {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .checkin-interval-days-text {
    text-align: center;
    width: 100%;
  }
  .sim-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .sim-buttons-flex {
    flex-direction: column;
    gap: 0.5rem;
  }
  .sim-buttons-flex button {
    width: 100% !important;
  }

  /* Ajustes para modales en celulares */
  .modal-overlay {
    align-items: flex-start !important;
    padding: 1rem 0.5rem !important;
  }
  .modal-content {
    margin: 1rem auto !important;
  }
}

/* Clases Base para Elementos Avanzados */
.btn-checkin-large {
  background: var(--primary);
  color: #000;
  font-weight: bold;
  padding: 0.8rem 2.5rem;
  font-size: 1.2rem;
  width: auto;
  display: inline-flex;
  align-items: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-checkin-large:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
.timer-display-advanced {
  display: inline-block;
  padding: 1rem 3rem;
}
.timer-time-text {
  font-size: 2.5rem;
  font-weight: bold;
  font-family: monospace;
}
.vacation-btn-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.btn-deactivate-vacation {
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
  width: auto;
}
.checkin-interval-flex {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.checkin-interval-days-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
  min-width: 80px;
}
.sim-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.sim-buttons-flex {
  display: flex;
  gap: 0.5rem;
}

/* ==========================================
   TUTORIAL DE ONBOARDING & SPOTLIGHT
   ========================================== */
.onboarding-overlay-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.onboarding-spotlight {
  position: fixed;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75), 0 0 15px var(--primary);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 10000;
  pointer-events: none;
}

.onboarding-tooltip {
  position: fixed;
  z-index: 10001;
  background: rgba(10, 15, 20, 0.95);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 1.25rem;
  width: 320px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: auto;
}

.light-theme .onboarding-tooltip {
  background: rgba(243, 246, 249, 0.98);
  border: 1px solid var(--primary);
  box-shadow: 0 8px 32px rgba(168, 127, 24, 0.2);
}

.light-theme .onboarding-tooltip h4 {
  color: #1a202c !important;
}

.light-theme .onboarding-tooltip p {
  color: #4a5568 !important;
}

.onboarding-tooltip h4 {
  margin: 0 0 0.5rem 0;
  color: #ffffff;
}

.onboarding-tooltip p {
  margin: 0 0 1.25rem 0;
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.45;
}

.onboarding-tooltip button {
  cursor: pointer;
  transition: all 0.2s ease;
}


/* =========================================================================
   ESTILOS PARA EL PORTAL MEMORIAL Y TEMAS DE CREENCIAS 🕯️🌌🌿
   ========================================================================= */

.memorial-container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 3rem 1rem;
  position: relative;
  overflow-y: auto;
  z-index: 1;
}

/* 1. TEMA ESPIRITUAL / CELESTIAL */
.memorial-container.theme-spiritual {
  background: radial-gradient(circle at 50% 25%, rgba(212, 175, 55, 0.09) 0%, transparent 60%), linear-gradient(180deg, #090e18 0%, #111724 100%);
  --memorial-accent: #d4af37;
  --memorial-card-border: rgba(212, 175, 55, 0.18);
  --memorial-shadow: 0 0 25px rgba(212, 175, 55, 0.1);
}

/* 2. TEMA LAICO / NEUTRAL / NATURALEZA */
.memorial-container.theme-neutral {
  background: radial-gradient(circle at 50% 25%, rgba(42, 157, 143, 0.1) 0%, transparent 60%), linear-gradient(180deg, #0b1111 0%, #151d1e 100%);
  --memorial-accent: #2a9d8f;
  --memorial-card-border: rgba(42, 157, 143, 0.22);
  --memorial-shadow: 0 0 25px rgba(42, 157, 143, 0.08);
}

/* 3. TEMA ATEO / CÓSMICO / UNIVERSO */
.memorial-container.theme-atheist {
  background: radial-gradient(circle at 50% 25%, rgba(97, 175, 239, 0.06) 0%, transparent 60%), linear-gradient(180deg, #030406 0%, #0a0c10 100%);
  --memorial-accent: #61afef;
  --memorial-card-border: rgba(255, 255, 255, 0.08);
  --memorial-shadow: 0 0 25px rgba(97, 175, 239, 0.05);
}

/* COMPONENTES DEL MEMORIAL */
.memorial-card {
  width: 100%;
  max-width: 680px;
  background: rgba(18, 22, 28, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--memorial-card-border);
  box-shadow: var(--memorial-shadow);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.memorial-avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
}

.memorial-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--memorial-accent);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.memorial-symbol-glow {
  position: absolute;
  top: -10px; right: -10px;
  background: var(--memorial-accent);
  color: #000;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 10px var(--memorial-accent);
}

.memorial-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.memorial-dates {
  font-size: 1.05rem;
  color: var(--memorial-accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.memorial-epitaph {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: #d1d5db;
  max-width: 540px;
  margin: 0 auto 2rem;
  padding: 1rem;
  border-left: 2px solid var(--memorial-accent);
  background: rgba(255,255,255,0.01);
}

.memorial-recipient-header {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.memorial-private-box {
  width: 100%;
  max-width: 680px;
  background: rgba(10, 12, 16, 0.85);
  border: 1px solid var(--memorial-card-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.memorial-content-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #f3f4f6;
  white-space: pre-wrap;
}

.memorial-tributes-card {
  width: 100%;
  max-width: 680px;
  background: rgba(18, 22, 28, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* ANIMACIONES EXCLUSIVAS DE TEMAS */
.theme-spiritual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 30%),
              radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 30%);
  pointer-events: none;
  z-index: -1;
}

.theme-neutral::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(42, 157, 143, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(42, 157, 143, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.theme-atheist::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 150px 50px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 300px 100px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 80px 150px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 220px 220px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 400px 300px, #fff, rgba(0,0,0,0));
  background-size: 500px 500px;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

/* Empty App.css since we use index.css */
