/* ============================================================
   Karma Pagina Web v2 — custom.css
   CSS variables portadas del design package Petra Brute.
   Se carga después de theme.json styles.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lato:wght@300;400;700&display=swap');

:root {
  --brand-primary:       #c2a26b;
  --brand-primary-deep:  #a88751;
  --brand-secondary:     #9fa84d;
  --brand-accent:        #517bc2;

  --ink-strong:   #2b2821;
  --ink-muted:    #696359;
  --ink-inverse:  #ffffff;

  --bg-canvas:  #fdfcfc;
  --bg-raised:  #ffffff;
  --bg-sunken:  #f5f5f4;

  --neutral-50:  #f8f7f7;
  --neutral-100: #eeedec;
  --neutral-200: #dddcda;
  --neutral-300: #c0beb9;
  --neutral-400: #9e9a94;
  --neutral-500: #817c74;
  --neutral-600: #66625c;
  --neutral-700: #4b4844;
  --neutral-800: #302f2c;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  4rem;
  --fs-5xl:  5.25rem;

  --lh-tight:   1.08;
  --lh-snug:    1.25;
  --lh-normal:  1.5;
  --lh-relaxed: 1.72;

  --ls-label:   0.2em;
  --ls-eyebrow: 0.16em;
  --ls-wide:    0.06em;
  --ls-display: -0.01em;

  --space-0:  0;
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  --radius-none: 0;
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(43,40,33,.06);
  --shadow-md: 0 10px 30px rgba(43,40,33,.08);
  --shadow-lg: 0 30px 70px rgba(43,40,33,.14);

  --width-wide:    1280px;
  --width-content: 760px;
  --gutter:        clamp(1.25rem, 5vw, 4rem);

  --hairline:      1px solid var(--neutral-200);
  --hairline-gold: 1px solid var(--brand-primary);
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--ink-strong);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* ---------- Secciones ---------- */
.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.section--sunken { background: var(--bg-sunken); }
.section--ink    { background: var(--ink-strong); color: var(--ink-inverse); }
.section--tight  { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Contenedor ---------- */
.kb-inner {
  width: 100%;
  max-width: var(--width-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--brand-primary-deep);
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--brand-primary);
}

/* ---------- Botones ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  background: var(--brand-primary);
  color: var(--ink-strong);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  cursor: pointer;
}
.btn-gold:hover { background: var(--brand-primary-deep); border-color: var(--brand-primary-deep); color: var(--ink-inverse); }

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-inverse);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  cursor: pointer;
}
.btn-ghost-light:hover { background: var(--ink-inverse); color: var(--ink-strong); border-color: var(--ink-inverse); }

/* ---------- Hero (cuando se usa cover block) ---------- */
.kb-hero-cover .wp-block-cover__inner-container {
  max-width: var(--width-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.kb-hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5.25rem);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--ink-inverse);
  max-width: 14ch;
  margin-bottom: var(--space-5);
}
.kb-hero-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: var(--space-5);
  display: block;
}
.kb-hero-lede {
  font-size: var(--fs-md);
  color: rgba(255,255,255,.82);
  line-height: var(--lh-relaxed);
  max-width: 46ch;
  margin-bottom: var(--space-7);
}
.kb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg-canvas) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 76px;
  max-width: var(--width-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand__logo { height: 30px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list a {
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wide);
  color: var(--ink-strong);
  padding-block: var(--space-2);
  position: relative;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brand-primary);
  transition: right .3s ease;
}
.site-nav__list a:hover::after { right: 0; }
.site-header__utils {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.header-cart {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-strong);
  color: rgba(255,255,255,.72);
  padding-block: clamp(3rem, 6vw, 5rem) var(--space-6);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,.14);
  max-width: var(--width-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.footer-brand__logo { height: 30px; margin-bottom: var(--space-5); }
.footer-brand p { max-width: 32ch; font-size: var(--fs-sm); }
.footer-col h4 {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-inverse);
  margin-bottom: var(--space-4);
}
.footer-col li { padding-block: var(--space-2); }
.footer-col a { font-size: var(--fs-sm); color: rgba(255,255,255,.72); }
.footer-col a:hover { color: var(--brand-primary); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.55);
  max-width: var(--width-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer-bottom a:hover { color: var(--brand-primary); }

/* ---------- Piezas / colección ---------- */
.kb-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.kb-piece { display: flex; flex-direction: column; }
.kb-piece__tag {
  display: inline-block;
  background: rgba(253,252,252,.92);
  color: var(--ink-strong);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: .35rem .6rem;
  border: 1px solid var(--brand-primary);
  margin-bottom: var(--space-3);
}
.kb-piece__name { font-family: var(--font-display); font-size: var(--fs-lg); }
.kb-piece__price { font-size: var(--fs-sm); color: var(--ink-muted); }

/* ---------- Principios ---------- */
.kb-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.kb-principle {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,.18);
}
.kb-principle__n {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--brand-primary);
  margin-bottom: var(--space-3);
}
.kb-principle h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--ink-inverse);
  margin-bottom: var(--space-3);
}
.kb-principle p { color: rgba(255,255,255,.72); font-size: var(--fs-sm); }

/* ---------- Testimonios ---------- */
.kb-voices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.kb-voice {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: var(--hairline);
  background: var(--bg-raised);
}
.kb-voice__mark {
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  line-height: 0.5;
  display: block;
  height: 1.2rem;
}
.kb-voice__quote { font-family: var(--font-display); font-size: var(--fs-lg); line-height: var(--lh-snug); margin-top: var(--space-5); }
.kb-voice__who { margin-top: var(--space-5); font-size: var(--fs-xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Journal ---------- */
.kb-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.kb-entry__cat {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--brand-primary-deep);
  margin-bottom: var(--space-2);
}
.kb-entry h3 { font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.kb-entry p { color: var(--ink-muted); font-size: var(--fs-sm); }
.kb-entry__more {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-strong);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--brand-primary);
}

/* ---------- CTA band ---------- */
.kb-cta-band {
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.kb-cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 20ch;
  margin: var(--space-4) auto var(--space-6);
  font-weight: 400;
  line-height: var(--lh-tight);
}

/* ---------- Formulario de contacto ---------- */
.kb-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.kb-field { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.kb-field label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.kb-field input, .kb-field textarea, .kb-field select {
  font: inherit;
  font-size: var(--fs-base);
  color: var(--ink-strong);
  background: var(--bg-raised);
  border: var(--hairline);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  width: 100%;
}
.kb-field input:focus, .kb-field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(194,162,107,.18);
}
.kb-field textarea { min-height: 9rem; resize: vertical; }

/* ---------- Documentos legales ---------- */
.legal-doc { max-width: var(--width-content); }
.legal-doc h2 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  padding-top: var(--space-5);
  border-top: var(--hairline);
}
.legal-doc p, .legal-doc li { color: var(--ink-muted); line-height: var(--lh-relaxed); margin-bottom: var(--space-4); }
.legal-doc ul, .legal-doc ol { padding-left: var(--space-6); }
.legal-doc li { margin-bottom: var(--space-2); }
.legal-meta { font-size: var(--fs-sm); color: var(--ink-muted); margin-bottom: var(--space-7); }
.legal-placeholder { background: rgba(194,162,107,.18); padding: .1rem .4rem; border-radius: 2px; }

/* ---------- WooCommerce básico ---------- */
.woocommerce .products ul, .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  list-style: none;
  margin: 0; padding: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
}
.woocommerce ul.products li.product .price { color: var(--ink-muted); }
.woocommerce a.button, .woocommerce button.button {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--ink-strong);
  color: var(--ink-inverse);
  border: none;
  transition: background-color .3s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--brand-primary-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .kb-collection-grid, .kb-principles, .kb-voices, .kb-journal-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .kb-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kb-collection-grid, .kb-principles, .kb-voices, .kb-journal-grid, .footer-top { grid-template-columns: 1fr; }
  .kb-hero-heading { font-size: clamp(2rem, 10vw, 3.5rem); }
}

/* Cabecera con logo cuadrado (monograma): sin esto la imagen conserva su tamaño
   intrínseco y se desborda de la barra de 76 px. 11-09-2026 */
.brand__logo img,
.site-header .wp-block-site-logo img { height: 44px; width: auto; max-width: none; }

/* Portada con la foto de marca de la artista: la imagen ya trae el nombre y la
   frase, así que se enseña ENTERA y el titular del tema queda solo para
   buscadores y lectores de pantalla. 12-09-2026 */
.kb-hero-imagen { background: #1e3b36; min-height: 74vh !important; }
.kb-hero-imagen img.wp-block-cover__image-background { object-fit: contain; }
.kb-hero-imagen .wp-block-cover__background { opacity: 0 !important; }
.kb-hero-imagen .kb-hero-eyebrow,
.kb-hero-imagen .kb-hero-heading,
.kb-hero-imagen .kb-hero-lede { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.kb-hero-imagen .wp-block-cover__inner-container { align-self: flex-end; padding-bottom: 3rem; }


/* Portada: la foto de la artista se ve ENTERA y el texto va debajo, sobre el
   fondo claro de la web. 12-09-2026 */
.kb-hero-foto { margin: 0; background: #1e3b36; }
.kb-hero-foto img { display: block; width: 100%; max-height: 78vh; object-fit: contain; margin-inline: auto; }
.kb-hero-bajo { padding: 3rem 1.5rem 3.5rem; text-align: center; }
.kb-hero-bajo .kb-hero-eyebrow { display: block; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: #817c74; }
.kb-hero-bajo .kb-hero-titulo { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 400; line-height: 1.1; margin: 0.75rem 0 1rem; }
.kb-hero-bajo .kb-hero-texto { max-width: 46ch; margin: 0 auto 2rem; color: #696359; line-height: 1.7; }
.kb-hero-bajo .kb-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.kb-hero-bajo .btn-ghost-oscuro { display: inline-flex; align-items: center; padding: 0.9rem 1.6rem; border: 1px solid #c0beb9; color: #2b2821; text-decoration: none; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.kb-hero-bajo .kb-hero-correo { margin-top: 1.75rem; font-size: 0.9rem; }
.kb-hero-bajo .kb-hero-correo a { color: #817c74; text-decoration: none; }


/* Refuerzo: el bloque de texto de la portada ocupa el ancho de la página pase lo
   que pase con la maquetación del tema. 12-09-2026 */
.kb-hero-bajo { width: 100%; max-width: none; box-sizing: border-box; }
.kb-hero-bajo > * { max-width: 1280px; margin-inline: auto; }


/* Portada: transición entre las dos fotos que eligió la artista (12-09-2026).
   Sin librerías: dos imágenes superpuestas y una animación de opacidad. */
.kb-hero-carrusel { position: relative; width: 100%; background: #1e3b36; aspect-ratio: 1671 / 941; max-height: 78vh; overflow: hidden; }
.kb-hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; animation: kbFundido 16s infinite; }
.kb-slide-2 { animation-delay: 8s; }
@keyframes kbFundido { 0% { opacity: 0 } 4% { opacity: 1 } 46% { opacity: 1 } 50% { opacity: 0 } 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .kb-hero-slide { animation: none } .kb-slide-1 { opacity: 1 } }

