/* ProyectoStorage — estilos compartidos */
:root {
  --bg: #f4f4f1;
  --card: #ffffff;
  --ink: #1d1d1b;
  --muted: #6b6b66;
  --accent: #0e5aa7;
  --accent-dark: #0a447e;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

/* Navegación superior */
.topnav {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topnav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.3px;
  color: #fff;
  text-decoration: none;
}
.brand span { color: #7fb5f2; }
.topnav nav { display: flex; gap: 6px; margin-left: auto; }
.topnav nav a {
  color: #cfcfc9;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}
.topnav nav a:hover { color: #fff; background: #2c2c2a; }
.topnav nav a.active { color: #fff; background: var(--accent); }

.wrap { max-width: 960px; margin: 0 auto; padding: 48px 20px 64px; }

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -1px;
  line-height: 1.05;
}
.hero h1 span { color: var(--accent); }
.hero .tagline {
  margin-top: 14px;
  font-size: clamp(17px, 2.6vw, 22px);
  color: var(--muted);
  max-width: 640px;
  line-height: 1.5;
}

.section { margin-top: 48px; }
.section h2 { font-size: 24px; margin-bottom: 12px; }
.section p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 680px; }
.section p + p { margin-top: 10px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.5; flex: 1; }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background: #e3eefb;
  border-radius: 999px;
  padding: 4px 12px;
  width: fit-content;
}
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: var(--accent-dark); }

.coming {
  margin-top: 48px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.coming h2 { font-size: 20px; margin-bottom: 8px; }
.coming ul { list-style: none; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.coming li {
  font-size: 14px; color: var(--muted);
  border: 1px dashed #c9c9c2; border-radius: 999px; padding: 8px 16px;
}

footer {
  border-top: 1px solid #e2e2dc;
  margin-top: 56px;
  padding: 24px 20px 32px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Visor a pantalla completa */
.viewer {
  position: fixed;
  inset: 0;
  background: #111;
  z-index: 50;
  display: none;
  flex-direction: column;
}
.viewer.open { display: flex; }
.viewer-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}
.viewer-bar .brand { font-size: 16px; }
.viewer-bar nav { display: flex; gap: 4px; }
.viewer-bar nav a {
  color: #cfcfc9; text-decoration: none;
  font-size: 14px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
}
.viewer-bar nav a:hover { color: #fff; background: #2c2c2a; }
.viewer-bar nav a.active { background: var(--accent); color: #fff; }
.viewer-bar h2 { font-size: 16px; font-weight: 600; flex: 1; text-align: center; color: #fff; }
.viewer-bar .btn { padding: 9px 18px; font-size: 14px; }
.btn.ghost { background: transparent; border: 1px solid #555; color: #fff; }
.btn.ghost:hover { background: #2a2a2a; }
.stage { flex: 1; position: relative; display: none; min-height: 0; }
.stage.active { display: flex; }
.stage-video { align-items: center; justify-content: center; background: #000; flex-direction: column; gap: 14px; padding: 16px; }
.stage-video video { max-width: 100%; max-height: calc(100vh - 220px); border-radius: 8px; background: #000; }
.video-hint { color: #bbb; font-size: 14px; }
.stage-app iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.big-play {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  cursor: pointer;
}
.big-play.show { display: flex; }
.big-play span {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; padding-left: 6px;
}

@media (max-width: 560px) {
  .viewer-bar nav { display: none; }
  .topnav-inner { gap: 16px; }
}
