:root{
  --infop-cyan:#283377;
  --infop-text:#ffffff;
  --header-h:56px;
}

html,body{
  height:100%;
  margin:0;
  background:#0f172a;
}

/* ===== Topbar fija ===== */
.topbar{
  position:fixed;
  inset:0 0 auto 0;
  height:var(--header-h);
  background:var(--infop-cyan);
  color:var(--infop-text);
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.5rem .75rem;
  box-shadow:0 6px 24px rgba(0,0,0,.12);
  z-index:10;

  /* Notch / safe area (iPhone, etc.) */
  padding-top: calc(.5rem + env(safe-area-inset-top));
}

.topbar .title{
  font-weight:700;
  letter-spacing:.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Área del iframe (alto real en móviles) ===== */
.embed-wrap{
  position:fixed;
  top:var(--header-h);
  left:0;
  right:0;
  background:#fff;

  /* Clave: altura dinámica real del teléfono */
  height: calc(100dvh - var(--header-h));
}

/* Fallback si el navegador no soporta 100dvh */
@supports not (height: 100dvh){
  .embed-wrap{
    height: calc(100vh - var(--header-h));
  }
}

.embed-wrap iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

/* ===== Botones superiores ===== */
.btn-top{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  background:#ffffff;
  color:#0b2136;
  border:1px solid rgba(0,0,0,.15);
  font-weight:600;
  border-radius:999px;
  padding:.375rem .75rem;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration:none; /* por si es <a> */
  line-height: 1;
}

.btn-top:hover{
  background:#f8fafc;
  transform: translateY(-1px);
  box-shadow:0 8px 20px rgba(0,0,0,.12);
  text-decoration:none;
  color:#0b2136;
}

.btn-top svg{
  width:16px;
  height:16px;
  display:block;
}

/* ===== Mejoras para celular ===== */
@media (max-width: 576px){
  :root{ --header-h: 64px; } /* más alto para dedos */

  .topbar{
    gap:.5rem;
    padding-left:.5rem;
    padding-right:.5rem;
  }

  .topbar .title{
    font-size:14px;
  }

  .btn-top{
    padding:.5rem .7rem;
    font-size:14px;
  }

  .btn-top svg{
    width:18px;
    height:18px;
  }
}