/* ═══════════════════════════════════════════════
   APP LANDING — estilos compartidos Silabea + CronoGuía
   Carga después de main.css. No redefine variables del sistema.
═══════════════════════════════════════════════ */
:root {
  --amber: #F59E0B;        /* badge "en desarrollo" */
  --amber-dim: #D97706;
  --amber-pale: #FEF3C7;
  --amber-bg: #FFFBEB;
}

/* ══ Variantes claras para fondos oscuros ══ */
.sec-label-light { color: rgba(18,227,188,.6); }
.sec-title-light { color: var(--white); }
.sec-title-light em { color: var(--mint); }
.sec-lead-light { color: rgba(255,255,255,.55); }

/* ══ HERO ══ */
.app-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  padding: 170px 0 120px;
  overflow: hidden;
}
.app-hero .wrap { position: relative; z-index: 1; width: 100%; }
.app-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.app-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid rgba(18,227,188,.35);
  background: rgba(18,227,188,.07);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.app-hero h1 {
  font-size: clamp(3.6rem, 9vw, 8.5rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.04em;
  color: var(--white);
  margin-bottom: 22px;
}
.app-hero-tagline {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--mint);
  margin-bottom: 22px;
}
.app-hero-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,.6);
  max-width: 480px;
  margin-bottom: 36px;
}
.app-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.app-feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.app-feature-badge {
  font-size: .7rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 7px 14px;
  border-radius: 50px;
}

/* Hero centrado (CronoGuía) */
.app-hero.hero-centered { padding-bottom: 80px; }
.app-hero.hero-centered .app-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.app-hero.hero-centered h1 { font-size: clamp(2.8rem, 6.5vw, 5.2rem); line-height: 1.04; }
.app-hero.hero-centered .app-hero-desc { margin-left: auto; margin-right: auto; max-width: 540px; }
.app-hero.hero-centered .app-hero-ctas { justify-content: center; }

/* Textura nazarí — rombos + estrellas tenues en mint */
.hero-nazari::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, var(--mint) 0, var(--mint) 1px, transparent 1px, transparent 46px),
    repeating-linear-gradient(-45deg, var(--mint) 0, var(--mint) 1px, transparent 1px, transparent 46px);
  opacity: .03;
  pointer-events: none;
}
.hero-nazari::after {
  content: '✦ \2002 ✦ \2002 ✦ \2002 ✦ \2002 ✦ \2002 ✦ \2002 ✦ \2002 ✦ \2002 ✦ \2002 ✦ \2002 ✦ \2002 ✦';
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .8rem;
  color: var(--mint);
  opacity: .06;
  pointer-events: none;
}

/* Fila de datos bajo el hero (CronoGuía) */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 760px;
  margin: 64px auto 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.hero-stat {
  background: rgba(255,255,255,.04);
  padding: 24px 16px;
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--mint);
  margin-bottom: 4px;
}
.hero-stat span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.5);
}

/* ══ MOCKUP MÓVIL (Silabea) ══ */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 272px;
  height: 560px;
  border-radius: 42px;
  border: 3px solid rgba(255,255,255,.14);
  background: linear-gradient(160deg, #0d1a15 0%, #09100e 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(18,227,188,.08);
  padding: 18px;
}
.phone-notch {
  width: 110px;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: rgba(255,255,255,.08);
  margin: -18px auto 14px;
}
.phone-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: calc(100% - 18px);
  padding-top: 22px;
}
.phone-phase {
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(18,227,188,.55);
  margin-bottom: 26px;
}
.phone-syllable {
  font-size: 4.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 8px;
}
.phone-hint {
  font-size: .68rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 30px;
}
.phone-stars {
  display: flex;
  gap: 10px;
  font-size: 1.3rem;
  margin-bottom: auto;
}
.phone-stars span { animation: starTwinkle 2.6s ease-in-out infinite alternate; }
.phone-stars span:nth-child(2) { animation-delay: .4s; }
.phone-stars span:nth-child(3) { animation-delay: .8s; }
.phone-mic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  animation: micSonar 2.4s ease-out infinite;
}
.phone-mic svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes micSonar {
  0% { box-shadow: 0 0 0 0 rgba(18,227,188,.5); }
  70% { box-shadow: 0 0 0 22px rgba(18,227,188,0); }
  100% { box-shadow: 0 0 0 0 rgba(18,227,188,0); }
}
@keyframes starTwinkle {
  from { opacity: .35; transform: scale(.85); }
  to { opacity: 1; transform: scale(1.1); }
}

/* ══ SECCIONES BASE ══ */
.app-sec { padding: 110px 0; position: relative; }
.app-sec-off { background: var(--off); }
.app-sec-ink { background: var(--ink); }
.app-sec-white { background: var(--white); }
.app-sec-head { margin-bottom: 56px; }
.clip-top {
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
  margin-top: -60px;
  padding-top: 170px;
}

/* ══ HISTORIA / PROBLEMA — 2 columnas ══ */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.story-text p {
  font-size: .95rem;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 18px;
}
.story-text p strong { color: var(--ink); }
.story-quote {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 44px 40px;
}
.story-quote blockquote {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -.01em;
  color: var(--white);
  margin: 0 0 22px;
}
.story-quote blockquote::before { content: '“'; color: var(--mint); }
.story-quote blockquote::after { content: '”'; color: var(--mint); }
.story-quote cite {
  display: block;
  font-style: normal;
  font-size: .78rem;
  font-weight: 700;
  color: var(--mint);
}
.story-quote cite span {
  display: block;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}

/* Stat grande (CronoGuía — el problema) */
.big-stat { text-align: center; }
.big-stat strong {
  display: block;
  font-size: clamp(3.6rem, 7.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--mint-dim);
  margin-bottom: 12px;
}
.big-stat span {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ══ VÍDEO ══ */
.video-shell { max-width: 860px; margin: 0 auto; }
.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ══ PASOS NUMERADOS ══ */
.app-steps { margin-top: 56px; }
.steps-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.step-card {
  background: var(--off);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 36px 32px;
  position: relative;
  transition: all .3s var(--ease);
}
.step-card:hover {
  border-color: var(--mint);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(18,227,188,.08);
}
.step-num {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--mint);
  margin-bottom: 16px;
  display: block;
}
.step-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.step-card p {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--mid);
  margin: 0;
}

/* Pasos grandes con línea conectora (CronoGuía) */
.steps-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps-line::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  border-top: 2px dashed var(--line);
}
.step-big { position: relative; }
.step-big .step-num {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--mint-pale);
  color: var(--mint-dim);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--line);
}
.step-big h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.step-big p {
  font-size: .88rem;
  line-height: 1.75;
  color: var(--mid);
  margin: 0;
}

/* ══ CAPTURAS ══ */
.captures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.capture-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(9,16,14,.07);
}
.capture-card img { width: 100%; height: auto; display: block; }
.capture-placeholder {
  position: relative;
  padding-bottom: 130%;
  background: linear-gradient(160deg, var(--mint-bg) 0%, var(--mint-pale) 100%);
  border: 1.5px dashed rgba(13,196,162,.35);
  border-radius: var(--r-md);
}
.capture-placeholder span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mint-dim);
}

/* ══ DIFERENCIADORES (fondo ink) ══ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.diff-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  padding: 34px 32px;
  transition: all .3s var(--ease);
}
.diff-card:hover {
  border-color: rgba(18,227,188,.35);
  background: rgba(255,255,255,.06);
}
.diff-icon { font-size: 1.5rem; display: block; margin-bottom: 16px; }
.diff-card h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 10px;
}
.diff-card p {
  font-size: .86rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  margin: 0;
}

/* ══ ARQUITECTURA / FLUJO TÉCNICO (Silabea) ══ */
.tech-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 56px 0 40px;
}
.tech-node {
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--off);
  border: 1.5px solid var(--line);
  padding: 14px 22px;
  border-radius: 50px;
  white-space: nowrap;
}
.tech-node.node-final {
  background: var(--mint-pale);
  border-color: rgba(13,196,162,.4);
  color: var(--mint-dim);
}
.tech-arrow {
  color: var(--mint);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.tech-note {
  font-size: .92rem;
  line-height: 1.8;
  color: var(--mid);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.tech-note strong { color: var(--ink); }

/* ══ GRID DE TECNOLOGÍAS (CronoGuía) ══ */
.app-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.tech-item {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px;
  transition: all .3s var(--ease);
}
.tech-item:hover {
  border-color: var(--mint);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(18,227,188,.08);
}
.tech-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--mint-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--mint-dim);
  margin-bottom: 18px;
}
.tech-item h3 {
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.tech-item p {
  font-size: .84rem;
  line-height: 1.7;
  color: var(--mid);
  margin: 0;
}
.tech-foot {
  margin-top: 44px;
  text-align: center;
  font-size: .9rem;
  font-style: italic;
  color: var(--mid);
}

/* ══ PERSONAJE YUSUF (CronoGuía) ══ */
.yusuf-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  margin-top: 56px;
}
.yusuf-text p {
  font-size: .95rem;
  line-height: 1.85;
  color: rgba(255,255,255,.6);
  margin-bottom: 26px;
}
.yusuf-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.yusuf-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--mint);
  background: rgba(18,227,188,.07);
  border: 1px solid rgba(18,227,188,.3);
  padding: 7px 15px;
  border-radius: 50px;
}
.yusuf-quote {
  background: rgba(18,227,188,.08);
  border-left: 3px solid var(--mint);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 24px 28px;
  font-size: .98rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255,255,255,.78);
}
.yusuf-figure { display: flex; justify-content: center; }
.yusuf-placeholder {
  width: 280px;
  height: 340px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--mint) 0%, var(--mint-dim) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(18,227,188,.18);
}

/* ══ MAPA / ESCALABILIDAD (CronoGuía) ══ */
.map-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 56px 0 40px;
}
.map-city {
  font-size: .82rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(18,227,188,.35);
  padding: 12px 22px;
  border-radius: 50px;
  position: relative;
  white-space: nowrap;
}
.map-city.city-origin {
  background: var(--mint);
  color: var(--ink);
  border-color: var(--mint);
}
.map-link {
  width: 52px;
  border-top: 2px dotted rgba(18,227,188,.5);
  flex-shrink: 0;
}
.map-text {
  font-size: .92rem;
  line-height: 1.8;
  color: rgba(255,255,255,.55);
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

/* ══ EQUIPO (CronoGuía) ══ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.team-card {
  background: var(--off);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 36px 30px;
  text-align: center;
  transition: all .3s var(--ease);
}
.team-card:hover {
  border-color: var(--mint);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(18,227,188,.08);
}
.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(160deg, var(--mint) 0%, var(--mint-dim) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.team-card p {
  font-size: .8rem;
  color: var(--mid);
  margin: 0;
}
.team-note {
  margin-top: 44px;
  text-align: center;
  font-size: .9rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--mid);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ══ CTA FINAL ══ */
.app-cta-final {
  background: var(--mint);
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
  margin-top: -60px;
  padding: 170px 0 110px;
  text-align: center;
}
.app-cta-final h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}
.app-cta-final p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(9,16,14,.65);
  max-width: 520px;
  margin: 0 auto 36px;
}
.app-cta-final .cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* CTA final oscuro (CronoGuía — ink → ámbar profundo) */
.app-cta-final.cta-dark {
  background: linear-gradient(135deg, var(--ink) 0%, #1a0f00 100%);
}
.app-cta-final.cta-dark h2 { color: var(--white); }
.app-cta-final.cta-dark p { color: rgba(255,255,255,.55); }

/* ══ RESPONSIVE ══ */
@media (max-width: 960px) {
  .app-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .app-hero h1 { font-size: clamp(3.2rem, 13vw, 5.5rem); }
  .story-grid,
  .yusuf-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-2x2,
  .diff-grid { grid-template-columns: 1fr; }
  .steps-line { grid-template-columns: 1fr; gap: 32px; }
  .steps-line::before { display: none; }
  .captures-grid,
  .app-tech-grid,
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .yusuf-figure { order: -1; }
}
@media (max-width: 640px) {
  .app-hero { padding: 140px 0 90px; }
  .hero-stats { grid-template-columns: 1fr; }
  .captures-grid,
  .app-tech-grid,
  .team-grid { grid-template-columns: 1fr; }
  .phone { width: 240px; height: 500px; }
  .tech-flow { flex-direction: column; }
  .tech-arrow { transform: rotate(90deg); }
  .map-route { flex-direction: column; gap: 0; }
  .map-link { width: 0; height: 28px; border-top: none; border-left: 2px dotted rgba(18,227,188,.5); }
  .story-quote { padding: 32px 26px; }
}
