/* ===========================================================
   Adonai Café — Sistema de diseño editorial
   Referencia: Flamingo Estate (neutro, aireado, premium)
   =========================================================== */

/* Fuente de cuerpo: Cabin (local). Fraunces se carga vía Google Fonts. */
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cabin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cabin-700.woff2") format("woff2");
}

:root {
  /* Fuentes reales (en Next venían de next/font; aquí explícitas) */
  --font-heading: "Fraunces";
  --font-body: "Cabin";

  /* --- Marca: escala derivada del naranja del logo (#e45625) --- */
  --brand: #e45625;        /* color del logo; CTAs, momento de marca */
  --brand-600: #c8471c;    /* hover / realce */
  --brand-700: #a83a16;    /* texto naranja accesible sobre crema (AA) */
  --brand-wash: #fbe9de;   /* relleno sutil, estados, fondos de bloque */

  /* --- Secundario: verde origen (ancla y equilibra el naranja) --- */
  --green: #27402f;
  --green-soft: #5c7263;

  /* --- Neutros cálidos (tintados, no grises fríos) --- */
  --paper: #faf7f1;        /* fondo de página */
  --surface: #ffffff;      /* superficie elevada */
  --surface-muted: #efe9dd; /* media / placeholder */
  --ink: #1b1714;          /* texto principal */
  --ink-soft: #6e655b;     /* texto secundario */
  --line: rgba(27, 23, 20, 0.16);
  --line-soft: rgba(27, 23, 20, 0.09);

  /* --- Alias de compatibilidad (no romper clases existentes) --- */
  --accent: var(--brand);
  --accent-ink: var(--brand-700);
  --accent-green: var(--green);

  --radius: 3px;
  --radius-lg: 6px;

  --shell: min(1200px, 100%);
  --gutter: clamp(20px, 5vw, 64px);

  --step: clamp(44px, 6vw, 88px);

  --font-heading-stack: var(--font-heading), Georgia, "Times New Roman", serif;
  --font-body-stack: var(--font-body), system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body-stack);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading-stack);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.06;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* Layout primitives ----------------------------------------- */

.page-frame {
  position: relative;
}

.page-frame::before,
.page-frame::after {
  content: none;
}

.shell {
  width: var(--shell);
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Eyebrow / kicker ------------------------------------------ */

.eyebrow,
.site-header__kicker,
.site-footer__eyebrow,
.content-card__meta,
.post-detail__meta {
  display: inline-block;
  font-family: var(--font-body-stack);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Header ---------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 72px;
}

.site-header__brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.site-header__kicker {
  margin-bottom: 4px;
  color: var(--ink-soft);
}

.site-header__title {
  font-family: var(--font-heading-stack);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-header__logo {
  display: block;
  height: clamp(34px, 4vw, 44px);
  width: auto;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 28px;
}

.site-header__nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.site-header__nav a:hover {
  border-color: var(--ink);
}

/* Buttons --------------------------------------------------- */

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  border-radius: var(--radius);
  font-family: var(--font-body-stack);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.button {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.button:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  border-color: var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.inline-link {
  font-family: var(--font-body-stack);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.18s ease;
}

.inline-link:hover {
  opacity: 0.55;
}

/* Hero ------------------------------------------------------ */

.hero {
  padding: var(--step) 0 calc(var(--step) * 0.7);
  border-bottom: 1px solid var(--line);
}

.hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}

.hero__content,
.hero__aside,
.section-panel,
.content-card,
.cms-page,
.product-detail,
.post-detail,
.page-hero__panel,
.site-footer__inner {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  max-width: 26ch;
  text-wrap: balance;
  margin-top: 14px;
}

.hero p,
.page-hero p {
  max-width: 52ch;
  margin-top: 16px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.hero__aside {
  display: grid;
  gap: 0;
  align-content: end;
}

.hero__highlight {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.hero__highlight:last-child {
  border-bottom: 1px solid var(--line);
}

.hero__highlight strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading-stack);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.hero__highlight span,
.hero__highlight p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Sections -------------------------------------------------- */

.page-section {
  padding: var(--step) 0;
}

.page-section + .page-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(16px, 2.2vw, 28px);
}

.section-heading h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  max-width: 22ch;
}

.section-panel {
  padding: 0;
}

/* Card grid ------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.content-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.content-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface-muted);
  overflow: hidden;
}

.content-card__media--product {
  background: var(--surface-muted);
}

.content-card__media img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.content-card:hover .content-card__media img {
  transform: scale(1.03);
}

.content-card__body {
  display: grid;
  gap: 10px;
  padding: 20px 0 0;
}

.content-card__meta {
  color: var(--ink-soft);
}

.content-card__body h3 {
  font-size: 1.4rem;
  font-weight: 500;
}

.content-card__body p {
  font-size: 0.95rem;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.product-card__footer .inline-link {
  border-bottom: none;
  padding-bottom: 0;
}

/* Page hero (rutas internas) -------------------------------- */

.page-hero {
  padding: var(--step) 0 calc(var(--step) * 0.5);
  border-bottom: 1px solid var(--line);
}

.page-hero__panel {
  padding: 0;
}

/* CMS / post / producto ------------------------------------- */

.cms-page,
.post-detail {
  padding: var(--step) 0;
  max-width: 760px;
  margin: 0 auto;
}

.cms-page h1,
.post-detail h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 500;
  margin: 18px 0 8px;
}

.cms-page__content,
.post-detail__content,
.product-detail__content {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.cms-page__content h2,
.post-detail__content h2,
.product-detail__content h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  margin-top: 24px;
}

.cms-page__content p,
.post-detail__content p,
.product-detail__content p {
  max-width: 68ch;
  font-size: 1.05rem;
}

/* Artículo de blog: columna de lectura única y alineada.
   El cuerpo ocupa todo el ancho de la columna (igual que el
   título y la portada) para que no quede "hacia un lado". */
.post-detail {
  max-width: 700px;
}

.post-detail__content {
  gap: 26px;
}

.post-detail__content.rich-text p {
  max-width: none;
  font-size: 1.12rem;
  line-height: 1.75;
}

.post-detail__meta {
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.product-detail {
  padding: var(--step) 0;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.product-detail__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface-muted);
  overflow: hidden;
}

.product-detail__media img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.product-detail__header {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.product-detail__header h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 500;
}

.product-detail__price {
  font-family: var(--font-heading-stack);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Footer ---------------------------------------------------- */

.site-footer {
  padding: calc(var(--step) * 0.8) 0 calc(var(--step) * 0.45);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(140px, 0.6fr));
  gap: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

.site-footer__brand {
  display: grid;
  gap: 18px;
  align-content: start;
  max-width: 38ch;
}

.site-footer__logo {
  display: block;
  height: clamp(40px, 5vw, 52px);
  width: auto;
}

.site-footer__copy {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.site-footer__contact {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  justify-self: start;
  transition: color 0.18s ease;
}

.site-footer__contact:hover {
  color: var(--accent-ink);
  border-color: var(--accent-ink);
}

.site-footer__col {
  display: grid;
  align-content: start;
  gap: 14px;
}

.site-footer__eyebrow {
  margin-bottom: 4px;
}

.site-footer__col a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  width: fit-content;
  transition: color 0.18s ease;
}

.site-footer__col a:hover {
  color: var(--accent-ink);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.site-footer__bottom p {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* Rich text (contenido WP) ---------------------------------- */

.rich-text {
  display: grid;
  gap: 20px;
}

.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin-top: 16px;
  font-weight: 600;
}

.rich-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.rich-text p {
  font-size: 1.05rem;
  max-width: 68ch;
}

.rich-text a {
  color: var(--accent-ink);
  border-bottom: 1px solid currentColor;
}

.rich-text ul,
.rich-text ol {
  color: var(--ink-soft);
  padding-left: 22px;
  margin: 0;
}

.rich-text details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.rich-text details summary {
  font-family: var(--font-heading-stack);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.rich-text details summary::after {
  content: "+";
  font-family: var(--font-body-stack);
  font-size: 1.4rem;
  color: var(--ink-soft);
}

.rich-text details[open] summary::after {
  content: "–";
}

.rich-text details summary + * {
  margin-top: 14px;
}

/* Responsive ------------------------------------------------ */

@media (max-width: 980px) {
  .hero__panel,
  .product-detail,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
  }

  .site-header__nav {
    justify-content: start;
    gap: 18px;
  }

  .card-grid {
    gap: 36px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===========================================================
   Home — secciones editoriales
   =========================================================== */

.button--on-dark {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.button--on-dark:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.home-hero {
  position: relative;
  min-height: clamp(520px, 74vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.home-hero__media,
.origin-band__media {
  object-fit: cover;
  z-index: 0;
}

.home-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Refuerzo izquierdo (donde va el texto) + base inferior, para
     garantizar contraste AA del texto blanco sobre la foto. */
  background:
    linear-gradient(
      100deg,
      rgba(14, 10, 7, 0.62) 0%,
      rgba(14, 10, 7, 0.42) 38%,
      rgba(14, 10, 7, 0.2) 62%,
      rgba(14, 10, 7, 0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(14, 10, 7, 0.16) 0%,
      rgba(14, 10, 7, 0.22) 55%,
      rgba(14, 10, 7, 0.44) 100%
    );
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(40px, 6vw, 84px);
  max-width: 820px;
}

.home-hero__eyebrow,
.origin-band__eyebrow {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.home-hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  margin-top: 12px;
  max-width: 22ch;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.42);
}

.home-hero__lead {
  color: #fff;
  margin-top: 16px;
  max-width: 48ch;
  font-size: 1.12rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.editorial {
  padding: var(--step) 0;
}

.editorial__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.editorial__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface-muted);
  overflow: hidden;
}

.editorial__media img {
  object-fit: cover;
}

.editorial__body {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.editorial__body .eyebrow {
  margin-bottom: 2px;
}

.editorial__body h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 20ch;
  margin-bottom: 4px;
}

.editorial__body p {
  font-size: 1.05rem;
  max-width: 50ch;
  color: var(--ink-soft);
}

.editorial__body .inline-link {
  margin-top: 10px;
}

.origin-band {
  position: relative;
  min-height: clamp(460px, 66vh, 660px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.origin-band__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(20, 15, 11, 0.74) 0%,
    rgba(20, 15, 11, 0.46) 55%,
    rgba(20, 15, 11, 0.22) 100%
  );
}

.origin-band__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(48px, 7vw, 96px);
  max-width: 620px;
}

.origin-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-top: 12px;
  max-width: 15ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.origin-band p {
  color: #fff;
  margin-top: 14px;
  max-width: 44ch;
  font-size: 1.05rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.42);
}

@media (max-width: 900px) {
  .editorial__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .editorial__media {
    aspect-ratio: 16 / 11;
  }

  .home-hero {
    min-height: 64vh;
  }
}

/* ===========================================================
   Catálogo
   =========================================================== */

.content-card__media {
  display: block;
}

.content-card__body h3 a {
  transition: color 0.18s ease;
}

.content-card:hover .content-card__body h3 a {
  color: var(--accent-ink);
}

.catalog-count {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ===========================================================
   Detalle de producto
   =========================================================== */

.product-detail__back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.18s ease;
}

.product-detail__back:hover {
  color: var(--ink);
}

.product-detail__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.product-detail__thumb {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-muted);
  overflow: hidden;
}

.product-detail__thumb img {
  object-fit: cover;
}

.product-detail__trust {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.product-detail__content {
  margin: clamp(32px, 6vw, 64px) auto 0;
  padding-top: clamp(32px, 6vw, 56px);
  border-top: 1px solid var(--line);
  max-width: 920px;
  justify-items: center;
  text-align: center;
}

.product-detail__content figure,
.product-detail__content img {
  width: 100%;
  margin: 0 auto;
}

.product-detail__content p {
  margin-left: auto;
  margin-right: auto;
}

.product-detail__lead {
  margin-top: 6px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.product-specs {
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}

.product-specs__row {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.product-specs__row dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-700);
  align-self: center;
}

.product-specs__row dd {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  align-self: center;
}

/* ===========================================================
   Selectores de compra (Tipo / Tamaño)
   =========================================================== */

.pdp-buy {
  margin-top: 26px;
  display: grid;
  gap: 20px;
}

.pdp-buy__group {
  display: grid;
  gap: 10px;
}

.pdp-buy__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pdp-buy__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdp-pill {
  appearance: none;
  cursor: pointer;
  padding: 10px 18px;
  font-family: var(--font-body-stack);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.pdp-pill:hover {
  border-color: var(--ink);
}

.pdp-pill--active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pdp-buy__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.pdp-buy__from {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.pdp-buy__price {
  font-family: var(--font-heading-stack);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
}

.pdp-buy__stock {
  margin-left: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
}

/* ===========================================================
   Parallax (imágenes del home)
   =========================================================== */

.parallax {
  position: absolute;
  inset: -26% 0;
  height: 152%;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.parallax img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================================================
   Portada de artículo (blog)
   =========================================================== */

.post-detail__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: clamp(24px, 4vw, 40px) 0 0;
  background: var(--surface-muted);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-detail__cover img {
  object-fit: cover;
}

/* ===========================================================
   Calculadora de café
   =========================================================== */
.calc {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.calc-current {
  font-family: var(--font-body-stack);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.calc-current strong {
  color: var(--accent-ink);
  font-weight: 600;
}

.calc-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 34px);
}

.calc-title {
  font-family: var(--font-heading-stack);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  margin-bottom: 18px;
}

.calc-subtitle {
  font-family: var(--font-heading-stack);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 22px 0 12px;
}

.calc-hint {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 12px;
  line-height: 1.55;
}

/* Métodos */
.calc-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  list-style: none;
}

.calc-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  cursor: pointer;
  text-align: center;
  font-family: var(--font-body-stack);
  font-size: 0.9rem;
  color: var(--ink);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.calc-method:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.calc-method.is-active {
  border-color: var(--brand);
  background: var(--brand-wash);
  color: var(--accent-ink);
}

.calc-method__icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Filas y controles */
.calc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.calc-row--cups {
  gap: 18px;
}

.calc-row--controls {
  align-items: flex-end;
}

.calc-field {
  display: grid;
  gap: 6px;
}

.calc-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: var(--font-body-stack);
}

.calc-select,
.calc-number {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body-stack);
  font-size: 1rem;
}

.calc-select:focus-visible,
.calc-number:focus-visible,
.calc-range:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.calc-range {
  flex: 1 1 220px;
  min-width: 180px;
  accent-color: var(--brand);
  height: 6px;
}

.calc-cup-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading-stack);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 60px;
}

.calc-cup-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calc-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--accent-ink);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body-stack);
}

/* Modo avanzado */
.calc-advanced-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
}

.calc-advanced-header .calc-title {
  margin-bottom: 0;
}

.calc-text-btn {
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--accent-ink);
  font-family: var(--font-body-stack);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid currentColor;
}

.calc-text-btn:hover {
  color: var(--brand-600);
}

.calc-advanced {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.calc-advanced__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.calc-advanced__full {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.calc-advanced__field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-family: var(--font-body-stack);
}

/* Resultados */
.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.calc-actions .button-secondary {
  min-height: 44px;
  padding: 0 22px;
}

.calc-notice {
  margin: 6px 0 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.calc-notice.is-error {
  color: var(--brand-700);
}

.calc-notice.is-success {
  color: var(--green, #27402f);
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.calc-metric {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 24px;
  text-align: center;
}

.calc-metric__label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.calc-metric__value {
  font-family: var(--font-heading-stack);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.calc-metric__value small {
  font-size: 0.4em;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 4px;
}

.calc-meta {
  font-size: 0.85rem;
}

.calc-steps {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.calc-steps li {
  padding-left: 4px;
}

/* Resumen pegajoso */
.calc-sticky {
  position: sticky;
  bottom: 14px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(27, 23, 20, 0.16);
}

.calc-sticky__values {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

.calc-sticky__values strong {
  color: var(--ink-soft);
  font-weight: 600;
  margin-right: 4px;
}

.calc-sticky__btn {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--font-body-stack);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}

.calc-sticky__btn:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

/* Guía / referencia */
.calc-knowledge__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.calc-table-wrap {
  overflow-x: auto;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.calc-table th,
.calc-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.calc-table thead th {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.calc-table tbody th {
  font-weight: 600;
}

.calc-faq {
  display: grid;
  gap: 10px;
}

.calc-faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  background: var(--surface);
}

.calc-faq__item summary {
  cursor: pointer;
  font-family: var(--font-heading-stack);
  font-weight: 600;
  font-size: 1rem;
}

.calc-faq__item[open] summary {
  color: var(--accent-ink);
}

@media (max-width: 620px) {
  .calc-results {
    grid-template-columns: 1fr;
  }

  .calc-sticky {
    flex-direction: column;
    border-radius: var(--radius-lg);
    align-items: stretch;
    text-align: center;
  }

  .calc-sticky__values {
    justify-content: center;
  }
}

/* Banda CTA calculadora (home) */
.calc-cta {
  padding: clamp(28px, 5vw, 56px) 0;
  background: var(--brand-wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calc-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 48px);
}

.calc-cta__text {
  max-width: 56ch;
}

.calc-cta__text h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
  margin: 8px 0 10px;
  color: var(--ink);
}

.calc-cta__text p {
  font-size: 1rem;
  color: var(--ink-soft);
}

.calc-cta .button {
  flex: none;
}

@media (max-width: 620px) {
  .calc-cta .button {
    width: 100%;
  }
}

/* ---- Calculadora: ajustes de UI ---- */

/* #2 Menos espacio muerto entre el hero y la calculadora */
.page-section.calc-lead {
  padding-top: clamp(24px, 4vw, 44px);
}

/* #3 Selects con estilo editorial (sin chrome nativo) */
.calc-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236e655b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* #4 Fila de tazas más compacta (el valor no se va al borde) */
.calc-row--cups {
  max-width: 560px;
}

/* #5 Meta de la receta como chips legibles */
.calc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 4px;
}

.calc-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.85rem;
  color: var(--ink);
  font-family: var(--font-body-stack);
}

.calc-chip__k {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

/* #6 Estado activo de método reforzado (no solo color) */
.calc-method {
  position: relative;
}

.calc-method.is-active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.calc-method.is-active::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M1.5 5.2 4 7.5l4.5-5' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}

/* #1 Resumen pegajoso: solo cuando la receta no está a la vista,
   y oculto en desktop (la receta se alcanza fácil) */
.calc-sticky {
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.calc-sticky.is-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .calc-sticky {
    display: none;
  }
}

/* Bloque de blog compacto en el home (ref. Field Ethos) */
.page-section.blog-strip {
  padding: clamp(36px, 5vw, 64px) 0;
}

.blog-strip .section-heading {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.blog-strip .section-heading h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.card-grid--compact {
  gap: clamp(16px, 2.4vw, 28px);
}

.content-card--compact .content-card__media {
  aspect-ratio: 16 / 10;
}

.content-card--compact .content-card__body {
  gap: 6px;
  padding-top: 14px;
}

.content-card--compact .content-card__meta {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.content-card--compact .content-card__body h3 {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.25;
}

/* ===========================================================
   Centro de ayuda (page-ayuda.php)
   =========================================================== */
.help-hero h1 { max-width: 22ch; }

.help-search {
  position: relative;
  margin-top: 24px;
  max-width: 480px;
}
.help-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.7;
  stroke-linecap: round;
  pointer-events: none;
}
.help-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px 0 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-body-stack);
  font-size: 1rem;
  color: var(--ink);
}
.help-search input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.help-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.help-nav {
  position: sticky;
  top: 96px;
}
.help-nav__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 14px;
}
.help-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.help-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.help-nav a:hover { color: var(--ink); }
.help-nav a.is-active {
  color: var(--accent-ink);
  border-left-color: var(--brand);
  background: var(--brand-wash);
}

.help-content { margin-top: 0; }
.help-content h2 {
  scroll-margin-top: 92px;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  margin: 38px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.help-content > h2:first-child { margin-top: 0; }

.help-content details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
}
.help-content summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 16px 50px 16px 18px;
  font-family: var(--font-heading-stack);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.help-content summary::-webkit-details-marker { display: none; }
.help-content summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brand);
}
.help-content details[open] summary { color: var(--accent-ink); }
.help-content details[open] summary::after { content: "\2013"; }
.help-content details > *:not(summary) {
  padding: 0 18px 16px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}
.help-content details > *:not(summary) + *:not(summary) { padding-top: 0; }

.help-noresults {
  margin-top: 20px;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .help-layout { grid-template-columns: 1fr; gap: 22px; }
  .help-nav { position: static; }
  .help-nav__label { margin-bottom: 10px; }
  .help-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .help-nav a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.85rem;
  }
  .help-nav a.is-active { border-color: var(--brand); }
}

/* Acordeones del centro de ayuda: SIEMPRE el mismo ancho.
   Anula el display:grid y los límites de ancho heredados de
   .cms-page__content / .rich-text (mayor especificidad para ganar). */
.help-layout .help-content {
  display: block;
}
.help-layout .help-content > * {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.help-layout .help-content details {
  width: 100%;
}
.help-layout .help-content details p {
  max-width: none;
}

/* ===========================================================
   Formulario de compra WooCommerce (detalle de producto)
   =========================================================== */
.pdp-buy .variations {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 16px;
}
.pdp-buy .variations tr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.pdp-buy .variations th.label {
  padding: 0;
  width: auto;
  text-align: left;
}
.pdp-buy .variations td.value {
  padding: 0;
  flex: 1 1 220px;
}
.pdp-buy .variations label {
  margin: 0;
  font-family: var(--font-body-stack);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pdp-buy select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  min-height: 50px;
  padding: 0 42px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-body-stack);
  font-size: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236e655b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.pdp-buy select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.pdp-buy .reset_variations {
  display: inline-block;
  margin: 2px 0 4px;
  font-size: 0.82rem;
  color: var(--accent-ink);
  border-bottom: 1px solid currentColor;
}
.pdp-buy .woocommerce-variation-price {
  margin: 12px 0 16px;
}
.pdp-buy .woocommerce-variation-price .price {
  font-family: var(--font-heading-stack);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}
.pdp-buy .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.pdp-buy .quantity .qty {
  width: 76px;
  min-height: 52px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body-stack);
  font-size: 1rem;
}
.pdp-buy .single_add_to_cart_button {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: 1px solid var(--ink) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body-stack);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pdp-buy .single_add_to_cart_button:hover,
.pdp-buy .single_add_to_cart_button:focus {
  background: var(--brand-600) !important;
  border-color: var(--brand-600) !important;
}
.pdp-buy .single_add_to_cart_button.disabled,
.pdp-buy .single_add_to_cart_button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ===========================================================
   WooCommerce — botones y avisos de marca (clásico + bloques)
   =========================================================== */

/* Botones clásicos */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit,
.woocommerce .checkout-button,
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: 1px solid var(--ink) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body-stack) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce .checkout-button:hover,
.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-error a.button:hover {
  background: var(--brand-600) !important;
  border-color: var(--brand-600) !important;
  color: var(--paper) !important;
}

/* Botones del carrito/checkout en BLOQUES (contained / submit / place-order) */
.wc-block-cart__submit-button,
.wc-block-components-button.contained,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-checkout .wc-block-components-button.contained {
  background-color: var(--ink) !important;
  border: 1px solid var(--ink) !important;
  border-radius: var(--radius) !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-button.contained:hover,
.wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover {
  background-color: var(--brand-600) !important;
  border-color: var(--brand-600) !important;
}
/* Texto blanco SOLO en los botones rellenos (no en los de texto/outline) */
.wc-block-cart__submit-button,
.wc-block-cart__submit-button .wc-block-components-button__text,
.wc-block-components-button.contained,
.wc-block-components-button.contained .wc-block-components-button__text,
.wc-block-components-checkout-place-order-button,
.wc-block-components-checkout-place-order-button .wc-block-components-button__text {
  color: var(--paper) !important;
}

/* Avisos: quitar el icono/punto por defecto */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  display: none !important;
}

/* ===========================================================
   Espacio superior de páginas internas (quitar doble padding)
   =========================================================== */
.page-section .cms-page,
.page-section .post-detail {
  padding-top: 0;
}

/* Checkout y carrito: cabecera más compacta */
.woocommerce-checkout .page-section,
.woocommerce-cart .page-section,
.woocommerce-account .page-section {
  padding-top: clamp(20px, 4vw, 40px);
}

/* ===========================================================
   Carrito vacío (bloque) + sugeridos
   =========================================================== */
.wp-block-woocommerce-empty-cart-block {
  text-align: center;
  padding: clamp(16px, 3vw, 40px) 0;
}
/* Ícono sad-face: más pequeño y suave */
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
  width: 64px !important;
  height: 64px !important;
  background-size: contain !important;
  opacity: 0.3 !important;
  margin: 0 auto 20px !important;
}
.wc-block-cart__empty-cart__title {
  font-family: var(--font-heading-stack) !important;
  font-weight: 500 !important;
  font-size: clamp(1.4rem, 3vw, 2rem) !important;
  color: var(--ink) !important;
}
/* Separador de puntos */
.wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots {
  color: var(--line) !important;
  margin: 20px auto 28px !important;
  max-width: 200px;
}
/* "Nuevo en la tienda" */
.wp-block-woocommerce-empty-cart-block .wp-block-heading {
  font-family: var(--font-heading-stack);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--ink);
  margin-bottom: 8px;
}
/* Grid de productos sugeridos */
.wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: 18px;
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
  font-family: var(--font-heading-stack);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  margin-top: 10px;
}
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Botones de productos sugeridos / grids de bloques (add to cart) */
.wc-block-grid__product .wp-block-button__link,
.wp-block-button__link.add_to_cart_button {
  background-color: var(--ink) !important;
  border: 1px solid var(--ink) !important;
  border-radius: var(--radius) !important;
  color: var(--paper) !important;
  font-family: var(--font-body-stack) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  font-size: 0.74rem !important;
  padding: 12px 18px !important;
}
.wc-block-grid__product .wp-block-button__link:hover,
.wp-block-button__link.add_to_cart_button:hover {
  background-color: var(--brand-600) !important;
  border-color: var(--brand-600) !important;
  color: var(--paper) !important;
}
