/* =========================================================================
   Eventos & Matrimonios · Componentes y helpers v1.0
   Requiere em-tokens.css. Todas las clases llevan prefijo .em- para no
   chocar con Elementor, HivePress ni ListingHive.
   ========================================================================= */

/* ---------- Base ------------------------------------------------------- */
.em-scope, body.em-base {
  background: var(--em-bg);
  color: var(--em-text);
  font-family: var(--em-font-sans);
  font-size: var(--em-fs-body);
  line-height: var(--em-lh-body);
  -webkit-font-smoothing: antialiased;
}
.em-scope :focus-visible, body.em-base :focus-visible {
  outline: 2px solid var(--em-focus); outline-offset: 3px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .em-scope *, body.em-base * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Tipografía: clases helper ---------------------------------- */
/* Úsalas en el campo "Clases CSS" de Elementor o directamente en HTML.
   La etiqueta semántica (h1…h6) se elige por jerarquía; la clase, por aspecto. */
.em-display, .em-h1, .em-h2, .em-h3, .em-h4 {
  font-family: var(--em-font-serif); font-weight: 700; color: var(--em-text);
  text-wrap: balance; margin: 0;
}
.em-display { font-size: var(--em-fs-display); line-height: 1.05; letter-spacing: -.01em; }
.em-h1      { font-size: var(--em-fs-h1); line-height: var(--em-lh-tight); }
.em-h2      { font-size: var(--em-fs-h2); line-height: 1.15; }
.em-h3      { font-size: var(--em-fs-h3); line-height: var(--em-lh-title); }
.em-h4      { font-size: var(--em-fs-h4); line-height: var(--em-lh-title); }
.em-h5      { font-family: var(--em-font-sans); font-weight: var(--em-fw-semi); font-size: var(--em-fs-h5); line-height: 1.3; margin: 0; }
.em-h6, .em-overline {
  font-family: var(--em-font-sans); font-weight: var(--em-fw-semi); font-size: var(--em-fs-h6);
  letter-spacing: var(--em-ls-overline); text-transform: uppercase; color: var(--em-primary); margin: 0;
}
.em-lead   { font-size: var(--em-fs-lead); line-height: 1.55; color: var(--em-text-2); max-width: var(--em-measure); }
.em-p      { font-size: var(--em-fs-body); line-height: var(--em-lh-body); max-width: var(--em-measure); }
.em-quote  {
  font-family: var(--em-font-serif); font-weight: 700; font-size: var(--em-fs-quote); line-height: 1.35;
  border-left: 2px solid var(--em-primary); padding-left: var(--em-space-4); margin: 0;
}
.em-quote cite { display: block; margin-top: var(--em-space-2); font: var(--em-fw-semi) var(--em-fs-small)/1.4 var(--em-font-sans); color: var(--em-text-2); font-style: normal; }
.em-review { font-size: var(--em-fs-review); line-height: 1.55; }
.em-date   { font-size: var(--em-fs-date); font-weight: var(--em-fw-medium); color: var(--em-text-2); font-variant-numeric: tabular-nums; }
.em-price  { font-size: var(--em-fs-price); font-weight: var(--em-fw-semi); font-variant-numeric: tabular-nums; }
.em-stat   { font-family: var(--em-font-serif); font-weight: 700; font-size: var(--em-fs-stat); line-height: 1; }
.em-label  { font-size: var(--em-fs-label); font-weight: var(--em-fw-semi); }
.em-small  { font-size: var(--em-fs-small); line-height: 1.4; color: var(--em-text-2); }
.em-muted  { color: var(--em-text-2); }
.em-link   { color: var(--em-link); font-weight: var(--em-fw-medium); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.em-link:hover { text-decoration-thickness: 2px; }
.em-stars  { color: var(--em-star); letter-spacing: 1px; }
.em-tabular { font-variant-numeric: tabular-nums; }

/* Aplicar la escala a etiquetas sueltas dentro de un contenedor (p. ej. artículos del blog) */
.em-prose { max-width: var(--em-measure); }
.em-prose h1 { font: 700 var(--em-fs-h1)/1.1 var(--em-font-serif); }
.em-prose h2 { font: 700 var(--em-fs-h2)/1.15 var(--em-font-serif); margin-top: 1.6em; }
.em-prose h3 { font: 700 var(--em-fs-h3)/1.2 var(--em-font-serif); margin-top: 1.4em; }
.em-prose h4 { font: 700 var(--em-fs-h4)/1.2 var(--em-font-serif); }
.em-prose h5 { font: 600 var(--em-fs-h5)/1.3 var(--em-font-sans); }
.em-prose h6 { font: 600 var(--em-fs-h6)/1.3 var(--em-font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--em-primary); }
.em-prose p, .em-prose li { font-size: var(--em-fs-body); line-height: var(--em-lh-body); }
.em-prose blockquote { font: 700 var(--em-fs-quote)/1.35 var(--em-font-serif); border-left: 2px solid var(--em-primary); padding-left: 16px; margin-inline: 0; }
.em-prose a { color: var(--em-link); text-underline-offset: 3px; }

/* ---------- Secciones y fondos ----------------------------------------- */
/* Cada fondo redefine los tokens de texto localmente: todo lo que va dentro
   se ajusta solo. Probado en claro; en oscuro solo se usan bg/surface/alt. */
.em-section { padding-block: var(--em-section-y); padding-inline: var(--em-gutter); background: var(--em-bg); color: var(--em-text); }
.em-container { max-width: var(--em-container); margin-inline: auto; }
.em-section--surface { background: var(--em-surface); }
.em-section--beige {
  background: var(--em-surface-alt);
  --em-text-2: var(--em-olive-800);    /* el gris baja a 3,8:1 sobre beige */
  --em-link: var(--em-olive-800);
}
[data-em-theme="dark"] .em-section--beige { --em-text-2: #B3B6A8; --em-link: #C3CFAA; }
.em-section--olive {
  background: var(--em-olive-700); color: var(--em-white);
  --em-text: var(--em-white); --em-text-2: var(--em-beige); --em-link: var(--em-white);
  --em-primary: var(--em-smoke); --em-on-primary: var(--em-olive-700); --em-primary-hover: var(--em-white);
  --em-border: rgba(255,255,255,.3); --em-focus: var(--em-white);
}
.em-section--night {
  background: var(--em-olive-900); color: var(--em-smoke);
  --em-text: var(--em-smoke); --em-text-2: var(--em-olive-300); --em-link: var(--em-olive-300);
  --em-primary: var(--em-sand); --em-on-primary: var(--em-olive-900); --em-primary-hover: var(--em-beige);
  --em-border: rgba(255,255,255,.18); --em-focus: var(--em-sand);
}
.em-section--elite {
  background: var(--em-sand); color: var(--em-olive-900);
  --em-text: var(--em-olive-900); --em-text-2: var(--em-olive-800); --em-link: var(--em-olive-900);
  --em-primary: var(--em-olive-900); --em-on-primary: var(--em-smoke);
}

/* ---------- Botones ---------------------------------------------------- */
.em-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--em-btn-h); padding: 0 20px; border-radius: var(--em-radius-md);
  font: var(--em-fw-semi) var(--em-fs-button)/1 var(--em-font-sans);
  text-transform: none; letter-spacing: 0; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--em-dur) var(--em-ease), color var(--em-dur) var(--em-ease), border-color var(--em-dur) var(--em-ease);
}
.em-btn svg { width: 18px; height: 18px; flex: none; }
.em-btn--primary   { background: var(--em-primary); color: var(--em-on-primary); }
.em-btn--primary:hover { background: var(--em-primary-hover); }
.em-btn--secondary { background: transparent; color: var(--em-primary); border-color: var(--em-primary); }
.em-btn--secondary:hover { background: color-mix(in srgb, var(--em-primary) 8%, transparent); }
.em-btn--ghost     { background: transparent; color: var(--em-link); min-height: auto; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.em-btn--whatsapp  { background: transparent; color: var(--em-whatsapp); border-color: var(--em-whatsapp); }
.em-btn--sm        { min-height: var(--em-btn-h-sm); padding: 0 14px; font-size: .8125rem; }
.em-btn--block     { width: 100%; }
.em-btn--icon      { width: var(--em-btn-h); padding: 0; }
.em-btn[disabled], .em-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- Chips y badges --------------------------------------------- */
.em-chip {
  display: inline-flex; align-items: center; gap: 6px; height: var(--em-chip-h); padding: 0 12px;
  border-radius: var(--em-radius-pill); border: 1px solid var(--em-border); background: var(--em-surface);
  color: var(--em-text); font-size: .8125rem; white-space: nowrap; cursor: pointer;
}
.em-chip[aria-pressed="true"], .em-chip.is-active { background: var(--em-text); color: var(--em-bg); border-color: var(--em-text); }
.em-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.em-chips::-webkit-scrollbar { display: none; }

.em-badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px 0 7px;
  border-radius: var(--em-radius-pill); font: var(--em-fw-semi) .6875rem/1 var(--em-font-sans); letter-spacing: .02em;
}
.em-badge svg { width: 13px; height: 13px; }
.em-badge--verified { background: var(--em-olive-700); color: var(--em-white); }
.em-badge--elite    { background: var(--em-olive-900); color: var(--em-sand); }
.em-badge--premium  { background: var(--em-sand); color: var(--em-olive-900); }
.em-badge--new      { background: var(--em-surface-alt); color: var(--em-primary); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Card de proveedor (única) ---------------------------------- */
.em-card { position: relative; display: flex; flex-direction: column; background: var(--em-surface); border: 1px solid var(--em-border); border-radius: var(--em-radius-lg); overflow: hidden; color: var(--em-text); text-decoration: none; transition: box-shadow var(--em-dur) var(--em-ease), transform var(--em-dur) var(--em-ease); }
.em-card:hover { box-shadow: var(--em-shadow-md); transform: translateY(-2px); }
.em-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--em-surface-alt); }
.em-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--em-focus-x, 50%) var(--em-focus-y, 50%); display: block; }
.em-card__badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.em-card__fav { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #2A2F1F; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.em-card__fav[aria-pressed="true"] svg { fill: #B5475A; stroke: #B5475A; }
.em-card__body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.em-card__title { font: 700 var(--em-fs-h4)/1.15 var(--em-font-serif); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.em-card__meta { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--em-text-2); }
.em-card__meta b { color: var(--em-text); }
.em-card__meta svg { width: 14px; height: 14px; }
.em-card__desc { margin: 2px 0 0; font-size: .8125rem; line-height: 1.45; color: var(--em-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* máx. 90 caracteres */
.em-card .em-card__key { display: inline-flex; align-items: center; gap: 5px; font-size: .8125rem; color: var(--em-text-2); white-space: nowrap; }
.em-card .em-card__key svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Dato clave por categoría: lugares/catering = invitados · foto/video/música = horas · planners = anticipación */
.em-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--em-border); font-size: .8125rem; }
.em-card__foot .em-price { font-size: .9375rem; }
.em-card a::after { content: ""; position: absolute; inset: 0; } /* toda la card clicable */

.em-grid { display: grid; gap: var(--em-space-4); grid-template-columns: 1fr; }
@media (min-width: 768px)  { .em-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .em-grid { grid-template-columns: repeat(4, 1fr); gap: var(--em-space-6); } }

/* ---------- Sello "Proveedor Autorizado" ------------------------------- */
.em-seal { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--em-border); border-radius: var(--em-radius-md); background: var(--em-surface); }
.em-seal__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--em-olive-700); color: #fff; display: grid; place-items: center; flex: none; }
.em-seal__title { font-weight: var(--em-fw-semi); font-size: .8125rem; display: block; }
.em-seal__text { font-size: .75rem; color: var(--em-text-2); }

/* ---------- Formularios ------------------------------------------------ */
.em-field { display: grid; gap: 6px; }
.em-input, .em-select, .em-textarea {
  width: 100%; min-height: var(--em-input-h); padding: 0 14px; border-radius: var(--em-radius-sm);
  border: 1px solid var(--em-border); background: var(--em-surface); color: var(--em-text);
  font: 400 .9375rem/1.4 var(--em-font-sans);
}
.em-textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.em-input::placeholder, .em-textarea::placeholder { color: var(--em-text-2); opacity: 1; }
.em-input:focus, .em-select:focus, .em-textarea:focus { outline: none; border: 2px solid var(--em-focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--em-focus) 15%, transparent); }
.em-field--error .em-input { border: 2px solid var(--em-error); }
.em-help { font-size: .75rem; color: var(--em-text-2); }
.em-field--error .em-help { color: var(--em-error); }
.em-check { accent-color: var(--em-primary); width: 20px; height: 20px; }

.em-segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--em-surface-alt); border-radius: var(--em-radius-md); padding: 4px; }
.em-segmented button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--em-text); font: 500 .8125rem var(--em-font-sans); cursor: pointer; }
.em-segmented button[aria-pressed="true"] { background: var(--em-surface); font-weight: 600; box-shadow: var(--em-shadow-sm); }

/* ---------- Buscador tipo píldora -------------------------------------- */
.em-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 18px; border-radius: var(--em-radius-pill); background: var(--em-surface); border: 1px solid var(--em-border); box-shadow: var(--em-shadow-sm); }
.em-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 .9375rem var(--em-font-sans); color: var(--em-text); text-overflow: ellipsis; }
.em-search input:focus { outline: none; }
.em-search button { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--em-primary); color: var(--em-on-primary); display: grid; place-items: center; cursor: pointer; }

/* ---------- FAQ (acordeón con <details>) ------------------------------- */
.em-faq { border-top: 1px solid var(--em-border); }
.em-faq details { border-bottom: 1px solid var(--em-border); }
.em-faq summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font: 600 var(--em-fs-h5)/1.35 var(--em-font-sans); color: var(--em-text); }
.em-faq summary::-webkit-details-marker { display: none; }
.em-faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--em-border);
  display: grid; place-items: center; color: var(--em-primary); font: 400 18px/1 var(--em-font-sans);
  transition: transform var(--em-dur) var(--em-ease);
}
.em-faq details[open] summary::after { transform: rotate(45deg); background: var(--em-primary); color: var(--em-on-primary); border-color: var(--em-primary); }
.em-faq .em-faq__a { padding: 0 44px 16px 0; font-size: var(--em-fs-body); line-height: var(--em-lh-body); }
.em-faq-layout { display: grid; gap: var(--em-space-8); }
@media (min-width: 1024px) { .em-faq-layout { grid-template-columns: 1fr 2fr; } }

/* ---------- Carrusel (scroll-snap nativo + em-carousel.js opcional) ---- */
.em-carousel { position: relative; display: grid; gap: var(--em-space-3); }
.em-carousel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.em-carousel__track {
  --em-per-view: 1.3;
  display: grid; grid-auto-flow: column; gap: var(--em-space-3);
  grid-auto-columns: calc((100% - (var(--em-per-view) - 1) * var(--em-space-3)) / var(--em-per-view));
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  margin-inline: calc(var(--em-gutter) * -1); padding-inline: var(--em-gutter); scroll-padding-inline: var(--em-gutter);
}
.em-carousel__track::-webkit-scrollbar { display: none; }
.em-carousel__track > * { scroll-snap-align: start; }
@media (min-width: 768px)  { .em-carousel__track { --em-per-view: 2.3; } }
@media (min-width: 1024px) { .em-carousel__track { --em-per-view: 4; gap: var(--em-space-4); } }
.em-carousel--stories .em-carousel__track { --em-per-view: 2.2; }
@media (min-width: 768px)  { .em-carousel--stories .em-carousel__track { --em-per-view: 3.3; } }
@media (min-width: 1024px) { .em-carousel--stories .em-carousel__track { --em-per-view: 5; } }
.em-carousel__arrows { display: none; gap: 8px; }
@media (hover: hover) and (min-width: 1024px) { .em-carousel__arrows { display: flex; } }
.em-carousel__arrows button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--em-border); background: var(--em-surface); color: var(--em-text); display: grid; place-items: center; cursor: pointer; }
.em-carousel__arrows button:disabled { opacity: .35; cursor: default; }
.em-carousel__dots { display: flex; justify-content: center; gap: 6px; }
.em-carousel__dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--em-border); transition: width var(--em-dur); }
.em-carousel__dots i.is-active { width: 18px; background: var(--em-primary); }
.em-story { position: relative; aspect-ratio: 4 / 5; border-radius: var(--em-radius-lg); overflow: hidden; color: #fff; }
.em-story img { width: 100%; height: 100%; object-fit: cover; object-position: var(--em-focus-x, 50%) var(--em-focus-y, 50%); }
.em-story::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(42,47,31,.85)); }
.em-story__cap { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; font-size: .75rem; }
.em-story__cap b { display: block; font: 700 1.1875rem/1.1 var(--em-font-serif); }

/* ---------- Barra inferior (solo cuentas) ------------------------------ */
/* Mostrar solo si <body> tiene .em-account (ver functions.php) y < 768 px. */
.em-tabbar { display: none; }
@media (max-width: 767px) {
  body.em-account .em-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0;
    z-index: var(--em-z-tabbar); background: var(--em-surface); border-top: 1px solid var(--em-border);
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  body.em-account { padding-bottom: calc(var(--em-tabbar-h) + env(safe-area-inset-bottom, 0px)); }
}
.em-tabbar a { display: grid; justify-items: center; gap: 2px; min-height: var(--em-tap); font-size: .6875rem; color: var(--em-text-2); text-decoration: none; }
.em-tabbar a[aria-current="page"] { color: var(--em-primary); font-weight: 600; }
.em-tabbar svg { width: 22px; height: 22px; }

/* ---------- Barra fija de acción (ficha) ------------------------------- */
.em-sticky-cta { position: sticky; bottom: 0; z-index: var(--em-z-tabbar); display: flex; gap: 10px; align-items: center; padding: 10px var(--em-gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--em-surface); border-top: 1px solid var(--em-border); }
.em-sticky-cta__price { flex: 1 1 auto; min-width: 0; font-size: .75rem; color: var(--em-text-2); line-height: 1.25; }
.em-sticky-cta__price b { display: block; font-size: 1rem; color: var(--em-text); white-space: nowrap; }
@media (min-width: 1024px) { .em-sticky-cta { display: none; } }

/* ---------- Bottom sheet ---------------------------------------------- */
.em-sheet { position: fixed; inset: auto 0 0 0; z-index: var(--em-z-sheet); background: var(--em-bg); border-radius: 22px 22px 0 0; padding: 10px var(--em-gutter) calc(16px + env(safe-area-inset-bottom, 0px)); max-height: 88vh; overflow-y: auto; box-shadow: var(--em-shadow-lg); }
.em-sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--em-border); margin: 0 auto 12px; }
.em-scrim { position: fixed; inset: 0; z-index: calc(var(--em-z-sheet) - 1); background: var(--em-overlay); }
@media (min-width: 768px) { .em-sheet { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(560px, 92vw); border-radius: var(--em-radius-lg); } .em-sheet::before { display: none; } }
.em-progress { height: 4px; border-radius: 2px; background: var(--em-border); overflow: hidden; }
.em-progress > i { display: block; height: 100%; background: var(--em-primary); width: var(--em-value, 0%); }

/* ---------- Estados: toast, vacío, skeleton ---------------------------- */
.em-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--em-tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: var(--em-z-toast); display: flex; align-items: center; gap: 12px; min-width: min(360px, 92vw); padding: 12px 16px; border-radius: var(--em-radius-md); background: var(--em-olive-900); color: var(--em-smoke); font-size: .8125rem; box-shadow: var(--em-shadow-lg); }
.em-toast button { margin-left: auto; background: none; border: 0; color: var(--em-sand); font-weight: 600; cursor: pointer; }
.em-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: var(--em-space-10) var(--em-space-4); }
.em-empty__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--em-rose); color: var(--em-olive-900); display: grid; place-items: center; }
.em-skeleton { background: linear-gradient(90deg, var(--em-skeleton-a) 0%, var(--em-skeleton-b) 50%, var(--em-skeleton-a) 100%); background-size: 200% 100%; border-radius: var(--em-radius-sm); animation: em-sk 1.4s ease-in-out infinite; }
@keyframes em-sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- Header público --------------------------------------------- */
.em-header { position: sticky; top: 0; z-index: var(--em-z-header); height: var(--em-header-h); display: flex; align-items: center; gap: 16px; padding-inline: var(--em-gutter); background: var(--em-olive-700); color: var(--em-white); }
.em-subnav { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--em-gutter); background: var(--em-surface); border-bottom: 1px solid var(--em-border); font-size: .875rem; white-space: nowrap; }
.em-subnav a { color: var(--em-text-2); text-decoration: none; }
.em-subnav a[aria-current="page"] { color: var(--em-text); font-weight: 600; }
@media (min-width: 1024px) { .em-subnav { display: none; } }

/* ---------- Utilidades de imagen con punto focal ----------------------- */
/* <img class="em-focus" style="--em-focus-x:85%;--em-focus-y:40%"> */
.em-focus { object-fit: cover; object-position: var(--em-focus-x, 50%) var(--em-focus-y, 50%); }
.em-ratio-4x3 { aspect-ratio: 4 / 3; } .em-ratio-4x5 { aspect-ratio: 4 / 5; } .em-ratio-1x1 { aspect-ratio: 1; } .em-ratio-16x9 { aspect-ratio: 16 / 9; }
.em-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Menú off-canvas (mobile y tablet) -------------------------
   90 % del ancho en mobile, máximo 420 px. Se abre con [data-em-menu-open]
   y se cierra con la X, el fondo, Escape o al elegir un enlace (em-menu.js). */
.em-menu-scrim { position: fixed; inset: 0; z-index: calc(var(--em-z-sheet) - 1); background: var(--em-overlay); opacity: 0; visibility: hidden; transition: opacity var(--em-dur-slow) var(--em-ease), visibility var(--em-dur-slow); }
.em-menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--em-z-sheet); width: min(90vw, 420px); background: var(--em-bg); color: var(--em-text); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; border-radius: 20px 0 0 20px; box-shadow: -14px 0 34px rgba(0,0,0,.2); transform: translateX(102%); visibility: hidden; transition: transform var(--em-dur-slow) var(--em-ease), visibility var(--em-dur-slow); padding-bottom: env(safe-area-inset-bottom, 0px); }
.em-menu-open .em-menu { transform: none; visibility: visible; }
.em-menu-open .em-menu-scrim { opacity: 1; visibility: visible; }
.em-menu-open { overflow: hidden; }
.em-menu__head { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--em-border); }
.em-menu__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--em-border); background: var(--em-surface); color: var(--em-text); display: grid; place-items: center; cursor: pointer; }
.em-menu__account { margin: 14px 16px 4px; padding: 14px; border-radius: var(--em-radius-lg); background: var(--em-surface-alt); display: grid; gap: 10px; }
.em-menu__nav { display: grid; padding: 8px; }
.em-menu__nav a { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; min-height: 52px; padding: 4px 8px; border-radius: var(--em-radius-md); color: var(--em-text); text-decoration: none; font-weight: var(--em-fw-medium); }
.em-menu__nav a:hover, .em-menu__nav a[aria-current="page"] { background: var(--em-surface-alt); }
.em-menu__nav a[aria-current="page"] { font-weight: var(--em-fw-semi); }
.em-menu__icon { width: 38px; height: 38px; border-radius: var(--em-radius-md); background: var(--em-surface); border: 1px solid var(--em-border); display: grid; place-items: center; color: var(--em-primary); }
.em-menu__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--em-rose); color: var(--em-olive-900); font-size: .6875rem; font-weight: 700; display: grid; place-items: center; }
.em-menu__pro { margin: 8px 16px; padding: 16px; border-radius: var(--em-radius-lg); background: var(--em-olive-700); color: #fff; display: grid; gap: 8px; }
.em-menu__foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--em-border); display: grid; gap: 8px; font-size: .75rem; color: var(--em-text-2); }
@media (min-width: 1024px) { .em-menu, .em-menu-scrim, [data-em-menu-open] { display: none; } }
@media (prefers-reduced-motion: reduce) { .em-menu, .em-menu-scrim { transition: none; } }

/* ---------- Migas de pan (todas las páginas excepto el home) ----------
   Acompañar con JSON-LD BreadcrumbList (AIOSEO ya lo genera). */
.em-breadcrumb { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; padding-block: 12px 4px; font: var(--em-fw-medium) .8125rem/1.3 var(--em-font-sans); color: var(--em-text-2); }
.em-breadcrumb::-webkit-scrollbar { display: none; }
.em-breadcrumb a { color: var(--em-text-2); text-decoration: none; flex: none; }
.em-breadcrumb a:hover { color: var(--em-link); text-decoration: underline; text-underline-offset: 3px; }
.em-breadcrumb svg { width: 13px; height: 13px; flex: none; opacity: .55; fill: none; stroke: currentColor; stroke-width: 1.8; }
.em-breadcrumb [aria-current="page"] { color: var(--em-text); font-weight: var(--em-fw-semi); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
