/* Pequeños Genios · estilos compartidos por las 3 páginas (inicio, actividades, navidad).
   Cada página cambia los colores y fuentes redefiniendo estas variables en su propio <style>. */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:root {
  --bg-cream: #FAF6EA;
  --bg-ivory: #FDFBF6;
  --card-white: #FFFEFA;
  --terracotta: #C85D3E;
  --terracotta-dark: #9E4227;
  --terracotta-soft: #F7E6DF;
  --sage: #6B8E78;
  --sage-dark: #4B6E58;
  --sage-soft: #EBF1EC;
  --ochre: #D99B4E;
  --ochre-soft: #F6EBD8;
  --cocoa: #422C1D;
  --cocoa-soft: #6A4B35;
  --sand-shadow: #E2D5C1;
  --border-tan: #D5C3AE;
  --border-light: rgba(213, 195, 174, 0.65);
  --font-display: 'Sniglet', system-ui, sans-serif;
  --font-fun: 'Bubblegum Sans', cursive, sans-serif;
  --font-hand: 'Patrick Hand', cursive, sans-serif;
  --font-body: 'Quicksand', system-ui, sans-serif;
  --radius-pill: 999px;
  --radius-card: 22px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--cocoa);
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
  background-image: radial-gradient(var(--border-light) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Barra superior: marca, productos e idioma */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--topbar-bg, var(--sage-dark));
  color: var(--topbar-ink, var(--bg-cream));
  padding: 0.55rem clamp(0.75rem, 3vw, 1.25rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 3px solid var(--topbar-line, var(--ochre));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-brand, 'Sniglet', system-ui, sans-serif);
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 30px;
  height: 30px;
  display: block;
}

.brand-name {
  display: none;
}

@media (min-width: 720px) {
  .brand-name {
    display: inline;
  }
}

.suite-nav {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
  min-width: 0;
}

.suite-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  white-space: nowrap;
  opacity: 0.88;
}

.suite-nav a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.suite-nav a[aria-current="page"] {
  opacity: 1;
  border-color: var(--topbar-line, var(--ochre));
  background: rgba(255, 255, 255, 0.14);
}

.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--topbar-line, var(--ochre));
}

.lang-btn {
  background: transparent;
  color: inherit;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: var(--topbar-line, var(--ochre));
  color: var(--topbar-active-ink, var(--cocoa));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@media (max-width: 380px) {
  .suite-nav a {
    padding: 0.4rem 0.5rem;
    font-size: 0.82rem;
  }
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 5rem;
  container-type: inline-size;
}

/* Badge Pills */
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  border: 2px solid var(--terracotta);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  box-shadow: 2px 2px 0 var(--sand-shadow);
}

.pill-tag.sage {
  background: var(--sage-soft);
  color: var(--sage-dark);
  border-color: var(--sage);
}

.pill-tag.ochre {
  background: var(--ochre-soft);
  color: var(--cocoa);
  border-color: var(--ochre);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "top" "preview" "checks";
  gap: 1.75rem;
  margin-bottom: 4rem;
}

@container (min-width: 820px) {
  .hero {
    grid-template-columns: 1.12fr 0.88fr;
    grid-template-areas: "top preview" "checks preview";
    column-gap: 2.5rem;
  }
}

.hero-content {
  grid-area: top;
}

.hero .preview-card {
  grid-area: preview;
  align-self: center;
}

.hero .check-list {
  grid-area: checks;
  margin-bottom: 0;
}

.hero-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.hero-price {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.8rem + 1.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--sage-dark);
}

.hero-price-note {
  flex: 1 1 200px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--terracotta-dark);
}

.hero-offer .cta-btn {
  flex: 1 1 100%;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.6rem + 3.4vw, 3.8rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--terracotta);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0 var(--sand-shadow);
  text-wrap: balance;
}

.hero-content h1 span {
  color: var(--sage-dark);
  display: inline;
}

.hero-sub {
  font-family: var(--font-fun);
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
  color: var(--cocoa-soft);
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.check-list li {
  background: var(--card-white);
  border: 2px solid var(--border-tan);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--cocoa);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 3px 3px 0 var(--sand-shadow);
  transition: transform 0.15s ease;
}

.check-list li:hover {
  transform: translateX(4px);
}

.check-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Live Interactive Book Previewer Card */
.preview-card {
  background: var(--card-white);
  border: 3px solid var(--border-tan);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: 0 12px 28px rgba(66, 44, 29, 0.08), 5px 5px 0 var(--sand-shadow);
  text-align: center;
  position: relative;
}

.preview-header {
  font-family: var(--font-fun);
  font-size: 1.35rem;
  color: var(--sage-dark);
  margin-bottom: 0.85rem;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

@media (max-width: 380px) {
  .preview-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tab-btn {
  background: var(--bg-ivory);
  border: 2px solid var(--border-tan);
  border-radius: 10px;
  padding: 0.5rem 0.3rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--cocoa-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  background: var(--ochre-soft);
}

.tab-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta-dark);
  color: #FFFFFF;
  box-shadow: 2px 2px 0 var(--sand-shadow);
}

.preview-stage-wrap {
  background: var(--bg-ivory);
  border: 2px dashed var(--border-tan);
  border-radius: 16px;
  padding: 1rem;
  position: relative;
}

.preview-img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 8.5 / 11;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(66, 44, 29, 0.12);
  border: 1px solid var(--border-tan);
  display: block;
  margin: 0 auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.preview-img[hidden] {
  display: none;
}

.preview-caption {
  font-family: var(--font-hand);
  font-size: 1.18rem;
  color: var(--cocoa);
  margin-top: 0.85rem;
  line-height: 1.3;
}

/* Dual Monetization Offer Section */
#oferta {
  scroll-margin-top: 6.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
  color: var(--terracotta);
  text-shadow: 2px 2px 0 var(--sand-shadow);
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.section-title p {
  font-family: var(--font-fun);
  font-size: 1.25rem;
  color: var(--cocoa-soft);
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@container (min-width: 820px) {
  .offer-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.offer-box {
  background: var(--card-white);
  border: 3px solid var(--border-tan);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: 0 10px 24px rgba(66, 44, 29, 0.08), 5px 5px 0 var(--sand-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.offer-box.featured {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF6EA 100%);
  border-color: var(--sage);
  border-width: 3.5px;
  box-shadow: 0 14px 32px rgba(107, 142, 120, 0.16), 6px 6px 0 var(--sage-soft);
}

.offer-box h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--cocoa);
  margin: 0.5rem 0;
  line-height: 1.2;
}

.offer-desc {
  font-size: 0.95rem;
  color: var(--cocoa-soft);
  margin-bottom: 1.25rem;
}

.bundle-preview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.bundle-thumb {
  border: 2px solid var(--border-tan);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-ivory);
  aspect-ratio: 8.5 / 11;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.06);
}

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

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 1rem 0;
}

.price-now {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.8rem + 1.6vw, 3.2rem);
  font-weight: 800;
  color: var(--sage-dark);
}

.price-note {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--terracotta);
}

.price-math {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cocoa-soft);
  margin-top: -0.5rem;
}

/* Order Bump Card */
.bump-box {
  background: var(--ochre-soft);
  border: 2px dashed var(--ochre);
  border-radius: 14px;
  padding: 1.15rem;
  margin: 1.25rem 0;
}

.bump-content-wrap {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.bump-mini-thumb {
  width: 58px;
  height: 75px;
  border-radius: 6px;
  border: 1px solid var(--border-tan);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.bump-title {
  font-family: var(--font-fun);
  font-size: 1.15rem;
  color: var(--cocoa);
  line-height: 1.2;
}

.bump-desc {
  font-size: 0.85rem;
  color: var(--cocoa-soft);
  margin-top: 0.25rem;
}

/* Action Buttons */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--sage);
  color: #FFFFFF;
  font-family: var(--font-fun);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--sage-dark);
  box-shadow: 0 6px 14px rgba(107, 142, 120, 0.25), 3px 3px 0 var(--sage-dark);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cta-btn:hover {
  background: var(--sage-dark);
  transform: translate(-2px, -2px);
  box-shadow: 0 8px 18px rgba(107, 142, 120, 0.3), 5px 5px 0 var(--sage-dark);
}

.cta-btn[aria-disabled="true"],
.cta-btn[aria-disabled="true"]:hover {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cta-btn.amazon {
  background: var(--ochre);
  border-color: #B57D38;
  color: var(--cocoa);
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
  box-shadow: 3px 3px 0 #B57D38;
  margin-top: 0.75rem;
}

.cta-btn.amazon:hover {
  background: #C98839;
  box-shadow: 5px 5px 0 #B57D38;
}

/* Trust & Guarantee Section */
.guarantee-bar {
  background: var(--card-white);
  border: 2px solid var(--border-tan);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 1.25rem;
  box-shadow: 3px 3px 0 var(--sand-shadow);
  margin-top: 2rem;
  text-align: center;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cocoa);
}

.guarantee-icon {
  font-size: 1.5rem;
}

/* Aviso que lleva a Navidad: ya con los colores de esa página */
.season-banner {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  background: #154734;
  color: #FFF8EC;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 3px solid #E2B04A;
}

.season-banner:hover {
  background: #0E3627;
}

.season-banner[hidden] {
  display: none;
}

/* Muestra gratis y WhatsApp */
.sample-link {
  display: block;
  flex: 1 1 100%;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--terracotta-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sample-cta {
  margin-top: 1.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--cocoa);
}

.sample-cta .sample-link {
  display: inline;
  margin-left: 0.35rem;
}

.wa-direct {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--sage-dark);
  color: #FFFFFF;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(66, 44, 29, 0.25);
}

.wa-float:hover {
  background: var(--sage);
}

.wa-direct[hidden],
.wa-float[hidden] {
  display: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.85rem;
  color: var(--cocoa-soft);
  border-top: 1px solid var(--border-tan);
  margin-top: 4rem;
}

footer a {
  color: var(--terracotta);
  text-decoration: underline;
}

/* Forced Colors Mode Fallbacks */
@media (forced-colors: active) {
  .tab-btn.active, .cta-btn, .pill-tag {
    border: 2px solid ButtonText;
  }
}

/* ===== Componentes de la tienda ===== */

/* Preguntas frecuentes */
.faq {
  max-width: 760px;
  margin: 4rem auto 0;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: var(--card-white);
  border: 2px solid var(--border-tan);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--sand-shadow);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.15rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--terracotta);
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding: 0 1.15rem 1.05rem;
  color: var(--cocoa-soft);
}

/* Aviso al terminar la temporada */
.season-note {
  text-align: center;
  padding: 0.7rem 1rem;
  background: var(--ochre-soft);
  border-bottom: 2px solid var(--ochre);
  font-weight: 700;
}

.season-note a {
  color: var(--terracotta-dark);
  font-weight: 800;
}

/* Pie con enlaces entre productos */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

footer .footer-links a {
  color: var(--cocoa);
  text-decoration: none;
}

footer .footer-links a:hover {
  color: var(--terracotta);
  text-decoration: underline;
}

.footer-small {
  margin-top: 0.35rem;
  opacity: 0.85;
}

/* Foco visible con teclado */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
}
