/* ============================================================
   FOKKO — EL OBSERVADOR
   styles.css
   Estética: verde salvia, ondas concéntricas, silencio profundo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,300;0,400;1,300;1,400&family=DM+Sans:wght@200;300;400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #060a07;
  --surface:   #0d1410;
  --sage:      #6B9E7A;
  --sage-dim:  rgba(107,158,122,0.10);
  --sage-mid:  rgba(107,158,122,0.28);
  --sage-soft: rgba(107,158,122,0.55);
  --moss:      #4A7A58;
  --white:     #EFF4F0;
  --body:      rgba(239,244,240,0.78);
  --muted:     rgba(239,244,240,0.44);
  --serif:     'Lora', Georgia, serif;
  --sans:      'DM Sans', Helvetica Neue, Arial, sans-serif;
  --ease-out:  cubic-bezier(0.16,1,0.3,1);
  --ease-slow: cubic-bezier(0.4,0,0.2,1);
  hyphens: none;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.82;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Canvas ── */
#canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

nav, .wrapper { position: relative; z-index: 2; }

/* ── Nav — minimalista, casi invisible ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 1.6rem clamp(1.5rem,6vw,4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(6,10,7,0.92) 0%, transparent 100%);
}
.nav-logo {
  font-family: var(--sans);
  font-size: 0.70rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.5s ease;
}
.nav-logo:hover { color: var(--white); }
.nav-tag {
  font-size: 0.60rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0.75;
}

/* ── Hero — más centrado, más espacio, más silencio ── */
#hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(5rem,10vw,9rem) clamp(1.5rem,8vw,6rem);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px,55vw,620px);
  height: clamp(280px,55vw,620px);
  background: radial-gradient(circle, rgba(107,158,122,0.06) 0%, transparent 65%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
  z-index: 0;
  border-radius: 50%;
}
@keyframes breathe {
  0%,100% { opacity:0.4; transform:translate(-50%,-50%) scale(0.95); }
  50%      { opacity:1;   transform:translate(-50%,-50%) scale(1.05); }
}

.hero-eyebrow {
  font-size: clamp(0.58rem,1.2vw,0.70rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
  position: relative; z-index: 1;
}

/* Título en Lora — elegante, literario, completamente distinto ── */
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem,8.5vw,7.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.4s var(--ease-out) 0.18s, transform 1.4s var(--ease-out) 0.18s;
  margin-bottom: 1.8rem;
  position: relative; z-index: 1;
}

.hero-title em {
  font-style: normal;
  color: var(--sage);
}

.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(1rem,2.4vw,1.6rem);
  font-weight: 300;
  color: rgba(239,244,240,0.62);
  max-width: 500px;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.2s var(--ease-out) 0.38s, transform 1.2s var(--ease-out) 0.38s;
  margin-bottom: 3.2rem;
  position: relative; z-index: 1;
}

.hero-cta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s var(--ease-out) 0.62s, transform 1s var(--ease-out) 0.62s;
  position: relative; z-index: 1;
}

/* ── Scroll hint — más lento, más suave ── */
.scroll-hint {
  position: absolute;
  bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out) 2.5s forwards;
  z-index: 1;
}
.scroll-hint span {
  font-size: 0.56rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted);
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--sage), transparent);
  animation: scrollAnim 2.8s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { transform:scaleY(0); transform-origin:top; }
  50%  { transform:scaleY(1); transform-origin:top; }
  51%  { transform:scaleY(1); transform-origin:bottom; }
  100% { transform:scaleY(0); transform-origin:bottom; }
}
@keyframes fadeUp { to { opacity:0.7; } }

/* ── Botón — borde muy sutil, casi tímido ── */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border: 1px solid rgba(107,158,122,0.35);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(107,158,122,0.05);
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: border-color 0.5s ease, background 0.5s ease;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(107,158,122,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.btn-primary:hover {
  border-color: rgba(107,158,122,0.7);
  background: rgba(107,158,122,0.08);
}
.btn-primary:hover::before { opacity: 1; }

/* ── Reveal — más lento que los otros arquetipos ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s var(--ease-slow), transform 1.1s var(--ease-slow);
}
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-d1 { transition-delay:0.12s; }
.reveal-d2 { transition-delay:0.26s; }
.reveal-d3 { transition-delay:0.42s; }
.reveal-d4 { transition-delay:0.58s; }

/* ── Divider — onda simple ── */
.divider {
  width: 60px; height: 1px;
  background: var(--sage-mid);
  margin: 0 auto;
  display: block;
  opacity: 0.6;
}

/* ── Labels & títulos ── */
.label {
  font-family: var(--sans);
  font-size: 0.60rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 1.4rem;
  opacity: 0.85;
}

/* Títulos: Lora regular (no italic) — íntimo, literario ── */
.sec-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem,4.4vw,3.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.6rem;
}

.sec-body {
  font-size: clamp(0.97rem,1.6vw,1.08rem);
  color: var(--body);
  line-height: 1.92;
}

/* Pull quote — sin borde izquierdo, centrado, más contemplativo ── */
.pull-quote {
  font-family: var(--serif);
  font-size: clamp(1.08rem,2.4vw,1.48rem);
  font-style: italic;
  color: rgba(107,158,122,0.85);
  text-align: center;
  margin: 2.8rem auto;
  line-height: 1.65;
  max-width: 480px;
  padding: 0 1rem;
  position: relative;
}
.pull-quote::before {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--sage-mid);
  margin: 0 auto 1.4rem;
}
.pull-quote::after {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--sage-mid);
  margin: 1.4rem auto 0;
}

/* ── Secciones — más padding, más respiración ── */
.sec {
  padding: clamp(5rem,13vw,9.5rem) clamp(1.5rem,8vw,5rem);
  max-width: 1040px;
  margin: 0 auto;
}

/* ── Identidad — columna única, más contemplativa ── */
#identidad {
  text-align: center;
}
#identidad .inner {
  max-width: 640px;
  margin: 0 auto;
}

/* ── Herida ── */
#herida { text-align: center; }
#herida .sec-body { max-width: 540px; margin: 0 auto; }

/* ── Dones — lista vertical elegante, no grid ── */
#dones { text-align: center; }

.dones-list {
  margin: 3rem auto 0;
  max-width: 560px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.don-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(107,158,122,0.07);
  transition: padding-left 0.5s var(--ease-out);
}
.don-item:first-child { border-top: 1px solid rgba(107,158,122,0.07); }
.don-item:hover { padding-left: 0.3rem; }

.don-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
  margin-top: 0.65rem;
  opacity: 0.55;
  transition: opacity 0.4s ease;
}
.don-item:hover .don-dot { opacity: 1; }

.don-text {
  font-size: clamp(0.97rem,1.6vw,1.06rem);
  color: rgba(239,244,240,0.82);
  line-height: 1.7;
}

/* ── Companion ── */
#companion { text-align: center; }

.chat-ui {
  background: rgba(10,16,11,0.88);
  border: 1px solid rgba(107,158,122,0.12);
  padding: 2rem;
  position: relative;
  max-width: 520px;
  margin: 3rem auto 0;
}
/* Glow interior muy sutil */
.chat-ui::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(107,158,122,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.chat-header {
  display: flex; align-items: center; gap: 0.65rem;
  padding-bottom: 1.1rem; margin-bottom: 1.3rem;
  border-bottom: 1px solid rgba(107,158,122,0.08);
}
.chat-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sage-dim);
  border: 1px solid rgba(107,158,122,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; color: var(--sage); flex-shrink: 0;
}
.chat-name {
  font-size: 0.70rem; letter-spacing: 0.14em;
  color: var(--sage); text-transform: uppercase;
}
.chat-status {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--sage); margin-left: auto;
  animation: blink 3.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:0.9} 50%{opacity:0.15} }

.chat-bubble {
  font-size: clamp(0.95rem,1.5vw,1.02rem);
  color: rgba(239,244,240,0.80);
  line-height: 1.9;
  text-align: left;
}

.typing-cursor {
  display: inline-block;
  width: 1px; height: 0.9em;
  background: var(--sage); margin-left: 2px;
  vertical-align: text-bottom;
  animation: cur 1.4s step-end infinite;
}
@keyframes cur { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Ritual — preguntas meditativas ── */
#ritual { text-align: center; }

.ritual-list {
  margin: 3.5rem auto 0;
  max-width: 500px; text-align: left;
}
.ritual-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(107,158,122,0.06);
  transition: all 0.5s var(--ease-out);
}
.ritual-item:first-child { border-top: 1px solid rgba(107,158,122,0.06); }
.rq {
  font-family: var(--serif);
  font-size: clamp(1.05rem,2.2vw,1.3rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  transition: color 0.4s ease;
}
.ritual-item:hover .rq { color: rgba(107,158,122,0.9); }

/* ── Final ── */
#final {
  min-height: 60vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; position: relative;
  padding: clamp(4rem,10vw,8rem) clamp(1.5rem,6vw,4rem);
}
.final-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(107,158,122,0.055) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  border-radius: 50%;
  animation: breathe 10s ease-in-out infinite;
}
.final-l1 {
  font-family: var(--serif);
  font-size: clamp(1.4rem,3.8vw,3rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(239,244,240,0.55);
  margin-bottom: 0.2rem;
  position: relative; z-index: 1;
}
.final-l2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem,3.8vw,3rem);
  font-style: italic;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 3.4rem;
  position: relative; z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .pull-quote { font-size: 1.08rem; }
  .sec-title  { font-size: 1.7rem; }
}

::selection { background: rgba(107,158,122,0.22); color: var(--white); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(107,158,122,0.22); border-radius: 2px; }
