/* =====================================================================================
   newsania.com — estilos de toda la web (NUEVO 30-oct-2026)
   - Mismo lenguaje visual que la app: azul noche, acento ámbar «amanecer», titulares en Instrument Serif y texto en Onest.
   - Fuentes ALOJADAS AQUÍ (no Google Fonts): así la web no envía la IP del visitante a terceros (coherente con la privacidad).
   - Sin cookies, sin analítica, sin JavaScript obligatorio.
   ===================================================================================== */

@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/onest-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/onest-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/onest-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/onest-latin-700-normal.woff2') format('woff2'); }

:root {
  --night: #061133;        /* fondo de la app en oscuro */
  --night-2: #0b1a47;
  --night-3: #12245c;
  --ink: #0d1530;          /* texto sobre claro */
  --ink-soft: #4a5578;
  --paper: #f6f4ef;        /* fondo de las páginas de lectura */
  --paper-2: #ffffff;
  --line: #e3e0d6;
  --blue: #1d56f0;
  --blue-light: #6f9cff;
  --dawn: #ffb547;         /* acento «amanecer» de la app */
  --dawn-deep: #e8901c;
  --on-night: #eef2ff;
  --on-night-soft: #a9b6db;
  --radius: 22px;
  --wrap: 1120px;
  --read: 720px;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--dawn-deep); }
:focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--dawn); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

/* ---------------------------------------------------------------- cabecera */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(6, 17, 51, .86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.07); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-night); text-decoration: none; font-family: var(--serif); font-size: 27px; letter-spacing: .2px; }
.brand:hover { color: var(--on-night); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--on-night-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-night); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* ---------------------------------------------------------------- portada (hero) */
.hero { position: relative; overflow: hidden; color: var(--on-night); background: radial-gradient(900px 520px at 85% -10%, rgba(255,181,71,.20), transparent 60%), radial-gradient(800px 600px at -10% 110%, rgba(29,86,240,.35), transparent 60%), var(--night); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.eyebrow { display: inline-block; color: var(--dawn); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; margin: 0 0 22px; letter-spacing: -.5px; text-wrap: balance; }
.hero h1 em { color: var(--dawn); font-style: italic; }
.lead { font-size: 19px; color: var(--on-night-soft); max-width: 34em; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--dawn); color: var(--ink); }
.btn-primary:hover { background: #ffc46b; color: var(--ink); }
.btn-ghost { color: var(--on-night); border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { color: var(--on-night); border-color: rgba(255,255,255,.5); }
.soon { font-size: 14px; color: var(--on-night-soft); margin-top: 18px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; gap: 40px; } }

/* Teléfono de muestra: maqueta hecha con HTML/CSS (sin capturas: así no aparecen portadas ni textos de terceros) */
.phone { justify-self: center; width: min(320px, 82vw); aspect-ratio: 9 / 18.6; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #1d2a57, #070d24); box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); transform: rotate(2.5deg); }
.screen { height: 100%; border-radius: 34px; overflow: hidden; background: var(--night); padding: 22px 16px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.screen .s-date { color: var(--dawn); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.screen .s-title { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--on-night); margin-bottom: 4px; }
.screen .s-listen { display: flex; align-items: center; gap: 8px; background: var(--night-2); border: 1px solid rgba(255,255,255,.06); border-radius: 999px; padding: 9px 12px; color: var(--on-night); font-size: 12px; font-weight: 600; }
.screen .s-listen b { margin-left: auto; background: var(--blue-light); color: var(--night); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.card-mock { background: var(--night-2); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 13px; display: flex; flex-direction: column; gap: 8px; }
.card-mock .row { display: flex; align-items: center; gap: 6px; }
.chip-mock { font-size: 9px; font-weight: 700; color: var(--blue-light); background: rgba(111,156,255,.14); padding: 2px 7px; border-radius: 999px; }
.src-mock { margin-left: auto; font-size: 9px; font-weight: 700; color: #4ade80; border: 1px solid rgba(74,222,128,.45); padding: 1px 6px; border-radius: 6px; }
.line { height: 9px; border-radius: 6px; background: rgba(238,242,255,.85); }
.line.title { height: 12px; }
.line.soft { background: rgba(169,182,219,.35); height: 7px; }
.w90 { width: 90%; } .w75 { width: 75%; } .w60 { width: 60%; } .w45 { width: 45%; }
.wave { display: flex; align-items: center; gap: 3px; height: 16px; color: var(--on-night-soft); font-size: 9px; }
.wave i { display: block; width: 3px; border-radius: 3px; background: var(--dawn); height: 8px; }
.wave i:nth-child(1) { height: 6px; } .wave i:nth-child(2) { height: 12px; } .wave i:nth-child(4) { height: 14px; } .wave i:nth-child(5) { height: 5px; }
.wave span { margin-left: 4px; }
.player-mock { margin-top: auto; background: rgba(255,181,71,.12); border: 1px solid rgba(255,181,71,.35); border-radius: 16px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; color: var(--on-night); font-size: 11px; font-weight: 600; }
.play { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--dawn); position: relative; }
.play::after { content: ''; position: absolute; left: 11px; top: 8px; border-left: 9px solid var(--night); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------------------------------------------------------------- secciones */
.section { padding: 88px 0; }
.section-tight { padding-top: 64px; padding-bottom: 64px; }
.note-after { margin-top: 24px; }
.foot-tag { margin: 12px 0 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.06; margin: 0 0 14px; text-wrap: balance; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 18px; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section.alt .feature { background: var(--paper); }
.feature .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--night); color: var(--dawn); margin-bottom: 16px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.app-card { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); }
.app-card img { width: 72px; height: 72px; }
.app-card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.app-card p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.badge-soon { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--dawn-deep); background: rgba(232,144,28,.12); padding: 3px 10px; border-radius: 999px; }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.principle { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.principle .n { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--dawn-deep); }
.principle h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.principle p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }

.privacy-band { color: var(--on-night); background: radial-gradient(700px 400px at 100% 0%, rgba(255,181,71,.16), transparent 60%), var(--night); border-radius: 30px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.privacy-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 46px); line-height: 1.06; margin: 0 0 12px; }
.privacy-band p { color: var(--on-night-soft); margin: 0 0 22px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--dawn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z' fill='%23061133'/%3E%3C/svg%3E") center / 16px no-repeat; }
@media (max-width: 800px) { .privacy-band { grid-template-columns: 1fr; padding: 32px 24px; } }

.contact { text-align: center; }
.contact .section-head { margin: 0 auto 28px; }
.mail { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--dawn); }

/* ---------------------------------------------------------------- páginas legales (lectura) */
.doc-hero { background: var(--night); color: var(--on-night); padding: 56px 0 48px; }
.doc-hero .wrap { max-width: calc(var(--read) + 40px); }
.doc-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 60px); line-height: 1.04; margin: 0 0 10px; }
.doc-hero p { margin: 0; color: var(--on-night-soft); }
.doc { max-width: calc(var(--read) + 40px); margin: 0 auto; padding: 48px 20px 88px; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.15; margin: 52px 0 12px; scroll-margin-top: 84px; }
.doc h3 { font-size: 18px; margin: 28px 0 6px; }
.doc p, .doc li { color: #26304f; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary { background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--dawn); border-radius: 16px; padding: 22px 24px; margin: 0 0 8px; }
.summary h2 { margin-top: 0; font-size: 26px; }
.summary ul { margin: 0; }
.toc { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 24px; margin: 28px 0 0; font-size: 15.5px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin: 0; padding: 3px 0; break-inside: avoid; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: #faf8f3; }
tr:last-child td { border-bottom: 0; }
.pending { background: #fff1c2; color: #6b4a00; padding: 0 5px; border-radius: 5px; font-weight: 600; }
.note { font-size: 15px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- pie */
.site-footer { background: var(--night); color: var(--on-night-soft); padding: 48px 0 40px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--on-night); margin: 0 0 10px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-night-soft); text-decoration: none; }
.site-footer a:hover { color: var(--dawn); }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; font-size: 13.5px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; color: var(--on-night); background: var(--night); padding: 40px 20px; }
.notfound h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 10vw, 110px); margin: 0; line-height: 1; }
.notfound p { color: var(--on-night-soft); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .phone { transform: none; } }
