/* El poder de los negocios latinos en el PNW — hoja de estilo
   Identidad sacada de la portada: azul de la portada, blanco, niebla del Noroeste,
   serif clásica + grotesca pesada (como en el título impreso). Un solo acento cálido. */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --portada: #01375D;       /* el azul exacto del fondo de la portada */
  --noche: #00243F;         /* pie, contraste profundo */
  --niebla: #EBEFF8;        /* bloques claros */
  --papel: #FAFBFD;         /* fondo general, gris teñido de azul */
  --tinta: #0D1A2A;         /* texto */
  --tinta-2: #3A4859;       /* texto secundario (≥ 7:1 sobre papel) */
  --linea: #C9D3E1;
  --accion: #B8321B;        /* el único color fuerte: botones y poco más */
  --accion-hover: #9C2814;
  --accion-sobre-azul: #FFB4A3; /* enlaces sobre el azul de la portada */
  --sobre-azul: #F3F6FB;
  --sobre-azul-2: #C6D3E3;
  --luz: rgba(255, 238, 205, .55);

  --serif: "Cormorant", "Iowan Old Style", Georgia, serif;
  --grot: "Archivo", "Arial Black", system-ui, sans-serif;
  --texto: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-chico: 4px;   /* libro, campos */
  --r-medio: 10px;  /* botones */
  --r-grande: 22px; /* bloques */
  --curva: cubic-bezier(.23, 1, .32, 1);
  --ancho: 1160px;
  --margen: clamp(16px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--texto); font-size: 1.1875rem; /* 19px */ line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--accion); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
cite { font-style: italic; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--tinta); padding: 10px 14px; z-index: 30; border-radius: var(--r-chico); }
.saltar:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- Barra ---------- */
.barra {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--margen); background: var(--portada); color: var(--sobre-azul);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.barra-marca { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; text-decoration: none; line-height: 1.1; min-height: 44px; display: inline-flex; align-items: center; }
.barra-idioma {
  min-height: 48px; min-width: 48px; display: inline-flex; align-items: center; padding: 0 14px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-medio);
}

/* ---------- Botones ---------- */
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: var(--r-medio);
  font: 700 1.0625rem/1.2 var(--texto); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .16s var(--curva), transform .12s var(--curva), color .16s;
}
.boton:active { transform: scale(.97); }
.boton-accion { background: var(--accion); color: #fff; }
.boton-nota { font-weight: 400; opacity: .9; }
.boton-claro { background: transparent; color: var(--sobre-azul); border-color: rgba(255, 255, 255, .55); }
.boton-borde { background: transparent; color: var(--tinta); border-color: var(--tinta); }
@media (hover: hover) and (pointer: fine) {
  .boton-accion:hover { background: var(--accion-hover); }
  .boton-claro:hover { background: rgba(255, 255, 255, .1); }
  .boton-borde:hover { background: var(--tinta); color: #fff; }
}

/* ---------- Portada ---------- */
.portada {
  position: relative; overflow: hidden;
  background: var(--portada); color: var(--sobre-azul);
  padding: 36px var(--margen) 56px;
  display: grid; gap: 40px;
}
.cejilla { font-size: 1rem; letter-spacing: .04em; color: var(--tinta-2); margin: 0 0 14px; font-weight: 700; }
.portada .cejilla { color: var(--sobre-azul-2); }
.portada h1 { line-height: .98; letter-spacing: -.01em; }
.portada h1 span { display: block; }
.t-serif { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 9.5vw, 4.6rem); }
.t-grot { font-family: var(--grot); font-weight: 800; text-transform: uppercase; font-size: clamp(2.05rem, 8.4vw, 4.1rem); letter-spacing: -.015em; margin: .08em 0 .1em; color: #fff; }
.portada-sub { font-size: 1.1875rem; color: var(--sobre-azul); max-width: 36ch; margin: 22px 0 0; }
.portada-edicion { margin: 22px 0 0; font-size: 1rem; color: var(--sobre-azul-2); max-width: 40ch; }
.portada-edicion a { color: var(--accion-sobre-azul); font-weight: 700; }
.portada-libro { position: relative; margin: 0 auto; width: min(62vw, 300px); }
.portada-libro img {
  position: relative; z-index: 1; border-radius: var(--r-chico);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .06), 0 30px 60px -20px rgba(0, 0, 0, .55);
}
/* Elemento firma: un haz de luz que baja sobre el libro (el lightwell) */
.haz {
  position: absolute; z-index: 0; left: 50%; top: -15%; width: 170%; height: 110%;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 40% 50% at 50% 35%, var(--luz), rgba(255, 238, 205, 0) 72%);
  opacity: 0; transition: opacity 1.6s var(--curva), transform 1.8s var(--curva);
}
.js .haz { transform: translate(-50%, -18%); }
.js .listo .haz, .listo .haz { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cita ---------- */
.cita { background: var(--niebla); padding: 56px var(--margen); }
.cita blockquote { margin: 0 auto; max-width: 900px; }
.cita p { font-family: var(--serif); font-weight: 600; font-size: clamp(1.75rem, 5.6vw, 2.75rem); line-height: 1.12; color: var(--portada); margin: 0 0 18px; }
.cita footer { font-size: 1rem; font-weight: 700; color: var(--tinta-2); }

/* ---------- Secciones genéricas ---------- */
section h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 6.4vw, 3.25rem); line-height: 1.04; letter-spacing: -.005em; color: var(--portada); }

/* ---------- El libro ---------- */
.libro { max-width: var(--ancho); margin: 0 auto; padding: 72px var(--margen) 56px; display: grid; gap: 40px; }
.libro-texto h2 { margin-bottom: 22px; max-width: 18ch; }
.libro-texto p { max-width: 58ch; }
.ficha { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-top: 2px solid var(--portada); }
.ficha div { padding: 14px 0; border-bottom: 1px solid var(--linea); }
.ficha .ficha-ancha { grid-column: 1 / -1; }
.ficha dt { font-size: .875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tinta-2); }
.ficha dd { margin: 4px 0 0; font-size: 1.0625rem; }

/* ---------- Historias ---------- */
.historias { background: var(--portada); color: var(--sobre-azul); padding: 72px var(--margen); }
.historias h2 { color: #fff; max-width: 16ch; margin-bottom: 20px; }
.historias .cejilla { color: var(--sobre-azul-2); }
.historias-cabeza { max-width: var(--ancho); margin: 0 auto 40px; }
.historias-cabeza p:last-child { max-width: 52ch; }
.historias-raices { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: #fff; margin-bottom: 14px; }
.historias-lista {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--ancho);
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 28px 14px;
}
.h { display: grid; grid-template-columns: 1fr; align-content: start; }
.h-doble { grid-column: span 2; }

.h-foto, .h-marco {
  grid-column: 1 / -1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-medio);
  background: rgba(255, 255, 255, .06); margin-bottom: 12px;
}
.h-doble .h-foto { aspect-ratio: 8 / 5; }
.h-marco { display: grid; place-items: center; border: 1px dashed rgba(255, 255, 255, .28); aspect-ratio: 4 / 3; }
.h-pronto .h-marco { margin-bottom: 8px; }
.h-num {
  font-family: var(--grot); font-weight: 800; font-size: 1.25rem; line-height: 1.3;
  color: rgba(255, 255, 255, .45); transition: color .9s var(--curva), text-shadow .9s var(--curva);
}
.h-marco .h-num { font-size: 3rem; line-height: 1; }
.h-nombre { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: #fff; align-self: baseline; }
.h-dato, .h-falta { grid-column: 1 / -1; font-size: 1rem; line-height: 1.4; color: var(--sobre-azul-2); margin-top: 4px; }
.h-falta { font-style: italic; opacity: .8; }
.h-pronto .h-nombre { grid-column: 1 / -1; color: var(--sobre-azul-2); font-weight: 400; }
.historias-lista.encendida .h-num, html:not(.js) .h-num { color: #FFE9C7; text-shadow: 0 0 18px rgba(255, 220, 160, .45); }
.pendiente { opacity: .75; border-bottom: 1px dashed rgba(255, 255, 255, .45); justify-self: start; }
.nota-demo {
  max-width: var(--ancho); margin: 28px auto 0; padding: 16px 18px; font-size: 1rem;
  background: rgba(255, 255, 255, .07); border: 1px dashed rgba(255, 255, 255, .35); border-radius: var(--r-medio);
}

/* ---------- Modelo ---------- */
.modelo { max-width: var(--ancho); margin: 0 auto; padding: 72px var(--margen); }
.modelo h2 { margin-bottom: 32px; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: paso; }
.pasos li {
  counter-increment: paso; position: relative; padding: 18px 0 18px 64px; border-top: 1px solid var(--linea);
}
.pasos li::before {
  content: counter(paso); position: absolute; left: 0; top: 18px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.125rem/1 var(--grot); color: #fff; background: var(--portada);
}
.paso-verbo { display: block; font-family: var(--grot); font-weight: 800; text-transform: uppercase; font-size: 1.75rem; line-height: 1.1; color: var(--portada); letter-spacing: -.01em; }
.paso-texto { display: block; color: var(--tinta-2); margin-top: 4px; }

/* ---------- Autores ---------- */
.autores { background: var(--niebla); padding: 0 0 72px; }
.autores-foto { margin: 0; }
.autores-foto img { width: 100%; aspect-ratio: 900 / 621; object-fit: cover; }
.autores-texto { padding: 56px var(--margen) 0; max-width: var(--ancho); margin: 0 auto; }
.autores-texto h2 { margin-bottom: 28px; }
.autor { padding-top: 20px; border-top: 2px solid var(--portada); margin-top: 20px; display: grid; grid-template-columns: 38% 1fr; column-gap: 18px; align-items: start; }
.autor-foto { grid-row: 1 / span 2; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-medio); }
.autor h3 { align-self: end; }
.autor p { grid-column: 1 / -1; margin-top: 14px; }
.autor h3 { font-family: var(--grot); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .01em; color: var(--portada); margin-bottom: 8px; }
.autor p { color: var(--tinta); }
.autor a { color: var(--accion); font-weight: 700; }

/* ---------- Presentaciones ---------- */
.presentaciones { max-width: var(--ancho); margin: 0 auto; padding: 72px var(--margen) 40px; }
.presentaciones h2 { margin-bottom: 28px; }
.evento {
  background: #fff; border: 2px solid var(--portada); border-radius: var(--r-grande);
  padding: 28px 22px; box-shadow: 10px 10px 0 var(--niebla);
}
.evento-estado { display: inline-block; font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--accion); padding: 6px 10px; border-radius: var(--r-chico); margin-bottom: 16px; }
.evento-pasado .evento-estado { background: var(--tinta-2); }
.evento h3 { font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.05; color: var(--portada); margin-bottom: 14px; }
.evento-fecha { font-weight: 700; font-size: 1.25rem; margin-bottom: 6px; }
.evento-lugar { margin-bottom: 6px; }
.evento-detalle { color: var(--tinta-2); margin: 0; }
.evento-gracias { margin: 18px 0 0; font-weight: 700; }
.grupo { margin: 0 0 40px; }
.grupo-rollo { overflow-x: auto; border-radius: var(--r-grande); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.grupo-rollo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.grupo figcaption { font-size: 1rem; color: var(--tinta-2); margin-top: 10px; }
.pasada { display: grid; gap: 24px; align-items: center; }
.pasada-foto { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-grande); }
.pasada h3 { font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.05; color: var(--portada); margin-bottom: 12px; }
.pasada-fecha { font-weight: 700; font-size: 1.1875rem; }
.pasada-texto p:last-child { color: var(--tinta-2); max-width: 46ch; margin: 0; }
.invitar { display: grid; gap: 16px; align-items: center; padding: 32px 0 0; }
.invitar-texto { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; line-height: 1.15; margin: 0; color: var(--portada); max-width: 34ch; }
.invitar .boton { justify-self: start; }

/* ---------- Organizaciones ---------- */
.organizaciones { max-width: var(--ancho); margin: 0 auto; padding: 40px var(--margen) 56px; }
.organizaciones h2 { margin-bottom: 24px; }
.org-dos { display: grid; gap: 14px; }
.org {
  display: grid; gap: 6px; padding: 22px; text-decoration: none; border-radius: var(--r-medio);
  background: var(--niebla); border: 1px solid var(--linea); transition: border-color .16s, transform .12s var(--curva);
}
.org:active { transform: scale(.99); }
.org-titulo { font-family: var(--grot); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; color: var(--portada); }
.org-texto { color: var(--tinta-2); }
.org-accion { font-weight: 700; color: var(--accion); text-decoration: underline; text-underline-offset: .2em; margin-top: 4px; }
@media (hover: hover) and (pointer: fine) { .org:hover { border-color: var(--portada); } }

/* ---------- Formularios ---------- */
.escribenos { max-width: var(--ancho); margin: 0 auto; padding: 40px var(--margen) 72px; }
.escribenos > p { color: var(--tinta-2); max-width: 52ch; }
.formulario { display: grid; gap: 18px; margin-top: 24px; max-width: 760px; }
.campo { display: block; font-weight: 700; font-size: 1rem; }
.campo input, .campo select, .campo textarea { display: block; margin-top: 8px; }
.opcional { font-weight: 400; color: var(--tinta-2); }
input, select, textarea {
  font: 400 1.125rem/1.4 var(--texto); color: var(--tinta); background: #fff;
  border: 2px solid #6B7889; border-radius: var(--r-chico); padding: 12px 14px; min-height: 52px; width: 100%;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accion); outline-offset: 1px; border-color: var(--tinta); }
.formulario .boton { justify-self: start; min-width: 180px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.barra :focus-visible, .portada :focus-visible, .historias :focus-visible, .novedades :focus-visible, .pie :focus-visible { outline-color: #FFB4A3; }
.privacidad { margin: 0; font-size: 1rem; color: var(--tinta-2); grid-column: 1 / -1; }
.novedades .privacidad { color: var(--sobre-azul-2); }
.cita-nota { font-weight: 400; }
.form-estado { margin: 0; font-weight: 700; min-height: 1.6em; }
.form-estado.ok { color: #1D6B3A; }
.form-estado.error { color: var(--accion); }
.enviando button[type=submit] { opacity: .6; pointer-events: none; }

.novedades { background: var(--portada); color: var(--sobre-azul); padding: 64px max(var(--margen), calc((100% - var(--ancho)) / 2)); }
.novedades h2 { color: #fff; max-width: 18ch; margin-bottom: 12px; }
.nov-form { display: grid; gap: 12px; margin-top: 22px; }
.nov-form input { border-color: transparent; }
.nov-form .form-estado.ok { color: #A8E6BC; }
.nov-form .form-estado.error { color: var(--accion-sobre-azul); }

/* ---------- Pie ---------- */
.pie { background: var(--noche); color: var(--sobre-azul-2); padding: 40px max(var(--margen), calc((100% - var(--ancho)) / 2)); font-size: 1rem; }
.pie-titulo { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.pie a { color: var(--sobre-azul); display: inline-flex; min-height: 44px; align-items: center; margin-right: 18px; }
.pie-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.pie-copy { margin: 0; }
.pie .pie-credito { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin: 0; text-decoration: none; color: var(--sobre-azul-2); }
.pie-credito img { height: 30px; width: auto; display: block; }
@media (hover: hover) and (pointer: fine) { .pie .pie-credito:hover span { text-decoration: underline; } }
.pie-legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; margin-top: 18px; margin-bottom: 0; }

/* ---------- Aparición al hacer scroll ---------- */
.js .aparece { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .7s var(--curva), transform .7s var(--curva); }
.js .aparece.visible { opacity: 1; transform: none; }

/* ---------- Tableta y escritorio ---------- */
@media (min-width: 720px) {
  .historias-lista { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
  .pasos { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .pasos li { padding: 72px 0 0; border-top: 0; }
  .pasos li::after { content: ""; position: absolute; left: 52px; right: -20px; top: 22px; height: 2px; background: var(--linea); }
  .pasos li:last-child::after { display: none; }
  .formulario { grid-template-columns: 1fr 1fr; }
  .campo-ancho, .formulario .boton, .formulario .form-estado { grid-column: 1 / -1; }
  .nov-form { grid-template-columns: minmax(0, 420px) auto; align-items: start; }
  .nov-form .form-estado { grid-column: 1 / -1; }
  .org-dos { grid-template-columns: 1.25fr 1fr; }
  .org:first-child { padding: 30px; }
  .invitar { grid-template-columns: 1fr auto; }
  .grupo-rollo img { width: 100%; }
  .solo-movil { display: none; }
  .pasada { grid-template-columns: 2fr 3fr; gap: 32px; }
}
@media (min-width: 960px) {
  body { font-size: 1.25rem; }
  .portada {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 56px;
    padding: 64px max(var(--margen), calc((100vw - var(--ancho)) / 2)) 88px;
  }
  .portada-libro { width: 100%; max-width: 380px; }
  .t-grot { font-size: 3.3rem; white-space: nowrap; }
  .t-serif { font-size: 4.2rem; }
  .historias h2 { max-width: 22ch; }
  .libro { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 72px; padding-top: 96px; }
  .historias-lista { grid-template-columns: repeat(4, 1fr); }
  .pasada { grid-template-columns: 360px 1fr; gap: 48px; }
  .h-marco { aspect-ratio: 4 / 5; }
  .autores { padding: 0 0 88px; }
  .autores-texto { padding-top: 88px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .autores-texto h2 { grid-column: 1 / -1; max-width: 24ch; }
  .autor { grid-template-columns: 200px 1fr; }
  .evento { padding: 40px 44px; }
  .cita { padding: 88px var(--margen); }
}


/* ---------- Pulido final (10-oct-2026, revisión de dirección de arte) ---------- */
h2, h3, .cita p, .invitar-texto { text-wrap: balance; }
p { text-wrap: pretty; }
.historias-cabeza, .historias-lista, .nota-demo { max-width: calc(var(--ancho) - 2 * var(--margen)); }
.pasada-foto, .grupo-rollo { border-radius: var(--r-medio); }
.escribenos h2 { margin-bottom: 16px; }
.boton-accion:focus-visible { outline-color: var(--tinta); }
.portada .boton-accion:focus-visible, .novedades .boton-accion:focus-visible { outline-color: #FFB4A3; }
@media (hover: hover) and (pointer: fine) { .barra-idioma:hover { background: rgba(255, 255, 255, .1); } }
.paso-texto { max-width: 22ch; }
.invitar { background: var(--niebla); border-radius: var(--r-grande); padding: 28px 24px; margin-top: 40px; }
.invitar-texto { max-width: 40ch; }
.novedades h2 { max-width: 24ch; }
@media (min-width: 720px) {
  .nov-form { grid-template-columns: minmax(0, 420px) max-content; }
  .invitar { padding: 32px 40px; }
}
@media (min-width: 960px) {
  .historias-lista { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
  .modelo { padding-block: 96px; }
  .modelo h2 { margin-bottom: 48px; }
  .paso-verbo { font-size: clamp(1.75rem, 3vw, 2.75rem); }
  .pasos li { padding-top: 88px; }
  .pasos li::before { width: 56px; height: 56px; font-size: 1.375rem; }
  .pasos li::after { top: 28px; left: 68px; }
  .autores-texto h2 { max-width: 28ch; margin-bottom: 40px; }
  .autor { grid-template-columns: 160px 1fr; column-gap: 24px; }
  .autor h3 { align-self: start; }
  .autor p { grid-column: 2; margin-top: 0; }
  .escribenos { display: grid; grid-template-columns: 1fr 1.5fr; column-gap: 64px; align-items: start; }
  .escribenos > h2, .escribenos > p { grid-column: 1; }
  .formulario { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .pasada { grid-template-columns: 360px minmax(0, 46ch); }
}


/* ---------- Compra: botones en la sección del libro + aviso flotante ---------- */
.libro-comprar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.libro-otra { font-weight: 700; color: var(--accion); min-height: 48px; display: inline-flex; align-items: center; }
.flotante {
  position: fixed; z-index: 25; left: 12px; right: 12px; bottom: 12px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px;
  padding: 10px 12px; background: var(--noche); color: var(--sobre-azul);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-grande);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
  transform: translateY(0); opacity: 1; transition: transform .3s var(--curva), opacity .3s var(--curva);
}
.flotante.oculto { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
.flotante-libro { grid-row: 1 / span 2; width: 44px; height: auto; border-radius: 3px; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.flotante-texto { margin: 0; font-size: .9375rem; line-height: 1.3; min-width: 0; }
.flotante-texto strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.0625rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flotante-texto span { color: #E1E9F3; }
.flotante-cta { grid-column: 2 / span 2; min-height: 48px; padding: 10px 16px; font-size: 1rem; }
.flotante-otra { display: none; }
.flotante-cerrar {
  grid-column: 3; grid-row: 1; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--sobre-azul-2); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.flotante :focus-visible { outline-color: #FFB4A3; }
.flotante .boton-accion:focus-visible { outline-color: #FFB4A3; }
@media (hover: hover) and (pointer: fine) { .flotante-cerrar:hover { color: #fff; background: rgba(255, 255, 255, .08); } .flotante-otra:hover { color: #fff; } }
body.con-flotante { padding-bottom: 132px; }
@media (min-width: 720px) {
  .flotante { left: auto; right: 24px; bottom: 24px; width: 380px; grid-template-columns: auto 1fr auto; }
  .flotante-otra { display: inline-flex; grid-column: 2 / span 2; font-size: .9375rem; font-weight: 700; color: var(--accion-sobre-azul); min-height: 32px; align-items: center; }
  body.con-flotante { padding-bottom: 0; }
}



/* ---------- Sistema de cristal (mismo lenguaje que el aviso flotante) ---------- */
:root {
  --vidrio-osc: linear-gradient(140deg, rgba(14, 58, 96, .78), rgba(0, 36, 63, .74));
  --vidrio-cla: linear-gradient(140deg, rgba(255, 255, 255, .78), rgba(235, 239, 248, .62));
  --brillo-osc: inset 0 1px 0 rgba(255, 255, 255, .30), inset 0 -1px 0 rgba(255, 255, 255, .06);
  --brillo-cla: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(1, 55, 93, .06);
  --sombra-suave: 0 18px 44px -22px rgba(1, 35, 63, .35), 0 2px 6px rgba(1, 35, 63, .06);
  --curva-apple: cubic-bezier(.32, .72, 0, 1);
}
/* Barra superior: cristal oscuro que deja ver la página al pasar */
.barra {
  background: var(--vidrio-osc);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--brillo-osc), 0 10px 30px -20px rgba(0, 18, 34, .6);
}
.barra-idioma, .boton-claro {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 999px;
}
/* Botones: misma luz interior que el del aviso */
.boton { border-radius: 999px; transition: background-color .2s var(--curva-apple), transform .25s var(--curva-apple), box-shadow .25s var(--curva-apple), color .2s; }
.boton-accion { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 18px -8px rgba(184, 50, 27, .65); }
.boton-borde { background: rgba(255, 255, 255, .55); box-shadow: var(--brillo-cla); }
@media (hover: hover) and (pointer: fine) {
  .boton-accion:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 12px 24px -8px rgba(184, 50, 27, .7); transform: translateY(-1px); }
  .barra-idioma:hover, .boton-claro:hover { background: rgba(255, 255, 255, .16); }
}
/* Paneles claros: cristal esmerilado */
.org, .invitar {
  background: var(--vidrio-cla);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--brillo-cla), var(--sombra-suave);
  border-radius: var(--r-grande);
}
.org { transition: transform .35s var(--curva-apple), box-shadow .35s var(--curva-apple); }
@media (hover: hover) and (pointer: fine) {
  .org:hover { transform: translateY(-2px); border-color: #fff; box-shadow: var(--brillo-cla), 0 26px 50px -24px rgba(1, 35, 63, .45); }
}
/* Panel oscuro dentro de secciones azules */
.nota-demo {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-style: solid;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); border-radius: var(--r-grande);
}
/* Tarjeta de la ficha del libro y la foto grupal con el mismo filo de luz */
.h-foto, .pasada-foto, .grupo-rollo, .autor-foto { box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 14px 30px -18px rgba(0, 18, 34, .5); }
/* Campos: suaves y con brillo al enfocar */
input, select, textarea { border-radius: 14px; border-color: #6B7889; background: rgba(255, 255, 255, .9); transition: border-color .2s, box-shadow .25s var(--curva-apple); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--portada); box-shadow: 0 0 0 4px rgba(1, 55, 93, .18); }
.nov-form input { border-radius: 999px; padding-inline: 20px; }
.novedades .nov-form input:focus-visible { box-shadow: 0 0 0 4px rgba(255, 180, 163, .45); }
.flotante-cta { border-radius: 999px; }
@media (prefers-reduced-transparency: reduce) {
  .barra { background: var(--portada); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .org, .invitar { background: var(--niebla); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { .org:hover, .boton-accion:hover { transform: none; } }

/* ---------- Aviso flotante: cristal líquido ---------- */
.flotante {
  isolation: isolate; overflow: hidden;
  background: linear-gradient(140deg, rgba(14, 58, 96, .82) 0%, rgba(0, 36, 63, .80) 55%, rgba(1, 55, 93, .84) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  backdrop-filter: blur(24px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -1px 0 rgba(255, 255, 255, .08),
    inset 0 0 0 1px rgba(255, 255, 255, .04),
    0 24px 60px -18px rgba(0, 18, 34, .55),
    0 2px 6px rgba(0, 18, 34, .18);
  transition: transform .55s cubic-bezier(.32, .72, 0, 1), opacity .4s cubic-bezier(.32, .72, 0, 1), filter .45s cubic-bezier(.32, .72, 0, 1);
}
/* reflejo especular arriba (la "gota" de luz) */
.flotante::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(120% 70% at 18% -10%, rgba(255, 255, 255, .30), rgba(255, 255, 255, 0) 55%),
    radial-gradient(90% 60% at 100% 120%, rgba(255, 180, 163, .16), rgba(255, 180, 163, 0) 60%);
}
.flotante.oculto { transform: translateY(calc(100% + 24px)) scale(.96); opacity: 0; filter: blur(10px); }
.flotante-cerrar {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff;
}
.flotante-cta { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 16px -6px rgba(184, 50, 27, .7); }
.flotante-libro { box-shadow: 0 6px 14px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .15); }
@media (hover: hover) and (pointer: fine) {
  .flotante-cerrar:hover { background: rgba(255, 255, 255, .2); }
  .flotante:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 255, 255, .1), 0 30px 70px -18px rgba(0, 18, 34, .6), 0 2px 6px rgba(0, 18, 34, .2); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .flotante { background: var(--noche); }
}
@media (prefers-reduced-transparency: reduce) {
  .flotante { background: var(--noche); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .flotante::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .flotante, .flotante.oculto { transition: opacity .2s linear; transform: none; filter: none; }
  html { scroll-behavior: auto; }
  .js .aparece { transform: none; transition: opacity .4s linear; }
  .haz, .js .haz { transform: translateX(-50%); transition: opacity .6s linear; }
  .h-num { transition-delay: 0s !important; }
  .boton:active, .org:active { transform: none; }
}

/* andamiaje de vista previa — 22-oct-2026.
   Oculta lo que le falta a cada historia (negocio, ciudad, frase) y la nota de vista previa.
   Para volver a verlo mientras se completan los datos, basta con borrar este bloque. */
.solo-demo { display: none !important; }
