/* Emmber: capa propia sobre la plantilla base (Bootstrap 4 + RD Navbar). Solo tema claro. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --em-bg: #f6f5f1;
  --em-surface: #ffffff;
  --em-tint: #e6ebe2;
  --em-ink: #1b241f;
  --em-muted: #525d56;
  --em-green: #1f3329;
  --em-green-soft: #2f4a3c;
  --em-accent: #b5532a;
  --em-accent-dark: #96421f;
  --em-line: #d6d9cf;
  --em-error: #a3271b;
  --em-radius: 6px;
  --em-font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --em-font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --em-shadow: 0 12px 32px rgba(31, 51, 41, 0.10);
  --z-nav: 1000;
  --z-cookie: 1100;
  --z-modal: 1200;
  --z-toast: 1300;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--em-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--em-ink);
  background: var(--em-bg);
  -webkit-font-smoothing: antialiased;
}
.page { background: var(--em-bg); overflow-x: clip; opacity: 1 !important; }
main { display: block; }

h1, h2, h3, h4, h5, h6, .em-h2 {
  font-family: var(--em-font-display);
  color: var(--em-ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-transform: none;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2, .em-h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
* + p { margin-top: 0; }
h1 + p, h2 + p, h3 + p, .em-h2 + p { margin-top: 0.8em; }
p + h2, ul + h2, ol + h2, .em-table-wrap + h2 { margin-top: 1.8em; }
p + h3, ul + h3, ol + h3 { margin-top: 1.5em; }

a { color: var(--em-accent-dark); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
a:hover, a:focus { color: var(--em-green); }
:focus-visible { outline: 3px solid var(--em-accent); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; height: auto; }
picture { display: block; }
picture img { display: block; width: 100%; }
code { font-size: .9em; background: var(--em-tint); color: var(--em-ink); padding: 1px 5px; border-radius: 3px; }

.em-skip { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--em-green); color: #fff; padding: 12px 18px; }
.em-skip:focus { left: 8px; top: 8px; color: #fff; }

/* ───── Botones ───── */
.em-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--em-font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 14px 26px; min-height: 48px; border-radius: var(--em-radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .1s;
}
.em-btn:active { transform: translateY(1px); }
.em-btn--primary { background: var(--em-accent); color: #fff; }
.em-btn--primary:hover, .em-btn--primary:focus { background: var(--em-accent-dark); color: #fff; }
.em-btn--outline { background: transparent; color: var(--em-green); border-color: var(--em-green); }
.em-btn--outline:hover { background: var(--em-green); color: #fff; }
.em-btn--outline:focus { color: var(--em-green); }
.em-btn--light { background: #fff; color: var(--em-green); }
.em-btn--light:hover, .em-btn--light:focus { background: var(--em-tint); color: var(--em-green); }
.em-btn--ghost { background: transparent; color: var(--em-green); text-decoration: underline; text-underline-offset: 3px; padding-left: 10px; padding-right: 10px; }
.em-btn--sm { padding: 9px 16px; min-height: 40px; font-size: .93rem; }
.em-btn--block { width: 100%; }
.em-btn[disabled] { opacity: .5; cursor: not-allowed; }
.em-link { font-weight: 600; color: var(--em-green); white-space: nowrap; }
.em-linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }

/* ───── Barra superior y navegación ───── */
.em-topbar { background: var(--em-green); color: #e9eee8; font-size: .86rem; }
.em-topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.em-topbar p { margin: 0; }
@media (max-width: 767px) { .em-topbar__aside { display: none; } .em-topbar__inner { justify-content: center; text-align: center; } }

.page-header { background: var(--em-surface); }
.rd-navbar-wrap { height: auto !important; }
.em-navbar, .em-navbar.rd-navbar-static, .em-navbar.rd-navbar-fixed .rd-navbar-panel { background: var(--em-surface); }
.em-navbar.rd-navbar-static { border-bottom: 1px solid var(--em-line); box-shadow: none; }
.em-navbar.rd-navbar-static .rd-navbar-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 14px 15px; }
.em-navbar.rd-navbar-static .rd-navbar-panel { flex: 0 0 auto; }
.em-navbar.rd-navbar-static .rd-navbar-nav-wrap { display: flex; align-items: center; flex-direction: row-reverse; gap: 28px; margin: 0; }
.em-navbar.rd-navbar-static .rd-navbar-nav-wrap__element { margin: 0; padding: 0; order: 0; }
.em-navbar.rd-navbar-static .rd-navbar-nav { display: flex; align-items: center; gap: 26px; margin: 0; }
.em-navbar.rd-navbar-static .rd-navbar-nav > li { margin: 0; padding: 0; }
.em-navbar .rd-navbar-nav > li > a {
  font-family: var(--em-font-body); font-size: .98rem; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--em-ink); text-decoration: none; padding: 8px 0;
}
.em-navbar .rd-navbar-nav > li > a:hover, .em-navbar .rd-navbar-nav > li.active > a, .em-navbar .rd-navbar-nav > li.focus > a, .em-navbar .rd-navbar-nav > li.opened > a { color: var(--em-accent-dark); background: transparent; }
.em-navbar.rd-navbar-static .rd-navbar-nav > li > a::before, .em-navbar.rd-navbar-static .rd-navbar-nav > li > a::after { display: none; }
.em-navbar.rd-navbar-static .rd-navbar-nav > li.active > a { box-shadow: 0 2px 0 var(--em-accent); }
.em-navbar .rd-navbar-dropdown { background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius); box-shadow: var(--em-shadow); }
.em-navbar.rd-navbar-static .rd-navbar-dropdown { width: 260px; padding: 10px 0; margin-top: 12px; }
.em-navbar .rd-navbar-dropdown li > a { font-family: var(--em-font-body); font-size: .95rem; color: var(--em-ink); text-decoration: none; text-transform: none; letter-spacing: 0; padding: 9px 20px; display: block; }
.em-navbar .rd-navbar-dropdown li > a:hover, .em-navbar .rd-navbar-dropdown li > a:focus { color: var(--em-accent-dark); background: var(--em-bg); }
.em-navbar .rd-navbar-submenu-toggle { color: var(--em-muted); }
.em-navbar.rd-navbar-static.rd-navbar--is-stuck { box-shadow: 0 4px 18px rgba(31,51,41,.08); }
.em-navbar.rd-navbar-static.rd-navbar--is-stuck .rd-navbar-inner { padding-top: 8px; padding-bottom: 8px; }
.em-logo { height: 44px; width: auto; display: block; }
.em-navbar .rd-navbar-brand a { display: block; }

.em-cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--em-line); border-radius: var(--em-radius); color: var(--em-ink); font-weight: 600; font-size: .95rem; text-decoration: none; background: var(--em-bg); }
.em-cart-link:hover, .em-cart-link:focus { border-color: var(--em-green); color: var(--em-green); }
.em-cart-link .icon { font-size: 22px; line-height: 1; }
.em-cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--em-accent); color: #fff; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.em-cart-link--panel { display: none; }

/* Navegación móvil (layout fijo de RD Navbar) */
.em-navbar.rd-navbar-fixed .rd-navbar-panel { height: 60px; border-bottom: 1px solid var(--em-line); box-shadow: none; display: flex; align-items: center; padding: 0 12px 0 60px; z-index: var(--z-nav); }
.em-navbar.rd-navbar-fixed .rd-navbar-brand { position: static; transform: none; margin: 0; flex: 1; display: flex; justify-content: center; }
.em-navbar.rd-navbar-fixed .em-logo { height: 34px; }
.em-navbar.rd-navbar-fixed .em-cart-link--panel { display: inline-flex; border: 0; background: transparent; padding: 6px; min-width: 44px; justify-content: center; }
.em-navbar.rd-navbar-fixed .em-cart-link--panel .em-cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; font-size: .7rem; }
.em-navbar.rd-navbar-fixed .rd-navbar-toggle { left: 8px; top: 6px; }
.em-navbar.rd-navbar-fixed .rd-navbar-toggle span, .em-navbar.rd-navbar-fixed .rd-navbar-toggle span::before, .em-navbar.rd-navbar-fixed .rd-navbar-toggle span::after { background: var(--em-ink); }
.em-navbar.rd-navbar-fixed .rd-navbar-nav-wrap { background: var(--em-surface); top: 0; padding-top: 76px; width: 290px; box-shadow: var(--em-shadow); }
.em-navbar.rd-navbar-fixed .rd-navbar-nav-wrap__element { display: none; }
.em-navbar.rd-navbar-fixed .rd-navbar-nav > li > a { padding: 13px 56px 13px 22px; font-size: 1.05rem; display: block; }
.em-navbar.rd-navbar-fixed .rd-navbar-nav > li + li { border-top: 1px solid var(--em-line); margin: 0; }
.em-navbar.rd-navbar-fixed .rd-navbar-dropdown { border: 0; box-shadow: none; background: var(--em-bg); border-radius: 0; }
.em-navbar.rd-navbar-fixed .rd-navbar-dropdown li > a { padding-left: 34px; }
.rd-navbar-fixed-linked .page { padding-top: 0; }
.rd-navbar-fixed-linked .em-topbar { margin-top: 60px; }

/* ───── Migas ───── */
.em-breadcrumbs { border-bottom: 1px solid var(--em-line); background: var(--em-bg); font-size: .88rem; }
.em-breadcrumbs ol { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.em-breadcrumbs li + li::before { content: "/"; margin: 0 9px; color: var(--em-muted); }
.em-breadcrumbs a { color: var(--em-muted); text-decoration: none; }
.em-breadcrumbs a:hover { color: var(--em-accent-dark); text-decoration: underline; }
.em-breadcrumbs span { color: var(--em-ink); font-weight: 600; }

/* ───── Secciones ───── */
.em-section { padding: clamp(56px, 7vw, 104px) 0; }
.em-section--tint { background: var(--em-tint); }
.em-section--tight { padding: clamp(36px, 4.5vw, 64px) 0; }
.em-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.em-section__head .em-h2 { max-width: 22ch; }
.em-lead { font-size: 1.12rem; color: var(--em-muted); max-width: 68ch; margin-bottom: clamp(24px, 3vw, 40px); }
.em-prose { max-width: 72ch; }
.em-prose ul, .em-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.em-prose li { margin-bottom: .5em; }
.em-prose li::marker { color: var(--em-accent); font-weight: 700; }

/* ───── Hero ───── */
.em-hero { position: relative; min-height: min(78dvh, 720px); display: flex; align-items: center; background: var(--em-green); overflow: hidden; }
.em-hero__media, .em-hero__media picture, .em-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.em-hero__media img { object-fit: cover; object-position: 70% center; }
.em-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246,245,241,.94) 0%, rgba(246,245,241,.86) 34%, rgba(246,245,241,0) 64%); }
.em-hero__inner { position: relative; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.em-hero__content { max-width: 540px; }
.em-hero__content p { font-size: 1.15rem; color: #2c3a33; margin: 20px 0 30px; max-width: 46ch; }
.em-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 991px) {
  .em-hero { min-height: 0; display: block; background: var(--em-bg); }
  .em-hero__media, .em-hero__media picture, .em-hero__media img { position: relative; height: auto; }
  .em-hero__media img { aspect-ratio: 4 / 3; max-height: 460px; object-position: 78% center; }
  .em-hero__media::after { display: none; }
  .em-hero__inner { padding-top: 28px; padding-bottom: 36px; }
  .em-hero__cta .em-btn { flex: 1 1 auto; }
  .em-hero__cta .em-btn--light { border-color: var(--em-green); }
}

/* Cabecera de páginas interiores */
.em-pagehead { padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 3.5vw, 48px); background: var(--em-bg); }
.em-pagehead h1 { max-width: 20ch; }
.em-pagehead p { font-size: 1.15rem; color: var(--em-muted); max-width: 66ch; margin: 18px 0 0; }
.em-pagehead--split .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.em-pagehead--split img { border-radius: var(--em-radius); aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 991px) { .em-pagehead--split .container { grid-template-columns: 1fr; } }

/* ───── Ventajas ───── */
.em-usp { padding: 0; background: var(--em-surface); border-bottom: 1px solid var(--em-line); }
.em-usp__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.em-usp__list li { display: flex; gap: 14px; padding: 28px 22px; border-left: 1px solid var(--em-line); }
.em-usp__list li:first-child { border-left: 0; padding-left: 0; }
.em-usp__list .mdi { font-size: 28px; line-height: 1; color: var(--em-accent); }
.em-usp__list strong { font-family: var(--em-font-display); font-size: 1.05rem; display: block; margin-bottom: 4px; }
.em-usp__list p { font-size: .93rem; color: var(--em-muted); margin: 0; line-height: 1.5; }
@media (max-width: 991px) { .em-usp__list { grid-template-columns: 1fr 1fr; } .em-usp__list li { border-left: 0; padding: 20px 12px 20px 0; border-top: 1px solid var(--em-line); } .em-usp__list li:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 575px) { .em-usp__list { grid-template-columns: 1fr; } .em-usp__list li:nth-child(2) { border-top: 1px solid var(--em-line); } }

/* ───── Categorías ───── */
.em-cats__grid { display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; }
.em-cat { position: relative; display: block; border-radius: var(--em-radius); overflow: hidden; color: #fff; text-decoration: none; min-height: 230px; background: var(--em-green); }
.em-cat--big { grid-row: 1 / span 2; }
.em-cat picture, .em-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.em-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,32,26,0) 35%, rgba(20,32,26,.82) 100%); }
.em-cat:hover img, .em-cat:focus img { transform: scale(1.04); }
.em-cat__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.em-cat__text strong { font-family: var(--em-font-display); font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -.01em; color: #fff; }
.em-cat__text span { font-size: .95rem; color: #e9eee8; }
.em-cat:hover, .em-cat:focus { color: #fff; }
@media (max-width: 767px) { .em-cats__grid { grid-template-columns: 1fr; grid-template-rows: none; } .em-cat--big { grid-row: auto; min-height: 300px; } }

/* ───── Tarjetas de producto ───── */
.em-grid { display: grid; gap: 22px; }
.em-grid--4 { grid-template-columns: repeat(4, 1fr); }
.em-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1199px) { .em-grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) { .em-grid--4, .em-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 380px) { .em-grid--4, .em-grid--3 { gap: 12px; } }

.em-card { background: var(--em-surface); border-radius: var(--em-radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--em-line); transition: box-shadow .25s, transform .25s; }
.em-card:hover { box-shadow: var(--em-shadow); transform: translateY(-2px); }
.em-card[hidden] { display: none; }
.em-card__media { display: block; background: #ecebe6; aspect-ratio: 3 / 4; overflow: hidden; }
.em-card__media img { width: 100%; height: 100%; object-fit: cover; }
.em-card__body { padding: 16px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.em-card__meta { font-size: .8rem; color: var(--em-muted); margin: 0 0 6px; }
.em-card__title { font-size: 1.08rem; line-height: 1.25; margin: 0; }
.em-card__title a { color: var(--em-ink); text-decoration: none; }
.em-card__title a:hover { color: var(--em-accent-dark); text-decoration: underline; }
.em-card__notes { font-size: .9rem; color: var(--em-muted); margin: 8px 0 0; }
.em-card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.em-card__price { font-family: var(--em-font-display); font-weight: 600; font-size: 1.15rem; margin: 0; white-space: nowrap; }
.em-card__from { font-family: var(--em-font-body); font-weight: 400; font-size: .8rem; color: var(--em-muted); }
.em-card__add { width: 44px; height: 44px; flex: 0 0 44px; border-radius: var(--em-radius); border: 0; background: var(--em-green); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s; }
.em-card__add:hover, .em-card__add:focus { background: var(--em-accent); }
@media (max-width: 575px) { .em-card__body { padding: 12px 12px 12px; } .em-card__title { font-size: .98rem; } .em-card__price { font-size: 1.02rem; } .em-card__notes { display: none; } }

/* Carrusel horizontal con scroll-snap */
.em-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 270px); gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px max(15px, calc((100vw - 1170px) / 2)) 22px; scrollbar-width: thin; scrollbar-color: var(--em-green-soft) transparent; }
.em-scroller > * { scroll-snap-align: start; }
@media (max-width: 575px) { .em-scroller { grid-auto-columns: 68vw; gap: 14px; } }

/* ───── Split, pasos, tablas ───── */
.em-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.em-split--top { align-items: start; }
.em-split--reverse .em-split__media { order: 2; }
.em-split__media img { border-radius: var(--em-radius); }
.em-split__media--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 991px) { .em-split { grid-template-columns: 1fr; } .em-split--reverse .em-split__media { order: 0; } }

.em-steps { list-style: none; counter-reset: step; margin: 28px 0 28px; padding: 0; }
.em-steps li { counter-increment: step; position: relative; padding: 0 0 22px 58px; }
.em-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--em-accent); color: var(--em-accent-dark); font-family: var(--em-font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; background: var(--em-bg); }
.em-steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--em-line); }
.em-steps h3 { font-size: 1.12rem; margin-bottom: 4px; padding-top: 6px; }
.em-steps p { margin: 0; color: var(--em-muted); font-size: .98rem; }

.em-table-wrap { overflow-x: auto; border: 1px solid var(--em-line); border-radius: var(--em-radius); background: var(--em-surface); margin-bottom: 1.4em; }
.em-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .97rem; }
.em-table th, .em-table td { padding: 14px 18px; text-align: left; vertical-align: top; }
.em-table thead th { font-family: var(--em-font-display); font-size: .92rem; font-weight: 600; background: var(--em-green); color: #fff; white-space: nowrap; }
.em-table tbody tr:nth-child(even) { background: #f2f4ef; }
.em-table tbody th { font-weight: 600; white-space: nowrap; }
.em-table--compact { min-width: 0; }
.em-table--compact th, .em-table--compact td { padding: 11px 16px; }
.em-table--compact tbody th { width: 40%; color: var(--em-muted); font-weight: 500; white-space: normal; }

/* ───── Cafeteras destacadas ───── */
.em-makers__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.em-makers__intro .em-btn { margin-top: 12px; }
.em-makers__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--em-line); }
.em-makers__list li { border-bottom: 1px solid var(--em-line); }
.em-makers__item { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: center; padding: 16px 0; color: var(--em-ink); text-decoration: none; }
.em-makers__item img { border-radius: var(--em-radius); aspect-ratio: 1; object-fit: cover; }
.em-makers__item > span { display: flex; flex-direction: column; gap: 3px; }
.em-makers__item strong { font-family: var(--em-font-display); font-size: 1.12rem; font-weight: 600; }
.em-makers__item span span { font-size: .93rem; color: var(--em-muted); }
.em-makers__item em { font-style: normal; font-weight: 700; color: var(--em-accent-dark); }
.em-makers__item:hover strong { color: var(--em-accent-dark); text-decoration: underline; }
@media (max-width: 991px) { .em-makers__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .em-makers__item { grid-template-columns: 80px 1fr; gap: 14px; } }

.em-mugs { padding-bottom: clamp(36px, 4vw, 64px); }

/* ───── Suscripción ───── */
.em-subs__box { display: grid; grid-template-columns: 1fr 1fr; background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius); overflow: hidden; }
.em-subs__body { padding: clamp(28px, 4vw, 64px); }
.em-subs__media, .em-subs__media picture { height: 100%; }
.em-subs__media img { height: 100%; object-fit: cover; min-height: 280px; }
@media (max-width: 991px) { .em-subs__box { grid-template-columns: 1fr; } .em-subs__media { order: -1; } .em-subs__media img { aspect-ratio: 16 / 9; min-height: 0; } }
.em-checks { list-style: none; margin: 20px 0 28px; padding: 0; }
.em-checks li { position: relative; padding: 0 0 10px 32px; }
.em-checks li::before { content: "\f222"; font-family: "Material Design Icons"; position: absolute; left: 0; top: -1px; color: var(--em-accent); font-size: 20px; }

/* ───── Blog ───── */
.em-journal__grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 28px 40px; }
.em-post h3 a { color: var(--em-ink); text-decoration: none; }
.em-post h3 a:hover { color: var(--em-accent-dark); text-decoration: underline; }
.em-post__media { display: block; border-radius: var(--em-radius); overflow: hidden; }
.em-post__media img { aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.em-post:hover .em-post__media img { transform: scale(1.03); }
.em-post__meta { font-size: .85rem; color: var(--em-muted); margin: 0 0 6px; }
.em-post__body p:last-child { color: var(--em-muted); font-size: .98rem; margin: 8px 0 0; }
.em-post--lead { grid-row: 1 / span 2; }
.em-post--lead .em-post__body { padding-top: 18px; }
.em-post--lead h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.em-post:not(.em-post--lead) { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; }
@media (max-width: 991px) { .em-journal__grid { grid-template-columns: 1fr; } .em-post--lead { grid-row: auto; } }
@media (max-width: 480px) { .em-post:not(.em-post--lead) { grid-template-columns: 104px 1fr; gap: 14px; } .em-post:not(.em-post--lead) .em-post__body p:last-child { display: none; } }

.em-bloglist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.em-bloglist .em-post { display: block !important; }
.em-bloglist .em-post__body { padding-top: 14px; }
@media (max-width: 991px) { .em-bloglist { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .em-bloglist { grid-template-columns: 1fr; } }

.em-article { max-width: 760px; margin: 0 auto; }
.em-article__hero { max-width: 1000px; margin: 0 auto clamp(28px, 4vw, 48px); }
.em-article__hero img { border-radius: var(--em-radius); aspect-ratio: 16 / 9; object-fit: cover; }
.em-article h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 1.7em; margin-bottom: .6em; }
.em-article ul, .em-article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.em-article li { margin-bottom: .55em; }
.em-article li::marker { color: var(--em-accent); font-weight: 700; }

/* ───── Acordeón ───── */
.em-faq-home { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
@media (max-width: 991px) { .em-faq-home { grid-template-columns: 1fr; } }
.em-accordion details { border-bottom: 1px solid #c4cabd; }
.em-accordion details:first-child { border-top: 1px solid #c4cabd; }
.em-accordion summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-family: var(--em-font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.em-accordion summary::-webkit-details-marker { display: none; }
.em-accordion summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--em-accent-dark); transition: transform .2s; }
.em-accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.em-accordion__body { padding: 0 44px 18px 0; color: #36423b; }
.em-accordion__body p:last-child { margin-bottom: 0; }

/* ───── Formularios ───── */
.em-leadbox { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.em-leadbox__media, .em-leadbox__media picture { height: 100%; }
.em-leadbox__media img { height: 100%; max-height: 860px; object-fit: cover; border-radius: var(--em-radius); }
@media (max-width: 991px) { .em-leadbox { grid-template-columns: 1fr; } .em-leadbox__media img { aspect-ratio: 16 / 10; height: auto; } }

.em-form { margin-top: 26px; }
.em-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.em-form__row--3 { grid-template-columns: 110px 1fr 1fr; }
@media (max-width: 575px) { .em-form__row, .em-form__row--3 { grid-template-columns: 1fr; } }
.em-field { margin-bottom: 18px; }
.em-field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--em-ink); }
.em-field__opt { font-weight: 400; color: var(--em-muted); }
.em-field input[type="text"], .em-field input[type="email"], .em-field input[type="tel"], .em-field select, .em-field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--em-ink); background: var(--em-surface);
  border: 1.5px solid #8d978f; border-radius: var(--em-radius); padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.em-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231b241f' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.em-field textarea { resize: vertical; min-height: 120px; }
.em-field input:focus, .em-field select:focus, .em-field textarea:focus { outline: none; border-color: var(--em-green); box-shadow: 0 0 0 3px rgba(181, 83, 42, .35); }
.em-field [aria-invalid="true"] { border-color: var(--em-error); }
.em-field__error { color: var(--em-error); font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.em-field__help { color: var(--em-muted); font-size: .88rem; margin: 6px 0 0; }
.em-field--check { display: grid; grid-template-columns: 24px 1fr; gap: 4px 10px; align-items: start; }
.em-field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--em-green); }
.em-field--check label { font-weight: 400; margin: 0; }
.em-field--check .em-field__error { grid-column: 2; }
.em-form__legal { font-size: .84rem; color: var(--em-muted); line-height: 1.5; margin-bottom: 20px; }
.em-form__alert { background: #fbeae7; border: 1.5px solid var(--em-error); color: #6d1810; border-radius: var(--em-radius); padding: 12px 16px; margin-bottom: 20px; font-weight: 600; }
.em-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ───── Catálogo y filtros ───── */
.em-filters { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; padding: 18px 20px; background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius); margin-bottom: 28px; }
.em-filters .em-field { margin: 0; flex: 1 1 170px; }
.em-filters .em-field select { min-height: 44px; padding-top: 9px; padding-bottom: 9px; }
.em-filters__count { flex: 1 1 100%; margin: 0; font-size: .92rem; color: var(--em-muted); }
.em-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.em-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1.5px solid var(--em-green); border-radius: var(--em-radius); color: var(--em-green); font-weight: 600; font-size: .93rem; text-decoration: none; }
.em-chips a:hover, .em-chips a[aria-current="page"] { background: var(--em-green); color: #fff; }
.em-empty { padding: 40px 20px; text-align: center; background: var(--em-surface); border: 1px dashed var(--em-line); border-radius: var(--em-radius); }

/* ───── Ficha de producto ───── */
.em-product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.em-product__media { position: sticky; top: 96px; }
.em-product__media img { border-radius: var(--em-radius); background: #ecebe6; }
@media (max-width: 991px) { .em-product { grid-template-columns: 1fr; } .em-product__media { position: static; max-width: 520px; } }
.em-product h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.em-product__meta { font-size: .92rem; color: var(--em-muted); margin: 0 0 10px; }
.em-product__short { font-size: 1.1rem; color: #36423b; margin: 16px 0 20px; }
.em-product__price { font-family: var(--em-font-display); font-size: 2rem; font-weight: 600; margin: 0; }
.em-product__tax { font-size: .88rem; color: var(--em-muted); margin: 2px 0 22px; }
.em-notes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; }
.em-notes li { padding: 5px 14px; border-radius: var(--em-radius); background: var(--em-tint); font-size: .92rem; font-weight: 600; color: var(--em-green); }
.em-buy { border: 1px solid var(--em-line); background: var(--em-surface); border-radius: var(--em-radius); padding: 22px; margin-bottom: 26px; }
.em-buy__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 480px) { .em-buy__row { grid-template-columns: 1fr; } }
.em-buy__actions { display: flex; gap: 12px; align-items: stretch; }
.em-qty { display: inline-flex; border: 1.5px solid #8d978f; border-radius: var(--em-radius); overflow: hidden; background: var(--em-surface); }
.em-qty button { width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.3rem; line-height: 1; color: var(--em-ink); cursor: pointer; }
.em-qty button:hover { background: var(--em-tint); }
.em-qty input { width: 46px; border: 0; text-align: center; font: inherit; font-weight: 600; color: var(--em-ink); background: transparent; -moz-appearance: textfield; padding: 0; }
.em-qty input::-webkit-outer-spin-button, .em-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.em-buy__actions .em-btn { flex: 1; }
.em-assure { list-style: none; margin: 0; padding: 0; font-size: .93rem; color: #36423b; }
.em-assure li { display: flex; gap: 10px; padding: 5px 0; }
.em-assure .mdi { color: var(--em-accent); font-size: 19px; line-height: 1.4; }
.em-roast { display: flex; gap: 5px; align-items: center; }
.em-roast i { width: 22px; height: 8px; border-radius: 2px; border: 1.5px solid var(--em-green); display: block; }
.em-roast i.on { background: var(--em-green); }
.em-roast span { margin-left: 8px; }
.em-recipe { background: var(--em-tint); border-radius: var(--em-radius); padding: clamp(22px, 3vw, 36px); }
.em-recipe dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 24px; margin: 18px 0 0; }
.em-recipe dt { font-size: .85rem; color: var(--em-muted); font-weight: 500; }
.em-recipe dd { margin: 2px 0 0; font-family: var(--em-font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.em-detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 991px) { .em-detail-grid { grid-template-columns: 1fr; } }

/* ───── Carrito y pedido ───── */
.em-cart { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 991px) { .em-cart { grid-template-columns: 1fr; } }
.em-cart__lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--em-line); }
.em-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--em-line); align-items: center; }
.em-line img { width: 84px; height: 112px; object-fit: cover; border-radius: var(--em-radius); background: #ecebe6; }
.em-line__name { font-family: var(--em-font-display); font-weight: 600; font-size: 1.05rem; color: var(--em-ink); text-decoration: none; display: block; line-height: 1.25; }
.em-line__name:hover { text-decoration: underline; }
.em-line__variant { font-size: .88rem; color: var(--em-muted); margin: 3px 0 10px; }
.em-line__controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.em-line__controls .em-qty button { width: 38px; min-height: 38px; }
.em-line__total { font-family: var(--em-font-display); font-weight: 600; font-size: 1.08rem; white-space: nowrap; align-self: start; padding-top: 2px; }
@media (max-width: 480px) { .em-line { grid-template-columns: 64px 1fr; } .em-line img { width: 64px; height: 85px; } .em-line__total { grid-column: 2; } }
.em-summary { background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius); padding: 24px; position: sticky; top: 96px; }
.em-summary h2 { font-size: 1.3rem; margin-bottom: 16px; }
.em-summary dl { margin: 0; }
.em-summary dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.em-summary dt { font-weight: 400; color: #36423b; }
.em-summary dd { margin: 0; font-weight: 600; white-space: nowrap; }
.em-summary .em-summary__total { border-top: 1px solid var(--em-line); margin-top: 8px; padding-top: 14px; font-size: 1.2rem; }
.em-summary .em-summary__total dt, .em-summary .em-summary__total dd { font-family: var(--em-font-display); font-weight: 600; color: var(--em-ink); }
.em-summary__note { font-size: .86rem; color: var(--em-muted); margin: 12px 0 18px; }
.em-summary ul { list-style: none; margin: 0 0 12px; padding: 0; font-size: .93rem; }
.em-summary ul li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
@media (max-width: 991px) { .em-summary { position: static; } }

.em-notice { background: var(--em-tint); border-left: 4px solid var(--em-green); border-radius: 0 var(--em-radius) var(--em-radius) 0; padding: 16px 20px; margin: 0 0 24px; font-size: .97rem; }
.em-notice p:last-child { margin: 0; }
.em-placeholder { background: #fff3cd; color: #5c4400; padding: 1px 6px; border-radius: 3px; font-size: .92em; }

/* ───── Páginas de texto y legales ───── */
.em-legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.em-legal__nav { position: sticky; top: 96px; font-size: .93rem; border-left: 2px solid var(--em-line); padding-left: 18px; }
.em-legal__nav p { font-weight: 700; margin-bottom: 8px; }
.em-legal__nav ul { list-style: none; margin: 0; padding: 0; }
.em-legal__nav li { margin-bottom: 7px; }
.em-legal__nav a { color: var(--em-muted); text-decoration: none; }
.em-legal__nav a:hover, .em-legal__nav a[aria-current="page"] { color: var(--em-accent-dark); text-decoration: underline; }
.em-legal__body h2 { font-size: 1.45rem; margin: 1.9em 0 .6em; scroll-margin-top: 100px; }
.em-legal__body h2:first-child { margin-top: 0; }
.em-legal__body h3 { margin: 1.4em 0 .4em; }
.em-legal__body ul, .em-legal__body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.em-legal__body li { margin-bottom: .45em; }
.em-legal__updated { font-size: .9rem; color: var(--em-muted); }
@media (max-width: 991px) { .em-legal { grid-template-columns: 1fr; } .em-legal__nav { position: static; order: 2; } }

.em-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.em-cols--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 991px) { .em-cols { grid-template-columns: 1fr; } }
.em-fact { border-top: 3px solid var(--em-green); padding-top: 16px; }
.em-fact h3 { margin-bottom: 8px; }
.em-fact p { color: #36423b; font-size: .98rem; margin: 0; }
.em-origin { display: grid; grid-template-columns: 200px 1fr; gap: 12px 32px; padding: 26px 0; border-top: 1px solid var(--em-line); }
.em-origin:last-child { border-bottom: 1px solid var(--em-line); }
.em-origin h3 { font-size: 1.3rem; }
.em-origin p { margin: 0 0 .6em; }
.em-origin p:last-child { margin: 0; }
@media (max-width: 767px) { .em-origin { grid-template-columns: 1fr; } }
.em-method { background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius); padding: clamp(20px, 3vw, 32px); }
.em-method + .em-method { margin-top: 22px; }
.em-method__head { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; align-items: baseline; margin-bottom: 14px; }
.em-method__head p { margin: 0; color: var(--em-muted); font-size: .93rem; }
.em-method dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 20px; margin: 0 0 16px; padding: 14px 0; border-top: 1px solid var(--em-line); border-bottom: 1px solid var(--em-line); }
.em-method dt { font-size: .82rem; color: var(--em-muted); font-weight: 500; }
.em-method dd { margin: 0; font-weight: 700; }
.em-method ol { padding-left: 1.3em; margin: 0; }
.em-method li { margin-bottom: .4em; }
@media (max-width: 767px) { .em-method dl { grid-template-columns: 1fr 1fr; } }
.em-gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.em-gallery img { border-radius: var(--em-radius); height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 767px) { .em-gallery { grid-template-columns: 1fr 1fr; } .em-gallery > :first-child { grid-column: 1 / -1; } }
.em-contactcard { background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius); padding: 24px; }
.em-contactcard + .em-contactcard { margin-top: 16px; }
.em-contactcard h2, .em-contactcard h3 { font-size: 1.15rem; margin-bottom: 8px; }
.em-contactcard p { margin: 0; font-size: .97rem; color: #36423b; }
.em-cta-band { background: var(--em-tint); border-radius: var(--em-radius); padding: clamp(28px, 4vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.em-cta-band .em-h2 { max-width: 24ch; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.em-cta-band p { margin: 8px 0 0; color: #36423b; max-width: 56ch; }
.em-section--tint .em-cta-band { background: var(--em-surface); }

.em-404 { text-align: center; padding: clamp(64px, 10vw, 140px) 0; }
.em-404 p { max-width: 52ch; margin: 18px auto 28px; color: var(--em-muted); font-size: 1.1rem; }
.em-404 .em-hero__cta { justify-content: center; }

/* ───── Pie ───── */
.em-footer { background: var(--em-green); color: #d5ddd6; padding: clamp(48px, 6vw, 80px) 0 28px; font-size: .96rem; }
.em-footer a, .em-footer .em-linklike { color: #e9eee8; text-decoration: none; }
.em-footer a:hover, .em-footer a:focus, .em-footer .em-linklike:hover { color: #fff; text-decoration: underline; }
.em-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px 40px; }
.em-footer__brand p { margin: 18px 0; max-width: 38ch; color: #c3cec5; }
.em-footer .em-logo { height: 40px; }
.em-footer__title { font-family: var(--em-font-display); font-size: 1.02rem; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.em-footer ul { list-style: none; margin: 0; padding: 0; }
.em-footer nav li { margin-bottom: 4px; }
.em-footer nav li a, .em-footer nav li button { display: inline-block; padding: 4px 0; }
.em-footer__contact li { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.em-footer__contact .mdi { color: #e0a080; }
.em-footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; font-size: .88rem; color: #b9c6bc; }
.em-footer__bottom p { margin: 0; }
@media (max-width: 991px) { .em-footer__grid { grid-template-columns: 1fr 1fr; } .em-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .em-footer__grid { grid-template-columns: 1fr; } }

/* ───── Cookies ───── */
.em-cookie { position: fixed; left: 16px; bottom: 16px; z-index: var(--z-cookie); width: min(560px, calc(100vw - 32px)); background: var(--em-surface); border: 1px solid var(--em-line); border-radius: var(--em-radius); box-shadow: 0 16px 48px rgba(31,51,41,.22); padding: 18px 20px; }
.em-cookie__text { font-size: .9rem; line-height: 1.5; margin: 0 0 14px; color: #36423b; }
.em-cookie__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 575px) { .em-cookie { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 14px; } .em-cookie__text { font-size: .85rem; margin-bottom: 10px; } .em-cookie__actions .em-btn { flex: 1 1 auto; padding-left: 10px; padding-right: 10px; } }

.em-modal { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: 16px; }
.em-modal[hidden] { display: none; }
.em-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 32, 26, .55); }
.em-modal__dialog { position: relative; background: var(--em-surface); border-radius: var(--em-radius); width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: clamp(22px, 4vw, 36px); box-shadow: 0 24px 64px rgba(0,0,0,.3); }
.em-modal__title { font-size: 1.5rem; padding-right: 40px; }
.em-modal__dialog > p { font-size: .95rem; color: #36423b; }
.em-modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; color: var(--em-ink); cursor: pointer; border-radius: var(--em-radius); }
.em-modal__close:hover { background: var(--em-tint); }
.em-modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }
.em-cookie-cat { border-top: 1px solid var(--em-line); padding: 16px 0 4px; }
.em-cookie-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 6px; }
.em-cookie-cat h3 { font-size: 1.05rem; }
.em-cookie-cat p { font-size: .9rem; color: #36423b; line-height: 1.5; }
.em-cookie-cat__fixed { font-size: .82rem; font-weight: 600; color: var(--em-muted); white-space: nowrap; }
.em-switch { position: relative; display: inline-block; width: 52px; height: 30px; margin: 0; cursor: pointer; flex: 0 0 auto; }
.em-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.em-switch__track { position: absolute; inset: 0; border-radius: 15px; background: #8d978f; transition: background-color .2s; }
.em-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.em-switch input:checked + .em-switch__track { background: var(--em-green); }
.em-switch input:checked + .em-switch__track::after { transform: translateX(22px); }
.em-switch input:focus-visible + .em-switch__track { outline: 3px solid var(--em-accent); outline-offset: 2px; }

.em-toast { position: fixed; right: 16px; top: 84px; z-index: var(--z-toast); background: var(--em-green); color: #fff; padding: 14px 18px; border-radius: var(--em-radius); box-shadow: var(--em-shadow); font-weight: 600; font-size: .95rem; max-width: min(360px, calc(100vw - 32px)); }
.em-toast a { color: #fff; margin-left: 10px; }
.em-toast[hidden] { display: none; }

/* Aparición suave al hacer scroll (solo si el usuario no pide menos movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .em-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
  .em-reveal.is-in { opacity: 1; transform: none; }
}

.ui-to-top { display: none !important; }

/* Ajustes sobre la plantilla */
@media (min-width: 1200px) { .container { max-width: 1200px; } }
.em-navbar .rd-navbar-panel a.em-cart-link, .em-navbar .rd-navbar-nav-wrap__element a.em-cart-link { color: var(--em-ink); }
.em-navbar .rd-navbar-panel a.em-cart-link:hover, .em-navbar .rd-navbar-nav-wrap__element a.em-cart-link:hover, .em-navbar .rd-navbar-nav-wrap__element a.em-cart-link:focus { color: var(--em-green); }
.em-navbar .em-cart-link .em-cart-count { color: #fff; }
code, .code, button, input, select, textarea, .button, table { font-family: var(--em-font-body); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.em-navbar.rd-navbar-static:not(.rd-navbar--is-stuck) { position: relative; }
.em-navbar.rd-navbar-static .rd-navbar-nav > li.rd-navbar--has-dropdown > a::after { display: inline-block; content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); position: static; background: none; opacity: .7; }
.em-navbar.rd-navbar-static .rd-navbar-nav > li > .rd-navbar-submenu-toggle { display: none; }
.em-cookie__actions { margin-top: 0; }
.em-cookie p + .em-cookie__actions { margin-top: 0; }
.em-hero__content { max-width: 640px; }
.em-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); max-width: 19ch; }
h1, h2, h3, h4, h5, h6 { font-style: normal; }
[id] { scroll-margin-top: 96px; }
.em-form button[type="submit"] { margin-top: 0; }
.em-form__legal + .em-btn { margin-top: 0; }
html.rd-navbar-fixed-linked .page { padding-top: 60px; }
html.rd-navbar-fixed-linked .em-topbar { margin-top: 0; }
.em-navbar.rd-navbar-fixed .rd-navbar-panel { padding: 0 8px; }
.em-navbar.rd-navbar-fixed .rd-navbar-toggle { left: auto; top: auto; flex: 0 0 48px; }
.em-navbar.rd-navbar-fixed .rd-navbar-submenu-toggle { width: 52px; height: 52px; top: 0; right: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.em-navbar.rd-navbar-fixed .rd-navbar-submenu-toggle::after { content: ""; font-family: inherit; position: static; width: 9px; height: 9px; border-right: 2px solid var(--em-ink); border-bottom: 2px solid var(--em-ink); transform: rotate(45deg); transition: transform .2s; display: block; }
.em-navbar.rd-navbar-fixed li.opened > .rd-navbar-submenu-toggle::after { transform: rotate(-135deg); }
.em-navbar.rd-navbar-fixed .rd-navbar-nav > li { position: relative; }
.em-navbar.rd-navbar-fixed .rd-navbar-submenu-toggle { position: absolute; }
.em-prose ul, .em-article ul, .em-legal__body ul, .em-accordion__body ul { list-style: disc outside; }
.em-prose ol, .em-article ol, .em-legal__body ol, .em-method ol, .em-accordion__body ol { list-style: decimal outside; }
.em-prose li, .em-article li, .em-legal__body li, .em-method li { display: list-item; padding-left: 4px; }
.em-method li::marker { color: var(--em-accent-dark); font-weight: 700; }
.em-legal__body .em-accordion { list-style: none; }
/* Los hijos de grid no deben ensancharse por tablas con ancho mínimo */
.em-legal > *, .em-split > *, .em-cart > *, .em-detail-grid > *, .em-product > *, .em-faq-home > *, .em-leadbox > *, .em-makers__grid > *, .em-subs__box > *, .em-journal__grid > *, .em-pagehead--split .container > * { min-width: 0; }
.em-legal__body .em-table { min-width: 820px; }
.em-pagehead .em-post__meta { margin-bottom: 14px; }
@media (min-width: 768px) and (max-width: 991px) { .em-grid--4, .em-grid--3 { grid-template-columns: repeat(3, 1fr); } }
