/* ============================================================================
   BONHOMÍA SOSTENIBLE · Sistema de diseño
   Editorial ecosocial — "papel, tinta y raíz"
   Asociación Cultural Bonhomía Sostenible · Badajoz
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Tinta / bosque */
  --ink:        #1c352a;   /* verde bosque profundo, texto y fondos oscuros */
  --ink-2:      #244436;
  --ink-soft:   #40564b;

  /* Papel */
  --paper:      #f7f1e5;   /* crema cálido, fondo principal */
  --paper-2:    #efe6d3;   /* crema más tostado, secciones alternas */
  --paper-3:    #fdfaf3;   /* casi blanco, tarjetas */

  /* Acentos */
  --clay:       #bf5a3c;   /* terracota, CTA y precio */
  --clay-deep:  #a24728;
  --sage:       #7d8a54;   /* salvia / oliva, etiquetas ecosociales */
  --sage-deep:  #61703d;
  --gold:       #c99a3f;   /* dorado editorial, detalles */

  /* Texto */
  --text:       #23342c;
  --text-soft:  #4f5f55;
  --text-mute:  #7a8578;
  --on-ink:     #f2ead9;
  --on-ink-mute:#b9c4b3;

  /* Líneas */
  --line:       #d9ccb2;
  --line-ink:   rgba(242,234,217,.16);

  /* Tipografía */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Medidas */
  --wrap: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(28,53,42,.06), 0 12px 34px -18px rgba(28,53,42,.35);
  --shadow-lg: 0 30px 70px -40px rgba(28,53,42,.55);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--clay); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
p  { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.4rem, 780px); margin-inline: auto; }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--on-ink); }

/* ---------- Utilidades de composición ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--clay);
}
.section--ink .eyebrow { color: var(--gold); }
.lead {
  font-size: clamp(1.12rem, 1rem + .5vw, 1.4rem);
  line-height: 1.55; color: var(--text-soft);
  max-width: 62ch;
}
.section--ink .lead { color: var(--on-ink-mute); }
.text-clay { color: var(--clay); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--clay); --btn-fg: #fff; --btn-bd: var(--clay);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.5rem;
  font-family: var(--sans); font-weight: 600; font-size: .96rem;
  letter-spacing: .01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(191,90,60,.7); background: var(--clay-deep); border-color: var(--clay-deep); }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--on-ink); border-color: var(--ink); box-shadow: none; }
.section--ink .btn--ghost { --btn-fg: var(--on-ink); --btn-bd: var(--line-ink); }
.section--ink .btn--ghost:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); border-color: var(--paper); }
.btn--block { width: 100%; }
.btn--sm { padding: .58rem 1.1rem; font-size: .88rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--clay);
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: gap .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow:hover { gap: .75rem; border-color: currentColor; }

/* ============================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(28,53,42,.5);
}
.header__inner {
  width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .85rem 0;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark { width: 40px; height: 40px; flex: none; color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--ink); letter-spacing: -.01em; }
.brand__tag { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); font-weight: 600; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a { position: relative; padding: .5rem .85rem; font-weight: 500; font-size: .96rem; color: var(--text); border-radius: 6px; transition: color .25s; }
.nav a:not(.nav__cart):not(.btn)::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 1.5px;
  background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.nav__cart):not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav__cart { display: inline-flex; align-items: center; gap: .45rem; margin-left: .4rem; font-weight: 600; }
.nav__cart svg { width: 21px; height: 21px; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-grid; place-items: center;
  font-family: var(--sans); font-size: .72rem; font-weight: 700; line-height: 1;
  color: #fff; background: var(--clay); border-radius: 999px;
  transition: transform .3s var(--ease);
}
.cart-count[data-empty="true"] { background: var(--text-mute); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .2rem;
    background: var(--paper-3); padding: 6rem 1.6rem 2rem;
    transform: translateX(100%); transition: transform .45s var(--ease);
    box-shadow: var(--shadow-lg); overflow-y: auto;
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav a { padding: .95rem .6rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1rem; }
  .nav__cart { border-bottom: 1px solid var(--line); }
}

/* ============================================================================
   HERO (home)
   ========================================================================== */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__file { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep); font-weight: 600; }
.hero__file .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px color-mix(in srgb, var(--clay) 22%, transparent); }
.hero h1 { margin-bottom: .5em; }
.hero h1 em { font-style: italic; color: var(--clay); }
.hero__lead { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 2.6rem); border-top: 1px solid var(--line); padding-top: 1.6rem; }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat b { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1; }
.hero__stat span { font-size: .82rem; color: var(--text-mute); margin-top: .3rem; }

.hero__art { position: relative; }
.hero__covers { position: relative; aspect-ratio: 4/5; }
.hero__cover {
  position: absolute; border-radius: 3px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--paper-3);
}
.hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.hero__cover--1 { width: 62%; left: 0; top: 6%; z-index: 2; transform: rotate(-4deg); }
.hero__cover--2 { width: 58%; right: 0; bottom: 0; z-index: 1; transform: rotate(4deg); }
.hero__seal {
  position: absolute; z-index: 3; right: 6%; top: -4%;
  width: 108px; height: 108px; color: var(--ink);
  animation: spin 26s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .hero__seal { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__leaf { position: absolute; z-index: 0; color: var(--sage); opacity: .5; }
.hero__leaf--a { width: 180px; left: -60px; bottom: -30px; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 380px; margin: 1rem auto 0; width: 100%; }
}

/* ============================================================================
   BLOQUES DE CONTENIDO
   ========================================================================== */
.section-head { max-width: 68ch; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: end; max-width: none; }
@media (max-width: 720px) { .section-head--split { grid-template-columns: 1fr; align-items: start; } }

/* Pilares / valores */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.pillar {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--sage); }
.pillar__ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--sage) 18%, var(--paper)); color: var(--sage-deep); margin-bottom: 1.1rem; }
.pillar__ic svg { width: 25px; height: 25px; }
.pillar h3 { font-size: 1.28rem; margin-bottom: .4rem; }
.pillar p { font-size: .97rem; color: var(--text-soft); margin: 0; }

/* Dos columnas editorial */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split__media.is-quote { background: var(--ink); color: var(--on-ink); padding: clamp(2rem,5vw,3.2rem); display: flex; }
.pull-quote { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.28; font-style: italic; color: var(--on-ink); margin: 0; }
.pull-quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .9rem; letter-spacing: .04em; color: var(--gold); margin-top: 1.2rem; }

/* Lista con marca */
.marks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.marks li { position: relative; padding-left: 2rem; color: var(--text-soft); }
.marks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--clay); }
.marks li b { color: var(--ink); font-weight: 600; }

/* ODS badges */
.ods { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.ods span { font-size: .8rem; font-weight: 600; color: var(--sage-deep); background: color-mix(in srgb, var(--sage) 15%, var(--paper)); border: 1px solid color-mix(in srgb, var(--sage) 40%, transparent); padding: .35rem .8rem; border-radius: 999px; }

/* ============================================================================
   TIENDA · tarjetas de producto
   ========================================================================== */
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  padding: .5rem 1rem; font-size: .9rem; font-weight: 600; color: var(--text-soft);
  background: var(--paper-3); border: 1.5px solid var(--line); border-radius: 999px;
  transition: color .25s, background .25s, border-color .25s;
}
.filter:hover { border-color: var(--sage); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.shop-count { font-size: .9rem; color: var(--text-mute); }

.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }

.card {
  display: flex; flex-direction: column; background: var(--paper-3);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--sage); }
.card__media { position: relative; display: block; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card--book .card__media { aspect-ratio: 3/4; padding: 1.4rem 1.4rem 0; display: flex; align-items: flex-end; justify-content: center; }
.card--book .card__media img { width: auto; max-height: 100%; box-shadow: 0 18px 40px -20px rgba(28,53,42,.6); border-radius: 2px 4px 4px 2px; }
.card--service .card__media { aspect-ratio: 16/10; background: linear-gradient(140deg, var(--ink), var(--ink-2)); color: var(--on-ink); padding: 1.4rem; }
.card__badge { position: absolute; top: .9rem; left: .9rem; z-index: 2; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--paper); color: var(--sage-deep); border: 1px solid var(--line); }
.card--service .card__badge { background: var(--gold); color: var(--ink); border-color: transparent; }
.card__stage { position: relative; z-index: 1; align-self: flex-start; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--gold); }
.card__glyph { position: absolute; right: -10px; bottom: -22px; width: 130px; height: 130px; opacity: .16; color: var(--on-ink); }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.5rem; }
.card__kicker { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: .5rem; }
.card__title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; color: var(--ink); margin: 0 0 .5rem; }
.card__title a { transition: color .25s; }
.card__title a:hover { color: var(--clay); }
.card__desc { font-size: .93rem; color: var(--text-soft); margin: 0 0 1.2rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; }
.price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1; }
.price small { display: block; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); margin-bottom: .2rem; }
.price--from small { color: var(--clay); }

.icon-cart { width: 19px; height: 19px; }

/* ============================================================================
   FICHA DE PRODUCTO
   ========================================================================== */
.product { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.product__media { position: sticky; top: 96px; }
.product__media--book { display: flex; justify-content: center; padding: 1.5rem; background: var(--paper-2); border-radius: var(--radius-lg); }
.product__media--book img { max-width: 340px; width: 100%; border-radius: 2px 6px 6px 2px; box-shadow: var(--shadow-lg); }
.product__media--service { background: linear-gradient(150deg, var(--ink), var(--ink-2)); color: var(--on-ink); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; }
.product__media--service .svc-glyph { position: absolute; right: -30px; bottom: -30px; width: 220px; opacity: .14; }
.crumbs { font-size: .85rem; color: var(--text-mute); margin-bottom: 1.2rem; }
.crumbs a:hover { color: var(--clay); }
.crumbs span { margin: 0 .4rem; opacity: .6; }
.product__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.tag { font-size: .78rem; font-weight: 600; color: var(--sage-deep); background: color-mix(in srgb, var(--sage) 15%, var(--paper)); border: 1px solid color-mix(in srgb, var(--sage) 35%, transparent); padding: .3rem .8rem; border-radius: 999px; }
.product h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.product__author { font-size: 1.05rem; color: var(--text-soft); margin-bottom: 1.4rem; }
.product__author b { color: var(--ink); font-weight: 600; }
.product__price { display: flex; align-items: baseline; gap: .6rem; margin: 1.6rem 0; }
.product__price .price { font-size: 2.4rem; }
.product__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.8rem 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.qty button { width: 42px; height: 44px; border: 0; background: none; font-size: 1.3rem; color: var(--ink); line-height: 1; }
.qty button:hover { background: var(--paper-2); }
.qty input { width: 44px; height: 44px; border: 0; background: none; text-align: center; font-weight: 600; font-size: 1rem; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.product__note { font-size: .9rem; color: var(--text-mute); display: flex; align-items: flex-start; gap: .5rem; }
.product__note svg { width: 17px; height: 17px; flex: none; margin-top: .15rem; color: var(--sage-deep); }

.prose-block { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.8rem; }
.prose-block h3 { font-size: 1.2rem; }
.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.spec li { display: grid; grid-template-columns: 42% 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec li b { color: var(--ink); font-weight: 600; }
.spec li span { color: var(--text-soft); }

/* ============================================================================
   TALLERES (detalle enriquecido)
   ========================================================================== */
.svc-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.svc-included { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.svc-included li { position: relative; padding-left: 1.9rem; font-size: .96rem; color: var(--on-ink-mute); }
.svc-included li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); }
.svc-included li::after { content: ""; position: absolute; left: 5px; top: .62em; width: 6px; height: 3px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

/* ============================================================================
   FORMULARIOS
   ========================================================================== */
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--clay); }
.input, .textarea, .select {
  width: 100%; padding: .8rem 1rem; font: inherit; color: var(--text);
  background: var(--paper-3); border: 1.5px solid var(--line); border-radius: 8px;
  transition: border-color .25s, box-shadow .25s;
}
.section--ink .input, .section--ink .textarea, .section--ink .select { background: rgba(255,255,255,.06); border-color: var(--line-ink); color: var(--on-ink); }
.input:focus, .textarea:focus, .select:focus { outline: 0; border-color: var(--clay); box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 22%, transparent); }
.textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--text-soft); }
.check input { margin-top: .2rem; accent-color: var(--clay); width: 17px; height: 17px; }
.form__ok { display: none; margin-top: 1rem; padding: 1rem 1.2rem; background: color-mix(in srgb, var(--sage) 20%, var(--paper)); border: 1px solid var(--sage); border-radius: 8px; color: var(--sage-deep); font-weight: 500; }

/* ============================================================================
   CARRITO
   ========================================================================== */
.cart-layout { display: grid; grid-template-columns: 1.5fr .9fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-lines { display: grid; gap: 1rem; }
.cart-line { display: grid; grid-template-columns: 78px 1fr auto; gap: 1.1rem; align-items: center; background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; }
.cart-line__media { width: 78px; height: 92px; border-radius: 5px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__media.is-service { background: var(--ink); color: var(--gold); }
.cart-line__media.is-service svg { width: 34px; height: 34px; }
.cart-line__title { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); margin: 0 0 .2rem; }
.cart-line__sub { font-size: .84rem; color: var(--text-mute); margin: 0 0 .5rem; }
.cart-line__ctrls { display: flex; align-items: center; gap: 1rem; }
.cart-line__price { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-align: right; }
.cart-line__remove { background: none; border: 0; color: var(--text-mute); font-size: .84rem; text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.cart-line__remove:hover { color: var(--clay); }
.qty--sm button { width: 34px; height: 36px; font-size: 1.1rem; }
.qty--sm input { width: 36px; height: 36px; }

.cart-empty { text-align: center; padding: 3rem 1rem; }
.cart-empty svg { width: 64px; height: 64px; color: var(--line); margin: 0 auto 1.2rem; }

.summary { position: sticky; top: 96px; background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.summary h3 { font-size: 1.3rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; font-size: .95rem; color: var(--text-soft); border-bottom: 1px solid var(--line); }
.summary__row.is-total { border-bottom: 0; padding-top: 1rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.summary__row.is-total b { color: var(--clay); }
.summary__hint { font-size: .82rem; color: var(--text-mute); margin: 1rem 0; display: flex; gap: .5rem; }
.summary__hint svg { width: 16px; height: 16px; flex: none; margin-top: .1rem; color: var(--sage-deep); }
.pay-methods { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.pay-methods span { font-size: .78rem; font-weight: 600; color: var(--text-soft); background: var(--paper-2); border: 1px solid var(--line); padding: .3rem .7rem; border-radius: 6px; }

/* ============================================================================
   PÁGINA HERO INTERNA
   ========================================================================== */
.page-hero { background: var(--ink); color: var(--on-ink); padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero h1 { color: var(--on-ink); position: relative; z-index: 1; }
.page-hero .lead { color: var(--on-ink-mute); position: relative; z-index: 1; }
.page-hero .crumbs { color: var(--on-ink-mute); }
.page-hero .crumbs a { color: var(--gold); }
.page-hero__leaf { position: absolute; right: -40px; top: -30px; width: 320px; color: var(--sage); opacity: .18; z-index: 0; }

/* ============================================================================
   FRANJA CTA
   ========================================================================== */
.cta-band { background: var(--clay); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.9); margin-inline: auto; }
.cta-band .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.cta-band .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--clay-deep); border-color: #fff; }
.cta-band .btn:not(.btn--ghost) { --btn-bg: var(--ink); --btn-bd: var(--ink); }
.cta-band .btn:not(.btn--ghost):hover { --btn-bg: var(--ink-2); }

/* ============================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: var(--on-ink-mute); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .brand__name, .footer h4 { color: var(--on-ink); }
.footer__about { font-size: .92rem; margin: 1rem 0 1.2rem; max-width: 34ch; }
.footer h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer a { font-size: .93rem; transition: color .25s; }
.footer a:hover { color: var(--on-ink); }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; }
.footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: .2rem; color: var(--gold); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; border-top: 1px solid var(--line-ink); font-size: .84rem; }
.footer__bottom a:hover { color: var(--gold); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__made { color: var(--on-ink-mute); }
.footer__made a { color: var(--gold); }

/* ============================================================================
   WHATSAPP FLOTANTE + TOAST
   ========================================================================== */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: .6rem; background: #1f7a53; color: #fff; padding: .7rem .95rem; border-radius: 999px; box-shadow: 0 14px 34px -12px rgba(31,122,83,.7); transition: transform .3s var(--ease); }
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float__label { font-weight: 600; font-size: .9rem; }
@media (max-width: 560px) { .wa-float__label { display: none; } .wa-float { padding: .8rem; } }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140%); z-index: 200; display: flex; align-items: center; gap: .7rem; background: var(--ink); color: var(--on-ink); padding: .85rem 1.3rem; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 500; font-size: .95rem; transition: transform .5s var(--ease); max-width: calc(100% - 2rem); }
.toast.is-show { transform: translate(-50%, 0); }
.toast svg { width: 20px; height: 20px; color: var(--gold); flex: none; }

/* ============================================================================
   PROSA (legales)
   ========================================================================== */
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }
.prose .muted { color: var(--text-mute); font-size: .92rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: .7rem .9rem; border: 1px solid var(--line); }
.prose th { background: var(--paper-2); font-weight: 600; color: var(--ink); }

/* ============================================================================
   REVEAL (estado inicial de animación)
   ========================================================================== */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); }
.reveal-ready [data-reveal].is-in, [data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================================
   RESPONSIVE FINALES
   ========================================================================== */
@media (max-width: 560px) {
  .hero__meta { gap: 1.2rem; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line__price { grid-column: 2; text-align: left; }
}


/* ============================================================================
   INTEGRACIÓN WORDPRESS / ELEMENTOR
   ========================================================================== */
body.bonhomia-canvas,
body.bonhomia-site-page {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

body.bonhomia-site-page .elementor,
body.bonhomia-site-page .elementor-section-wrap,
body.bonhomia-site-page .elementor-location-single,
body.bonhomia-site-page .elementor-location-header,
body.bonhomia-site-page .elementor-location-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.bonhomia-site-page .bonhomia-elementor-block,
body.bonhomia-site-page .bonhomia-elementor-block > .e-con-inner {
  --container-max-width: none;
  width: 100%;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

body.bonhomia-site-page .bonhomia-elementor-block > .elementor-widget,
body.bonhomia-site-page .bonhomia-elementor-block > .e-con-inner > .elementor-widget,
body.bonhomia-site-page .bonhomia-elementor-block .elementor-widget-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.bonhomia-kit-digital-banner {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  overflow: hidden;
  line-height: 0;
}

.bonhomia-kit-digital-banner img {
  display: block;
  width: 100%;
  max-width: 1024px;
  height: auto;
  margin: 0 auto;
  padding: 0;
}


/* ============================================================================
   V1.1 · REFINAMIENTO VISUAL
   Nueva tipografía, más aire, tarjetas editoriales y banner integrado.
   ========================================================================== */
:root {
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --radius: 10px;
  --radius-lg: 20px;
  --shadow: 0 14px 38px -26px rgba(28,53,42,.42);
  --shadow-lg: 0 28px 64px -34px rgba(28,53,42,.5);
}

body,
body.bonhomia-site-page,
body.bonhomia-site-page .elementor-widget-container,
body.bonhomia-site-page button,
body.bonhomia-site-page input,
body.bonhomia-site-page select,
body.bonhomia-site-page textarea {
  font-family: var(--sans);
}

body {
  font-size: clamp(.98rem, .94rem + .2vw, 1.06rem);
  line-height: 1.75;
  letter-spacing: .002em;
}

h1, h2, h3, h4,
body.bonhomia-site-page h1,
body.bonhomia-site-page h2,
body.bonhomia-site-page h3,
body.bonhomia-site-page h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.025em;
}

p { margin-bottom: 1.3em; }
.lead { line-height: 1.68; }
.section { padding: clamp(4.25rem, 8vw, 7.5rem) 0; }
.section-head { margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: .7rem; }

/* Botones más sólidos, legibles y menos “pastilla”. */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  --btn-bd: var(--gold);
  min-height: 47px;
  padding: .82rem 1.35rem;
  border-width: 1px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .015em;
  box-shadow: 0 8px 18px -14px rgba(28,53,42,.65);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  color: var(--on-ink);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 15px 30px -18px rgba(28,53,42,.72);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: color-mix(in srgb, var(--ink) 34%, transparent);
  box-shadow: none;
}
.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-ink);
  border-color: var(--ink);
}
.section--ink .btn--ghost {
  --btn-fg: var(--on-ink);
  --btn-bd: rgba(242,234,217,.42);
}
.section--ink .btn--ghost:hover {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  border-color: var(--gold);
}
.btn--sm {
  min-height: 42px;
  padding: .67rem 1rem;
  font-size: .84rem;
}
.hero__actions { gap: 1rem; margin-bottom: 2.8rem; }

/* Pilares: más separación y un aspecto menos genérico. */
.pillars {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.35rem, 3vw, 2rem);
}
.pillar {
  min-width: 0;
  padding: 2.15rem 1.9rem 2rem;
  border: 0;
  border-top: 4px solid var(--gold);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--clay);
  box-shadow: var(--shadow-lg);
}
.pillar__ic {
  width: 50px;
  height: 50px;
  margin-bottom: 1.45rem;
  border-radius: 14px;
}
.pillar h3 {
  font-size: 1.28rem;
  line-height: 1.3;
  margin-bottom: .75rem;
}
.pillar p {
  font-size: .96rem;
  line-height: 1.72;
}

/* Tarjetas editoriales y de talleres. */
.grid-products {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.35rem);
}
.card {
  position: relative;
  min-width: 0;
  border: 0;
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--paper-3);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  z-index: 3;
  background: var(--gold);
}
.card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.card--service .card__media {
  min-height: 142px;
  aspect-ratio: auto;
  padding: 1.65rem 1.7rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(201,154,63,.2), transparent 35%),
    linear-gradient(145deg, var(--ink-2), var(--ink));
}
.card--service .card__stage {
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 1rem);
  padding: .42rem .72rem;
  border: 1px solid rgba(201,154,63,.5);
  border-radius: 999px;
  background: rgba(28,53,42,.35);
  color: #efd191;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.3;
}
.card--service .card__glyph {
  right: 1.1rem;
  bottom: -2rem;
  width: 125px;
  height: 125px;
  opacity: .12;
}
.card--book .card__media {
  padding: 1.8rem 1.8rem 0;
  background: linear-gradient(180deg, var(--paper-2), #e8dcc4);
}
.card__body {
  padding: 1.85rem 1.7rem 1.75rem;
}
.card__kicker {
  margin-bottom: .78rem;
  font-size: .72rem;
  letter-spacing: .12em;
}
.card__title,
.section--ink .card__title,
.section--ink .card__title a {
  color: var(--ink);
}
.card__title {
  font-size: 1.28rem;
  line-height: 1.3;
  margin-bottom: .9rem;
}
.card__desc,
.section--ink .card__desc {
  color: var(--text-soft);
}
.card__desc {
  margin-bottom: 1.8rem;
  font-size: .94rem;
  line-height: 1.72;
}
.card__foot {
  align-items: flex-end;
  gap: 1.1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.card__foot .price { flex: 1 1 auto; }
.card__foot .btn { flex: 0 0 auto; }
.section--ink .card .btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: color-mix(in srgb, var(--ink) 30%, transparent);
}
.section--ink .card .btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-ink);
  border-color: var(--ink);
}
.price {
  font-size: 1.42rem;
  line-height: 1.08;
}
.price small { margin-bottom: .35rem; }

/* Fichas de producto y formularios con más aire. */
.product { gap: clamp(2.8rem, 6vw, 5.3rem); }
.product h1 { margin-bottom: .65rem; line-height: 1.18; }
.product__meta { margin-bottom: 1.45rem; }
.product__price { margin: 2rem 0; }
.product__buy { gap: 1.15rem; margin: 2.1rem 0 1.5rem; }
.product__note { line-height: 1.65; }
.product__media--service {
  border-radius: 22px;
  padding: clamp(2rem, 4vw, 3.2rem);
  box-shadow: var(--shadow-lg);
}
.prose-block { margin-top: 2.7rem; padding-top: 2.25rem; }
.prose-block h3 { margin-bottom: .8rem; }
.svc-form { gap: 1.25rem; margin-top: 1.8rem; }
.field-row { gap: 1.2rem; }
.input, .textarea, .select { padding: .9rem 1.05rem; border-radius: 10px; }

/* Footer y banner: mismo fondo y escala contenida. */
.footer {
  padding: clamp(3.5rem, 6vw, 5rem) 0 1.7rem;
}
.footer__grid {
  gap: clamp(2.2rem, 4vw, 3.6rem);
  margin-bottom: 3.1rem;
}
.footer__about { line-height: 1.75; margin-top: 1.25rem; }
.footer h4 { margin-bottom: 1.25rem; }
.footer ul { gap: .8rem; }
.footer a,
.footer__contact li { line-height: 1.6; }
.footer__bottom { padding-top: 2rem; gap: 1.3rem 2rem; }
.bonhomia-kit-digital-banner {
  width: 100%;
  padding: .25rem 1.2rem 2.25rem;
  background: var(--ink);
  border-top: 1px solid var(--line-ink);
  overflow: hidden;
  line-height: 0;
}
.bonhomia-kit-digital-banner img {
  width: min(100%, 860px);
  max-width: 860px;
  height: auto;
  margin: 1.4rem auto 0;
  border-radius: 7px;
  box-shadow: 0 12px 30px -24px rgba(0,0,0,.8);
}

@media (max-width: 700px) {
  .card__body { padding: 1.55rem 1.35rem 1.45rem; }
  .card__foot { align-items: stretch; flex-direction: column; }
  .card__foot .btn { width: 100%; }
  .product__buy { align-items: stretch; }
  .product__buy > .btn { flex: 1 1 100%; }
  .bonhomia-kit-digital-banner { padding-inline: .75rem; padding-bottom: 1.5rem; }
  .bonhomia-kit-digital-banner img { margin-top: 1rem; border-radius: 4px; }
}

/* Controles secundarios coherentes con el nuevo estilo de botón. */
.filters { gap: .7rem; }
.filter {
  min-height: 42px;
  padding: .62rem 1rem;
  border-width: 1px;
  border-radius: 9px;
  font-size: .86rem;
  font-weight: 700;
  background: transparent;
}
.filter:hover { background: var(--paper-3); border-color: var(--ink); }
.filter[aria-pressed="true"] {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}
.qty { border-width: 1px; border-radius: 10px; }
.qty button, .qty input { height: 46px; }
