:root {
  --ink: #344a55;
  --ink-deep: #293b45;
  --coral: #ef846f;
  --paper: #eee6d8;
  --paper-dim: #d6cbbb;
  --line: rgba(238, 230, 216, .25);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Roboto Condensed", sans-serif;
  min-height: 100vh;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }
img { display: block; max-width: 100%; }
.wrap { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  text-decoration: none;
  color: var(--paper);
  letter-spacing: .025em;
  line-height: 1;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}
.brand span {
  color: var(--paper);
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
  font-size: 1rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.nav a {
  text-decoration: none;
  opacity: .72;
  transition: opacity .18s ease, color .18s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { opacity: 1; color: var(--coral); }

/* Shared page structure */
main { padding: clamp(56px, 9vw, 112px) 0 88px; }
.page-heading { padding-bottom: clamp(30px, 4vw, 44px); }
h1 {
  margin: 0;
  color: var(--coral);
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: .82;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
h2 { font-size: clamp(2rem, 4.25vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2.15rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }

/* Footer */
.site-footer {
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer-inner > :nth-child(2) { justify-self: center; text-align: center; }
.footer-inner > :last-child { justify-self: end; text-align: right; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--coral); }

/* Material Symbols */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

/* Cómic digital */
.page-home .comic-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  padding: 58px 0;
  overflow-x: auto;
}
.page-home .comic-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, var(--paper) 1px, transparent 1.2px);
  background-size: 18px 18px;
  opacity: .2;
  pointer-events: none;
}
.page-home #unity-container.unity-desktop,
.page-home #unity-container.unity-mobile {
  position: relative;
  z-index: 1;
  flex: 0 1 800px;
  width: 800px;
  max-width: 100%;
  background: transparent;
}
#unity-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  background: var(--ink-deep);
}
 #unity-loading-bar {
     position: absolute;
     left: 50%;
     top: 50%;
     transform: translate(-50%, -50%);
     display: none 
}
 #unity-logo {
     width: 154px;
     height: 130px;
     background: url('TemplateData/unity-logo-dark.png') no-repeat center 
}
 #unity-progress-bar-empty {
     width: 141px;
     height: 18px;
     margin-top: 10px;
     margin-left: 6.5px;
     background: url('TemplateData/progress-bar-empty-dark.png') no-repeat center 
}
 #unity-progress-bar-full {
     width: 0%;
     height: 18px;
     margin-top: 10px;
     background: url('TemplateData/progress-bar-full-dark.png') no-repeat center 
}
 #unity-footer {
     position: relative;
     z-index: 5;
     display: flex;
     align-items: flex-start;
     justify-content: flex-end;
     width: 100%;
     height: 44px;
     min-height: 44px;
     background: transparent;
     pointer-events: none;
}
 .unity-mobile #unity-footer {
     display: flex !important;
     visibility: visible !important;
     opacity: 1 !important;
}
 .unity-mobile #unity-fullscreen-button {
     display: flex !important;
     visibility: visible !important;
     opacity: 1 !important;
     touch-action: manipulation;
}
 #unity-build-title {
     float: right;
     margin-right: 10px;
     line-height: 38px;
     font-family: "Roboto Condensed", sans-serif;
     font-size: 18px 
}
 #unity-fullscreen-button {
     display: flex;
     align-items: flex-start;
     justify-content: flex-end;
     float: right;
     width: 44px;
     height: 44px;
     padding-top: 6px;
     overflow: visible;
     white-space: nowrap;
     line-height: 0;
     text-align: end;
     cursor: pointer;
     pointer-events: auto;
}
 #unity-fullscreen-button img {
     width: 38px;
     height: 38px;
     max-width: none;
     border-radius: 5px;
}
 #unity-fullscreen-button:hover {
	 overflow: visible;
 }	 

 #unity-warning {
     position: absolute;
     left: 50%;
     top: 5%;
     transform: translate(-50%);
     background: white;
     padding: 10px;
     display: none 
}
.page-home .tablet-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 56px;
  align-items: end;
  padding: clamp(58px, 8vw, 86px) 0;
}
.section-title {
  margin: 0;
  color: var(--paper);
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-wrap: balance;
}
.page-home .tablet-copy {
  display: grid;
  gap: 22px;
  align-items: start;
}
.section-intro {
  margin: 0;
  color: var(--paper-dim);
  font-family: "Libre Baskerville", serif;
  font-size: clamp(.95rem, 1.3vw, 1.08rem);
  line-height: 1.6;
}
.page-home .play-button {
  position: relative;
  min-height: 72px;
  padding: 12px 58px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--paper);
  color: var(--paper);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .065em;
  background: transparent;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.page-home .play-logo {
  position: relative;
  display: block;
  width: min(178px, 100%);
  flex: 0 1 178px;
  color: inherit;
}
.page-home .play-logo img {
  width: 100%;
  height: auto;
  opacity: 1;
  transition: opacity .18s ease;
}
.page-home .play-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background-color: currentColor;
  -webkit-mask: url("images/google-play-vector-nb.png") center / contain no-repeat;
  mask: url("images/google-play-vector-nb.png") center / contain no-repeat;
  pointer-events: none;
  transition: opacity .18s ease, background-color .18s ease;
}
.page-home .play-button .material-symbols-outlined {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  transition: transform .18s ease;
}
.page-home .play-button:hover,
.page-home .play-button:focus-visible,
.page-home .play-button:active {
  border-color: var(--coral);
  color: var(--ink-deep);
  background: var(--coral);
  transform: translateY(-1px);
}
.page-home .play-button:hover .material-symbols-outlined {
  transform: translate(2px, calc(-50% - 2px));
}
.page-home .play-button:hover .play-logo img,
.page-home .play-button:focus-visible .play-logo img,
.page-home .play-button:active .play-logo img {
  opacity: 0;
}
.page-home .play-button:hover .play-logo::after,
.page-home .play-button:focus-visible .play-logo::after,
.page-home .play-button:active .play-logo::after {
  opacity: 1;
}

.page-home .comic-descriptions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(48px, 7vw, 76px) 0;
  border-bottom: 1px solid var(--line);
}
.page-home .comic-description { min-width: 0; }
.page-home .comic-description h3 {
  margin: 0 0 18px;
  color: var(--paper);
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.page-home .comic-summary {
  margin: 0;
  color: var(--paper-dim);
  font-family: "Libre Baskerville", serif;
  font-size: clamp(.95rem, 1.3vw, 1.08rem);
  line-height: 1.6;
}
.page-home .comic-description .comic-summary + .section-intro,
.page-home .comic-description .section-intro + .section-intro { margin-top: 1em; }

/* Cómo se hizo */
/* Tarjeta enlazada: edición impresa */
    .page-home .print-edition-section {
      padding: 0 0 clamp(58px, 8vw, 86px);
    }
    .page-home .print-edition-link {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
      gap: 56px;
      align-items: center;
      padding: clamp(32px, 5vw, 52px);
      overflow: hidden;
      color: inherit;
      background: var(--ink-deep);
      text-decoration: none;
      transition: background-color .3s ease;
    }
    .page-home .print-edition-visual {
      display: grid;
      place-items: center;
      min-width: 0;
    }
    .page-home .print-edition-book {
      position: relative;
      display: inline-block;
      width: min(100%, 620px);
      transform: rotate(-4deg) scale(1);
      transform-origin: center;
      transition: transform .35s ease;
      will-change: transform;
    }
    .page-home .print-edition-visual img {
      display: block;
      width: 100%;
      height: auto;
      box-sizing: border-box;
      border-right: 2px solid grey;
	  border-bottom: 4px solid var(--paper);
      transition: border-color .35s ease;
    }
    .page-home .print-edition-book::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(135deg, rgb(160 160 160 / 22%) 0%, rgb(160 160 160 / 8%) 22%, rgba(255, 255, 255, 0) 48%, rgb(22 36 44 / 55%) 100%);
      opacity: 1;
      transition: opacity .35s ease;
    }
    .page-home .print-edition-copy {
      display: grid;
      gap: 22px;
      align-items: start;
    }
    .page-home .print-edition-link:hover,
    .page-home .print-edition-link:focus-visible {
      background: var(--ink);
    }
    .page-home .print-edition-link:hover .print-edition-book,
    .page-home .print-edition-link:focus-visible .print-edition-book {
      transform: rotate(0deg) scale(1.1);
    }
    .page-home .print-edition-link:hover .print-edition-visual img,
    .page-home .print-edition-link:focus-visible .print-edition-visual img {
      border-color: transparent;
    }
    .page-home .print-edition-link:hover .print-edition-book::after,
    .page-home .print-edition-link:focus-visible .print-edition-book::after {
      opacity: 0;
    }


/* Información del proyecto */
.page-home .project-info-section {
  padding: clamp(58px, 8vw, 86px) 0;
  border-top: 1px solid var(--line);
}
.page-home .project-info-copy {
  max-width: 820px;
}
.page-home .project-info-section h3 {
  margin: 0 0 22px;
  color: var(--paper);
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.page-home .project-info-intro {
  margin: 0 0 20px;
  color: var(--paper);
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.65;
}
.page-home .project-info-section p:not(.project-info-intro) {
  margin: 0;
  color: var(--paper-dim);
  font-size: clamp(.98rem, 1.25vw, 1.08rem);
  line-height: 1.65;
}
.page-home .project-info-section p + p {
  margin-top: 1em;
}
.page-home .project-info-section a {
  color: var(--coral);
  text-underline-offset: 3px;
}
.page-home .project-info-section a:hover {
  color: var(--paper);
}

.page-home .making-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 56px;
  align-items: center;
  padding: clamp(58px, 8vw, 86px) 0 12px;
  border-top: 1px solid var(--line);
}
.page-home .making-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.page-home .making-copy {
  display: grid;
  gap: 22px;
  align-items: start;
}
.page-home .process-button {
  min-height: 64px;
  padding: 17px 20px 17px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--paper);
  color: var(--paper);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .065em;
  background: transparent;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.page-home .process-button .material-symbols-outlined {
  flex: 0 0 auto;
  color: var(--paper);
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  transition: color .18s ease, transform .18s ease;
}
.page-home .process-button:hover,
.page-home .process-button:focus-visible {
  border-color: var(--coral);
  color: var(--ink-deep);
  background: var(--coral);
  transform: translateY(-1px);
}
.page-home .process-button:hover .material-symbols-outlined,
.page-home .process-button:focus-visible .material-symbols-outlined {
  color: var(--ink-deep);
  transform: translate(2px, -2px);
}

/* Prensa */
.page-press .page-heading,
.related-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 56px;
  align-items: end;
}
.page-press .lead {
  margin: 0 0 3px;
  color: var(--paper-dim);
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}
.page-press .press-list { border-top: 1px solid var(--line); }
.page-press .press-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 58px;
  gap: 34px;
  align-items: start;
  padding: 42px 0 46px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
}
.page-press .press-item::before {
  content: "";
  position: absolute;
  inset: 0 -18px;
  background: rgba(255,255,255,0);
  transition: background .2s ease;
  pointer-events: none;
}
.page-press .press-item:hover::before { background: rgba(255,255,255,.025); }
.page-press .press-meta,
.page-press .press-copy,
.page-press .press-arrow { position: relative; z-index: 1; }
.status-tag {
  display: inline-block;
  padding: 7px 10px 6px;
  border: 1px solid var(--coral);
  color: var(--coral);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.page-press .date,
.page-press .source {
  display: block;
  margin-top: 14px;
  color: var(--paper-dim);
  font-size: .74rem;
  line-height: 1.45;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.page-press .source { margin-top: 4px; opacity: .78; }
.page-press .press-title {
  margin: -7px 0 16px;
  max-width: 860px;
  color: var(--paper);
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.65rem, 2.8vw, 2.7rem);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}
.page-press .press-summary,
.page-home .comic-description .section-intro {
  margin: 0;
  max-width: 790px;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.65;
}
.page-press .press-summary {
  color: var(--paper-dim);
}
.page-home .comic-description .section-intro {
  color: var(--paper);
  font-family: "Roboto Condensed", sans-serif;
}
.page-press .press-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--coral);
  transition: transform .2s ease, border-color .2s ease;
}
.page-press .press-arrow,
.book-arrow {
  font-size: 1.35rem;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.page-press .press-item:hover .press-arrow { transform: translate(4px, -4px); border-color: var(--coral); }

/* Libros relacionados: compartido por prensa y compra */
.related-books { padding: clamp(64px, 8vw, 92px) 0 10px; }
.related-heading { margin-bottom: 34px; }
.related-heading .section-intro { margin-bottom: 3px; line-height: 1.55; }
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.book-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.012);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.book-card:hover {
  border-color: var(--coral);
  background: rgba(255,255,255,.025);
  transform: translateY(-3px);
}
.book-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.related-books .book-visual {
  display: grid;
  place-items: center;
  min-height: 390px;
  padding: 28px;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.related-books .book-visual img {
  width: auto;
  height: 320px;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 18px 38px rgba(0,0,0,.2);
  transition: transform .22s ease;
}
.book-card:hover .book-visual img { transform: scale(1.018); }
.book-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 28px 30px 30px;
}
.book-title {
  margin: 0 0 17px;
  color: var(--paper);
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.17;
  text-wrap: balance;
}
.book-title small {
  display: block;
  margin-top: 7px;
  color: var(--paper-dim);
  font-family: "Roboto Condensed", sans-serif;
  font-size: .64em;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: .02em;
}
.book-summary {
  margin: 0;
  color: var(--paper-dim);
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  line-height: 1.62;
}
.book-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--coral);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.book-arrow {
  flex: 0 0 auto;
  transition: transform .2s ease;
}
.book-card:hover .book-arrow { transform: translate(3px, -3px); }

/* Contacto */
.page-contact .people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.page-contact .person {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 38px 24px 42px;
  border-right: 1px solid var(--line);
}
.page-contact .person:first-child { padding-left: 0; }
.page-contact .person:last-child { border-right: 0; padding-right: 0; }
.page-contact .avatar-frame {
  width: min(100%, 180px);
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--ink-deep);
  border-radius: 8%;
}
.page-contact .avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: var(--ink-deep);
  filter: grayscale(100%) contrast(1.25);
  transform: scale(1);
  transition: transform .3s ease, filter .3s ease;
}
.page-contact .person:hover .avatar {
  filter: none;
  transform: scale(1.06);
}
.page-contact .person-name {
  margin: 0 0 8px;
  color: var(--paper);
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  font-weight: 400;
  line-height: 1.08;
}
.page-contact .person-role {
  margin: 0 0 25px;
  color: var(--paper-dim);
  font-size: .8rem;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-contact .profile-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--coral);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: auto;
}
.page-contact .profile-link .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 20px;
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' -25, 'opsz' 20;
}
.page-contact .profile-link:hover { color: var(--paper); }

/* Imágenes editoriales a ancho completo */
.wide-image-section {
  width: 100%;
  padding-top: clamp(36px, 5vw, 58px);
}
.wide-image-section img {
  width: 100%;
  height: auto;
}
.image-caption {
  margin: 12px 0 0;
  color: var(--paper-dim);
  font-family: "Roboto Condensed", sans-serif;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .04em;
  text-align: center;
}

/* Error 404 */
.page-error .error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.page-error .error-content h1 { margin-bottom: clamp(34px, 5vw, 56px); }
.page-error .error-image {
  width: auto;
  height: auto;
  max-width: 100%;
  margin-inline: auto;
}
.page-error .error-content h2 {
  margin: clamp(30px, 4vw, 46px) 0 0;
  color: var(--paper);
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

/* Comprar */
.page-buy .purchase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: start;
  padding: 42px 0 50px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.page-buy .purchase + .purchase { border-top: 0; }
.page-buy .book-image {
  width: 100%;
  height: auto;
}
.page-buy .purchase-copy { padding-top: 2px; }
.page-buy .purchase-title {
  margin: 0 0 20px;
  color: var(--paper);
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.025em;
}
.page-buy .purchase-copy p {
  margin: 0 0 28px;
  color: var(--paper-dim);
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.6;
}

/* Slideshow de SACROMONTE Confesores: portada primero y fotografía después. */
.page-buy .purchase-slideshow {
  display: grid;
  overflow: hidden;
  background: var(--ink-deep);
}
.page-buy .purchase-slide {
  grid-area: 1 / 1;
  width: 100%;
  align-self: center;
  opacity: 0;
  animation: purchase-slideshow 10s infinite;
}
.page-buy .purchase-slide--first { animation-delay: 0s; }
.page-buy .purchase-slide--second { animation-delay: 5s; }
@keyframes purchase-slideshow {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .page-buy .purchase-slide { animation: none; }
  .page-buy .purchase-slide--first { opacity: 1; }
  .page-buy .purchase-slide--second { opacity: 0; }
}

.page-buy .sold-out-group {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.page-buy .status-tag { justify-self: start; }
.page-buy .buy-links {
  display: grid;
  gap: 14px;
}
.page-buy .buy-button {
  min-height: 64px;
  padding: 17px 20px 17px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--coral);
  color: var(--coral);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .065em;
  background: transparent;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.page-buy .buy-button .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  transition: transform .18s ease;
}
.page-buy a.buy-button:hover {
  color: var(--ink-deep);
  background: var(--coral);
  transform: translateY(-1px);
}
.page-buy a.buy-button:hover .material-symbols-outlined { transform: translate(2px, -2px); }
.page-buy .buy-button--disabled {
  border-color: var(--ink-deep);
  color: var(--paper-dim);
  background: var(--ink-deep);
  opacity: .6;
  cursor: default;
  user-select: none;
}
.page-buy .buy-button--active {
  border-color: var(--paper);
}
.page-buy .buy-button--active > span:first-child {
  color: var(--paper);
  transition: color .18s ease;
}
.page-buy .buy-button--active > .material-symbols-outlined {
  color: var(--paper);
}
.page-buy a.buy-button--active:hover {
  border-color: var(--coral);
}
.page-buy a.buy-button--active:hover > span:first-child {
  color: var(--ink-deep);
}
.page-buy a.buy-button--active:hover > .material-symbols-outlined {
  color: var(--ink-deep);
}
.page-buy .purchase--upcoming .purchase-copy p { margin-bottom: 0; }

/* Aviso legal, privacidad y cookies */
.page-privacy .page-heading { border-bottom: 1px solid var(--line); }
.page-privacy .modified {
  margin: 20px 0 0;
  color: var(--paper-dim);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.page-privacy .legal { max-width: 900px; padding-top: 48px; }
.page-privacy .legal-section + .legal-section { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.page-privacy .legal-section > .section-title { margin-bottom: 24px; }
.page-privacy .rights-record { margin-top: 34px; }
.page-privacy .rights-record p { color: var(--paper); }
.page-privacy .rights-record p + p { margin-top: 28px; }
.page-privacy .legal-intro,
.page-privacy .legal p,
.page-privacy .legal li { color: var(--paper-dim); font-size: 1.05rem; line-height: 1.7; }
.page-privacy .legal-intro {
  margin: 0 0 20px;
  font-family: "Libre Baskerville", serif;
  color: var(--paper);
  font-size: 1.15rem;
}
.page-privacy .policy-list { margin: 0; padding-left: 1.4rem; }
.page-privacy .policy-list li { padding-left: .45rem; margin: 0 0 13px; }
.page-privacy .legal a { color: var(--coral); text-underline-offset: 3px; }


@media (max-width: 1040px) and (min-width: 821px) {
  .page-contact .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-contact .person:nth-child(odd) {
    padding-left: 0;
    padding-right: 24px;
    border-right: 1px solid var(--line);
  }
  .page-contact .person:nth-child(even) {
    padding-left: 24px;
    padding-right: 0;
    border-right: 0;
  }
  .page-contact .person:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 22px; }
  .nav { justify-content: flex-start; }
  h1 { font-size: clamp(3rem, 10vw, 5.2rem); }
  h2 { font-size: clamp(1.9rem, 6vw, 3.2rem); }
  h3 { font-size: clamp(1.3rem, 3.8vw, 1.9rem); }
  h4 { font-size: clamp(1.05rem, 2.8vw, 1.35rem); }

  .page-home .tablet-section,
  .page-home .making-section { grid-template-columns: 1fr; gap: 22px; }
  .page-home .tablet-copy,
  .page-home .making-copy { max-width: 640px; }
  .page-home .comic-descriptions { grid-template-columns: 1fr; gap: 36px; }
  .page-home #unity-container.unity-desktop,
  .page-home #unity-container.unity-mobile {
    width: min(800px, 100%);
  }

  .page-press .page-heading { grid-template-columns: 1fr; gap: 30px; }
  .page-press .lead { max-width: 620px; }
  .page-press .press-item { grid-template-columns: 1fr 52px; gap: 22px; }
  .page-press .press-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
  }
  .page-press .date,
  .page-press .source { display: inline-block; margin: 0; }
  .page-press .press-title { margin-top: 0; }

  .related-heading { grid-template-columns: 1fr; gap: 18px; }
  .related-heading .section-intro { max-width: 560px; }
  .related-books .book-visual { min-height: 340px; }
  .related-books .book-visual img { height: 285px; }

  .page-contact .people { grid-template-columns: 1fr; }
  .page-contact .person,
  .page-contact .person:first-child,
  .page-contact .person:last-child {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    column-gap: 28px;
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .page-contact .person:last-child { border-bottom: 0; }
  .page-contact .avatar-frame { grid-row: 1 / 4; width: 150px; margin: 0; }
  .page-contact .person-name { align-self: end; }
  .page-contact .person-role { margin-bottom: 16px; }
  .page-contact .profile-link { align-self: start; justify-self: start; margin-top: 0; }

  .page-buy .purchase { grid-template-columns: 1fr; }
  .page-buy .purchase-copy { max-width: none; width: 100%; }
  .page-buy .buy-links,
  .page-buy .buy-button { width: 100%; }


  /* Edición impresa */
  .page-home .print-edition-link {
          grid-template-columns: 1fr;
          gap: 28px;
        }
        .page-home .print-edition-book {
          margin: 24px 0;
        }
        .page-home .print-edition-copy {
          max-width: 640px;
        }
}

@media (max-width: 620px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .footer-inner > :nth-child(2),
  .footer-inner > :last-child { justify-self: center; text-align: center; }
}

@media (max-width: 540px) {
  .wrap { width: min(calc(100% - 30px), var(--max)); }
  .site-header { padding-top: 22px; }
  main { padding-top: 54px; }
  .nav { font-size: .78rem; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.4rem); }
  h2 { font-size: clamp(1.7rem, 8vw, 2.65rem); }
  h3 { font-size: clamp(1.2rem, 5vw, 1.65rem); }
  h4 { font-size: clamp(1rem, 4vw, 1.25rem); }
  .page-heading { padding-bottom: 28px; }

  .page-home .comic-stage { padding-top: 30px; padding-bottom: 42px; }
  .page-home #unity-container.unity-desktop,
  .page-home #unity-container.unity-mobile { min-width: 0; }
  .page-home .tablet-section { padding-top: 52px; }
  .page-home .play-button { min-height: 68px; }

  .page-press .press-item { grid-template-columns: 1fr; padding: 34px 0 38px; }
  .page-press .press-arrow {
    width: 42px;
    height: 42px;
    justify-self: end;
  }

  .related-books { padding-top: 58px; }
  .book-grid { grid-template-columns: 1fr; }
  .related-books .book-visual { min-height: 330px; padding: 24px; }
  .related-books .book-visual img { height: 280px; }
  .book-copy { padding: 24px 22px 26px; }

  .page-contact .person,
  .page-contact .person:first-child,
  .page-contact .person:last-child {
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 20px;
    padding: 26px 0;
  }
  .page-contact .avatar-frame { width: 104px; }
  .page-contact .person-name { font-size: 1.52rem; }
  .page-contact .person-role { font-size: .72rem; letter-spacing: .095em; }

  .page-buy .purchase { padding-top: 30px; gap: 30px; }
  .page-buy .buy-button { min-height: 60px; padding-inline: 18px; }

  .page-privacy h1 { font-size: clamp(2.55rem, 13vw, 4.2rem); }
  .page-privacy .legal { padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
