/* Luly Ríos · «Cerezo y lluvia».
   Colores y tipografías llegan como variables desde Configuración (base.html). */
:root {
  --dark: #1F2547; --accent: #F48FB1; --paper: #FFF8FA; --ink: #272241; --band: #4C5AA8;
  --link: #A3446B; --muted: #6A6480; --muted-dark: #B9BCD6; --soft: #FDEDF3; --line: #EBDDE5; --line-dark: #3A4064;
  --on-accent: #1F2547; --accent-band: #FFD0E0;
  --head: "Playfair Display", Georgia, serif; --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --hangul: "Gowun Batang", serif;
  --radius: 22px; --radius-sm: 14px; --wrap: 1200px;
  --shadow: 0 18px 40px rgba(31, 37, 71, .14);
  --shadow-lg: 0 34px 70px rgba(31, 37, 71, .28);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 0; }
p, ul, ol, figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { position: fixed; left: 12px; top: 12px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 18px; border-radius: 999px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hangul { font-family: var(--hangul); font-weight: 700; letter-spacing: .02em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--link); }
.dark .kicker { color: var(--accent); }
.band .kicker, .panel-band .kicker { color: var(--accent-band); }
.lead { font-size: 19px; line-height: 1.65; }
.section { padding-block: 88px 24px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 36px; }
.section-head h2, .h2 { font-size: clamp(32px, 4vw, 46px); }
.section-head > a { font-weight: 600; font-size: 15px; }

/* Rótulo con marco ornamental (como los títulos de las portadas) */
.cartouche { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 7px 22px; border: 1.5px solid currentColor; border-radius: 999px; }
.cartouche::before, .cartouche::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: 1.5px solid currentColor; background: var(--dark); transform: translateY(-50%) rotate(45deg); }
.cartouche::before { left: -5px; } .cartouche::after { right: -5px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--on-accent); font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { color: var(--on-accent); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(244, 143, 177, .35); }
.btn-dark { background: var(--dark); color: var(--paper); }
.btn-dark:hover { color: var(--paper); box-shadow: 0 12px 26px rgba(31, 37, 71, .3); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.dark .btn-ghost { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.dark .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; font-weight: 600; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); pointer-events: none; }
.icon { width: 18px; height: 18px; flex: none; }

/* Fondos: noche con lluvia */
.dark { background-color: var(--dark); color: var(--paper); }
.dark a:not(.btn):not(.card):not(.chip):not(.lang) { color: var(--accent); }
.rain { background-image: repeating-linear-gradient(105deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px),
  radial-gradient(1200px 500px at 85% -10%, rgba(244,143,177,.18), transparent 60%); }

/* Cabecera */
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 16px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--head); font-style: italic; font-weight: 600; font-size: 28px; letter-spacing: -.01em; color: var(--paper) !important; text-decoration: none; }
.brand .hangul { font-size: 14px; font-style: normal; color: var(--accent); letter-spacing: .12em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 600; }
.nav a { color: var(--paper) !important; text-decoration: none; display: inline-block; padding-block: 8px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.tools { display: flex; gap: 10px; align-items: center; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-dark); color: var(--paper); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.lang:hover { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--accent); }
.flash { margin-top: 16px; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--soft); border: 1px solid var(--line); }

/* Hero con pétalos */
.hero { position: relative; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 76px 104px; }
.hero-copy { flex: 1 1 500px; min-width: 0; }
.hero h1 { font-size: clamp(46px, 6.6vw, 84px); line-height: 1; letter-spacing: -.025em; margin-top: 24px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { color: var(--muted-dark); margin-top: 26px; max-width: 540px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; font-size: 14px; color: var(--muted-dark); list-style: none; padding: 0; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--accent); }
.hero-stack { flex: 1 1 420px; min-width: 0; position: relative; height: 540px; }
/* Portadas de la portada. El enlace (zona que se pulsa) no se mueve; lo que se anima es la cara
   interior (.face), así el cursor nunca «pierde» la portada al pasar por encima.
   Al acercarse se abren en abanico; la elegida sube con brillo y un reflejo de luz la cruza. */
.hero-stack a { position: absolute; display: block; width: 210px; border-radius: 6px; }
.hero-stack .face { position: relative; display: block; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-lg);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease; }
.hero-stack img { width: 100%; }
.hero-stack .face::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.38) 48%, rgba(255,255,255,.08) 55%, transparent 65%);
  transform: translateX(-130%); transition: transform .9s ease; }
.hero-stack .c1 { left: 4%; top: 92px; transform: rotate(-8deg); }
.hero-stack .c2 { right: 4%; top: 104px; transform: rotate(7deg); }
.hero-stack .c0 { left: 50%; top: 14px; width: 280px; margin-left: -140px; z-index: 2; }
.hero-stack .c0 .face { box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 8px rgba(255,255,255,.06); }
.hero-stack:hover .c1 .face, .hero-stack:focus-within .c1 .face { transform: translateX(-22px) rotate(-4deg); }
.hero-stack:hover .c2 .face, .hero-stack:focus-within .c2 .face { transform: translateX(22px) rotate(4deg); }
.hero-stack a:hover, .hero-stack a:focus-visible { z-index: 3; }
.hero-stack .c1:hover .face, .hero-stack .c1:focus-visible .face { transform: translateX(-26px) translateY(-14px) rotate(2deg) scale(1.05); }
.hero-stack .c2:hover .face, .hero-stack .c2:focus-visible .face { transform: translateX(26px) translateY(-14px) rotate(-2deg) scale(1.05); }
.hero-stack .c0:hover .face, .hero-stack .c0:focus-visible .face { transform: translateY(-12px) scale(1.04); }
.hero-stack a:hover .face, .hero-stack a:focus-visible .face {
  box-shadow: 0 36px 80px rgba(0,0,0,.5), 0 0 0 3px rgba(255,255,255,.14), 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent); }
.hero-stack a:hover .face::after, .hero-stack a:focus-visible .face::after { transform: translateX(130%); }
.hero-stack a:focus-visible { outline: 3px solid var(--accent); outline-offset: 8px; }
.sticker { position: absolute; z-index: 4; pointer-events: none; right: 2%; bottom: 26px; width: 140px; height: 140px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(-10deg); box-shadow: 0 14px 34px rgba(0,0,0,.35); font-size: 12px; font-weight: 700; line-height: 1.25; padding: 14px; }
.sticker strong { font-family: var(--head); font-size: 26px; line-height: 1; margin: 2px 0 4px; }
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petals i { position: absolute; top: -40px; width: 14px; height: 11px; background: var(--accent); opacity: .5; border-radius: 80% 0 80% 0; animation: fall linear infinite; }
.petals i:nth-child(1) { left: 6%; animation-duration: 15s; animation-delay: -2s; }
.petals i:nth-child(2) { left: 18%; animation-duration: 19s; animation-delay: -9s; width: 10px; height: 8px; }
.petals i:nth-child(3) { left: 33%; animation-duration: 17s; animation-delay: -5s; }
.petals i:nth-child(4) { left: 52%; animation-duration: 21s; animation-delay: -12s; width: 9px; height: 7px; }
.petals i:nth-child(5) { left: 67%; animation-duration: 16s; animation-delay: -3s; }
.petals i:nth-child(6) { left: 79%; animation-duration: 20s; animation-delay: -14s; width: 12px; height: 9px; }
.petals i:nth-child(7) { left: 91%; animation-duration: 18s; animation-delay: -7s; }
@keyframes fall { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-40px, 300px) rotate(160deg); } 100% { transform: translate(30px, 700px) rotate(320deg); } }

/* Franja de ventajas */
.perks { background: var(--soft); border-bottom: 1px solid var(--line); }
.perks ul { list-style: none; padding: 20px 32px; margin: 0 auto; max-width: var(--wrap); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; font-size: 14px; font-weight: 600; color: var(--muted); }
.perks li { display: inline-flex; align-items: center; gap: 10px; }
.perks svg { color: var(--link); }

/* Géneros */
.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.genre { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; padding: 24px; border-radius: var(--radius); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.genre:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.genre .watermark { position: absolute; right: 10px; top: 0; font-size: 84px; line-height: 1; opacity: .22; pointer-events: none; }
.genre span { font-size: 13px; font-weight: 700; opacity: .9; }
.genre strong { font-family: var(--head); font-size: 28px; line-height: 1.05; font-weight: 600; margin-top: 4px; }

/* Rejilla de libros */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 46px 28px; }
.card { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none; }
.card:hover { color: var(--ink); }
.card-cover { position: relative; }
.card-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; }
.card:hover .card-cover img { transform: translateY(-5px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.card.soldout .card-cover img { filter: saturate(.5); opacity: .8; }
.badge { position: absolute; left: 12px; bottom: 12px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.badge.soldout { background: var(--dark); color: var(--paper); }
.card .genre-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--link); }
.card h3 { font-size: 21px; line-height: 1.2; }
.card .sub { font-size: 14px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 14px; font-weight: 600; margin-top: 2px; }

/* Bandas */
.band { background: var(--band); color: var(--paper); }
.band h2 { font-size: clamp(34px, 4.2vw, 50px); }
.band .lead { color: rgba(255,255,255,.88); margin-top: 14px; max-width: 620px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 40px; list-style: none; padding: 0; }
.step { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 28px; }
.step .ep { display: inline-flex; gap: 10px; align-items: baseline; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--accent-band); }
.step h3 { font-size: 24px; margin: 10px 0 8px; }
.step p { color: rgba(255,255,255,.88); font-size: 15px; }

/* Reseñas */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { font-family: var(--head); font-style: italic; font-size: 21px; line-height: 1.45; }
.quote figcaption { font-size: 14px; color: var(--muted); }
.stars { color: #B5651D; letter-spacing: 2px; }

/* Regalo / newsletter */
.gift { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 44px; padding: clamp(28px, 5vw, 56px); border-radius: 32px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); color: var(--on-accent); }
.gift .watermark { position: absolute; right: 24px; bottom: -24px; font-size: 140px; opacity: .14; line-height: 1; pointer-events: none; }
.gift img { flex: 0 0 170px; width: 170px; border-radius: 6px; transform: rotate(-4deg); box-shadow: var(--shadow-lg); }
.gift .copy { flex: 1 1 420px; min-width: 0; position: relative; }
.gift h2 { font-size: clamp(30px, 4vw, 44px); }
.gift .kicker { color: var(--on-accent); }
.gift .lead { margin: 14px 0 24px; font-size: 17px; max-width: 540px; }
.nl-row { display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; }
.nl-row input { flex: 1 1 240px; min-height: 54px; border-radius: 999px; border: 2px solid var(--dark); background: rgba(255,255,255,.75); padding: 0 22px; font: 16px var(--body); color: var(--dark); }
.newsletter .btn { background: var(--dark); color: var(--paper); min-height: 54px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.5; max-width: 560px; }
.check input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--dark); }
.gift a { color: var(--on-accent); }
.newsletter.compact .nl-row input { border-color: var(--line-dark); background: transparent; color: var(--paper); min-height: 48px; }
.newsletter.compact .btn { background: var(--accent); color: var(--on-accent); min-height: 48px; }
.newsletter.compact .check { color: var(--muted-dark); }
.newsletter.compact .check input { accent-color: var(--accent); }
.panel .newsletter .nl-row input { border-color: var(--line); background: var(--paper); }

/* Otro idioma */
.crosslang { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 30px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.crosslang p { font-weight: 600; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card .ph { width: 100%; aspect-ratio: 16 / 10; border-radius: 18px; object-fit: cover; background: var(--soft); }
.post-card h3 { font-size: 24px; line-height: 1.2; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.prose { font-size: 18px; line-height: 1.8; max-width: 720px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 32px; margin-top: 1.6em; }
.prose h3 { font-size: 24px; margin-top: 1.4em; }
.prose blockquote { padding-left: 20px; border-left: 3px solid var(--accent); font-family: var(--head); font-style: italic; font-size: 21px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; }

/* Pie */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-block: 64px 32px; }
.footer-grid h2 { font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-grid p { color: var(--muted-dark); font-size: 15px; }
.footer-legal { border-top: 1px solid var(--line-dark); padding-block: 24px 40px; font-size: 13px; color: var(--muted-dark); display: flex; flex-direction: column; gap: 8px; }

/* Catálogo */
.cat-hero { padding-block: 30px 46px; }
.cat-hero h1 { font-size: clamp(40px, 5vw, 58px); margin-top: 6px; }
.cat-hero .intro { color: var(--muted-dark); margin: 8px 0 26px; max-width: 640px; }
.search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.search .field { flex: 1 1 300px; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.search .field:focus-within { outline: 3px solid var(--accent); }
.search input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; font: 16px var(--body); color: var(--ink); }
.search .btn { min-height: 58px; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.chip .hangul { font-size: 12px; color: var(--accent); }
.chip:hover { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--accent); }
.chip[aria-current="page"] { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.chip[aria-current="page"] .hangul { color: var(--on-accent); }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.toolbar form { display: flex; gap: 10px; align-items: center; }
.toolbar select { min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 16px; font: 14px var(--body); color: var(--ink); }
.pager { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 15px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--ink); text-decoration: none; }
.pager .current { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.empty { padding: 48px; text-align: center; background: var(--soft); border-radius: var(--radius); }

/* Ficha */
.book-hero { position: relative; background: var(--soft); overflow: hidden; }
.book-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 420px at 15% 30%, rgba(255,255,255,.9), transparent 70%); }
.crumbs { position: relative; font-size: 14px; color: var(--muted); padding-top: 28px; }
.book-top { position: relative; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-block: 34px 76px; }
.book-cover { flex: 0 1 380px; min-width: 240px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.book-cover img { width: 100%; max-width: 370px; border-radius: 8px; box-shadow: var(--shadow-lg); }
.book-info { flex: 1 1 520px; min-width: 0; }
.labels { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--accent); color: var(--on-accent); text-decoration: none; }
.pill-soft { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill .hangul { font-size: 12px; }
.book-info h1 { font-size: clamp(40px, 5vw, 62px); line-height: 1.02; }
.book-info .subtitle { font-family: var(--head); font-style: italic; font-size: clamp(19px, 2.2vw, 24px); color: var(--muted); margin-top: 12px; }
.book-info .lead { margin-top: 22px; max-width: 620px; }
.buy { margin-top: 32px; max-width: 660px; }
.buy-title { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; list-style: none; padding: 0; }
.format { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(31,37,71,.06); }
.format.best { border: 2px solid var(--accent); }
.format .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.format .name { font-weight: 700; }
.format .price { font-family: var(--head); font-size: 28px; font-weight: 700; }
.format .facts { font-size: 13px; color: var(--muted); }
.format.unavailable { box-shadow: none; background: transparent; }
.markets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.markets a { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.markets a:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.book-body { display: flex; flex-wrap: wrap; gap: 64px; padding-block: 40px 76px; }
.book-main { flex: 999 1 560px; min-width: 0; }
.book-main > section + section { margin-top: 60px; }
.book-main h2 { font-size: 36px; margin-bottom: 22px; }
.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 720px; }
.includes li { display: flex; gap: 12px; align-items: flex-start; }
.includes svg { flex: none; margin-top: 5px; color: var(--link); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; list-style: none; padding: 0; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.04); }
.book-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h2 { font-size: 24px; margin-bottom: 14px; }
.panel dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.panel dt { color: var(--muted); }
.panel dd { margin: 0; font-weight: 600; }
.panel-band { background: var(--band); color: var(--paper); border: 0; }
.panel-band a { color: var(--accent-band); font-weight: 700; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--dark); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video button { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.related { background: var(--soft); }
.sticky-buy { position: sticky; bottom: 0; z-index: 5; border-top: 1px solid var(--line-dark); }
.sticky-buy .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 12px; }
.sticky-buy p { font-family: var(--head); font-size: 18px; }

/* Formularios y páginas simples */
.page { padding-block: 56px 88px; }
.page h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 18px; }
.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form textarea, .form select { width: 100%; min-height: 50px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; padding: 12px 16px; font: 16px var(--body); color: var(--ink); }
.form .errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: #A12C3F; font-size: 14px; }

@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .site-header .bar { gap: 10px; padding-block: 12px 4px; }
  .brand { font-size: 24px; flex: 1 1 auto; }
  .tools { order: 2; gap: 8px; }
  .tools .btn-sm { min-height: 40px; padding: 0 14px; }
  .lang { height: 40px; min-width: 40px; }
  .site-header nav { order: 3; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .nav { flex-wrap: nowrap; gap: 22px; white-space: nowrap; }
  .nav a { padding-block: 10px; }
  .hero-grid { padding-block: 44px 56px; gap: 28px; }
  .hero .lead { font-size: 17px; }
  .hero-stack { height: 390px; }
  .hero-stack a { width: 150px; }
  .hero-stack .c0 { width: 200px; margin-left: -100px; }
  .sticker { width: 110px; height: 110px; font-size: 11px; }
  .sticker strong { font-size: 21px; }
  .section { padding-block: 60px 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; }
  .card h3 { font-size: 17px; }
  .book-top { gap: 28px; padding-block: 20px 52px; }
  .book-cover img { max-width: 250px; }
  .gift img { flex-basis: 130px; width: 130px; }
  .sticky-buy p { display: none; }
  .sticky-buy .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .petals { display: none; }
}
