/* Nonio Press — v1 (15-nov-2026). Fuentes OFL en /fonts (ver fonts/OFL.txt). */
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url("/fonts/ArchivoBlack-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/fonts/Rubik-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Nonio Press */
  --ink: #1F2A44; --pencil: #F2B33D; --paper: #FBF8F2;
  --muted: #5A6278; --line: #E6E0D4; --white: #fff;
  /* Big Letter Club */
  --tomato: #D93F27; --cobalt: #2350C8; --mint: #1F8A6E; --blc-ink: #1B1B1F; --mustard: #F2A93B; --cream: #FFF6E8;
  --radius: 14px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 500 1.0625rem/1.6 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: .18em; }
a:hover { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--pencil); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 10; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.logo span { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.5rem; }
.logo svg { margin-top: 5px; }
.nav { display: flex; gap: 20px; font-size: .98rem; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--pencil); text-decoration-thickness: 3px; }

/* Buttons */
.btn {
  display: inline-block; padding: .72em 1.25em; border-radius: 999px; text-decoration: none;
  font-weight: 500; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); line-height: 1.2;
}
.btn:hover { background: #2C3A5E; color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-amz { background: var(--pencil); border-color: var(--pencil); color: var(--ink); width: 100%; text-align: center; }
.btn-amz:hover { background: #E5A325; border-color: #E5A325; color: var(--ink); }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 40px; }
.hero .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(242,179,61,.55) 62%); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

section { padding: 40px 0; }
.section-head p { color: var(--muted); max-width: 60ch; }

/* Brands */
.brands { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.brand { border-radius: var(--radius); padding: 22px 22px 20px; position: relative; overflow: hidden; }
.brand .name { font-family: "Archivo Black", "Arial Black", sans-serif; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .02em; line-height: 1.1; margin: 0 0 6px; }
.brand .for { font-family: "Rubik", sans-serif; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.brand p { margin: 0; font-size: 1rem; }
.brand-blc { background: var(--cobalt); color: var(--white); }
.brand-blc .for { color: var(--mustard); }
.brand-blk { background: var(--mustard); color: var(--blc-ink); }
.brand-blk .for { color: var(--tomato); }
.brand-moki { background: var(--cream); color: var(--blc-ink); border: 2px dashed var(--mint); }
.brand-moki .for { color: var(--mint); }
.badge { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: 3px 9px; border-radius: 999px; background: var(--mint); color: var(--white); margin-left: 6px; vertical-align: middle; }

/* Books */
.books { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.book { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.book img { aspect-ratio: 600 / 777; width: 100%; border-radius: 4px; box-shadow: 0 6px 16px rgba(31,42,68,.14); background: var(--cream); }
.book .meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 4px; }
.book h3 { margin: 0 0 6px; }
.book p { font-size: .95rem; color: var(--muted); flex: 1; margin-bottom: 14px; }
.book .market { font-size: .82rem; color: var(--muted); text-align: center; margin: 8px 0 0; }

/* Text pages */
.page { padding-top: 48px; padding-bottom: 24px; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.small { font-size: .9rem; color: var(--muted); }

.signup { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px; max-width: 560px; margin: 24px 0; }
.signup .soon { font-family: "Fraunces", Georgia, serif; font-size: 1.4rem; margin: 0 0 6px; }

.free-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 20px 0; }
.free-grid div { border-left: 4px solid var(--pencil); padding: 4px 0 4px 14px; }
.free-grid strong { display: block; }

/* Popup (js/sitio.js) */
.popup { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(31,42,68,.45); padding: 0; }
.popup[hidden] { display: none; }
.popup-box { position: relative; width: 100%; max-width: 560px; background: var(--paper); border-radius: 16px 16px 0 0; padding: 26px 22px 22px; display: grid; grid-template-columns: 76px 1fr; gap: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.popup-box img { width: 100%; border-radius: 3px; box-shadow: 0 4px 10px rgba(31,42,68,.2); align-self: start; }
.popup-box h2 { font-size: 1.45rem; margin-bottom: .4em; }
.popup-box p { font-size: .97rem; color: var(--muted); margin-bottom: .8em; }
.popup-box .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; margin: 0 0 4px; color: var(--muted); }
.popup-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 6px 10px; }
.popup-x:hover { color: var(--ink); }
.popup-later { background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font: inherit; font-size: .9rem; }
.soon-inline { color: var(--ink) !important; }
@media (min-width: 640px) {
  .popup { align-items: center; padding: 24px; }
  .popup-box { border-radius: 16px; grid-template-columns: 96px 1fr; padding: 30px; }
}
@media (prefers-reduced-motion: no-preference) {
  .popup:not([hidden]) { animation: np-fade .25s ease-out; }
  .popup:not([hidden]) .popup-box { animation: np-up .3s ease-out; }
  @keyframes np-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes np-up { from { transform: translateY(16px); } to { transform: none; } }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 36px; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 520px) {
  .hero { padding-top: 36px; }
  .books { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .book { padding: 10px; }
  .book h3 { font-size: 1.02rem; }
  .book p { font-size: .88rem; }
  .btn-amz { padding: .7em .6em; font-size: .9rem; }
}

/* Inicio: imprimibles gratis */
.printables { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 22px; }
.printable { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--pencil); border-radius: var(--radius); padding: 18px; color: var(--ink); }
.printable:hover { border-color: var(--ink); color: var(--ink); }
.printable strong { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.15rem; margin: 4px 0; }
.printable span { color: var(--muted); font-size: .95rem; }
.printable .tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }

/* Blog */
.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.posts li { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.posts a { text-decoration: none; }
.posts h2 { font-size: 1.3rem; margin: 2px 0 6px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.post-meta { color: var(--muted); font-size: .92rem; margin-bottom: 1.4em; }
.prose img { border-radius: 6px; margin: 1em 0; }
.prose blockquote { margin: 1em 0; padding-left: 16px; border-left: 4px solid var(--pencil); color: var(--muted); }
.related-book { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 2em 0; max-width: 68ch; }
.related-book h3 { margin: 0 0 6px; }
.related-book p { color: var(--muted); font-size: .95rem; }
.related-posts { max-width: 68ch; }
.draft-banner { background: var(--tomato); color: var(--white); text-align: center; padding: 8px 12px; font-size: .9rem; }

/* 15-nov-2026: cinco idiomas, banner de portada, muestras gratis y /about (idiomas.py) */
.lang-switch { display: flex; gap: 2px; font-size: .82rem; letter-spacing: .04em; }
.lang-switch a { text-decoration: none; padding: 4px 7px; border-radius: 6px; color: var(--muted); }
.lang-switch a:hover { color: var(--ink); background: var(--line); }
.lang-switch a[aria-current="true"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--pencil); }
.hero-banner { margin-bottom: 8px; }
.hero-banner img { width: 100%; height: auto; border-radius: var(--radius); }
.books-main { margin-bottom: 34px; }
.other-title { font-size: 1.35rem; margin-top: 8px; }
.other-sub { color: var(--muted); margin-bottom: 18px; }
.books-other { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.book-small h3 { font-size: 1.02rem; }
.book-small p { font-size: .88rem; }
.samples-block { padding: 8px 0 0; }
.samples { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 16px 0 28px; }
.sample { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
.sample img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.sample figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; flex: 1; }
.sample figcaption span { color: var(--muted); font-size: .9rem; flex: 1; }
.sample .btn { margin-top: 10px; text-align: center; font-size: .92rem; }
.about { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
.kicker-small { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.founders { margin: 0; }
.founders img { width: 100%; max-width: 460px; height: auto; border-radius: var(--radius); box-shadow: 0 10px 28px rgba(31,42,68,.14); }
.color-founders { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; background: var(--white); border: 2px dashed var(--pencil); border-radius: var(--radius); padding: 22px; margin: 36px 0 8px; }
.color-founders img { width: 100%; max-width: 280px; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.color-founders h2 { margin-top: 0; }
@media (min-width: 860px) {
  .about { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .color-founders { grid-template-columns: 280px 1fr; }
}
@media (max-width: 640px) {
  .site-header .wrap { gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; }
  .nav { gap: 14px; font-size: .92rem; flex-wrap: wrap; }
  .lang-switch { width: 100%; }
}

/* 15-nov-2026 (noche): franja de confianza, datos por libro, «Coming soon», preguntas frecuentes, secciones por público */
.trust { list-style: none; margin: 18px 0 6px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust li { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--mint); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; font-size: .92rem; }
.trust li span { color: var(--muted); }
.trust li a { text-decoration: none; }
.trust li a strong::after { content: " →"; }
.book .facts { font-size: .8rem; color: var(--mint); font-weight: 700; letter-spacing: .01em; margin: 0 0 10px; flex: 0; }
.btn-soon { background: var(--line); border-color: var(--line); color: var(--muted); width: 100%; text-align: center; cursor: default; }
.btn-soon:hover { background: var(--line); color: var(--muted); }
.audience { padding: 28px 0; }
.faq { padding: 36px 0 12px; }
.faq-list { max-width: 72ch; display: grid; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; }
.faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style-position: outside; }
.faq-item p { margin: 0 0 14px; color: var(--ink); }
.faq-item[open] summary { color: var(--cobalt); }

.page .faq .wrap { padding: 0; }

/* Popup en celular: barra chica abajo, sin fondo oscuro, la página sigue usable (pauta de Google contra avisos intrusivos). */
.popup.popup--movil { inset: auto 0 0 0; background: none; padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.popup--movil .popup-box { pointer-events: auto; max-width: none; grid-template-columns: 1fr; gap: 6px; padding: 16px 44px 14px 16px; border-radius: 14px; box-shadow: 0 -6px 24px rgba(31,42,68,.22); max-height: 42vh; overflow-y: auto; }
.popup--movil .popup-box img, .popup--movil .popup-box .kicker { display: none; }
.popup--movil .popup-box h2 { font-size: 1.1rem; margin-bottom: .2em; }
.popup--movil .popup-box p { font-size: .88rem; margin-bottom: .5em; }
.popup--movil .popup-x { top: 4px; right: 4px; }

/* Selector de idioma desplegable (idiomas.py, <details class="lang-drop">) */
.lang-switch { display: block; position: relative; }
.lang-drop summary { list-style: none; cursor: pointer; font-size: .85rem; font-weight: 700; letter-spacing: .04em; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); user-select: none; }
.lang-drop summary::-webkit-details-marker { display: none; }
.lang-drop summary:hover, .lang-drop[open] summary { border-color: var(--ink); }
.lang-drop ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; list-style: none; margin: 0; padding: 6px; min-width: 160px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(31,42,68,.15); }
.lang-drop li a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .9rem; box-shadow: none; }
.lang-drop li a:hover { background: var(--line); }
.lang-drop li a[aria-current="true"] { font-weight: 700; color: var(--ink); background: none; box-shadow: inset 3px 0 0 var(--pencil); }
@media (max-width: 767px) { .lang-switch { width: auto; } .lang-drop ul { left: 0; right: auto; } }
