/* ==========================================================
   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(5, 1fr); gap: 32px;
  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(3, 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: 48px; font-weight: 600; 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; }
}

/* 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; } }

/* ─── 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);
}
.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; }
  .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: 110px 1fr auto; gap: 28px;
  background: #fff; padding: 28px 32px; border-radius: 16px;
  box-shadow: var(--ammje-shadow-card); align-items: center;
}
.ammje-evento-date-big {
  display: flex; flex-direction: column; align-items: center;
  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; }
.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);}
.ammje-conv-top{display:flex;align-items:center;gap:14px;margin-bottom:14px;}
.ammje-conv-logo{width:60px;height:60px;border-radius:12px;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; border: 1.5px solid var(--ammje-lime-700,#6B7A22); border-radius: 10px; overflow: hidden; }
.ammje-ev-tab {
  display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
  box-sizing: border-box; min-height: 0;
  font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--ammje-lime-700,#6B7A22);
  background: #fff; padding: 9px 20px; font-family: inherit; transition: all .18s; line-height: 1;
}
.ammje-ev-tab + .ammje-ev-tab { border-left: 1.5px solid var(--ammje-lime-700,#6B7A22); }
.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 */
.ammje-evscope-tabs { display: inline-flex; border: 1.5px solid var(--ammje-lime-700,#6B7A22); border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.ammje-evscope-tab {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px; border: none; background: #fff;
  color: var(--ammje-lime-700,#6B7A22); cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px;
  padding: 9px 20px; box-sizing: border-box; min-height: 0; line-height: 1.2; transition: all .18s;
}
.ammje-evscope-tab + .ammje-evscope-tab { border-left: 1.5px solid var(--ammje-lime-700,#6B7A22); }
.ammje-evscope-tab small { font-weight: 500; font-size: 11px; opacity: .7; }
.ammje-evscope-tab.is-active { background: var(--ammje-lime-700,#6B7A22); color: #fff; }
@media (max-width: 600px) { .ammje-evscope-tab { padding: 8px 12px; font-size: 13px; } }
.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: 210px; background-size: cover; background-position: center; 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: 150px; }
  .ammje-evdetail-body { padding: 22px 20px; }
  .ammje-evdetail-precios { flex-direction: column; }
  .ammje-evdetail-meta span { flex-basis: 72px; }
}

/* ─── DIRECTORIO: alcance Local / Regional / Nacional ─── */
.ammje-scope-tabs { display: inline-flex; border: 1.5px solid var(--ammje-lime-700,#6B7A22); border-radius: 12px; overflow: hidden; margin-bottom: 32px; }
.ammje-scope-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px; border: none; background: #fff;
  color: var(--ammje-lime-700,#6B7A22); cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px;
  padding: 10px 24px; box-sizing: border-box; min-height: 0; transition: all .18s; line-height: 1.2;
}
.ammje-scope-tab + .ammje-scope-tab { border-left: 1.5px solid var(--ammje-lime-700,#6B7A22); }
.ammje-scope-tab small { font-weight: 500; font-size: 11.5px; opacity: .75; }
.ammje-scope-tab.is-active { background: var(--ammje-lime-700,#6B7A22); color: #fff; }
.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 */
}
