@font-face {
  font-family: "Cinzel Decorative";
  src: url("fonts/CinzelDecorative-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel Decorative";
  src: url("fonts/CinzelDecorative-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "General Sans";
  src: url("fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --body: "General Sans", Arial, sans-serif;
  --display: "Clash Display", Georgia, serif;
  --ink: #14264a;
  --muted: #5b6276;
  --paper: #fffdf7;
  --cream: #e8eef9;
  --leaf: #d9a534;
  --sky: #e4eaf6;
  --rose: #f3c74f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.page {
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #fffefc url("assets/hero-welcome.png") center bottom / cover no-repeat;
  isolation: isolate;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
}

.brand {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 650;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
}

.nav a,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover {
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(20, 38, 74, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.lang-switch a,
.lang-switch .lang-active {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
}

.lang-switch a {
  color: var(--muted);
  transition: color 200ms ease;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch .lang-active {
  background: var(--ink);
  color: white;
  box-shadow: 0 6px 18px rgba(20, 38, 74, 0.25);
}

.hero-copy {
  width: min(560px, calc(100% - 48px));
  margin: clamp(74px, 14vh, 148px) max(24px, calc((100vw - 1180px) / 2)) 0 auto;
  padding-bottom: 150px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #a8761a;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: 0;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

html[lang="es"] .hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.hero-copy p:not(.eyebrow),
.split > p,
.final-panel > p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}

.hero-copy p:not(.eyebrow) {
  max-width: 500px;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 750;
}

.button-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 18px 40px rgba(20, 38, 74, 0.18);
}

.button-secondary {
  border: 1px solid rgba(20, 38, 74, 0.2);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.section {
  padding: clamp(76px, 9vw, 128px) 24px;
}

.story {
  background: linear-gradient(180deg, #fbfcff 0%, #edf2fb 100%);
}

.characters {
  background: #f2f5fc;
}

.next {
  background: linear-gradient(180deg, #f2f5fc 0%, #fdf6e3 100%);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

h2 {
  max-width: 730px;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.split > p,
.final-panel > p {
  margin: 0;
}

.section-heading {
  margin-bottom: clamp(34px, 6vw, 64px);
}

.story-stack {
  max-width: 720px;
}

.story-stack h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

.story-stack > p:not(.eyebrow) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}

.character-carousel {
  display: flex;
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 6px 0 26px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.character-carousel::-webkit-scrollbar {
  height: 10px;
}

.character-carousel::-webkit-scrollbar-track {
  background: rgba(217, 165, 52, 0.16);
  border-radius: 999px;
}

.character-carousel::-webkit-scrollbar-thumb {
  background: rgba(217, 165, 52, 0.55);
  border-radius: 999px;
}

.flip-card {
  flex: 0 0 clamp(240px, 24vw, 260px);
  height: 430px;
  border: 0;
  outline: 0;
  perspective: 1200px;
  scroll-snap-align: start;
  cursor: pointer;
}

.flip-card:focus-visible .flip-card-inner {
  box-shadow: 0 0 0 4px rgba(243, 199, 79, 0.45), 0 24px 70px rgba(20, 38, 74, 0.14);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.2, 0.72, 0.2, 1);
  box-shadow: 0 24px 70px rgba(20, 38, 74, 0.12);
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(217, 165, 52, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backface-visibility: hidden;
}

.card-front {
  justify-content: space-between;
}

.card-back {
  justify-content: center;
  padding: 22px;
  transform: rotateY(180deg);
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98) 0%, rgba(240, 244, 251, 0.98) 100%);
}

.portrait {
  flex: 1;
  min-height: 0;
  background-color: #eef1f7;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.portrait.hanna {
  background-image: url("assets/characters/hanna.png");
}

.portrait.dogui {
  background-image: url("assets/characters/dogui.png");
}

.portrait.michiko {
  background-image: url("assets/characters/michiko.png");
}

.portrait.sagu {
  background-image: url("assets/characters/sagu.png");
}

.portrait.egg {
  background-image: url("assets/characters/egg.png");
}

.portrait.mouse {
  background-image: url("assets/characters/mouse.png");
}

.card-title {
  min-height: 104px;
  padding: 16px 20px 20px;
  background: rgba(255, 255, 255, 0.8);
}

.flip-card span {
  color: #a8761a;
  font-size: 0.82rem;
  font-weight: 750;
}

.flip-card h3 {
  margin-top: 8px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.flip-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.flip-card .symbolism {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 165, 52, 0.24);
  color: #1f3a78;
  font-weight: 650;
}

.final-panel {
  max-width: 860px;
  text-align: center;
}

.final-panel h2 {
  margin: 0 auto 24px;
}

/* ---------- Subpages ---------- */

.page-hero {
  background: linear-gradient(180deg, var(--cream) 0%, #fbfcff 100%);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.page-hero-copy {
  width: min(1120px, calc(100% - 48px));
  margin: clamp(48px, 8vh, 96px) auto 0;
}

.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.page-hero-copy > p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}

/* ---------- Book grid ---------- */

.books {
  background: linear-gradient(180deg, #fbfcff 0%, #edf2fb 100%);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border: 1px solid rgba(20, 38, 74, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
}

.chip:hover {
  border-color: rgba(20, 38, 74, 0.45);
}

.chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.book-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(217, 165, 52, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(20, 38, 74, 0.12);
}

.book-card.is-hidden {
  display: none;
}

.book-cover {
  display: block;
  aspect-ratio: 3 / 3.4;
  background: #fffefc;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.book-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
}

.badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(217, 165, 52, 0.16);
  color: #1f3a78;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
}

.book-meta h3 {
  font-size: 1.35rem;
  line-height: 1.1;
}

.book-meta > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.book-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.price {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 650;
}

.price small {
  display: block;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 650;
}

/* ---------- Character grid page ---------- */

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.character-grid .flip-card {
  flex: none;
  width: 100%;
}

/* ---------- About / author ---------- */

.about-split {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.author-photo {
  overflow: hidden;
  border: 1px solid rgba(217, 165, 52, 0.26);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(20, 38, 74, 0.12);
}

.author-photo img {
  width: 100%;
  display: block;
}

.about-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.about-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.75;
}

.about-copy .role {
  margin-top: 10px;
  color: #a8761a;
  font-size: 0.85rem;
  font-weight: 750;
  text-transform: uppercase;
}

.about-copy blockquote {
  margin: 26px 0 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--leaf);
  color: #1f3a78;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 550;
  line-height: 1.4;
}

.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  padding: 8px 16px;
  border: 1px solid rgba(217, 165, 52, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #1f3a78;
  font-size: 0.88rem;
  font-weight: 650;
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
}

.form input,
.form textarea {
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(20, 38, 74, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--leaf);
  outline: 2px solid rgba(217, 165, 52, 0.35);
}

.form .button {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font-family: var(--body);
  font-size: 1rem;
}

/* ---------- Product pages ---------- */

.product-hero {
  padding-bottom: 0;
}

.product-section {
  background: linear-gradient(180deg, var(--cream) 0%, #fbfcff 30%, #edf2fb 100%);
}

.back-link {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-size: 0.92rem;
  font-weight: 650;
}

.back-link a {
  color: var(--muted);
}

.back-link a:hover {
  color: var(--ink);
}

.product-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.product-cover {
  position: sticky;
  top: 32px;
  overflow: hidden;
  border: 1px solid rgba(217, 165, 52, 0.26);
  border-radius: 8px;
  background: #fffefc;
  box-shadow: 0 24px 70px rgba(20, 38, 74, 0.14);
}

.product-cover img {
  width: 100%;
  display: block;
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.product-info h1 {
  max-width: 30ch;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}

.product-price {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 650;
}

.product-price small {
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 650;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.product-desc {
  max-width: 640px;
  padding-top: 10px;
  border-top: 1px solid rgba(217, 165, 52, 0.24);
}

.product-desc p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.product-desc strong {
  color: var(--ink);
}

.product-desc ul {
  margin: 16px 0 0;
  padding-left: 22px;
}

.product-desc li {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.product-desc li p {
  margin: 0;
}

.book-meta h3 a:hover {
  color: #1f3a78;
}

/* ---------- Sello de Hanna's Universe ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-seal {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 4px 10px rgba(20, 38, 74, 0.25));
}

.hero-seal {
  display: block;
  width: clamp(104px, 12vw, 150px);
  height: auto;
  margin-bottom: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #d9a534, 0 18px 40px rgba(20, 38, 74, 0.22);
}

@media (max-width: 820px) {
  .product-split {
    grid-template-columns: 1fr;
  }

  .product-cover {
    position: static;
    max-width: 380px;
  }
}

/* ---------- Videos ---------- */

.videos {
  background: linear-gradient(180deg, #fbfcff 0%, #edf2fb 100%);
}

.videos-alt {
  background: #f2f5fc;
}

.section-blurb {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.video-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(217, 165, 52, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(20, 38, 74, 0.12);
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #eef1f7;
  cursor: pointer;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 10px 30px rgba(20, 38, 74, 0.28);
  transition: transform 250ms ease;
}

.play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--ink);
}

.video-thumb:hover .play-icon,
.video-thumb:focus-visible .play-icon {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 20px;
}

.video-meta h3 {
  font-family: var(--body);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.4;
}

/* ---------- Teasers on home ---------- */

.teaser-actions {
  margin-top: clamp(30px, 5vw, 48px);
  text-align: center;
}

.author-teaser {
  background: #fdf6e3;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #f6eedc;
  padding: clamp(56px, 7vw, 88px) 24px 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(180px, 0.9fr) minmax(150px, 0.7fr);
  gap: clamp(32px, 6vw, 72px);
  width: min(1120px, 100%);
  margin: 0 auto;
}

.footer-brand .brand {
  margin: 0;
  color: white;
}

.footer-brand > p:not(.brand) {
  max-width: 380px;
  margin: 14px 0 0;
  color: #c9cfe0;
  font-size: 0.94rem;
  line-height: 1.65;
}

.footer-heading {
  margin: 0 0 16px;
  color: #a8761a;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-social a {
  color: #c9cfe0;
  font-size: 0.94rem;
  font-weight: 650;
}

.footer-links a:hover,
.footer-social a:hover {
  color: white;
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.newsletter input {
  flex: 1;
  min-width: 200px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-family: var(--body);
  font-size: 1rem;
}

.newsletter input::placeholder {
  color: #8e97ae;
}

.newsletter .button {
  border: 0;
  background: var(--rose);
  color: #14264a;
  cursor: pointer;
  font-family: var(--body);
  font-size: 0.95rem;
  box-shadow: none;
}

.footer-copy {
  width: min(1120px, 100%);
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8e97ae;
  font-size: 0.84rem;
}

@media (max-width: 820px) {
  .hero {
    min-height: 820px;
    background-position: 22% bottom;
    background-size: auto 100%;
  }

  .site-header,
  .hero-copy {
    width: calc(100% - 32px);
  }

  .site-header {
    flex-wrap: wrap;
    min-height: 72px;
    padding: 12px 0;
    gap: 4px 16px;
  }

  .nav {
    gap: 4px 14px;
    font-size: 0.86rem;
  }

  h2 {
    font-size: clamp(2.1rem, 7.5vw, 3rem);
  }

  .page-hero h1 {
    font-size: clamp(2.4rem, 9vw, 4rem);
  }

  .page-hero-copy {
    margin-top: 36px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .hero-copy {
    margin: 44px auto 0;
    padding-bottom: 330px;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  html[lang="es"] .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .split,
  .about-split {
    grid-template-columns: 1fr;
  }

  .author-photo {
    max-width: 380px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .flip-card {
    flex-basis: 78vw;
  }

  .character-grid .flip-card {
    width: 100%;
  }

  .book-grid,
  .video-grid,
  .character-grid {
    grid-template-columns: 1fr;
  }

  .product-actions {
    align-self: stretch;
    flex-direction: column;
  }

  .product-desc {
    max-width: none;
  }

  .video-meta h3 {
    font-size: 0.94rem;
  }

  .footer-inner {
    gap: 36px;
  }
}

/* ---------- Portada del inicio: el universo de Hanna ---------- */

.hero,
.page-hero {
  background:
    radial-gradient(ellipse 60% 55% at 18% 38%, rgba(96, 118, 214, 0.34), transparent 70%),
    radial-gradient(ellipse 45% 40% at 88% 85%, rgba(217, 165, 52, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 45% at 70% 10%, rgba(120, 90, 190, 0.22), transparent 70%),
    linear-gradient(160deg, #0b1733 0%, #14264a 55%, #1d3769 100%);
  color: #fdf6e3;
}

/* estrellas */
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 22px 34px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 128px 92px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.8px 1.8px at 188px 20px, rgba(243, 199, 79, 0.95), transparent),
    radial-gradient(1px 1px at 64px 160px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.3px 1.3px at 170px 190px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 96px 222px, rgba(243, 199, 79, 0.7), transparent);
  background-size: 240px 240px;
  opacity: 0.85;
}

/* el sello grande */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: min(500px, 40vw);
  aspect-ratio: 1;
  transform: translateY(-44%);
  background: url("assets/sello-grande.png") center / contain no-repeat;
  filter: drop-shadow(0 0 50px rgba(243, 199, 79, 0.35)) drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

.hero .brand,
.hero h1,
.page-hero .brand,
.page-hero h1 {
  color: #fdf6e3;
}

.hero .nav,
.page-hero .nav {
  color: rgba(253, 246, 227, 0.78);
}

.hero .nav a:hover,
.page-hero .nav a:hover {
  color: #f3c74f;
}

.hero .lang-switch,
.page-hero .lang-switch {
  border-color: rgba(253, 246, 227, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.hero .lang-switch a,
.page-hero .lang-switch a {
  color: rgba(253, 246, 227, 0.75);
}

.hero .lang-switch a:hover,
.page-hero .lang-switch a:hover {
  color: #f3c74f;
}

.hero .lang-switch .lang-active,
.page-hero .lang-switch .lang-active {
  background: #f3c74f;
  color: #14264a;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #e2b04a;
}

.hero-copy p:not(.eyebrow) {
  color: rgba(253, 246, 227, 0.82);
}

.hero .button-primary {
  background: #f3c74f;
  color: #14264a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.hero .button-secondary {
  border-color: rgba(253, 246, 227, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #fdf6e3;
}

.hero .hero-seal {
  box-shadow: 0 0 0 3px #d9a534, 0 0 40px rgba(243, 199, 79, 0.35);
}

.hero .brand-seal,
.page-hero .brand-seal {
  filter: drop-shadow(0 0 12px rgba(243, 199, 79, 0.35));
}

.hero .hero-seal {
  display: none;
}

@media (max-width: 820px) {
  .hero::before {
    display: none;
  }

  .hero .hero-seal {
    display: block;
    width: min(220px, 56vw);
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 0 30px rgba(243, 199, 79, 0.35));
  }
}

/* ---------- Páginas interiores: mismo universo ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fdf6e3;
}

.page-hero-copy p:not(.eyebrow) {
  color: rgba(253, 246, 227, 0.82);
}

.product-hero {
  padding-bottom: 8px;
}

/* ---------- Letra del sello en el nombre y el título ---------- */

.brand {
  font-family: "Cinzel Decorative", var(--display);
  font-weight: 900;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  letter-spacing: 0.01em;
}

.hero h1 {
  max-width: 12ch;
  font-family: "Cinzel Decorative", var(--display);
  font-weight: 900;
  font-size: clamp(2.5rem, 4.8vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0;
  background: linear-gradient(180deg, #fbe7a6 0%, #f0c766 45%, #c98f22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25));
}

.hero .brand,
.page-hero .brand,
.site-footer .brand {
  color: #f0c766;
}

/* ---------- E-books ---------- */

.ebooks-how {
  background: var(--paper);
  padding-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 24px;
  border: 1px solid rgba(217, 165, 52, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #14264a;
  color: #f3c74f;
  font-family: "Cinzel Decorative", var(--display);
  font-weight: 900;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.shelf-title {
  margin: 0 0 24px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.book-grid + .shelf-title {
  margin-top: clamp(48px, 6vw, 72px);
}

.price-soon {
  color: #a8761a;
  font-size: 1rem;
}

.bundles {
  background: linear-gradient(160deg, #0b1733 0%, #14264a 60%, #1d3769 100%);
  color: #fdf6e3;
}

.bundle-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.bundles h2 {
  color: #fdf6e3;
}

.bundles .eyebrow {
  color: #e2b04a;
}

.bundles .section-blurb,
.bundles .notify {
  color: rgba(253, 246, 227, 0.8);
}

.bundle-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(243, 199, 79, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.bundle-card img {
  width: 120px;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.bundle-card h3 {
  margin: 10px 0 6px;
  color: #fdf6e3;
  font-size: 1.35rem;
}

.bundle-card p {
  margin: 0 0 10px;
  color: rgba(253, 246, 227, 0.8);
}

.bundle-card .badge {
  background: #f3c74f;
  color: #14264a;
}

.bundle-card .price-soon {
  color: #f3c74f;
}

.notify {
  width: min(1120px, 100%);
  margin: 40px auto 0;
  text-align: center;
}

@media (max-width: 820px) {
  .steps,
  .bundle-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cover-soon {
  display: grid;
  place-content: center;
  gap: 14px;
  aspect-ratio: 2 / 3;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(96, 118, 214, 0.35), transparent 70%),
    linear-gradient(160deg, #0b1733 0%, #14264a 60%, #1d3769 100%);
  box-shadow: inset 0 0 0 10px #14264a, inset 0 0 0 11px rgba(243, 199, 79, 0.6);
}

.cover-soon b {
  color: #fdf6e3;
  font-family: "Cinzel Decorative", var(--display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.cover-soon small {
  color: #e2b04a;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button-gold {
  background: #f3c74f;
  color: #14264a;
}

/* el menú cabe en un renglón con el botón de E-books */
.brand {
  white-space: nowrap;
}

.nav {
  gap: 0 clamp(10px, 1.3vw, 20px);
  font-size: 0.92rem;
}

.bundle-card .price {
  display: block;
  margin: 4px 0 14px;
  color: #f3c74f;
}

/* Thank-you page (Stripe Payment Links redirect) */
.thanks-inner {
  max-width: 44rem;
}
.thanks-lang + .thanks-lang {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.thanks-download {
  margin: 0 0 1.75rem;
}
.thanks-download {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.thanks-download .button {
  font-size: 1.05rem;
}
.thanks-formats {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: -0.75rem 0 1.75rem;
}
.thanks-back {
  margin-top: 2rem;
}

/* Frase para las mamás en la portada */
.hero-copy p.hero-mama {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 3px solid #d9a534;
  color: #fdf6e3;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-style: italic;
}

.newsletter-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.newsletter-aviso {
  margin-top: 16px;
  font-weight: 600;
}

/* ---------- Guardar en Pinterest ---------- */

.pin-guardar {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  background: #e60023;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.pin-guardar:hover {
  background: #ad081b;
}

.pin-p {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #e60023;
  font: 900 15px/1 Georgia, serif;
}

.pin-boton .pin-p {
  background: #e60023;
  color: #fff;
  margin-right: 8px;
}

@media (max-width: 820px) {
  .product-cover {
    position: relative;
  }
}

/* ---------- Hojas para colorear ---------- */

.colorear {
  background: linear-gradient(180deg, #fbfcff 0%, #edf2fb 100%);
}

.colorear-caja {
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 30px;
  background: #fff;
  border: 2px solid var(--rose);
  border-radius: 22px;
  text-align: left;
}

.colorear-caja h2 {
  margin: 4px 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.colorear-caja p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.colorear-caja .newsletter { margin-top: 18px; }
.colorear-caja .newsletter input { color: var(--ink); background: #fff; border: 2px solid var(--sky); }
.colorear-caja .newsletter input::placeholder { color: var(--muted); }
.colorear-caja .newsletter .button { background: var(--ink); color: #fff; }
.colorear-bajar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.colorear-bajar[hidden] { display: none; }
.colorear-indice { margin-top: 16px !important; font-size: 0.95rem; }
.colorear-indice a { color: var(--ink); font-weight: 700; }

.colorear-juego {
  margin-top: 64px;
  scroll-margin-top: 24px;
}

.colorear-juego > h2 {
  margin: 4px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.colorear-juego > p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.colorear-juego .colorear-hojas { margin: 28px 0 24px; }

.colorear-hojas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 48px 0;
}

.colorear-hojas figure {
  margin: 0;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(20, 38, 74, 0.1);
}

.colorear-hojas img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.colorear-hojas figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

