/* ==========================================================================
   DESK · Mix Reality Experiences — styles.css
   Hoja compartida por index.html y por todas las landings de experiencia.

   1. Tokens (colores DESK, tipografía, medidas)
   2. Base
   3. Fondo: piso de rejilla
   4. Menú (index)
   5. Landing de experiencia
   6. Movimiento reducido
   ========================================================================== */


/* 1. TOKENS ---------------------------------------------------------------
   Para re-tematizar todo el sitio, cambia SOLO estos valores.
   (Los colores son provisionales: reemplázalos por los HEX de marca.)
   ------------------------------------------------------------------------ */
:root {
  --bg-1: #1B1148;          /* fondo, parte superior  */
  --bg-2: #08213F;          /* fondo, parte inferior  */
  --ink: #F4F5FF;           /* texto principal        */
  --ink-soft: #A9ADD6;      /* texto secundario       */
  --accent: #3DE0D0;        /* acento principal       */
  --accent-2: #8B6BFF;      /* acento secundario      */

  --line: rgba(255, 255, 255, .13);
  --surface: rgba(255, 255, 255, .05);
  --cell: 56px;             /* tamaño de celda de la rejilla */
  --radius: 18px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


/* 2. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding:
    max(20px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(139, 107, 255, .38), transparent 62%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  background-color: var(--bg-2);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Texto "DESK" que aparece solo si logo.png no carga */
.wordmark {
  font-weight: 800;
  letter-spacing: .06em;
}


/* 3. FONDO: PISO DE REJILLA ---------------------------------------------- */
.floor {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 48vh;
  perspective: 480px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
          mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}
.plane {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100%;
  transform-origin: 50% 100%;
  transform: rotateX(62deg);
}
.grid {
  position: absolute;
  left: -100%; right: -100%;
  top: calc(var(--cell) * -6);
  bottom: 0;
  background-image:
    linear-gradient(var(--line) 4px, transparent 6px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  animation: drift 2s linear infinite;
  will-change: transform;
}
@keyframes drift { to { transform: translateY(var(--cell)); } }


/* 4. MENÚ (index.html) ---------------------------------------------------- */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  margin: auto;               /* centra en vertical y horizontal */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-slot {
  width: min(64vw, 300px);
  min-height: 120px;
  display: grid;
  place-items: center;
  margin: 0 0 clamp(14px, 3vh, 26px);
}
.logo-slot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 34vh;
  object-fit: contain;
}
.logo-slot .wordmark { font-size: clamp(3rem, 16vw, 5rem); }

.subtitle {
  margin: 0 0 clamp(28px, 6vh, 48px);
  padding-left: .34em;        /* compensa el tracking para centrar */
  font-size: clamp(.72rem, 3vw, .95rem);
  font-weight: 600;
  letter-spacing: .34em;
  color: var(--ink-soft);
  text-align: center;
}

.menu {
  width: 100%;
  max-width: 420px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease;
}
.btn .ico {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(61, 224, 208, .1);
  transition: background-color .2s ease, color .2s ease;
}
.btn svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn:active { transform: scale(.98); }

@media (hover: hover) {
  .btn:hover {
    border-color: var(--accent);
    background: rgba(61, 224, 208, .09);
  }
  .btn:hover .ico { background: var(--accent); color: var(--bg-1); }
}

@media (min-width: 620px) {
  .logo-slot { width: 300px; }
  .menu { max-width: 640px; grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (min-width: 960px) {
  .menu { max-width: 880px; grid-template-columns: repeat(3, 1fr); }
  .btn { min-height: 68px; }
}


/* 5. LANDING DE EXPERIENCIA ---------------------------------------------- */

/* Barra superior: volver (izquierda) + logo pequeño (derecha) */
.top {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.back {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: var(--ink);
  transition: transform .15s ease, border-color .2s ease, color .2s ease;
}
.back svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back:active { transform: scale(.94); }
@media (hover: hover) {
  .back:hover { border-color: var(--accent); color: var(--accent); }
}

.logo-mini { display: flex; align-items: center; }
.logo-mini img {
  display: block;
  height: 43px;
  width: auto;
  max-width: 136px;
  object-fit: contain;
}
.logo-mini .wordmark { font-size: 1.1rem; letter-spacing: .08em; }

/* Contenedor principal */
.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  /*padding-top: clamp(20px, 4vh, 40px);*/
  padding-top:0px;
}

/* Móvil: título → descripción → video → botón */
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.copy { display: contents; }
.copy .title { order: 1; }
.copy .desc  { order: 2; }
.media       { order: 3; }
.copy .cta   { order: 4; }

.title {
  margin: 0;
  width: 100%;
  font-size: clamp(1.9rem, 9.5vw, 3.2rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.005em;
}
.desc {
  margin: 0;
  width: 100%;
  max-width: 46ch;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

/* Video / GIF (vertical 9:16) */
.media {
  position: relative;
  height: min(38svh, 420px);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(139, 107, 255, .35), transparent 70%),
    var(--surface);
}
.media .ph {                  /* texto de relleno mientras no hay video */
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-size: .9rem;
  color: var(--ink-soft);
}
.media video,
.media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
}
.media video.ready,
.media img.ready { opacity: 1; }

/* Botón principal */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 0 26px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg-1);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .15s ease, filter .2s ease;
}
.cta svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta:active { transform: scale(.98); }
@media (hover: hover) { .cta:hover { filter: brightness(1.08); } }

/* Pantallas anchas: texto y botón a la izquierda, video a la derecha */
@media (min-width: 900px) {
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 72px;
  }
  .copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .copy .title, .copy .desc, .media, .copy .cta { order: 0; }
  .media { height: min(58svh, 580px); }
  .cta { width: auto; min-width: 260px; }
}


/* 6. MOVIMIENTO REDUCIDO -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .grid { animation: none; }
  .btn, .back, .cta { transition: none; }
}
