/* ==========================================================
   AMMJE León 2026 — Sistema de diseño Verde Lima (Paleta D · Consejo)
   Override completo sobre Flatsome
   ========================================================== */

/* ─── TOKENS (CSS Custom Properties) ─── */
:root {
  /* Paleta primaria — Verde Lima del Consejo (#CADB44 = lime-400) */
  --ammje-lime:    #6B7A22;
  --ammje-lime-50: #FBFDE8;
  --ammje-lime-100:#F5FBC9;
  --ammje-lime-200:#E8F0A8;
  --ammje-lime-300:#D9E87A;
  --ammje-lime-400:#CADB44;  /* color principal escogido por consejo */
  --ammje-lime-500:#B3C238;
  --ammje-lime-600:#8FA02D;
  --ammje-lime-700:#6B7A22;  /* tono base para botones/links (contraste OK con blanco) */
  --ammje-lime-800:#4F5A19;
  --ammje-lime-900:#333B10;

  /* Acento verde fresh (#87E772 = fresh-400) */
  --ammje-fresh:       #87E772;
  --ammje-fresh-soft:  #C6F2BC;

  /* Acentos oficiales del brand book (paleta primaria 7 colores) */
  --ammje-yellow:      #FFEF38;  /* amarillo */
  --ammje-blue:        #396BB2;  /* azul */
  --ammje-rose:        #BE69A4;  /* rosa / magenta */
  --ammje-sky:         #86D1E4;  /* celeste */
  /* Alias legacy: el token burgundy de la paleta vieja ahora apunta a tinta lima oscura */
  --ammje-burgundy-800: var(--ammje-lime-800);

  /* Tinta — Carbón cálido (reemplaza navy) */
  --ammje-ink:         #2A2A2A;
  --ammje-ink-soft:    #4A4A4A;

  /* Neutros cálidos — gris del consejo #6D6E70 */
  --ammje-warm-white:  #FAFAF5;
  --ammje-cream:       #F2F2EC;
  --ammje-graphite:    #6D6E70;
  --ammje-soft-gray:   #E5E5E0;

  /* Tipografía — Montserrat (manual de marca) en base/UI; serif editorial SOLO en títulos hero */
  --ammje-font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --ammje-font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ammje-font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sombras editoriales — derivadas del lime-600 */
  --ammje-shadow-card:  0 4px 24px rgba(143, 160, 45, 0.08);
  --ammje-shadow-hover: 0 12px 40px rgba(143, 160, 45, 0.16);
  --ammje-shadow-focus: 0 0 0 3px rgba(143, 160, 45, 0.25);
}

/* ─── BASE TYPOGRAPHY OVERRIDE ─── */
html, body {
  font-family: var(--ammje-font-body) !important;
  color: var(--ammje-ink) !important;
  background: var(--ammje-warm-white) !important;
  font-feature-settings: 'ss01', 'ss02', 'cv01', 'cv03';
}
h1, h2, h3, h4, h5, h6,
.heading-font, .nav-size > li > a, .header-nav > li > a {
  font-family: var(--ammje-font-heading) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: var(--ammje-ink) !important;
}
/* Títulos hero conservan el serif editorial (manual: serif solo en hero) */
.ammje-display-1, .ammje-display-2,
h1.ammje-display-1, h2.ammje-display-2 {
  font-family: var(--ammje-font-display) !important;
  letter-spacing: -0.025em !important;
}

/* Aniquilar Dancing Script u otras scripts decorativas heredadas */
[style*="Dancing"], [style*="font-family: 'Dancing"],
.script, .dancing-script {
  font-family: var(--ammje-font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
}

/* ─── FLATSOME OVERRIDES — colores ─── */
/* Color primario: verde lima del consejo en todos lados */
a, a:hover { color: var(--ammje-lime-700) !important; }
a:hover { color: var(--ammje-lime-900) !important; }

.primary, .button.primary, .badge-primary, .label-primary,
.color-primary { background-color: var(--ammje-lime-700) !important; color: #fff !important; }

.secondary, .button.secondary, .badge-secondary { background-color: var(--ammje-ink) !important; color: #fff !important; }
.success, .button.success { background-color: var(--ammje-lime-600) !important; }
.alert, .button.alert { background-color: #b91c1c !important; }

.tag-color-primary, .star-rating .star-rating-color { color: var(--ammje-lime-700) !important; }

/* Forzar override de las variables Flatsome internas */
:root {
  --primary-color: var(--ammje-lime-700) !important;
  --secondary-color: var(--ammje-ink) !important;
  --color-success: var(--ammje-lime-600) !important;
  --fs-color-primary: var(--ammje-lime-700) !important;
  --fs-color-secondary: var(--ammje-ink) !important;
}

/* ─── BOTONES ─── */
.button {
  font-family: var(--ammje-font-body) !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  border: 1.5px solid transparent !important;
  padding: 0.75em 1.6em !important;
}
.button.primary {
  background: var(--ammje-lime-700) !important;
  box-shadow: var(--ammje-shadow-card);
}
.button.primary:hover {
  background: var(--ammje-lime-800) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--ammje-shadow-hover);
}
.button.is-outline {
  background: transparent !important;
  border-color: var(--ammje-lime-700) !important;
  color: var(--ammje-lime-700) !important;
}
.button.is-outline:hover {
  background: var(--ammje-lime-700) !important;
  color: #fff !important;
}
.button.is-link {
  color: var(--ammje-lime-700) !important;
  border-radius: 0 !important;
  border-bottom: 2px solid var(--ammje-lime-700) !important;
  padding-bottom: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-size: 13px !important;
}
.button.is-link:hover { color: var(--ammje-lime-900) !important; border-bottom-color: var(--ammje-lime-900) !important; }

/* ─── HEADER ─── */
.header-main { background: rgba(250, 247, 244, 0.97) !important; backdrop-filter: saturate(180%) blur(8px); }
.header-bg-color, .header-wrapper { background: transparent !important; }
.header-nav > li > a {
  font-family: var(--ammje-font-body) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: var(--ammje-ink) !important;
}
.header-nav > li > a:hover { color: var(--ammje-lime-700) !important; }
/* Menú activo: la sección actual se resalta sola (desktop) — cubre item, ancestro y página */
.header-nav > li.active > a,
.header-nav > li.current-menu-item > a,
.header-nav > li.current_page_item > a,
.header-nav > li.current-menu-parent > a,
.header-nav > li.current-menu-ancestor > a,
.header-nav > li.current-page-ancestor > a {
  color: var(--ammje-lime-700) !important;
  border-bottom: 2px solid var(--ammje-lime-700);
}
/* Menú activo en el panel lateral / off-canvas móvil */
.nav-sidebar li.active > a,
.nav-sidebar li.current-menu-item > a,
.nav-sidebar li.current_page_item > a,
.nav-sidebar li.current-menu-ancestor > a,
#main-menu li.active > a,
#main-menu li.current-menu-item > a,
.mobile-sidebar-levels li.current-menu-item > a {
  color: var(--ammje-lime-700) !important;
  font-weight: 700 !important;
}
.header-button .button { padding: 0.5em 1.2em !important; font-size: 13px !important; }

/* ─── HERO / SECCIONES PRINCIPALES ─── */
.section-title b { background: var(--ammje-lime-700) !important; }
.section-title { font-family: var(--ammje-font-body) !important; font-weight: 600 !important; letter-spacing: 0.06em !important; text-transform: uppercase !important; font-size: 12px !important; color: var(--ammje-graphite) !important; }
.section-title span { background: var(--ammje-warm-white) !important; padding: 0 16px !important; }

/* Override de gradientes feos heredados */
.text-shadow-1, .text-shadow-2 { text-shadow: none !important; }

/* ─── CARDS / BOXES ─── */
.box, .box-vertical .box-image, .product-small {
  border-radius: 12px !important;
  overflow: hidden !important;
}
.box-shadow-1, .box-shadow-2 { box-shadow: var(--ammje-shadow-card) !important; }
.box-shadow-1:hover, .box-shadow-2:hover { box-shadow: var(--ammje-shadow-hover) !important; transform: translateY(-2px); transition: all 0.25s ease; }

/* ─── FORMS ─── */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"],
input[type="date"], select, textarea, .input-text {
  font-family: var(--ammje-font-body) !important;
  border: 1.5px solid var(--ammje-soft-gray) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--ammje-ink) !important;
  box-shadow: none !important;
  padding: 0.7em 1em !important;
  transition: border 0.15s, box-shadow 0.15s !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ammje-lime-700) !important;
  box-shadow: var(--ammje-shadow-focus) !important;
  outline: none !important;
}
label { font-weight: 500 !important; color: var(--ammje-ink) !important; }
/* Selects: Flatsome les fija una altura corta que recorta el texto. Forzar altura auto. */
select, .wpcf7 select, select.wpcf7-form-control {
  height: auto !important;
  min-height: 50px !important;
  line-height: 1.5 !important;
  padding: 0.7em 2.4em 0.7em 1em !important; /* espacio para la flecha nativa */
  vertical-align: middle !important;
}

/* ─── FOOTER ─── */
.absolute-footer, .footer-1, .footer-wrapper {
  background: var(--ammje-ink) !important;
  color: var(--ammje-warm-white) !important;
}
.absolute-footer a, .footer a { color: var(--ammje-fresh) !important; }
.absolute-footer a:hover { color: #fff !important; }
/* Iconos de pago: visibles (blanco) sobre el footer oscuro */
.absolute-footer .payment-icons .payment-icon svg,
.footer-wrapper .payment-icons .payment-icon svg {
  filter: brightness(0) invert(1) !important;
  opacity: 0.9;
}

/* ─── UTILIDADES PARA TEMPLATES PROPIOS ─── */
.ammje-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ammje-eyebrow {
  display: inline-block;
  font-family: var(--ammje-font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ammje-lime-700);
  margin-bottom: 12px;
}
.ammje-display-1 {
  font-family: var(--ammje-font-display);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ammje-ink);
}
.ammje-display-2 {
  font-family: var(--ammje-font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.ammje-lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ammje-ink-soft);
  font-weight: 400;
}

/* ─── ANTI-CLICHÉ ─── */
/* Quitar bordes redondos exagerados que vienen de algunos shortcodes */
.col-inner .box-image img, .img img { transition: transform 0.6s ease; }
.box:hover .box-image img { transform: scale(1.04); }

/* Tipografía editorial italica para citas */
blockquote, .quote, em.editorial {
  font-family: var(--ammje-font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: var(--ammje-lime-700) !important;
  border-left: 3px solid var(--ammje-lime-700) !important;
  padding-left: 24px !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .ammje-display-1 { font-size: clamp(32px, 9vw, 48px); }
  .header-nav > li > a { font-size: 15px !important; }
}

/* ==========================================================
   PAGE TEMPLATES: INICIO, NOSOTRAS, UNETE
   ========================================================== */

/* ─── HERO INICIO ─── */
.ammje-hero {
  padding: 96px 0 64px;
  background: linear-gradient(135deg, var(--ammje-warm-white) 0%, var(--ammje-cream) 100%);
  position: relative; overflow: hidden;
}
.ammje-hero::before {
  content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(232,180,200,0.20) 0%, transparent 65%);
  pointer-events: none;
}
.ammje-hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  grid-template-areas: "head art" "body art";
  column-gap: 64px; row-gap: 0; align-items: center; position: relative; z-index: 1;
}
.ammje-hero-head { grid-area: head; align-self: end; }
.ammje-hero-body { grid-area: body; align-self: start; }
.ammje-hero-art  { grid-area: art; }
.ammje-hero-head h1 em, .ammje-hero-body h1 em { font-style: italic; color: var(--ammje-lime-700); }
.ammje-hero-body .ammje-lead { margin-top: 24px; }
.ammje-hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.ammje-hero-art {
  position: relative; aspect-ratio: 1/1.05;
}
.ammje-hero-photo {
  position: absolute; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--ammje-lime-300), var(--ammje-lime-700));
  background-size: cover; background-position: center;
  box-shadow: var(--ammje-shadow-hover);
}
.ammje-photo-1 { top: 0; left: 0; width: 65%; height: 75%; transform: rotate(-2deg); }
.ammje-photo-2 { bottom: 0; right: 0; width: 60%; height: 60%; transform: rotate(3deg);
  background: linear-gradient(135deg, var(--ammje-ink), var(--ammje-lime-900)); }
.ammje-hero-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: #fff; padding: 18px 22px; border-radius: 14px;
  box-shadow: var(--ammje-shadow-card);
  display: flex; align-items: center; gap: 14px; z-index: 2;
}
.ammje-hero-badge-num {
  font-family: var(--ammje-font-display);
  font-size: 48px; font-weight: 700; line-height: 1;
  color: var(--ammje-lime-700);
}
.ammje-hero-badge-lbl { font-size: 12px; line-height: 1.4; color: var(--ammje-graphite); }
.ammje-hero-badge-lbl strong { color: var(--ammje-ink); font-weight: 700; }

/* ─── BARRA DE N&Uacute;MEROS ─── */
.ammje-numbers { background: var(--ammje-ink); padding: 48px 0; color: #fff; }
.ammje-numbers-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px;
  text-align: center;
}
.ammje-number-item { display: flex; flex-direction: column; gap: 6px; }
.ammje-number-val {
  font-family: var(--ammje-font-display);
  font-size: 40px; font-weight: 600; color: var(--ammje-fresh);
  line-height: 1;
}
.ammje-number-lbl { font-size: 13px; color: rgba(255,255,255,0.7); letter-spacing: 0.02em; }

/* ─── SECCIÓN GENÉRICA ─── */
.ammje-section { padding: 96px 0; }
.ammje-section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; gap: 24px; flex-wrap: wrap;
}
.ammje-section-head h2 { margin: 8px 0 0; }

/* Split 2 columnas */
.ammje-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ammje-split-text { max-width: 540px; }
.ammje-split-text h2 em { font-style: italic; color: var(--ammje-lime-700); }
.ammje-split-art {
  position: relative; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--ammje-lime-700), var(--ammje-ink));
  box-shadow: var(--ammje-shadow-hover);
}
.ammje-quienes-photo {
  position: absolute; inset: 0;
  /* Sin tinte: la foto se ve con su color real. Solo una sombra sutil abajo para que el texto se lea. */
  background: linear-gradient(to top, rgba(15,23,41,0.55) 0%, rgba(15,23,41,0.10) 28%, transparent 50%);
}
.ammje-quienes-overlay {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  background: rgba(15,23,41,0.85); backdrop-filter: blur(8px);
  color: #fff; padding: 20px 24px; border-radius: 12px;
}
.ammje-quienes-overlay p { margin: 6px 0 0; font-size: 14px; }

.ammje-pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
.ammje-pills li {
  background: var(--ammje-lime-100); color: var(--ammje-lime-800);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
}

/* ─── EVENTOS CARDS ─── */
.ammje-eventos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ammje-evento-card {
  background: #fff; border-radius: 16px; padding: 28px;
  box-shadow: var(--ammje-shadow-card);
  display: flex; flex-direction: column; gap: 18px;
  transition: all 0.25s ease;
}
.ammje-evento-card:hover { transform: translateY(-4px); box-shadow: var(--ammje-shadow-hover); }
.ammje-evento-date {
  display: inline-flex; flex-direction: column; align-items: center;
  width: 76px; padding: 12px 0;
  background: var(--ammje-lime-100); color: var(--ammje-lime-800);
  border-radius: 12px; line-height: 1;
}
.ammje-evento-day { font-family: var(--ammje-font-display); font-size: 30px; font-weight: 700; }
.ammje-evento-mon { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; margin-top: 4px; }
.ammje-evento-yr { font-size: 10px; opacity: 0.7; margin-top: 2px; }
.ammje-evento-tipo {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ammje-graphite); margin-bottom: 6px;
}
.ammje-evento-card h3 {
  font-family: var(--ammje-font-display);
  font-size: 22px; margin: 0 0 8px; line-height: 1.2; color: var(--ammje-ink);
}
.ammje-evento-meta { color: var(--ammje-graphite); font-size: 14px; margin: 0; }
.ammje-evento-tema { color: var(--ammje-ink-soft); font-size: 14px; margin: 4px 0 0; font-style: italic; }
.ammje-evento-link {
  margin-top: auto; align-self: flex-start;
  font-weight: 600; color: var(--ammje-lime-700) !important;
}

/* ─── SOCIAS PREVIEW ─── */
.ammje-socias-home { background: var(--ammje-cream); }
.ammje-socias-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.ammje-socia-card {
  background: #fff; padding: 24px; border-radius: 14px;
  text-align: center; box-shadow: var(--ammje-shadow-card);
  transition: all 0.2s;
}
.ammje-socia-card:hover { transform: translateY(-3px); box-shadow: var(--ammje-shadow-hover); }
.ammje-socia-photo {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--ammje-lime-500), var(--ammje-lime-800));
  color: #fff; font-family: var(--ammje-font-display);
  font-size: 38px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.ammje-socia-photo::after { content: attr(data-initial); }
.ammje-socia-name { font-family: var(--ammje-font-display); font-weight: 600; color: var(--ammje-ink); font-size: 16px; line-height: 1.2; }
.ammje-socia-cargo { font-size: 12px; color: var(--ammje-lime-700); margin-top: 4px; font-weight: 500; }
.ammje-socia-empresa { font-size: 12px; color: var(--ammje-graphite); margin-top: 4px; }
.ammje-socia-cta {
  background: var(--ammje-lime-700); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ammje-socia-cta .ammje-socia-name,
.ammje-socia-cta .ammje-socia-cargo,
.ammje-socia-cta .ammje-socia-empresa { color: #fff; }
.ammje-socia-cta .ammje-socia-cargo { color: var(--ammje-fresh); }
.ammje-socia-cta .ammje-socia-photo { background: rgba(255,255,255,0.18); }

/* ─── FORMACI&Oacute;N ─── */
.ammje-formacion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ammje-curso-card {
  background: #fff; padding: 32px; border-radius: 16px;
  border: 1.5px solid var(--ammje-soft-gray);
  transition: all 0.2s;
}
.ammje-curso-card:hover { border-color: var(--ammje-lime-700); transform: translateY(-3px); }
.ammje-curso-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--ammje-lime-100); color: var(--ammje-lime-800);
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ammje-curso-card h3 {
  font-family: var(--ammje-font-display);
  font-size: 22px; margin: 16px 0 10px; color: var(--ammje-ink);
}
.ammje-curso-card p { color: var(--ammje-graphite); font-size: 14px; line-height: 1.55; margin: 0; }

/* ─── PAQUETES MEMBRES&Iacute;A ─── */
.ammje-membresia { background: var(--ammje-cream); }
.ammje-paquetes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.ammje-paquete-card {
  background: #fff; padding: 36px 32px; border-radius: 18px;
  box-shadow: var(--ammje-shadow-card); position: relative;
  display: flex; flex-direction: column;
}
.ammje-paquete-featured {
  border: 2px solid var(--ammje-lime-700);
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(143, 160, 45,0.18);
}
.ammje-paquete-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--ammje-lime-700); color: #fff;
  padding: 6px 16px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
}
.ammje-paquete-tag {
  display: inline-block; font-family: var(--ammje-font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ammje-lime-700);
}
.ammje-paquete-precio {
  font-family: var(--ammje-font-display);
  font-size: 40px; font-weight: 600; white-space: nowrap; color: var(--ammje-ink);
  margin: 8px 0 12px; line-height: 1;
}
.ammje-paquete-precio small { font-family: var(--ammje-font-body); font-size: 13px; font-weight: 400; color: var(--ammje-graphite); }
.ammje-paquete-perfil { color: var(--ammje-graphite); font-size: 14px; line-height: 1.55; margin: 0 0 24px; }
.ammje-paquete-card ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; }
.ammje-paquete-card li { font-size: 14px; line-height: 1.45; padding-left: 24px; position: relative; color: var(--ammje-ink); }
.ammje-paquete-card li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px;
  background: var(--ammje-lime-100);
  border-radius: 50%;
}
.ammje-paquete-card li::after {
  content: ''; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 3px; border-left: 1.5px solid var(--ammje-lime-700);
  border-bottom: 1.5px solid var(--ammje-lime-700);
  transform: rotate(-45deg);
}
.ammje-paquete-card .button { margin-top: auto; }

/* ─── TOP BAR (fondo verde): texto y links en blanco ─── */
#top-bar, #top-bar a, #top-bar span, #top-bar .nav > li > a { color: #fff !important; }
#top-bar a:hover, #top-bar .nav > li > a:hover { color: var(--ammje-fresh) !important; }

/* ─── ALIADOS LOGOS ─── */
.ammje-aliados-row { display: flex; justify-content: center; align-items: center; gap: 56px; flex-wrap: wrap; padding: 8px 0; }
.ammje-aliado-logo {
  font-family: var(--ammje-font-display);
  font-size: 24px; font-weight: 600; color: var(--ammje-graphite);
  opacity: 0.55; transition: opacity 0.2s;
}
.ammje-aliado-logo:hover { opacity: 1; color: var(--ammje-lime-700); }
.ammje-aliado-img { opacity: 1; }
.ammje-aliado-img img { height: 52px; width: auto; max-width: 170px; object-fit: contain; display: block;
  transition: transform 0.2s; }
.ammje-aliado-img:hover img { transform: scale(1.05); }
.ammje-aliado-cta { font-size: 20px; opacity: 0.45; }

/* ─── CTA FINAL ─── */
.ammje-cta-final { padding: 0 24px; }
.ammje-cta-box {
  background: linear-gradient(135deg, var(--ammje-lime-700), var(--ammje-lime-900));
  color: #fff; padding: 96px 64px; border-radius: 24px;
  text-align: center; display: flex; flex-direction: column; align-items: center;
  margin: 64px auto; max-width: 1080px;
  position: relative; overflow: hidden;
}
.ammje-cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(134,209,228,0.18) 0%, transparent 60%);
}
.ammje-cta-box > * { position: relative; z-index: 1; }
/* El título base sale oscuro porque la regla global h2{color:ink !important} pisa el #fff.
   Forzar blanco sobre el fondo verde oscuro de la caja. */
.ammje-cta-box h2, .ammje-cta-box .ammje-display-2 { color: #fff !important; }
.ammje-cta-box h2 em { font-style: italic; color: var(--ammje-fresh) !important; }
.ammje-cta-box .ammje-lead { color: rgba(255,255,255,0.92) !important; }
/* Eyebrow legible sobre el fondo oscuro de la caja (celeste de marca) */
.ammje-cta-box .ammje-eyebrow { color: var(--ammje-sky) !important; }
/* Botón outline visible sobre el fondo lima oscuro (antes lima sobre lima = invisible) */
.ammje-cta-box .button.is-outline {
  border-color: #fff !important;
  color: #fff !important;
  background: transparent !important;
}
.ammje-cta-box .button.is-outline:hover {
  background: #fff !important;
  color: var(--ammje-lime-800) !important;
}

/* ─── HERO PÁGINA INTERNA ─── */
.ammje-page-hero {
  background: linear-gradient(135deg, var(--ammje-warm-white), var(--ammje-cream));
  padding: 96px 0 64px;
}
.ammje-page-hero h1 em { font-style: italic; color: var(--ammje-lime-700); }
.ammje-page-hero--split .ammje-phs-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ammje-phs-text .ammje-lead { max-width: 620px; }
.ammje-phs-art {
  aspect-ratio: 4/3.3; border-radius: 18px; background-size: cover; background-position: center 30%;
  box-shadow: var(--ammje-shadow-card); min-height: 320px;
}
.ammje-hero-art--page { grid-area: auto; width: 100%; max-width: 480px; margin: 0 0 0 auto; }
@media (max-width: 900px) {
  .ammje-page-hero--split .ammje-phs-grid { grid-template-columns: 1fr; gap: 30px; }
  .ammje-phs-art { aspect-ratio: 16/10; min-height: 0; }
  .ammje-hero-art--page { max-width: 360px; margin: 0 auto; }
}

/* ─── HERO INTERNO CON FOTO DE FONDO (todas menos Inicio; el split conserva su foto lateral) ─── */
.ammje-page-hero:not(.ammje-page-hero--split) {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 124px 0 92px;
  overflow: hidden;
}
.ammje-page-hero:not(.ammje-page-hero--split)::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(38,49,22,.90) 0%, rgba(38,49,22,.68) 42%, rgba(38,49,22,.34) 100%);
  z-index: 0;
}
.ammje-page-hero:not(.ammje-page-hero--split) > .ammje-container { position: relative; z-index: 1; }
.ammje-page-hero:not(.ammje-page-hero--split) .ammje-eyebrow { color: var(--ammje-fresh) !important; }
.ammje-page-hero:not(.ammje-page-hero--split) h1,
.ammje-page-hero:not(.ammje-page-hero--split) .ammje-display-1 { color: #fff !important; }
.ammje-page-hero:not(.ammje-page-hero--split) h1 em { color: var(--ammje-fresh) !important; }
.ammje-page-hero:not(.ammje-page-hero--split) .ammje-lead,
.ammje-page-hero:not(.ammje-page-hero--split) p { color: rgba(255,255,255,.92) !important; }

/* Imagen de fondo por página (heroes planos) */
.page-template-page-unete     .ammje-page-hero { background-image: url(/wp-content/uploads/2026/06/ammje-hero-2c.jpg); background-position: center 32%; }
.page-template-page-contacto  .ammje-page-hero { background-image: url(/wp-content/uploads/2026/06/ammje-gal-3.jpg); }
.page-template-page-convenios .ammje-page-hero { background-image: url(/wp-content/uploads/2026/06/ammje-gal-5.jpg); }
.page-template-page-cursos    .ammje-page-hero { background-image: url(/wp-content/uploads/2026/06/ammje-gal-6.jpg); }
.page-template-page-beneficios .ammje-page-hero { background-image: url(/wp-content/uploads/2026/06/ammje-gal-7.jpg); }
.page-template-page-socias    .ammje-page-hero { background-image: url(/wp-content/uploads/2026/06/ammje-gal-8.jpg); }
.page-template-page-faq       .ammje-page-hero { background-image: url(/wp-content/uploads/2026/06/ammje-gal-9.jpg); }
/* Hazte Socia (usa plantilla editable compartida): foto de la toma de protesta */
.ammje-hero-socias { background-image: url(/wp-content/uploads/2026/06/ammje-gal-1.jpg); background-position: center 26%; }

@media (max-width: 760px) {
  .ammje-page-hero:not(.ammje-page-hero--split) { padding: 96px 0 64px; }
  .ammje-page-hero:not(.ammje-page-hero--split)::before {
    background: linear-gradient(160deg, rgba(38,49,22,.90) 0%, rgba(38,49,22,.72) 55%, rgba(38,49,22,.50) 100%);
  }
}

/* Nota "generación fundadora" (membresía) */
.ammje-founding-note {
  margin: 18px auto 0; max-width: 600px;
  background: rgba(202,219,68,.20); color: var(--ammje-ink,#2b2b2b);
  border: 1px solid var(--ammje-lime-400,#CADB44);
  padding: 12px 20px; border-radius: 12px; font-size: 14px; line-height: 1.55;
}
.ammje-founding-note strong { color: var(--ammje-lime-700,#6B7A22); }

/* Patrocinador oficial (Diginova) */
.ammje-sponsor-oficial {
  display: flex; align-items: center; gap: 28px; max-width: 760px; margin: 0 auto 36px;
  background: #fff; border: 1.5px solid var(--ammje-lime-400,#CADB44); border-radius: 18px;
  padding: 24px 30px; box-shadow: var(--ammje-shadow-card); text-align: left;
}
.ammje-sponsor-oficial-media { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; }
.ammje-sponsor-oficial-badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2b2b2b; background: var(--ammje-lime-400,#CADB44); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.ammje-sponsor-oficial-logo { height: 48px; width: auto; }
.ammje-sponsor-oficial p { margin: 0; color: var(--ammje-graphite,#6D6E70); font-size: 15px; line-height: 1.6; }
.ammje-sponsor-oficial p strong { color: var(--ammje-ink,#2b2b2b); }
@media (max-width: 640px) { .ammje-sponsor-oficial { flex-direction: column; text-align: center; gap: 16px; padding: 22px; } }

/* ─── NOTICIAS ─── */
.ammje-noti-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.ammje-noti-pill { border: 1.5px solid rgba(0,0,0,.12); background: #fff; color: var(--ammje-graphite,#6D6E70); border-radius: 999px; padding: 8px 18px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; box-sizing: border-box; min-height: 0; transition: all .18s; }
.ammje-noti-pill.is-active { background: var(--ammje-lime-700,#6B7A22); color: #fff; border-color: var(--ammje-lime-700,#6B7A22); }
.ammje-noti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 24px; }
.ammje-noti-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--ammje-shadow-card); cursor: pointer; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; border: 1px solid rgba(0,0,0,.05); }
.ammje-noti-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.12); }
.ammje-noti-card:focus-visible { outline: 3px solid var(--ammje-lime-700,#6B7A22); outline-offset: 2px; }
.ammje-noti-card.is-featured { border-color: var(--ammje-lime-400,#CADB44); }
.ammje-noti-img { height: 190px; background-size: cover; background-position: center; }
.ammje-noti-img--ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ammje-lime-400,#CADB44), var(--ammje-lime-700,#6B7A22)); }
.ammje-noti-img--ph span { font-family: var(--ammje-font-display); font-size: 60px; color: #fff; opacity: .9; }
.ammje-noti-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ammje-noti-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ammje-noti-cat { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ammje-lime-700,#6B7A22); background: rgba(202,219,68,.22); padding: 3px 9px; border-radius: 999px; }
.ammje-noti-fecha { font-size: 12.5px; color: var(--ammje-graphite,#6D6E70); }
.ammje-noti-body h3 { font-family: var(--ammje-font-display); font-size: 20px; line-height: 1.2; margin: 0 0 8px; color: var(--ammje-ink,#2b2b2b); }
.ammje-noti-body p { font-size: 14px; color: var(--ammje-graphite,#6D6E70); line-height: 1.55; margin: 0 0 14px; }
.ammje-noti-link { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--ammje-lime-700,#6B7A22); }

/* ─── VALORES NOSOTRAS ─── */
.ammje-valores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ammje-valor {
  background: #fff; padding: 28px; border-radius: 14px;
  border-left: 3px solid var(--ammje-lime-700);
  box-shadow: var(--ammje-shadow-card);
}
.ammje-valor h3 { font-family: var(--ammje-font-display); font-size: 19px; margin: 0 0 8px; color: var(--ammje-ink); }
.ammje-valor p { color: var(--ammje-graphite); font-size: 14px; margin: 0; line-height: 1.55; }

/* ─── CONSEJO ─── */
.ammje-consejo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.ammje-consejo-card {
  text-align: center; background: var(--ammje-cream);
  padding: 28px 16px; border-radius: 14px;
}
.ammje-consejo-photo {
  width: 110px; height: 110px; border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--ammje-lime-700), var(--ammje-ink));
  color: #fff; font-family: var(--ammje-font-display);
  font-size: 42px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.ammje-consejo-photo::after { content: attr(data-initial); }
.ammje-consejo-card h3 { font-family: var(--ammje-font-display); font-size: 17px; margin: 0 0 4px; color: var(--ammje-ink); }
.ammje-consejo-card p { font-size: 13px; color: var(--ammje-lime-700); margin: 0; font-weight: 500; }

/* ─── PROCESS STEPS ─── */
.ammje-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ammje-process-step {
  background: #fff; padding: 32px 24px; border-radius: 14px;
  position: relative;
  box-shadow: var(--ammje-shadow-card);
}
.ammje-process-num {
  font-family: var(--ammje-font-display);
  font-size: 56px; font-weight: 600;
  color: var(--ammje-lime-200); line-height: 1;
  display: block; margin-bottom: 8px;
}
.ammje-process-step h3 { font-family: var(--ammje-font-display); font-size: 20px; margin: 0 0 8px; color: var(--ammje-ink); }
.ammje-process-step p { color: var(--ammje-graphite); font-size: 14px; margin: 0; line-height: 1.5; }

/* ─── RESPONSIVE TEMPLATES ─── */
@media (max-width: 980px) {
  .ammje-split { grid-template-columns: 1fr; gap: 48px; }
  /* Móvil: título → fotos → párrafo+botones */
  .ammje-hero-grid { grid-template-columns: 1fr; grid-template-areas: "head" "art" "body"; gap: 28px; }
  .ammje-hero-head { align-self: auto; }
  .ammje-hero-body { align-self: auto; }
  .ammje-hero-body .ammje-lead { margin-top: 0; }
  .ammje-numbers-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .ammje-eventos-grid, .ammje-formacion-grid, .ammje-paquetes-grid,
  .ammje-process-grid, .ammje-valores-grid { grid-template-columns: repeat(2, 1fr); }
  .ammje-socias-grid { grid-template-columns: repeat(3, 1fr); }
  .ammje-consejo-grid { grid-template-columns: repeat(3, 1fr); }
  .ammje-paquete-featured { transform: none; }
  .ammje-section { padding: 64px 0; }
  .ammje-hero { padding: 64px 0 48px; }
}
@media (max-width: 640px) {
  .ammje-numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ammje-eventos-grid, .ammje-formacion-grid, .ammje-paquetes-grid,
  .ammje-process-grid, .ammje-valores-grid,
  .ammje-socias-grid, .ammje-consejo-grid { grid-template-columns: 1fr; }
  .ammje-cta-box { padding: 56px 28px; margin: 32px auto; border-radius: 16px; }
  .ammje-hero-cta { flex-direction: column; }
  .ammje-hero-cta .button { width: 100%; text-align: center; }
  .ammje-section-head { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   DIRECTORIO PÚBLICO + MODAL DE CONTACTO
   ========================================================== */
.ammje-directorio-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.ammje-filter-pill {
  font-family: var(--ammje-font-body) !important;
  background: #fff; border: 1.5px solid var(--ammje-soft-gray);
  padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--ammje-ink); cursor: pointer;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.ammje-filter-pill:hover { border-color: var(--ammje-lime-700); color: var(--ammje-lime-700); }
.ammje-filter-pill.is-active { background: var(--ammje-lime-700); border-color: var(--ammje-lime-700); color: #fff; }
.ammje-filter-pill span {
  background: rgba(0,0,0,0.08); padding: 1px 8px; border-radius: 999px; font-size: 11px;
}
.ammje-filter-pill.is-active span { background: rgba(255,255,255,0.25); }

.ammje-directorio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.ammje-socia-publica {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--ammje-shadow-card);
  display: flex; flex-direction: column;
  transition: all 0.25s ease;
}
.ammje-socia-publica:hover { transform: translateY(-4px); box-shadow: var(--ammje-shadow-hover); }
.ammje-sp-photo {
  width: 100%; aspect-ratio: 4/5;
  background-size: cover; background-position: center;
  background-color: var(--ammje-lime-100);
  position: relative;
}
/* Logo de empresa en la tarjeta: badge circular siempre visible +
   crossfade al logo completo al pasar el cursor (o tocar) SOLO la foto */
.ammje-sp-logo-badge {
  position: absolute; right: 12px; bottom: 12px;
  width: 84px; height: 84px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,0.22);
  display: flex; align-items: center; justify-content: center;
  padding: 10px; z-index: 2;
}
.ammje-sp-logo-badge img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ammje-sp-logo-cover {
  position: absolute; inset: 0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 16%; opacity: 0; transition: opacity 0.35s ease; z-index: 1;
}
.ammje-sp-logo-cover img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ammje-sp-photo:hover .ammje-sp-logo-cover { opacity: 1; }
.ammje-sp-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ammje-lime-400), var(--ammje-lime-800));
  color: #fff; font-family: var(--ammje-font-display);
  font-size: 96px; font-weight: 600;
}
.ammje-sp-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ammje-sp-body h3 {
  font-family: var(--ammje-font-display);
  font-size: 20px; margin: 0; color: var(--ammje-ink); line-height: 1.2;
}
.ammje-sp-cargo { font-size: 13px; color: var(--ammje-lime-700); margin: 0; font-weight: 500; }
.ammje-sp-empresa { font-size: 14px; color: var(--ammje-ink); margin: 0; font-weight: 500; }
.ammje-sp-giro {
  display: inline-block; background: var(--ammje-lime-100); color: var(--ammje-lime-800);
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500; margin: 6px 0 0;
  align-self: flex-start;
}
.ammje-sp-bio {
  font-size: 13px; color: var(--ammje-graphite);
  line-height: 1.55; margin: 8px 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ammje-sp-contact-btn { margin-top: auto !important; width: 100%; text-align: center;
  padding: 0.6em 1em !important; font-size: 13px !important; white-space: nowrap; }

/* ── Modal ── */
.ammje-modal {
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 24px;
}
.ammje-modal.is-open { display: flex; }
.ammje-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 41, 0.65);
  backdrop-filter: blur(6px);
  animation: ammjeFade 0.2s ease;
}
.ammje-modal-card {
  position: relative; z-index: 1;
  background: #fff; border-radius: 18px;
  padding: 40px 36px 32px;
  width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(15,23,41,0.4);
  animation: ammjeSlideUp 0.25s ease;
}
@keyframes ammjeFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ammjeSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ammje-modal-close {
  position: absolute; top: 12px; right: 16px;
  background: transparent; border: none;
  font-size: 22px; line-height: 1;
  color: var(--ammje-graphite); cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  transition: background 0.15s;
}
.ammje-modal-close:hover { background: var(--ammje-lime-100); color: var(--ammje-lime-700); }

/* ─── FIX GLOBAL: botones circulares custom no se deforman por el padding que
   Flatsome inyecta en <button>. Garantiza círculo perfecto + glifo centrado.
   Cubre TODOS los botones redondos de la web (modales, lightbox, calendario, tour). ─── */
.ammje-modal-close,
.ammje-lb-close, .ammje-lb-nav,
.ammje-cal-nav,
.ammje-webtour-x {
  box-sizing: border-box !important;
  padding: 0 !important;
  min-height: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.ammje-modal-card h2 {
  font-family: var(--ammje-font-display);
  font-size: 26px; margin: 6px 0 12px; color: var(--ammje-ink);
}
.ammje-modal-card h2 span { color: var(--ammje-lime-700); }
.ammje-modal-disclaimer {
  background: var(--ammje-lime-100); color: var(--ammje-lime-900);
  padding: 12px 16px; border-radius: 10px;
  font-size: 13px; line-height: 1.5; margin: 0 0 20px;
}
.ammje-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 16px; }
.ammje-modal-grid .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ammje-modal-grid .field span { font-size: 13px; font-weight: 500; color: var(--ammje-ink); }
.ammje-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
#ammje-form-status { margin-top: 16px; font-size: 14px; padding: 10px 14px; border-radius: 8px; }
#ammje-form-status:empty { display: none; }
#ammje-form-status.is-success { background: rgba(16,185,129,0.1); color: #047857; }
#ammje-form-status.is-error { background: rgba(239,68,68,0.1); color: #b91c1c; }

@media (max-width: 640px) {
  .ammje-modal-card { padding: 32px 22px 24px; max-width: none; }
  .ammje-modal-grid { grid-template-columns: 1fr; }
  .ammje-modal-actions { flex-direction: column-reverse; }
  .ammje-modal-actions .button { width: 100%; }
  /* Directorio: 2 socias por fila en móvil (antes 1 gigante) */
  .ammje-directorio-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ammje-sp-photo-placeholder { font-size: 52px; }
  /* D2 badge movil: el logo de 84px tapaba la cara en tarjeta angosta (2 col). */
  .ammje-sp-logo-badge { width: 44px; height: 44px; padding: 6px; right: 7px; bottom: 7px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
  .ammje-sp-body { padding: 13px 13px 16px; gap: 4px; }
  .ammje-sp-body h3 { font-size: 15px; }
  .ammje-sp-cargo, .ammje-sp-empresa { font-size: 12px; }
}

/* ==========================================================
   PÁGINAS: EVENTOS / CURSOS / BENEFICIOS / CONTACTO
   ========================================================== */
.ammje-eventos-list { display: flex; flex-direction: column; gap: 20px; }
.ammje-evento-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px;
  background: #fff; padding: 28px 32px; border-radius: 16px;
  box-shadow: var(--ammje-shadow-card); align-items: center;
}
/* Bloque inicial: fecha + miniatura del flyer (formato post Instagram, cuadrado) */
.ammje-evento-lead { display: flex; align-items: stretch; gap: 14px; }
.ammje-evento-thumb {
  width: 138px; min-width: 138px; aspect-ratio: 1 / 1;
  border-radius: 14px; background-size: cover; background-position: center;
  box-shadow: var(--ammje-shadow-card);
}
.ammje-evento-date-big {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 92px;
  background: var(--ammje-lime-700); color: #fff;
  padding: 20px 0; border-radius: 14px; line-height: 1;
}
.ammje-evento-date-big .ammje-evento-day { font-family: var(--ammje-font-display); font-size: 44px; font-weight: 700; }
.ammje-evento-date-big .ammje-evento-mon { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; margin-top: 8px; opacity: 0.9; }
.ammje-evento-date-big .ammje-evento-yr  { font-size: 11px; opacity: 0.7; margin-top: 2px; }
.ammje-evento-row-body h3 { font-family: var(--ammje-font-display); font-size: 24px; margin: 4px 0 8px; color: var(--ammje-ink); }
.ammje-evento-ponente { font-size: 14px; color: var(--ammje-graphite); margin: 0 0 6px; }
.ammje-evento-row .ammje-evento-meta { color: var(--ammje-graphite); font-size: 14px; margin: 0 0 8px; }
.ammje-evento-row .ammje-evento-desc { font-size: 14px; color: var(--ammje-ink-soft); margin: 8px 0 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ammje-evento-row-side { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.ammje-evento-dias { background: var(--ammje-cream); padding: 14px 20px; border-radius: 12px; text-align: center; line-height: 1; }
.ammje-evento-dias .num { display: block; font-family: var(--ammje-font-display); font-size: 28px; font-weight: 700; color: var(--ammje-lime-700); }
.ammje-evento-dias .lbl { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--ammje-graphite); margin-top: 4px; }

.ammje-pasados-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ammje-pasado-card { background: #fff; padding: 20px; border-radius: 12px; }
.ammje-pasado-date { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ammje-lime-700); }
.ammje-pasado-card h4 { font-family: var(--ammje-font-display); font-size: 17px; margin: 6px 0 8px; color: var(--ammje-ink); }
.ammje-pasado-card p { color: var(--ammje-graphite); font-size: 13px; margin: 0; }
.ammje-pasado-asistentes { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--ammje-graphite); font-style: italic; }

.ammje-curso-mes { margin-bottom: 56px; }
.ammje-curso-mes.is-pasado { opacity: 0.55; }
.ammje-curso-mes-titulo {
  font-family: var(--ammje-font-display); font-size: 28px; color: var(--ammje-ink);
  border-bottom: 2px solid var(--ammje-lime-200); padding-bottom: 12px; margin-bottom: 24px;
  display: flex; justify-content: space-between; align-items: center; text-transform: capitalize;
}
.ammje-curso-mes-titulo .badge { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--ammje-soft-gray); color: var(--ammje-graphite); padding: 4px 10px; border-radius: 999px; }
.ammje-cursos-mes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ammje-curso-detail { background: #fff; padding: 28px; border-radius: 16px; border: 1.5px solid var(--ammje-soft-gray); transition: all 0.2s; }
.ammje-curso-detail:hover { border-color: var(--ammje-lime-700); transform: translateY(-2px); box-shadow: var(--ammje-shadow-card); }
.ammje-curso-tipo-tag { display: inline-block; background: var(--ammje-lime-100); color: var(--ammje-lime-800); padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.ammje-curso-detail h4 { font-family: var(--ammje-font-display); font-size: 22px; margin: 14px 0 8px; color: var(--ammje-ink); }
.ammje-curso-desc { color: var(--ammje-graphite); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.ammje-curso-meta-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ammje-graphite); align-items: center; }
.ammje-curso-precio { background: var(--ammje-cream); padding: 4px 10px; border-radius: 6px; font-weight: 600; color: var(--ammje-ink); }

.ammje-beneficios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ammje-beneficio { background: #fff; padding: 32px 28px; border-radius: 16px; border-top: 3px solid var(--ammje-lime-700); }
.ammje-beneficio h3 { font-family: var(--ammje-font-display); font-size: 20px; margin: 0 0 12px; color: var(--ammje-ink); }
.ammje-beneficio p { color: var(--ammje-graphite); font-size: 14px; line-height: 1.55; margin: 0; }

.ammje-contacto-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 16px; }
.ammje-contacto-list li { padding: 16px 20px; background: var(--ammje-cream); border-radius: 10px; line-height: 1.5; }
.ammje-contacto-list strong { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ammje-lime-700); margin-bottom: 4px; }
.ammje-contacto-list a { color: var(--ammje-ink); font-weight: 500; }
.ammje-contacto-list a:hover { color: var(--ammje-lime-700); }

.ammje-header-access {
  display: inline-flex; align-items: center; gap: 6px; line-height: 1;
  font-size: 13px !important; font-weight: 500 !important;
  color: var(--ammje-ink) !important; margin-left: 16px;
  padding: 6px 15px !important; border: 1.5px solid var(--ammje-lime-700);
  border-radius: 8px; text-decoration: none !important;
  text-transform: none !important;
}
.ammje-header-access svg { width: 14px; height: 14px; }
.ammje-header-access:hover { background: var(--ammje-lime-700); color: #fff !important; }
/* Botón "Acceder" CONSISTENTE: no cambia de tamaño al hacer scroll (mismo slim siempre).
   Flatsome, en estado stuck/scrolled, le mete line-height:50px (alto de la fila) y el botón se
   inflaba a ~64px. Forzamos line-height:1 + height auto para que quede igual de slim que arriba. */
.header-main.is-scrolled .ammje-header-access,
.stuck .ammje-header-access {
  padding: 6px 15px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  height: auto !important;
  align-self: center;
  margin-left: 16px;
}

/* ─── TOOLTIP (hotspot Flatsome): fondo oscuro + texto blanco legible ─── */
.ux_hotspot-tooltip,
.ux_hotspot-tooltip > div,
.ux-tooltip, .tooltipster-box {
  background: var(--ammje-ink) !important;
  color: #fff !important;
}
.ux_hotspot-tooltip *, .ux-tooltip * { color: #fff !important; }

@media (max-width: 900px) {
  .ammje-evento-row { grid-template-columns: 1fr; gap: 16px; padding: 22px 20px; }
  .ammje-cursos-mes-grid { grid-template-columns: 1fr; }
  .ammje-beneficios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ammje-beneficios-grid { grid-template-columns: 1fr; }
  .ammje-curso-mes-titulo { font-size: 22px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .ammje-pasados-grid { grid-template-columns: 1fr; }
}

/* ─── PARCHES PARA EL TYPO ARREGLADO ─── */
/* El span con color rojo #ed1c24 era el "LUAGRES AGOTADOS" — lo dejamos pero con color burgundy ahora */
[style*="#ed1c24"], [style*="color:#ed1c24"] { color: var(--ammje-lime-700) !important; }
/* El span violeta #7a4f91 del subtítulo del 8vo Encuentro */
[style*="#7a4f91"], [style*="color:#7a4f91"] { color: var(--ammje-ink) !important; }
/* El amarillo mostaza #b4a251 viejo */
[style*="#b4a251"], [style*="color:#b4a251"] { color: var(--ammje-lime-700) !important; }

/* Iconos de redes en el directorio público de socias */
.ammje-sp-redes{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px;}
.ammje-sp-red{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;
  background:var(--ammje-warm-white,#f6f7ef);color:var(--ammje-lime-700,#6B7A22);text-decoration:none;transition:all .2s;}
.ammje-sp-red:hover{background:var(--ammje-lime-700,#6B7A22);color:#fff;}

/* Convenios públicos */
.ammje-conv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px;}
.ammje-conv-card{background:#fff;border:1px solid var(--ammje-soft-gray,#e5e5e0);border-radius:14px;padding:22px;box-shadow:var(--ammje-shadow-card);text-align:center;}
.ammje-conv-top{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:16px;}
.ammje-conv-logo{width:68px;height:68px;border-radius:14px;background-size:cover;background-position:center;flex-shrink:0;border:1px solid var(--ammje-soft-gray,#e5e5e0);}
.ammje-conv-logo-ph{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--ammje-lime-600,#8FA02D),var(--ammje-lime-800,#4F5A19));color:#fff;font-size:26px;font-weight:700;font-family:var(--ammje-font-display,Georgia,serif);}
.ammje-conv-card h3{margin:0;font-size:18px;color:var(--ammje-ink,#2A2A2A);}
.ammje-conv-cat{font-size:12.5px;color:var(--ammje-graphite,#6D6E70);}
.ammje-conv-benef{display:inline-block;background:var(--ammje-lime-100,#F5FBC9);color:var(--ammje-lime-800,#4F5A19);font-weight:700;font-size:15px;padding:7px 14px;border-radius:9px;margin-bottom:10px;}
.ammje-conv-desc{font-size:14px;line-height:1.6;color:var(--ammje-graphite,#6D6E70);margin:0;}
.ammje-conv-cta{margin-top:48px;text-align:center;background:var(--ammje-cream,#F2F2EC);border-radius:18px;padding:48px 24px;}
.ammje-conv-cta p{max-width:620px;margin:12px auto 22px;color:var(--ammje-graphite,#6D6E70);}

/* Beneficios / convenios en la home */
.ammje-benef-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px;}
.ammje-benef-card{background:#fff;border:1px solid var(--ammje-soft-gray,#e5e5e0);border-radius:14px;padding:20px;text-align:center;box-shadow:var(--ammje-shadow-card);}
.ammje-benef-logo{width:54px;height:54px;border-radius:12px;margin:0 auto 12px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--ammje-lime-600,#8FA02D),var(--ammje-lime-800,#4F5A19));color:#fff;font-size:22px;font-weight:700;font-family:var(--ammje-font-display,Georgia,serif);}
.ammje-benef-tag{display:inline-block;background:var(--ammje-lime-100,#F5FBC9);color:var(--ammje-lime-800,#4F5A19);font-weight:700;font-size:13px;padding:5px 11px;border-radius:8px;margin-bottom:8px;}
.ammje-benef-aliado{font-weight:700;color:var(--ammje-ink,#2A2A2A);font-size:15px;}
.ammje-benef-cat{font-size:12.5px;color:var(--ammje-graphite,#6D6E70);}
.ammje-socia-cta{text-decoration:none;}
.ammje-socia-cta .ammje-socia-empresa{color:var(--ammje-lime-700,#6B7A22);font-weight:700;}

/* Socias en la home: mostrar LOGO de empresa (contenido sobre blanco) en vez de foto */
.ammje-socia-logo{background-size:contain !important;background-repeat:no-repeat;background-position:center;background-color:#fff;border:1px solid var(--ammje-soft-gray,#e5e5e0);}
.ammje-socia-logo::after{display:none !important;content:none !important;}

/* ─── GALERÍA / NUESTRA HISTORIA ─── */
.ammje-galeria-cap { font-size: 13px; color: var(--ammje-graphite,#6D6E70); max-width: 240px; text-align: right; line-height: 1.5; }
.ammje-galeria-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px; gap: 14px;
}
.ammje-galeria-item {
  margin: 0; border-radius: 14px; overflow: hidden;
  background-size: cover; background-position: center;
  box-shadow: var(--ammje-shadow-card);
  transition: transform .35s ease;
}
.ammje-galeria-item { cursor: zoom-in; position: relative; }
.ammje-galeria-item:hover { transform: scale(1.015); }
.ammje-galeria-item:focus-visible { outline: 3px solid var(--ammje-lime-700); outline-offset: 2px; }
.ammje-galeria-lg { grid-column: span 2; grid-row: span 2; }
@media (max-width: 768px) {
  .ammje-galeria-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .ammje-galeria-lg { grid-column: span 2; grid-row: span 2; }
  .ammje-galeria-cap { text-align: left; max-width: none; margin-top: 6px; }
}

/* ─── LIGHTBOX galería ─── */
.ammje-lightbox {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 22, 18, 0.92); padding: 4vh 4vw;
}
.ammje-lightbox[hidden] { display: none; }
.ammje-lb-stage { margin: 0; max-width: min(1100px, 92vw); max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.ammje-lb-img {
  max-width: 100%; max-height: 80vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,.5); object-fit: contain; background:#111;
}
.ammje-lb-cap { color: #f4f3ee; font-size: 14px; margin-top: 14px; text-align: center; max-width: 720px; line-height: 1.5; }
.ammje-lb-close {
  position: absolute; top: 16px; right: 18px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box !important; padding: 0 !important; min-height: 0 !important;
  background: rgba(255,255,255,.14); color: #fff; border: none; border-radius: 50%;
  font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s;
}
.ammje-lb-close:hover { background: rgba(255,255,255,.28); }
.ammje-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  box-sizing: border-box !important; padding: 0 !important; min-height: 0 !important;
  background: rgba(255,255,255,.14); color: #fff; border: none;
  border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s;
}
.ammje-lb-nav:hover { background: rgba(255,255,255,.28); }
.ammje-lb-prev { left: 16px; }
.ammje-lb-next { right: 16px; }
@media (max-width: 600px) {
  .ammje-lb-nav { width: 34px; height: 34px; font-size: 20px; }
  .ammje-lb-prev { left: 6px; } .ammje-lb-next { right: 6px; }
  .ammje-lb-close { top: 10px; right: 10px; width: 32px; height: 32px; font-size: 18px; }
  .ammje-lb-img { max-height: 72vh; }
}

/* ─── EVENTOS: toggle Lista/Calendario + calendario mensual ─── */
.ammje-eventos-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
/* Segmented control limpio (borde lima, activo relleno) */
.ammje-ev-toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--ammje-cream,#F6F2E9); border: 1px solid rgba(107,122,34,.25); border-radius: 12px; padding: 4px; }
.ammje-ev-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer;
  box-sizing: border-box; min-height: 0; border-radius: 9px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--ammje-lime-700,#6B7A22);
  background: transparent; padding: 9px 20px; font-family: inherit; transition: all .18s; line-height: 1;
}
.ammje-ev-tab + .ammje-ev-tab { border-left: none; }
.ammje-ev-tab svg { width: 16px; height: 16px; }
.ammje-ev-tab.is-active { background: var(--ammje-lime-700,#6B7A22); color: #fff; }
/* Asegura que la vista oculta NO se muestre (clase de layout pisa a [hidden]) */
.ammje-eventos-list[hidden], #ammje-ev-cal[hidden], #ammje-ev-lista[hidden], .ammje-ev-otras[hidden] { display: none !important; }

/* Tabs de alcance de eventos: León / Otras delegaciones / Nacional */
/* Control segmentado (pill) — León / Otras delegaciones / Nacional */
.ammje-evscope-tabs { display: inline-flex; align-items: center; gap: 4px; background: var(--ammje-cream,#F6F2E9); border: 1px solid rgba(107,122,34,.25); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.ammje-evscope-tab {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: none; background: transparent; border-radius: 9px;
  color: var(--ammje-lime-700,#6B7A22); cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px;
  padding: 8px 22px; box-sizing: border-box; line-height: 1.15; transition: all .18s;
}
.ammje-evscope-tab small { font-weight: 500; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.ammje-evscope-tab:hover { background: rgba(107,122,34,.08); }
.ammje-evscope-tab.is-active { background: var(--ammje-lime-700,#6B7A22); color: #fff; }
.ammje-evscope-tab.is-active small { opacity: .85; }
@media (max-width: 600px) {
  .ammje-evscope-tabs { display: flex; width: 100%; }
  .ammje-evscope-tab { flex: 1; padding: 9px 6px; font-size: 13px; }
}

/* Ocultar el botón "ir arriba" de Flatsome: se encimaba con los bloques de fecha; el FAB del asistente ya cubre la navegación */
#top-link.back-to-top { display: none !important; }
.ammje-ev-hl { animation: ammjeEvHl 2s ease; }
@keyframes ammjeEvHl { 0%,100%{ box-shadow: var(--ammje-shadow-card); } 25%,60%{ box-shadow: 0 0 0 3px var(--ammje-lime-400,#CADB44); } }

/* Botón "Más información" (secundario, en cada evento) */
.ammje-evento-info {
  background: none; border: none; color: var(--ammje-lime-700,#6B7A22);
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 8px 2px 0; text-decoration: underline; text-underline-offset: 3px;
}
.ammje-evento-info:hover { color: var(--ammje-ink,#2b2b2b); }

/* Modal DETALLE de evento */
.ammje-evdetail { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 4vh 4vw; }
.ammje-evdetail[hidden] { display: none !important; }
.ammje-evdetail-overlay { position: absolute; inset: 0; background: rgba(20,22,18,.72); }
.ammje-evdetail-card { position: relative; background: #fff; border-radius: 18px; max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.ammje-evdetail-x {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  box-sizing: border-box !important; padding: 0 !important; min-height: 0 !important;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.9); border: none; font-size: 22px; line-height: 1; cursor: pointer;
  color: var(--ammje-ink,#2b2b2b); z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.ammje-evdetail-x:hover { background: #fff; }
.ammje-evdetail-banner { height: 360px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--ammje-cream); border-radius: 18px 18px 0 0; }
.ammje-evdetail-body { padding: 28px 30px 30px; }
.ammje-evdetail-tipo { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ammje-lime-700,#6B7A22); }
.ammje-evdetail-title { font-family: var(--ammje-font-display); font-size: 26px; line-height: 1.15; margin: 8px 0 18px; color: var(--ammje-ink,#2b2b2b); }
.ammje-evdetail-meta > div { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.ammje-evdetail-meta span { flex: 0 0 86px; color: var(--ammje-graphite,#6D6E70); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.ammje-evdetail-meta strong { font-weight: 600; color: var(--ammje-ink,#2b2b2b); font-size: 15px; }
.ammje-evdetail-meta a { color: var(--ammje-lime-700,#6B7A22); text-decoration: underline; text-underline-offset: 2px; margin-left: 6px; font-weight: 500; }
.ammje-evdetail-desc { margin: 16px 0; color: var(--ammje-graphite,#6D6E70); line-height: 1.6; font-size: 15px; }
.ammje-evdetail-desc:empty { display: none; }
.ammje-evdetail-precios { display: flex; gap: 12px; margin: 18px 0 22px; }
.ammje-evdetail-precio { flex: 1; background: var(--ammje-cream,#F2F2EC); border-radius: 12px; padding: 14px 10px; text-align: center; }
.ammje-evdetail-precio.is-socia { background: rgba(202,219,68,.20); border: 1px solid var(--ammje-lime-400,#CADB44); }
.ammje-evdetail-precio span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ammje-graphite,#6D6E70); margin-bottom: 3px; }
.ammje-evdetail-precio strong { font-size: 19px; color: var(--ammje-ink,#2b2b2b); font-weight: 700; }
.ammje-evdetail-cta .button { width: 100%; margin: 0; }
@media (max-width: 600px) {
  .ammje-evdetail-banner { height: 280px; }
  .ammje-evdetail-body { padding: 22px 20px; }
  .ammje-evdetail-precios { flex-direction: column; }
  .ammje-evdetail-meta span { flex-basis: 72px; }
}

/* ─── DIRECTORIO: alcance Local / Regional / Nacional ───
   Control segmentado sellado: Flatsome mete margin-bottom a los <button> y el
   relleno del tab activo no llenaba el contenedor (hueco blanco abajo).
   margin:0 + align-items:stretch + overflow:hidden lo corrigen. */
.ammje-scope-tabs { display: flex; align-items: stretch; width:100%; max-width:520px; border: 2px solid var(--ammje-lime-700,#6B7A22); border-radius: 999px; overflow: hidden; margin-bottom: 32px; background: #fff; }
.ammje-scope-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0 !important; border-radius: 0 !important; margin: 0 !important; box-shadow: none !important;
  background: transparent; color: var(--ammje-lime-700,#6B7A22); cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: 14px; letter-spacing: .04em;
  flex:1 1 0; padding: 13px 8px; box-sizing: border-box; min-height: 0; height: auto;
  transition: background .18s, color .18s; line-height: 1.2;
}
.ammje-scope-tab + .ammje-scope-tab { border-left: 2px solid var(--ammje-lime-700,#6B7A22) !important; }
.ammje-scope-tab small { font-weight: 500; font-size: 11.5px; opacity: .75; }
.ammje-scope-tab:hover { background: rgba(107,122,34,0.08); }
.ammje-scope-tab.is-active { background: var(--ammje-lime-700,#6B7A22) !important; color: #fff !important; }
.ammje-scope-tab.is-active small { opacity: .85; }

/* Filtro por giro (select en lugar de pastillas: hay muchas categorías) */
.ammje-directorio-filtro { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.ammje-directorio-filtro label { font-weight: 700; font-size: 14px; color: var(--ammje-ink,#2A351A); letter-spacing: .03em; margin: 0; }
.ammje-directorio-filtro select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding: 12px 46px 12px 18px; min-width: 280px; max-width: 100%;
  border: 2px solid var(--ammje-lime-700,#6B7A22); border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236B7A22' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ammje-ink,#2A351A); cursor: pointer;
}
.ammje-directorio-filtro select:focus { outline: none; border-color: var(--ammje-lime-800,#4E5A18); box-shadow: 0 0 0 3px rgba(107,122,34,0.18); }
.ammje-scope[hidden] { display: none !important; }

.ammje-deleg-intro { max-width: 720px; margin-bottom: 28px; }
.ammje-deleg-intro h2 { margin: 0 0 10px; }
.ammje-deleg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 16px; }
.ammje-deleg-card { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; padding: 20px; box-shadow: var(--ammje-shadow-card); }
.ammje-deleg-card.is-soon { background: var(--ammje-warm-white,#f9f9f4); opacity: .9; }
.ammje-deleg-card.is-live { border-color: var(--ammje-lime-400,#CADB44); border-width: 1.5px; }
.ammje-deleg-city { font-family: var(--ammje-font-display); font-size: 20px; color: var(--ammje-ink,#2b2b2b); }
.ammje-deleg-state { font-size: 12.5px; color: var(--ammje-graphite,#6D6E70); margin-bottom: 12px; }
.ammje-deleg-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.06); color: var(--ammje-graphite,#6D6E70); }
.ammje-deleg-badge.is-live { background: var(--ammje-lime-400,#CADB44); color: #2b2b2b; }
.ammje-deleg-count { font-size: 14px; color: var(--ammje-ink,#2b2b2b); font-weight: 600; margin: 10px 0 6px; }
.ammje-deleg-link { background: none; border: none; color: var(--ammje-lime-700,#6B7A22); font-family: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

.ammje-nac-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 8px 0 32px; }
.ammje-nac-stats > div { background: var(--ammje-cream,#F2F2EC); border-radius: 14px; padding: 22px 14px; text-align: center; }
.ammje-nac-stats strong { display: block; font-family: var(--ammje-font-display); font-size: 34px; color: var(--ammje-lime-700,#6B7A22); line-height: 1; }
.ammje-nac-stats span { font-size: 13px; color: var(--ammje-graphite,#6D6E70); margin-top: 6px; display: block; }
.ammje-region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; margin-bottom: 36px; }
.ammje-region-card { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; padding: 20px; box-shadow: var(--ammje-shadow-card); }
.ammje-region-name { font-family: var(--ammje-font-display); font-size: 19px; color: var(--ammje-ink,#2b2b2b); margin-bottom: 4px; }
.ammje-region-meta { font-size: 13px; color: var(--ammje-graphite,#6D6E70); margin-bottom: 10px; }
.ammje-region-meta strong { color: var(--ammje-lime-700,#6B7A22); }
.ammje-region-cities { font-size: 12.5px; color: var(--ammje-graphite,#6D6E70); line-height: 1.6; }
.ammje-nac-cta { background: var(--ammje-ink,#2b2b2b); border-radius: 18px; padding: 38px; text-align: center; }
.ammje-nac-cta h3 { font-family: var(--ammje-font-display); font-size: 24px; margin: 0 0 8px; color: #fff !important; }
.ammje-nac-cta p { color: rgba(255,255,255,.85) !important; max-width: 520px; margin: 0 auto 20px; }
@media (max-width: 640px) {
  .ammje-scope-tab { padding: 9px 14px; font-size: 13px; }
  .ammje-nac-stats { grid-template-columns: repeat(2,1fr); }
  .ammje-nac-cta { padding: 28px 20px; }
}

.ammje-cal-head { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 18px; }
.ammje-cal-title { font-size: 22px; margin: 0; min-width: 220px; text-align: center; color: var(--ammje-ink); }
.ammje-cal-nav {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ammje-lime-700,#6B7A22);
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box !important; padding: 0 !important; min-height: 0 !important;
  background: #fff; color: var(--ammje-lime-700,#6B7A22); font-size: 22px; line-height: 1; cursor: pointer; transition: all .2s;
}
.ammje-cal-nav:hover { background: var(--ammje-lime-700,#6B7A22); color: #fff; }
.ammje-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ammje-cal-dow { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ammje-graphite,#6D6E70); padding: 4px 0; text-transform: uppercase; }
.ammje-cal-cell {
  min-height: 96px; background: var(--ammje-warm-white,#f9f9f4); border-radius: 10px; padding: 6px;
  display: flex; flex-direction: column; gap: 4px; border: 1px solid rgba(0,0,0,.04);
}
.ammje-cal-cell.is-empty { background: transparent; border: none; }
.ammje-cal-cell.is-today { border-color: var(--ammje-lime-700,#6B7A22); box-shadow: inset 0 0 0 1px var(--ammje-lime-700,#6B7A22); }
.ammje-cal-cell.has-ev { background: #fff; }
.ammje-cal-d { font-size: 13px; font-weight: 600; color: var(--ammje-ink); }
.ammje-cal-cell.is-today .ammje-cal-d { color: var(--ammje-lime-700,#6B7A22); }
.ammje-cal-chip {
  display: flex; align-items: center; gap: 5px; width: 100%; text-align: left; border: none; cursor: pointer;
  background: var(--ammje-cream,#F2F2EC); border-radius: 6px; padding: 4px 6px; font-family: inherit; font-size: 11.5px;
  color: var(--ammje-ink,#2b2b2b); line-height: 1.25; transition: filter .15s;
}
.ammje-cal-chip:hover { filter: brightness(.96); }
.ammje-cal-chip-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ammje-cal-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: var(--ammje-graphite,#6D6E70); }
/* colores por tipo */
.t-desayuno .ammje-cal-dot, .ammje-cal-mli-date.t-desayuno { background:#87E772; }
.t-gala     .ammje-cal-dot, .ammje-cal-mli-date.t-gala     { background:#BE69A4; }
.t-cumbre   .ammje-cal-dot, .ammje-cal-mli-date.t-cumbre   { background:#396BB2; }
.t-nacional .ammje-cal-dot, .ammje-cal-mli-date.t-nacional { background:#396BB2; }
.t-cierre   .ammje-cal-dot, .ammje-cal-mli-date.t-cierre   { background:#FFEF38; }
.t-taller   .ammje-cal-dot, .ammje-cal-mli-date.t-taller   { background:#86D1E4; }
.t-mesa     .ammje-cal-dot, .ammje-cal-mli-date.t-mesa     { background:#CADB44; }
.t-otro     .ammje-cal-dot, .ammje-cal-mli-date.t-otro     { background:#6D6E70; }
/* lista del mes (solo móvil) */
.ammje-cal-monthlist { display: none; list-style: none; margin: 22px 0 0; padding: 0; }
.ammje-cal-mli { border-top: 1px solid rgba(0,0,0,.08); }
.ammje-cal-mli-btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 14px 4px; font-family: inherit; }
.ammje-cal-mli-date { flex: 0 0 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: #2b2b2b; }
.ammje-cal-mli-info { display: flex; flex-direction: column; gap: 2px; }
.ammje-cal-mli-info strong { font-size: 15px; color: var(--ammje-ink); }
.ammje-cal-mli-info em { font-size: 12.5px; color: var(--ammje-graphite,#6D6E70); font-style: normal; }
.ammje-cal-empty { color: var(--ammje-graphite,#6D6E70); padding: 16px 4px; }

@media (max-width: 768px) {
  .ammje-cal-grid { gap: 4px; }
  .ammje-cal-cell { min-height: 46px; padding: 4px 2px; align-items: center; gap: 3px; }
  .ammje-cal-d { font-size: 12px; }
  .ammje-cal-chip { padding: 0; background: transparent !important; justify-content: center; }
  .ammje-cal-chip-txt { display: none; }      /* en móvil solo punto */
  .ammje-cal-dot { width: 7px; height: 7px; flex-basis: 7px; }
  .ammje-cal-title { font-size: 18px; min-width: 150px; }
  .ammje-cal-monthlist { display: block; }     /* lista legible del mes */
}

/* ─────────────────────────────────────────────────────────
   AJUSTES UX BUILDER · INICIO 2026 (hero, botones, galería)
   ───────────────────────────────────────────────────────── */

/* Hero: dos fotos redondeadas y giradas (intercambiables en UX) */
.ammje-hero-duo { position: relative; min-height: 440px; }
.ammje-hero-duo .ammje-hero-pic { margin: 0 !important; }
.ammje-hero-duo .ammje-hero-pic img { display: block; }
.ammje-hero-pic-1 { width: 66%; transform: rotate(-4deg); }
.ammje-hero-pic-1 img { border-radius: 18px; box-shadow: 0 18px 44px rgba(42,42,42,.22); }
.ammje-hero-pic-2 { position: absolute; right: 0; bottom: 0; width: 52%; transform: rotate(5deg); }
.ammje-hero-pic-2 img { border-radius: 20px; border: 6px solid #fff; box-shadow: 0 18px 44px rgba(42,42,42,.22); }
@media (max-width: 549px) {
  .ammje-hero-duo { min-height: 320px; margin-top: 18px; }
  .ammje-hero-pic-1 { width: 72%; }
  .ammje-hero-pic-2 { width: 56%; }
}

/* Media redondeada (slider de Quiénes somos) */
.ammje-round-media img { border-radius: 16px; }

/* Botón "ver más" uniforme, legible y con flecha (sensación de botón) */
.ammje-more {
  display: inline-flex !important; align-items: center; gap: 7px;
  background: transparent; color: var(--ammje-lime-700) !important;
  border: 1.5px solid var(--ammje-lime-700); border-radius: 8px;
  padding: .55em 1.2em; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none !important;
  transition: all .2s ease; line-height: 1; cursor: pointer;
}
.ammje-more::after { content: "\2192"; font-size: 1.15em; transition: transform .2s ease; }
.ammje-more:hover { background: var(--ammje-lime-700); color: #fff !important; }
.ammje-more:hover::after { transform: translateX(4px); }
/* sobre fondos oscuros (CTA) */
.ammje-on-dark .ammje-more { color: #fff !important; border-color: rgba(255,255,255,.6); }
.ammje-on-dark .ammje-more:hover { background: #fff; color: var(--ammje-ink) !important; }
/* Texto legible en la sección oscura: títulos, énfasis y botón outline en blanco */
.ammje-on-dark h1, .ammje-on-dark h2, .ammje-on-dark h3,
.ammje-on-dark .ammje-display-1, .ammje-on-dark .ammje-display-2,
.ammje-on-dark .ammje-display-1 em, .ammje-on-dark .ammje-display-2 em { color: #fff !important; }
/* Subtitulo legible sobre fondo oscuro (faltaba, quedaba gris ilegible) */
.ammje-on-dark .ammje-lead { color: rgba(255,255,255,0.85) !important; }
.ammje-on-dark .button.is-outline,
.ammje-on-dark .button.is-outline span { color: #fff !important; border-color: #fff !important; }
.ammje-on-dark .button.is-outline:hover,
.ammje-on-dark .button.is-outline:hover span { background: #fff !important; color: var(--ammje-ink) !important; }

/* Botones uniformes: misma esquina sutil en todos */
.button, .ammje-more { border-radius: 8px !important; }

/* ── Carrusel de logos de socias (home) ── */
.ammje-logos{overflow:hidden;padding:26px 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);}
.ammje-logos-track{display:flex;align-items:center;gap:52px;width:max-content;animation:ammjeLogos 36s linear infinite;}
.ammje-logos:hover .ammje-logos-track{animation-play-state:paused;}
.ammje-logo-item{flex:none;height:94px;display:flex;align-items:center;}
.ammje-logo-item img{max-height:94px;max-width:210px;width:auto;object-fit:contain;filter:grayscale(1);opacity:.72;transition:filter .25s,opacity .25s;}
.ammje-logo-item img:hover{filter:none;opacity:1;}
@keyframes ammjeLogos{from{transform:translateX(0);}to{transform:translateX(-50%);}}
@media (max-width:640px){.ammje-logo-item{height:64px;}.ammje-logo-item img{max-height:64px;max-width:150px;}.ammje-logos-track{gap:34px;}}

/* ── Formación: preview de cursos dinámico (home) ── */
.ammje-cursos-home{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.ammje-cursos-home .ammje-curso-card{display:flex;flex-direction:column;align-items:flex-start;}
.ammje-cursos-home .ammje-curso-card .ammje-more{margin-top:auto;}
@media (max-width:850px){.ammje-cursos-home{grid-template-columns:1fr;}}

/* ── Patrocinadores oficiales + Alianzas y vinculaciones (home) ── */
.ammje-patros-block{margin-top:40px;}
.ammje-patros-label{text-align:center;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#8a8a7a;font-weight:700;margin:0 0 20px;}
.ammje-patros{display:flex;justify-content:center;align-items:center;gap:60px;flex-wrap:wrap;}
.ammje-patro{height:80px;display:flex;align-items:center;justify-content:center;}
.ammje-patro img{max-height:80px;max-width:260px;width:auto;object-fit:contain;}
.ammje-alianzas{display:flex;justify-content:center;align-items:center;gap:46px;flex-wrap:wrap;}
.ammje-alianza{height:92px;display:flex;align-items:center;justify-content:center;}
.ammje-alianza img{max-height:92px;max-width:130px;width:auto;object-fit:contain;}
@media (max-width:640px){.ammje-patro{height:56px;}.ammje-patro img{max-height:56px;max-width:180px;}.ammje-alianza{height:66px;}.ammje-alianza img{max-height:66px;max-width:100px;}.ammje-patros{gap:34px;}.ammje-alianzas{gap:26px;}}

/* ── Hero: slideshow en fade de 3 fotos aleatorias ── */
.ammje-hero-fade{position:relative;aspect-ratio:1/1;width:100%;border-radius:18px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.14);background:#e9e5db;}
.ammje-hero-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 20%;opacity:0;transition:opacity 1.2s ease;}
.ammje-hero-slide.is-on{opacity:1;}

/* Hero móvil: el texto (lead + botones) va DESPUÉS de la imagen */
.ammje-hero-more-m{display:none;}
@media(max-width:849px){
  .ammje-hero-more-d{display:none;}
  .ammje-hero-more-m{display:block;margin-top:18px;}
}

/* ===== Menú de entrada (página Tienda como hub) — 19-jul-2026 ===== */
.ammje-hub{max-width:1100px;margin:0 auto;padding:10px 16px 40px}
.ammje-hub-head{text-align:center;max-width:680px;margin:0 auto 30px}
.ammje-hub-head h2{font-size:32px;line-height:1.2;color:#2b2f1d;margin:0 0 10px}
.ammje-hub-head p{font-size:17px;color:#6a6f58;margin:0}
.ammje-hub-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.ammje-hub-card{display:flex;flex-direction:column;align-items:flex-start;gap:14px;
  background:#fff;border:1px solid #e6e9d6;border-radius:18px;padding:28px 26px;
  text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  box-shadow:0 1px 2px rgba(43,47,29,.04)}
.ammje-hub-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(43,47,29,.12);border-color:#c9d19a}
.ammje-hub-ico{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  background:#F1F4DE;color:#4E5A18;flex:none}
.ammje-hub-ico svg{width:28px;height:28px;stroke-width:1.7}
.ammje-hub-card h3{font-size:20px;color:#2b2f1d;margin:0}
.ammje-hub-card p{font-size:14.5px;line-height:1.5;color:#6a6f58;margin:0;flex:1}
.ammje-hub-tag{font-size:12px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;
  color:#8a9152;background:#F5F7E8;padding:4px 11px;border-radius:99px}
.ammje-hub-go{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:#4E5A18;font-size:14.5px;margin-top:2px}
.ammje-hub-go svg{width:17px;height:17px}
.ammje-hub-card:hover .ammje-hub-go{gap:10px}
.ammje-hub-note{text-align:center;color:#9aa08a;font-size:13.5px;margin:26px auto 0;max-width:560px}
@media(max-width:760px){.ammje-hub-grid{grid-template-columns:1fr}.ammje-hub-head h2{font-size:26px}}
/* hub: títulos/descr como span-bloque para que wpautop no rompa el <a> */
.ammje-hub-t{display:block;font-size:20px;color:#2b2f1d;font-weight:700;margin:0}
.ammje-hub-d{display:block;font-size:14.5px;line-height:1.5;color:#6a6f58;margin:0;flex:1}

/* ===== Carrito deslizable (mini-cart) — botones legibles 19-jul-2026 ===== */
.cart-sidebar .widget_shopping_cart .buttons,
.widget_shopping_cart_content .buttons,
.off-canvas-cart .buttons{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.cart-sidebar .widget_shopping_cart .buttons .button,
.widget_shopping_cart_content .buttons .button,
.off-canvas-cart .buttons .button{
  display:block;width:100%;text-align:center;margin:0;border-radius:10px;
  padding:12px 16px;font-weight:700;font-size:14px;line-height:1.2;box-shadow:none}
/* "Ver carrito": contorno olivo, texto olivo, fondo blanco (antes salía verde sobre verde) */
.cart-sidebar .widget_shopping_cart .buttons .button:not(.checkout),
.widget_shopping_cart_content .buttons .button:not(.checkout),
.off-canvas-cart .buttons .button:not(.checkout){
  background:#fff !important;color:#4E5A18 !important;border:2px solid #6B7A22 !important}
.cart-sidebar .widget_shopping_cart .buttons .button:not(.checkout):hover,
.widget_shopping_cart_content .buttons .button:not(.checkout):hover,
.off-canvas-cart .buttons .button:not(.checkout):hover{background:#F1F4DE !important;color:#3d481a !important}
/* "Finalizar compra": olivo sólido, texto blanco */
.cart-sidebar .widget_shopping_cart .buttons .button.checkout,
.widget_shopping_cart_content .buttons .button.checkout,
.off-canvas-cart .buttons .button.checkout{
  background:#4E5A18 !important;color:#fff !important;border:2px solid #4E5A18 !important}
.cart-sidebar .widget_shopping_cart .buttons .button.checkout:hover,
.widget_shopping_cart_content .buttons .button.checkout:hover,
.off-canvas-cart .buttons .button.checkout:hover{background:#3d481a !important;border-color:#3d481a !important}

/* ===== Página Carrito: botones legibles (Finalizar compra tenía texto olivo sobre negro) 19-jul ===== */
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce a.checkout-button.button.alt{
  background:#4E5A18 !important;color:#fff !important;border-color:#4E5A18 !important;
  font-weight:700 !important}
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce a.checkout-button.button.alt:hover{
  background:#3d481a !important;border-color:#3d481a !important;color:#fff !important}
/* Cualquier botón .alt (dark) siempre con texto blanco, nunca olivo sobre oscuro */
.woocommerce .button.alt,.woocommerce button.alt{color:#fff !important}

/* ===== hub: tarjetas en "Próximamente" (sin fecha cargada) 19-jul ===== */
.ammje-hub-card.soon{cursor:default;background:#fbfbf7}
.ammje-hub-card.soon:hover{transform:none;box-shadow:0 1px 2px rgba(43,47,29,.04);border-color:#e6e9d6}
.ammje-hub-card.soon .ammje-hub-ico{background:#eef0e3;color:#9aa06a}
.ammje-hub-card.soon .ammje-hub-t{color:#5b6047}
.ammje-hub-soon{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:12.5px;letter-spacing:.02em;
  color:#8a9152;background:#F5F7E8;border:1px dashed #c9d19a;padding:6px 13px;border-radius:99px;margin-top:2px}
.ammje-hub-soon svg{width:15px;height:15px}

/* ===== Toggles de la página Eventos más compactos (19-jul, pedido Cristina) ===== */
.ammje-evscope-tabs, .ammje-ev-toggle { padding: 3px; border-radius: 10px; gap: 3px; }
.ammje-evscope-tabs { margin-bottom: 16px; }
.ammje-evscope-tab { padding: 6px 15px; font-size: 13px; border-radius: 8px; }
.ammje-evscope-tab small { font-size: 9.5px; }
.ammje-ev-tab { padding: 6px 15px; font-size: 13px; border-radius: 8px; gap: 6px; }
.ammje-ev-tab svg { width: 15px; height: 15px; }
@media (max-width: 600px) { .ammje-evscope-tab { padding: 7px 5px; font-size: 12.5px; } }

/* ===== Hero Beneficios & Alianzas: foto de fondo con overlay 19-jul ===== */
.ammje-hero-beneficios{
  background-image: linear-gradient(100deg, rgba(43,53,26,.86) 0%, rgba(43,53,26,.62) 55%, rgba(43,53,26,.45) 100%), url(/wp-content/uploads/2026/06/ammje-gal-3.jpg);
  background-size: cover; background-position: center 30%;
}

/* ===== Toggles de Eventos: quitar el margin-right:13px heredado de Flatsome en los <button> 19-jul ===== */
.ammje-evscope-tab, .ammje-ev-tab{ margin:0 !important; }
.ammje-evscope-tabs, .ammje-ev-toggle{ width:fit-content !important; min-width:0 !important; }

/* ===== DIGINOVA: banda de aliados/convenios en home ([ammje_aliados_home]) ===== */
.ammje-aliados{background:var(--ammje-cream);padding:88px 24px;}
.ammje-aliados-inner{max-width:1120px;margin:0 auto;text-align:center;}
.ammje-aliados-eyebrow{display:inline-block;font-family:var(--ammje-font-body);font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--ammje-lime);margin-bottom:14px;}
.ammje-aliados-title{font-family:var(--ammje-font-display);font-weight:500;font-size:clamp(28px,4vw,42px);line-height:1.12;margin:0 0 14px;color:var(--ammje-ink);}
.ammje-aliados-title em{font-style:italic;color:var(--ammje-lime);}
.ammje-aliados-sub{max-width:640px;margin:0 auto 44px;font-size:16.5px;line-height:1.6;color:var(--ammje-ink-soft);}
.ammje-aliados-grupo{margin-bottom:38px;}
.ammje-aliados-grupo-tit{display:flex;align-items:center;justify-content:center;gap:14px;font-family:var(--ammje-font-body);font-size:12.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--ammje-graphite);margin:0 0 22px;}
.ammje-aliados-grupo-tit::before,.ammje-aliados-grupo-tit::after{content:"";height:1px;width:min(90px,12vw);background:var(--ammje-soft-gray);}
.ammje-aliados-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;}
.ammje-aliados-grid.is-intl{max-width:560px;margin:0 auto;}
.ammje-aliado{background:var(--ammje-warm-white);border:1px solid var(--ammje-soft-gray);border-radius:14px;padding:22px 18px;display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;min-height:104px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
.ammje-aliado:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(107,122,34,.12);border-color:var(--ammje-lime);}
.ammje-aliado-nom{font-family:var(--ammje-font-display);font-weight:500;font-size:18px;line-height:1.2;color:var(--ammje-ink);}
.ammje-aliado-cat{font-family:var(--ammje-font-body);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ammje-lime);}
.ammje-aliados-cta{display:inline-flex;align-items:center;gap:8px;margin-top:14px;background:var(--ammje-lime);color:#fff;font-weight:600;font-size:15px;text-decoration:none;padding:14px 28px;border-radius:40px;transition:transform .18s ease,box-shadow .18s ease;}
.ammje-aliados-cta:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(107,122,34,.28);color:#fff;}
.ammje-aliados-nota{margin-top:26px;font-size:12.5px;color:var(--ammje-graphite);}
@media(max-width:600px){.ammje-aliados{padding:60px 18px;}}

/* ── Consejo local en movil: carrusel deslizable ──────────────────────────────
   Una columna de tarjetas se siente interminable y nadie llega al final.
   Va al final del archivo a proposito: gana a las reglas de arriba por orden. */
@media (max-width: 760px) {
  .ammje-consejo-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 14px;
  }
  .ammje-consejo-grid::-webkit-scrollbar { display: none; }
  .ammje-consejo-card { flex: 0 0 74%; max-width: 300px; scroll-snap-align: center; }
}

/* Encabezado: con 8 pestañas el menu empujaba "Acceder" y el carrito a un segundo renglon
   en pantallas de 1100-1300px. Se aprieta solo el espaciado del nav, sin tocar los textos. */
@media (min-width:850px) and (max-width:1340px){
  .header-nav.header-nav-main > li > a{ padding-left:9px !important; padding-right:9px !important; font-size:14.5px !important; }
  .header-nav.header-nav-main > li{ margin:0 !important; }
}
@media (min-width:850px) and (max-width:1259px){
  .header-nav.header-nav-main > li > a{ padding-left:6px !important; padding-right:6px !important; font-size:13.5px !important; }
  .header-main .header-button .button, .header-main .header-button a.button{ padding-left:12px !important; padding-right:12px !important; font-size:13px !important; }
}

/* ── Calendario: cuadros parejos y flechas discretas (31-jul-2026) ────────
   Con repeat(7, 1fr) cada columna crecía hasta caber el título más largo del
   chip, y por eso las semanas salían disparejas. minmax(0,1fr) las obliga a
   repartirse igual, y el chip trunca en vez de empujar. */
.ammje-cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
.ammje-cal-cell { min-width: 0 !important; }
.ammje-cal-chip { min-width: 0 !important; }
.ammje-cal-chip-txt {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
/* Todas las semanas con el mismo alto, aunque una no tenga eventos */
.ammje-cal-grid > .ammje-cal-cell { min-height: 104px !important; }

/* Flechas sin el círculo: se veía pesado junto al título */
.ammje-cal-nav {
  width: 34px !important; height: 34px !important;
  border-radius: 8px !important; border: none !important;
  background: transparent !important; color: var(--ammje-ink, #2A351A) !important;
  font-size: 26px !important; opacity: .5; transition: opacity .15s, background .15s;
}
.ammje-cal-nav:hover {
  background: var(--ammje-cream, #F2F2EC) !important;
  color: var(--ammje-ink, #2A351A) !important; opacity: 1;
}
