/*
  OUBE | Portal raíz — estética alineada con landing
*/
:root {
  --bg: #f4f6fc;
  --ink: #0c1b2e;
  --muted: #5a7088;
  --violet: #3c4398;
  --violet-light: #7b4bb7;
  --violet-soft: rgba(60, 67, 152, 0.12);
  --violet-glow: rgba(123, 75, 183, 0.18);
  --navy: #0f2d4d;
  --white: #fff;
  --radius: 1rem;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Syne", sans-serif;
  --pat-modulo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='50' viewBox='0 0 96 50'%3E%3Cg fill='none' stroke='%230f2d4d' stroke-width='0.85' opacity='0.09'%3E%3Crect x='1' y='2' width='28' height='15' rx='2.5'/%3E%3Crect x='33' y='2' width='28' height='15' rx='2.5'/%3E%3Crect x='65' y='2' width='28' height='15' rx='2.5'/%3E%3Crect x='17' y='26' width='28' height='15' rx='2.5'/%3E%3Crect x='49' y='26' width='28' height='15' rx='2.5'/%3E%3Crect x='81' y='26' width='14' height='15' rx='2.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --pat-pinon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cg fill='none' stroke='%230a8eb8' stroke-width='0.9' opacity='0.07' transform='translate(180,180)'%3E%3Ccircle r='52'/%3E%3Ccircle r='38'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    var(--pat-modulo),
    var(--pat-pinon),
    radial-gradient(ellipse 55% 40% at 88% 8%, var(--violet-glow), transparent 70%),
    radial-gradient(ellipse 45% 35% at 4% 92%, var(--violet-soft), transparent 72%),
    var(--pat-pinon);
  background-size: 96px 50px, 400px 400px, auto, auto, 340px 340px;
  background-position: 0 0, calc(100% + 80px) 12vh, 0 0, 0 0, -140px calc(100% - 180px);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  display: grid;
  place-items: center;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.site-watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 22%, rgba(255, 255, 255, 0.55), transparent 72%),
    url("assets/revista/hoja-0-frente.jpg") center 14vh / clamp(220px, 38vw, 480px) no-repeat;
  opacity: 0.07;
  filter: saturate(0.7) contrast(1.05);
}

.portal {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(60, 67, 152, 0.1);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: clamp(1.75rem, 5vw, 2.5rem);
  box-shadow: 0 16px 40px rgba(60, 67, 152, 0.12);
}

.portal__logo-wrap {
  display: inline-block;
  background: #fff;
  padding: 0.75rem 1.35rem;
  border-radius: 0.85rem;
  margin: 0 auto 1rem;
  box-shadow: 0 6px 18px rgba(60, 67, 152, 0.1);
}

.portal__logo {
  display: block;
  width: min(280px, 76vw);
  height: auto;
  max-height: 96px;
  object-fit: contain;
  object-position: center;
}

.portal h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2rem);
  color: var(--navy);
}

.portal__lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.portal__actions {
  display: grid;
  gap: 0.75rem;
}

.portal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.portal__btn:hover { transform: translateY(-2px); }

.portal__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  box-shadow: 0 8px 20px rgba(60, 67, 152, 0.28);
}

.portal__btn--secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(60, 67, 152, 0.15);
}

.portal__btn--ghost {
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 44px;
  padding: 0.5rem;
}

.portal__foot {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.install-banner {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(420px, 92vw);
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #e8f0fa;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(60, 67, 152, 0.35);
  font-size: 0.9rem;
}

.install-banner__btn {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--violet-light), var(--violet));
  color: #fff;
  min-height: 36px;
}

.install-banner__close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  min-width: 36px;
  min-height: 36px;
}

@media (min-width: 481px) {
  .portal { padding: clamp(1.75rem, 5vw, 2.5rem); }
}
