/* poemsandlearn — Landing page styles */
/* Paleta coherente con el chat (core.css) */
:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-elevated: #1c2431;
  --border: #2a3040;
  --text: #e8e8e8;
  --text-muted: #8b8fa3;
  --gold: #f0b90b;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --green: #10b981;
  --red: #ef4444;
  --radius: 16px;
  --gradient: linear-gradient(135deg, #f0b90b 0%, #f59e0b 40%, #ef4444 100%);
}

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

html {
  scroll-behavior: smooth;
}

body.landing-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.landing-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gradient);
  color: #111;
  border: none;
  box-shadow: 0 8px 24px rgba(240, 185, 11, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(240, 185, 11, 0.55);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.btn-large {
  padding: 15px 30px;
  font-size: 16px;
}

.btn-small {
  padding: 9px 18px;
  font-size: 14px;
}

/* ============================================================
   HEADER
   ============================================================ */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 16px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
}

.brand-icon {
  font-size: 28px;
}

.landing-nav {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.landing-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.landing-nav a:hover {
  color: var(--text);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center;
  padding: 84px 0 60px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(240, 185, 11, 0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(240, 185, 11, 0.12);
  border: 1px solid rgba(240, 185, 11, 0.35);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(34px, 5.6vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.hero-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
  color: var(--text-muted);
  font-size: 13.5px;
  flex-wrap: wrap;
}

.proof-avatars span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 2px solid var(--bg);
  border-radius: 50%;
  font-size: 16px;
  margin-left: -8px;
}

.proof-avatars span:first-child {
  margin-left: 0;
}

/* ============================================================
   CARD CONTINUAR (warm state)
   ============================================================ */
.continue-card {
  position: relative;
  max-width: 560px;
  margin: 44px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  text-align: left;
  overflow: hidden;
  animation: card-in 0.45s ease-out;
}

.continue-card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.continue-card-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.continue-card-label {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.continue-card-poem {
  font-size: 22px;
  font-weight: 800;
}

.continue-card-verse {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.continue-card-snippet {
  font-style: italic;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 16px;
  font-size: 15px;
}

.continue-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.continue-meta-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
}

.continue-card .btn {
  width: 100%;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SKELETON (mientras consulta session-stats)
   ============================================================ */
.continue-skeleton {
  padding: 32px 30px;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--border) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  margin-bottom: 14px;
}

.skeleton-40 { width: 40%; }
.skeleton-80 { width: 80%; }
.skeleton-60 { width: 60%; }
.skeleton-90 { width: 90%; }

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hidden { display: none !important; }

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 70px 44px;
  margin: 20px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(25px, 3.6vw, 36px);
  font-weight: 900;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 44px;
}

/* ============================================================
   CÓMO FUNCIONA (steps)
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.step-number {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 40px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
}

.step-icon {
  font-size: 34px;
  display: block;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ============================================================
   POEMAS PREVIEW
   ============================================================ */
.poems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.poem-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.poem-preview:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
}

.poem-preview-text {
  font-size: 15.5px;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 22px;
  font-family: Georgia, 'Times New Roman', serif;
}

.poem-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.poem-preview-author {
  font-weight: 700;
  font-size: 14px;
}

.poem-preview-title {
  color: var(--text-muted);
  font-size: 13px;
  text-align: right;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}

.feature-icon {
  font-size: 30px;
  display: block;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.final-cta {
  text-align: center;
  padding: 84px 0 96px;
}

.final-cta-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.final-cta-text {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 30px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding: 26px 0 34px;
  flex-wrap: wrap;
}

.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}

.landing-footer .privacy-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13.5px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

.landing-footer .privacy-link:hover {
  color: var(--text);
}

.landing-footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================================
   MODAL PRIVACIDAD (compartido con el chat, aquí autocontenido)
   ============================================================ */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.privacy-modal[hidden] { display: none; }

.privacy-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: privacy-fade-in 0.2s ease-out;
}

.privacy-modal-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: privacy-pop-in 0.22s ease-out;
}

.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #1f2937, #1c2431);
  flex-shrink: 0;
}

.privacy-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
}

.privacy-modal-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  flex-shrink: 0;
}

.privacy-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.privacy-modal-close:active { transform: scale(0.9); }

.privacy-modal-body {
  padding: 20px 22px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.privacy-modal-lead { font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.privacy-modal-lead a { color: var(--blue); text-decoration: none; }
.privacy-modal-lead a:hover { text-decoration: underline; }

.privacy-modal-section { margin-bottom: 18px; }
.privacy-modal-section:last-child { margin-bottom: 0; }
.privacy-modal-section h3 { font-size: 14.5px; font-weight: 700; color: var(--gold); margin-bottom: 6px; line-height: 1.4; }
.privacy-modal-section p, p.privacy-modal-section { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }

@keyframes privacy-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes privacy-pop-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .steps-grid, .poems-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .section-alt { padding: 50px 26px; }
}

@media (max-width: 600px) {
  .landing-wrap { padding: 0 16px; }
  .hero { padding: 56px 0 44px; }

  .landing-header { flex-wrap: wrap; }
  .landing-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 18px; overflow-x: auto; padding-bottom: 6px; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-large { width: 100%; }

  .continue-card { padding: 24px 20px; margin-top: 34px; }
  .continue-card-meta { gap: 6px; }
  .continue-meta-pill { font-size: 12px; padding: 5px 10px; }

  .final-cta { padding: 64px 0 76px; }

  .privacy-modal { padding: 12px; align-items: flex-end; }
  .privacy-modal-card { max-height: 88vh; border-radius: 18px 18px 14px 14px; }
  .privacy-modal-header { padding: 14px 16px; }
  .privacy-modal-title { font-size: 17px; }
  .privacy-modal-body { padding: 16px 16px 20px; }
}
