/* ════════════════════════════════════════════════════════════════
   Newsik — site.css
   Identidad visual derivada de la app Android (tema oscuro):
   morado NewsikPurple #7C3AED · rosa NewsikHot #FF3D6E · Inter ·
   esquinas nítidas (RectangleShape) · bordes visibles.
   ════════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg:            #0E0E10;   /* NewsikNavDark — base */
  --surface:       #161618;   /* NewsikNavSlotBg */
  --surface-2:     #1E1E1E;   /* surface del tema */
  --elevated:      #232329;
  --text:          #EEEEEE;   /* onBackground */
  --muted:         #9A949F;
  --purple:        #7C3AED;   /* NewsikPurple — primary */
  --purple-light:  #A78BFA;   /* NewsikPurpleLight */
  --purple-dim:    rgba(124, 58, 237, 0.12);
  --purple-glow:   rgba(124, 58, 237, 0.30);
  --hot:           #FF3D6E;   /* NewsikHot — live / alertas */
  --border:        #2A2A2E;   /* NewsikNavSlotBorder */
  --border-strong: #3A3A42;
  --nav-h:         64px;
  --maxw:          1140px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* RectangleShape: la app no redondea nada (salvo avatares, que aquí no hay). */
a { color: var(--purple-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }

/* ── Nav ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(14, 14, 16, 0.82);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1.5px solid var(--border);
}
.site-nav .inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 100%; padding: 0 1.75rem;
  display: flex; align-items: center; gap: 1rem;
}
.nav-brand {
  font-size: 1.4rem; font-weight: 900; letter-spacing: -0.03em;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; color: var(--purple-light); }
.nav-links {
  margin-left: auto;
  display: flex; align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-cta {
  background: var(--purple); color: #fff;
  font-size: 0.88rem; font-weight: 700;
  padding: 0.5rem 1.15rem;
  border: 1.5px solid var(--purple);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-cta:hover {
  background: transparent; color: var(--purple-light);
  border-color: var(--purple-light); text-decoration: none;
}
/* Hamburguesa (checkbox hack, sin JS) */
.nav-toggle { display: none; }
.nav-burger {
  display: none; margin-left: auto; cursor: pointer;
  width: 26px; height: 20px; position: relative; flex-shrink: 0;
}
.nav-burger span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--text); transition: 0.25s;
}
.nav-burger span:nth-child(1) { top: 0; }
.nav-burger span:nth-child(2) { top: 9px; }
.nav-burger span:nth-child(3) { top: 18px; }

body.has-nav-offset { padding-top: var(--nav-h); }

/* ── Botones genéricos ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 1rem; font-weight: 700;
  padding: 0.9rem 1.9rem;
  border: 1.5px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--purple-glow);
  text-decoration: none;
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--purple-light); color: var(--purple-light); text-decoration: none; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--nav-h) + 4.5rem) 1.75rem 4.5rem;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem; align-items: center;
}
.hero::before {
  content: '';
  position: absolute; top: -10%; left: -5%;
  width: 720px; height: 620px; max-width: 90%;
  background: radial-gradient(ellipse at center, var(--purple-glow) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--purple-dim);
  border: 1.5px solid rgba(124, 58, 237, 0.30);
  padding: 0.4rem 0.95rem;
  font-size: 0.78rem; font-weight: 600; color: var(--purple-light);
  letter-spacing: 0.03em; margin-bottom: 1.75rem;
  animation: fadeUp 0.6s both;
}
.hero-badge .dot {
  width: 7px; height: 7px; background: var(--hot);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.75); }
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900; letter-spacing: -0.035em; line-height: 1.05;
  margin-bottom: 1.4rem;
  animation: fadeUp 0.6s 0.08s both;
}
.hero h1 .highlight { color: var(--purple); }
.hero p {
  font-size: 1.12rem; color: var(--muted);
  max-width: 480px; margin-bottom: 2.25rem; line-height: 1.7;
  animation: fadeUp 0.6s 0.16s both;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.9rem;
  animation: fadeUp 0.6s 0.24s both;
}
.hero-visual {
  position: relative; z-index: 1;
  display: flex; justify-content: center;
  animation: fadeUp 0.7s 0.2s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mockups dibujados en CSS ── */
.phone {
  width: 268px; flex-shrink: 0;
  background: var(--surface-2);
  border: 2px solid var(--border-strong);
  padding: 0.6rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(124, 58, 237, 0.18);
}
.phone-screen {
  background: var(--bg);
  border: 1.5px solid var(--border);
  padding: 0.85rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.phone-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 0.65rem; border-bottom: 1.5px solid var(--border);
}
.phone-top .brand { font-weight: 900; font-size: 0.95rem; letter-spacing: -0.03em; }
.phone-top .live {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.6rem; font-weight: 700; color: var(--hot); letter-spacing: 0.08em;
}
.phone-top .live .dot { width: 6px; height: 6px; background: var(--hot); animation: dotPulse 2.4s ease-in-out infinite; }

.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 0.7rem;
}
.card.accent { border-color: var(--purple); background: var(--purple-dim); }
.row { display: flex; align-items: center; gap: 0.6rem; }
.art {
  width: 42px; height: 42px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
}
.art.lg { width: 100%; height: 92px; }
.art.sm { width: 30px; height: 30px; }
.bar { height: 8px; background: var(--border-strong); }
.bar.p { background: var(--purple); }
.bar.hot { background: var(--hot); }
.stack { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--purple-dim); border: 1.5px solid rgba(124, 58, 237, 0.4);
  padding: 0.28rem 0.5rem; font-size: 0.58rem; color: var(--purple-light); font-weight: 600;
  align-self: flex-start;
}
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq i { width: 2.5px; background: var(--purple-light); animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.eq i:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.eq i:nth-child(4) { height: 85%; animation-delay: 0.45s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* Mini-mapa */
.mini-map {
  position: relative; height: 150px; overflow: hidden;
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 26px 100%,
    var(--surface);
}
.pin {
  position: absolute; width: 16px; height: 16px;
  background: var(--purple); border: 1.5px solid #fff;
  transform: translate(-50%, -50%);
}
.pin.hot { background: var(--hot); }
.pin::after {
  content: ''; position: absolute; inset: -7px;
  border: 1.5px solid var(--purple); opacity: 0.4;
  animation: ping 2.2s ease-out infinite;
}
.pin.hot::after { border-color: var(--hot); }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ── Secciones genéricas ── */
.section { max-width: var(--maxw); margin: 0 auto; padding: 5rem 1.75rem; }
.section-header { text-align: center; max-width: 560px; margin: 0 auto 3.25rem; }
.section-header .eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple-light);
  margin-bottom: 0.9rem;
}
.section-header h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 900; letter-spacing: -0.03em; margin-bottom: 0.7rem;
}
.section-header p { color: var(--muted); font-size: 1.05rem; }

/* ── Showcase (filas alternadas) ── */
.showcase {
  display: flex; align-items: center; gap: 3.5rem;
  max-width: 980px; margin: 0 auto; padding: 3.25rem 0;
}
.showcase + .showcase { border-top: 1.5px solid var(--border); }
.showcase:nth-child(even) { flex-direction: row-reverse; }
.showcase-text { flex: 1; }
.showcase-text .eyebrow {
  display: inline-block; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--hot);
  margin-bottom: 0.85rem;
}
.showcase-text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 0.8rem; line-height: 1.15;
}
.showcase-text p { color: var(--muted); font-size: 1rem; line-height: 1.75; }
.showcase-visual {
  flex: 0 0 320px; max-width: 320px;
  background: var(--surface-2); border: 1.5px solid var(--border);
  padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem;
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 1.85rem 1.75rem;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.22s, box-shadow 0.25s;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--purple); opacity: 0; transition: opacity 0.25s;
}
.feature-card:hover {
  border-color: var(--purple);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--purple-dim);
  border: 1.5px solid rgba(124, 58, 237, 0.35);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.35rem; font-size: 1.35rem;
}
.feature-card h3 {
  font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.feature-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.68; }

/* ── Cómo funciona ── */
.how {
  background: var(--surface);
  border-top: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border);
  padding: 5.5rem 1.75rem;
}
.how-inner { max-width: 660px; margin: 0 auto; }
.how-inner > h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 900; letter-spacing: -0.03em;
  text-align: center; margin-bottom: 3.25rem;
}
.steps { display: flex; flex-direction: column; }
.step {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 1.65rem 0; border-bottom: 1.5px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.step-text h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.step-text p { color: var(--muted); font-size: 0.94rem; line-height: 1.68; }

/* ── FAQ (acordeón nativo <details>) ── */
.faq-list { max-width: 720px; margin: 0 auto; border: 1.5px solid var(--border); }
.faq-item + .faq-item { border-top: 1.5px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-size: 1rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--purple-light);
  line-height: 1; flex-shrink: 0; transition: transform 0.2s;
}
.faq-item[open] summary { color: var(--purple-light); }
.faq-item[open] summary::after { content: '\2212'; } /* − */
.faq-item summary:hover { color: var(--purple-light); }
.faq-body { padding: 0 1.35rem 1.25rem; color: var(--muted); font-size: 0.95rem; line-height: 1.72; }
.faq-body a { color: var(--purple-light); }

/* ── Banda de descarga ── */
.download { max-width: var(--maxw); margin: 0 auto; padding: 5rem 1.75rem; }
.download-panel {
  position: relative; overflow: hidden;
  border: 1.5px solid var(--purple);
  background: linear-gradient(135deg, var(--purple-dim) 0%, transparent 60%), var(--surface);
  padding: 3.5rem 2rem; text-align: center;
}
.download-panel::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 65%);
  pointer-events: none;
}
.download-panel h2 {
  position: relative; font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  font-weight: 900; letter-spacing: -0.03em; margin-bottom: 0.8rem;
}
.download-panel p { position: relative; color: var(--muted); font-size: 1.05rem; margin-bottom: 2.1rem; }
.download-panel .btn { position: relative; }

/* ── Legal pages ── */
.legal-container { max-width: 760px; margin: 0 auto; padding: 3rem 1.75rem 4.5rem; }
.legal-container h2 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 900; letter-spacing: -0.025em; margin-bottom: 0.4rem;
}
.legal-container .updated { color: var(--muted); font-size: 0.875rem; margin-bottom: 2.5rem; }
.legal-container h3 {
  font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em;
  margin: 2.25rem 0 0.6rem; color: var(--text);
}
.legal-container p,
.legal-container li { font-size: 0.95rem; color: var(--muted); line-height: 1.74; margin-bottom: 0.55rem; }
.legal-container strong { color: var(--text); font-weight: 600; }
.legal-container a { color: var(--purple-light); }
.legal-container a:hover { text-decoration: underline; }
.legal-container ul,
.legal-container ol { padding-left: 1.35rem; margin-bottom: 0.85rem; }
.legal-container li { margin-bottom: 0.35rem; }
.legal-container code {
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.88em; color: var(--purple-light);
  background: var(--purple-dim);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 0.1em 0.35em;
}
.legal-container table { width: 100%; border-collapse: collapse; margin: 0.85rem 0 1.25rem; font-size: 0.9rem; }
.legal-container table th {
  text-align: left; padding: 0.65rem; color: var(--text); font-weight: 600;
  border-bottom: 1.5px solid var(--border-strong);
}
.legal-container table td {
  padding: 0.65rem; color: var(--muted);
  border-bottom: 1.5px solid var(--border); vertical-align: top;
}
.legal-container table tr:last-child td { border-bottom: none; }

/* ── Footer ── */
.site-footer { padding: 3rem 1.75rem; text-align: center; }
.site-footer .inner {
  max-width: var(--maxw); margin: 0 auto;
  padding-top: 2.25rem; border-top: 1.5px solid var(--border);
}
.footer-brand {
  font-size: 1.3rem; font-weight: 900; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 1.1rem;
}
.footer-links { margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 0.78rem; }

/* ── Responsive ── */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: calc(var(--nav-h) + 3rem); }
  .hero::before { left: 50%; transform: translateX(-50%); }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 1rem; }
  .showcase, .showcase:nth-child(even) { flex-direction: column; gap: 2rem; text-align: center; }
  .showcase-text .eyebrow { margin-left: auto; margin-right: auto; }
  .showcase-visual { flex-basis: auto; width: 100%; max-width: 360px; }
}
@media (max-width: 820px) {
  .nav-burger { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14, 14, 16, 0.98);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1.5px solid var(--border);
    margin-left: 0; padding: 0.5rem 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-toggle:checked ~ .nav-links { max-height: 380px; }
  .nav-links a { padding: 0.85rem 1.75rem; font-size: 0.95rem; }
  .nav-cta { margin: 0.6rem 1.75rem 0.4rem; text-align: center; justify-content: center; display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
@media (max-width: 540px) {
  .section, .download, .how { padding-left: 1.25rem; padding-right: 1.25rem; }
  .download-panel { padding: 2.5rem 1.5rem; }
}
