/* YoyoTutu — yoyotutu.com
   Serie Yoyo y Tutu · Sello VAAL
   Estilo: mares de colores, cálido, mobile-first */

:root {
  --pink-sea: #ffb6c8;
  --pink-deep: #f2789f;
  --sky: #7ec8e8;
  --sky-deep: #3a9bc7;
  --sun: #ffe566;
  --mint: #8fe3c0;
  --lilac: #c9b6ff;
  --coral: #ff8f70;
  --ink: #2a2540;
  --ink-soft: #5c5675;
  --paper: #fff9f3;
  --card: #ffffff;
  --line: rgba(42, 37, 64, 0.1);
  --shadow: 0 12px 40px rgba(90, 40, 90, 0.12);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --font: "Nunito", system-ui, -apple-system, sans-serif;
  --max: 1100px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sky-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--pink-deep);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-sea), var(--sky), var(--sun));
  box-shadow: 0 4px 12px rgba(242, 120, 159, 0.35);
  flex-shrink: 0;
}

.logo span {
  background: linear-gradient(90deg, var(--pink-deep), var(--sky-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: none;
  gap: 0.25rem 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--pink-deep);
}

.nav-toggle {
  border: 2px solid var(--ink);
  background: var(--card);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

@media (min-width: 820px) {
  .nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

.nav.is-open {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  flex-direction: column;
  align-items: stretch;
  padding: 1rem;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
  box-shadow: var(--shadow);
}

.nav.is-open a {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink-deep), #e85a8c);
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 90, 140, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-amazon {
  background: #ff9900;
  color: #111;
  border-color: #e88b00;
}

.btn-amazon:hover {
  color: #111;
}

.btn-ghost {
  background: transparent;
  color: var(--sky-deep);
  border-color: var(--sky-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(255, 182, 200, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(126, 200, 232, 0.5), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 229, 102, 0.35), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pink-deep);
  background: rgba(255, 182, 200, 0.45);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 0.4em;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 36ch;
}

.hero-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: end;
}

.hero-art figure {
  margin: 0;
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.65rem;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}

.hero-art figure:first-child {
  transform: rotate(-3deg);
}

.hero-art figure:last-child {
  transform: rotate(3deg) translateY(1rem);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.35rem);
  background: #fff5e8;
}

.hero-art figcaption {
  text-align: center;
  font-weight: 800;
  padding-top: 0.4rem;
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(126, 200, 232, 0.12), rgba(201, 182, 255, 0.12));
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40ch;
}

/* Cards */
.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-chars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-chars {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-body {
  padding: 1.1rem 1.2rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}

.card .meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.6em;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex: 1;
}

.card-cover {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(160deg, var(--pink-sea), var(--sky));
}

.card-cover.square {
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff8ef;
  padding: 0.5rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--lilac);
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.badge.soon {
  background: var(--sun);
}

.badge.live {
  background: var(--mint);
}

/* Freebie band */
.freebie {
  background: linear-gradient(120deg, #2a2540 0%, #4a3f7a 50%, #3a9bc7 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .freebie {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 2rem 2.25rem;
  }
}

.freebie h2 {
  color: #fff;
  margin-bottom: 0.35em;
}

.freebie p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

.form {
  display: grid;
  gap: 0.65rem;
}

.form label {
  font-weight: 700;
  font-size: 0.9rem;
}

.form input[type="text"],
.form input[type="email"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font: inherit;
}

.form input:focus {
  outline: 3px solid var(--sun);
  border-color: transparent;
}

.form .check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.form .check input {
  margin-top: 0.25rem;
}

.form-note {
  font-size: 0.8rem;
  opacity: 0.85;
  margin: 0;
}

.form-success {
  display: none;
  background: rgba(143, 227, 192, 0.2);
  border: 2px solid var(--mint);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-weight: 700;
}

.form-success.is-visible {
  display: block;
}

/* Page hero small */
.page-hero {
  padding: 2rem 0 1rem;
}

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

.breadcrumb {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--pink-deep);
}

/* Book detail */
.book-detail {
  display: grid;
  gap: 2rem;
  padding-bottom: 3rem;
}

@media (min-width: 800px) {
  .book-detail {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
}

.book-cover-wrap {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

.book-cover-wrap img {
  width: 100%;
  border-radius: var(--radius-sm);
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.disclaimer {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: rgba(201, 182, 255, 0.25);
  border-left: 4px solid var(--lilac);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
}

/* Character card */
.char-card {
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  border: 2px solid #fff;
  transition: transform 0.15s ease;
}

.char-card:hover {
  transform: translateY(-4px);
  color: inherit;
}

.char-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #fff5e8;
}

.char-card h3 {
  margin: 0.65rem 0 0.2rem;
  font-size: 1rem;
}

.char-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* News */
.news-list {
  display: grid;
  gap: 1rem;
}

.news-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
}

.news-item time {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--pink-deep);
}

.news-item h3 {
  margin: 0.35rem 0 0.5rem;
}

.news-item h3 a {
  color: inherit;
  text-decoration: none;
}

.news-item h3 a:hover {
  color: var(--pink-deep);
}

.prose {
  max-width: 65ch;
}

.prose h2 {
  margin-top: 1.5em;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer .fine {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Placeholder block */
.placeholder-box {
  border: 2px dashed rgba(42, 37, 64, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.tag-soon {
  opacity: 0.85;
}

/* Config comment helper */
.config-hint {
  font-size: 0.8rem;
  font-family: ui-monospace, monospace;
  background: #f0eaf8;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
