/* ─────────────────────────────────────────────
   Erappmus — App Erasmus · shell de la aplicación
   Implementación de App Erasmus.dc.html
   ───────────────────────────────────────────── */

body {
  margin: 0;
  background: #EDEDEF;
  font-family: 'Poppins', system-ui, sans-serif;
}
a { color: #DF1C74; text-decoration: none; }
a:hover { color: #831843; }
button { font-family: 'Poppins', system-ui, sans-serif; }
input, textarea { font-family: 'Poppins', system-ui, sans-serif; }

@keyframes erpUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ── Escenario: en escritorio la app vive dentro de un marco de móvil ── */
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px 60px;
  box-sizing: border-box;
}

.device {
  width: 402px;
  height: 874px;
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 40px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.12);
  -webkit-font-smoothing: antialiased;
}

.dyn-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  border-radius: 24px;
  background: #000;
  z-index: 50;
}

.statusbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  gap: 154px;
  align-items: center;
  justify-content: center;
  padding: 21px 24px 19px;
  box-sizing: border-box;
  z-index: 40;
  pointer-events: none;
}
.statusbar-half {
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.statusbar-time {
  font-family: -apple-system, 'SF Pro', system-ui;
  font-weight: 590;
  font-size: 17px;
  line-height: 22px;
  color: #000;
  padding-top: 1.5px;
}
.statusbar-icons { gap: 7px; padding-top: 1px; padding-right: 1px; }

.home-indicator {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 8px;
  pointer-events: none;
}
.home-indicator span {
  width: 139px;
  height: 5px;
  border-radius: 100px;
  background: rgba(0,0,0,0.25);
}

/* ── Contenedor de la app ── */
.app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

#screen-root {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

/* Sin barras de scroll visibles, como en el móvil */
.app, .app * { scrollbar-width: none; -ms-overflow-style: none; }
.app::-webkit-scrollbar, .app *::-webkit-scrollbar { width: 0; height: 0; display: none; }

.screen-anim { animation: erpUp 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); }

/* Indicador "escribiendo…" del asistente */
@keyframes chatPunto {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.chat-punto {
  width: 7px;
  height: 7px;
  border-radius: 100px;
  background: #9CA3AF;
  display: inline-block;
  animation: chatPunto 1.1s infinite;
}

/* Negritas y cursivas dentro de textos largos (descripciones y guía) */
.texto-rico strong { color: #1f2937; font-weight: 600; }
.texto-rico em { font-style: italic; }

/* ── Ficha de ciudad: secciones desplegables de la guía ── */
.guia-sec {
  background: #FAFAFA;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  margin-top: 10px;
  overflow: hidden;
}
.guia-sec summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  box-sizing: border-box;
}
.guia-sec summary::-webkit-details-marker { display: none; }
.guia-sec summary::after {
  content: '⌄';
  margin-left: auto;
  color: #9CA3AF;
  transition: transform 0.2s;
}
.guia-sec[open] summary::after { transform: rotate(180deg); }
.guia-sec .guia-cuerpo { padding: 0 16px 14px; }

/* ── Lista de prioridades: reordenar arrastrando ── */
.prio-row { transition: transform 0.16s ease; }
.prio-row.prio-drag {
  transition: none;
  position: relative;
  z-index: 5;
  box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}
.prio-handle {
  flex: none;
  padding: 8px 6px;
  font-size: 16px;
  line-height: 1;
  color: #C4C4C8;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.prio-handle:active { cursor: grabbing; color: #831843; }

/* ── Barra de pestañas ── */
.tabbar {
  display: flex;
  gap: 2px;
  padding: 8px 8px 26px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid #f3f4f6;
}

/* ── Huecos de imagen (placeholders de foto, como en el mockup) ── */
.img-slot {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FDF2F8 0%, #F3F4F6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}
.img-slot .emoji { font-size: 26px; opacity: 0.9; }
.img-slot .lbl {
  font-size: 10px;
  font-weight: 600;
  color: #9CA3AF;
  text-align: center;
  padding: 0 8px;
  line-height: 1.3;
}
.img-slot.dark { background: linear-gradient(160deg, #831843 0%, #000 78%); }

/* ── Móvil real: la app ocupa toda la pantalla, sin marco ── */
@media (max-width: 719px) {
  .stage { padding: 0; min-height: 100dvh; align-items: stretch; justify-content: stretch; }
  .device {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  .dyn-island, .statusbar, .home-indicator { display: none; }
  .tabbar { padding-bottom: max(26px, calc(8px + env(safe-area-inset-bottom))); }
}
