/* ─────────────────────────────
   BASE & VARIABLES
───────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --azul:    #14104B; /* texto principal, headings */
  --gris:    #F5F5F5; /* fondo alterno de secciones */
  --blanco:  #FFFFFF; /* fondo principal */
  --naranja: #FFD0BE; /* acento — fondos, líneas, dots */
  --rosa:    #EDB3D4; /* acento — hover / secundario */

  /* Variantes de --azul para texto secundario y líneas sutiles */
  --azul-70: rgba(20, 16, 75, .7);
  --azul-50: rgba(20, 16, 75, .5);
  --azul-30: rgba(20, 16, 75, .3);
  --azul-15: rgba(20, 16, 75, .15);
  --azul-08: rgba(20, 16, 75, .08);

  --fd: 'Barlow Condensed', sans-serif;
  --fb: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--blanco);
  color: var(--azul);
  overflow-x: hidden;
  font-family: var(--fd);
}

/* ─────────────────────────────
   NAV (Heredado y Funcional)
───────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 68px;
  background: var(--naranja);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 9999;
}

.nav-left { display: flex; align-items: center; }

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--azul);
}

.logo-text {
  line-height: .85;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text .lb {
  display: block;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 34px;
}

.nav-links a {
  text-decoration: none;
  color: var(--azul);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: opacity .2s;
}

.nav-links a:hover { opacity: .6; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--azul);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─────────────────────────────
   PROTOTIPO APP
───────────────────────────── */
.app-page {
  padding: 160px 80px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header { margin-bottom: 32px; }

.app-title {
  font-size: clamp(50px, 8vw, 100px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--azul);
  line-height: .88;
  letter-spacing: -.02em;
  font-family: var(--fd);
}

.app-title span { color: var(--naranja); }

.app-subtitle {
  font-family: var(--fb);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: var(--azul-50);
  margin-top: 20px;
  letter-spacing: 0.02em;
}

/* Wrapper de renderizado para Figma */
.app-iframe-wrapper {
  width: 100%;
  height: 85vh; /* Altura inmersiva para interactuar */
  min-height: 600px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--gris);
}

.app-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ─────────────────────────────
   BREAKPOINTS (Responsive)
───────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 18px; }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0;
    width: 100%;
    background: var(--naranja);
    flex-direction: column;
    padding: 20px 24px 30px;
    gap: 0;
    z-index: 9998;
    list-style: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--azul-15); }
  .nav-links a { display: block; padding: 14px 0; font-size: 20px; }

  .app-page { padding: 120px 25px 40px; }
  .app-iframe-wrapper { height: 75vh; }
}