/* ==========================================================================
   ESCUELA MEDITA — Redesign (chrome + home)
   Ported from /rediseño (colors_and_type.css + ui_kits/website/kit.css).
   - :root tokens are global (values match the original brand palette).
   - Bare-element styles (body, box-sizing) are SCOPED to .em-home so the
     redesign does NOT alter the look of pages that are not being redesigned.
   - All component styles are namespaced under .em-* and are safe site-wide
     (they power the shared new header/footer).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Spectral:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* Transición suave entre páginas (View Transitions cross-document).
   Mejora progresiva: se ignora en navegadores sin soporte. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: em-vt-out .32s cubic-bezier(.4,0,.2,1) both; }
::view-transition-new(root) { animation: em-vt-in .40s cubic-bezier(.4,0,.2,1) both; }
@keyframes em-vt-out { to { opacity: 0; transform: translateX(-6vw); } }
@keyframes em-vt-in { from { opacity: 0; transform: translateX(6vw); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

:root {
  /* ---- Core brand palette (verbatim from base.css) ---------------------- */
  --brand:        #6b857e;
  --brand-2:      #8ca099;
  --accent:       #dcab8b;
  --accent-2:     #f4f2a2;
  --btn-verde:    #3ca36c;
  --btn-verde-claro: #d1f2e1;

  /* ---- Ink & neutrals --------------------------------------------------- */
  --ink:          #1d2220;
  --muted:        #44514d;
  --muted-2:      #777f7c;
  --bg:           #ffffff;
  --bg-warm:      #faf8f6;
  --bg-sage:      #f1f4f2;
  --line:         #ececec;
  --line-sage:    rgba(107,133,126,.18);

  /* ---- Foreground semantic aliases -------------------------------------- */
  --fg-on-brand: #f9fbfa;
  --fg-on-accent: #2b1d14;

  /* ---- Type families ----------------------------------------------------- */
  --font-sans:    "Poppins", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif:   "Spectral", Georgia, "Times New Roman", serif;

  /* ---- Type scale -------------------------------------------------------- */
  --t-display:  clamp(2.4rem, 5vw, 3.8rem);
  --t-h1:       clamp(2rem, 4vw, 3rem);
  --t-h2:       clamp(1.6rem, 3vw, 2.4rem);
  --t-h3:       clamp(1.2rem, 2vw, 1.5rem);
  --t-lead:     clamp(1.05rem, 1.6vw, 1.25rem);
  --t-body:     1rem;
  --t-small:    .85rem;
  --t-eyebrow:  .8rem;

  /* ---- Weights ----------------------------------------------------------- */
  --w-light: 300; --w-regular: 400; --w-medium: 500;
  --w-semibold: 600; --w-bold: 700; --w-black: 800;

  /* ---- Radii ------------------------------------------------------------- */
  --r-xs: .35rem; --r-sm: .75rem; --r-md: .9rem; --r-lg: 1rem;
  --r-xl: 1.5rem; --r-2xl: 1.75rem; --r-pill: 999px;

  /* ---- Spacing ----------------------------------------------------------- */
  --sp-section: clamp(3rem, 7vw, 6rem);

  /* ---- Shadows ----------------------------------------------------------- */
  --shadow-card:   0 10px 30px rgba(0,0,0,.04);
  --shadow-soft:   0 4px 12px rgba(0,0,0,.08);
  --shadow-raised: 0 16px 30px rgba(220,171,139,.36);
  --shadow-sage:   0 12px 26px rgba(107,133,126,.26);
  --shadow-deep:   0 26px 52px rgba(31,42,39,.12);

  /* ---- Gradients --------------------------------------------------------- */
  --grad-peach:  linear-gradient(180deg, rgba(255,219,198,.94), rgba(220,171,139,.92));
  --grad-sage:   linear-gradient(135deg, rgba(107,133,126,.34) 0%, rgba(140,160,153,.42) 100%);
}

/* Escala global de UI (rem base). Replica base.css para que TODAS las vistas
   (el index incluido, que no carga base.css) compartan el mismo tamaño/"zoom"
   que el blog: 75% en desktop, 100% en móvil. */
:root { --ui-scale: 0.75; }
html { font-size: calc(16px * var(--ui-scale)); }
@media (max-width: 900px) {
  :root { --ui-scale: 1; }
  html { font-size: 16px; }
}

/* ==========================================================================
   Home page only (scoped to .em-home) — safe to load everywhere.
   ========================================================================== */
body.em-home {
  margin: 0;
  background: var(--bg-warm);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.em-home * { box-sizing: border-box; }
body.em-home img { max-width: 100%; display: block; }
body.em-home ul { margin: 0; padding: 0; list-style: none; }
body.em-home main p { margin: 0 0 1rem; color: var(--ink); }
body.em-home main { display: block; }
/* Sin subrayado por defecto en los enlaces del home (el index no carga el reset
   global de base.css). Las afordancias usan border-bottom o el subrayado en hover. */
body.em-home a { text-decoration: none; }

.em-container { width: min(1180px, 92vw); margin-inline: auto; }
.em-section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.em-section--warm { background: var(--bg-warm); }
.em-section--white { background: var(--bg); }

.em-eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem;
}
.em-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.em-section-head { max-width: 640px; }
.em-section-head--center { margin-inline: auto; text-align: center; }
.em-section-head--center .em-eyebrow { justify-content: center; }
.em-h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.08;
  color: var(--muted); margin: 0 0 1rem; letter-spacing: -.01em; text-wrap: balance;
}
.em-h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--accent); }
.em-lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.65; color: var(--muted); margin: 0; font-weight: 400; }

/* ---- Buttons ----------------------------------------------------------- */
.em-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: var(--r-md); font-family: inherit;
  font-weight: 600; font-size: .98rem; letter-spacing: .005em; line-height: 1.1;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .2s ease, box-shadow .3s ease, background .3s ease, color .25s ease;
}
/* Profundidad por sombra (sin borde): una sombra ambiental sutil cerca del botón
   + el resplandor peach. Da relieve sin la línea/borde oscuro. */
.em-btn--primary {
  background: var(--grad-peach); color: var(--fg-on-accent); border: none;
  box-shadow: 0 2px 5px rgba(43,29,20,.12), 0 10px 22px rgba(220,171,139,.5);
}
.em-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 5px 11px rgba(43,29,20,.15), 0 18px 34px rgba(220,171,139,.58); }
.em-btn--primary:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(43,29,20,.16), 0 6px 14px rgba(220,171,139,.5); }
/* Reemplaza el contorno negro por defecto del navegador por un anillo sage. */
.em-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(107,133,126,.4); }
.em-btn--ghost { background: rgba(107,133,126,.08); border-color: rgba(107,133,126,.45); color: #1b2d28; }
.em-btn--ghost:hover { background: rgba(107,133,126,.16); transform: translateY(-2px); }
.em-btn--sage { background: var(--brand); color: var(--fg-on-brand); box-shadow: var(--shadow-sage); }
.em-btn--sage:hover { transform: translateY(-2px); background: #5e776f; }
.em-btn--light { background: #fff; color: var(--muted); box-shadow: var(--shadow-soft); }
.em-btn--light:hover { transform: translateY(-2px); }

/* ---- Floral accent ----------------------------------------------------- */
.em-floral { position: absolute; pointer-events: none; user-select: none; opacity: .9; z-index: 0; }

/* El header anterior era position:fixed y exigía un padding-top al <body>
   (definido en base.css). El header nuevo es sticky y vive en el flujo normal,
   así que ese padding sobra y, de hecho, hacía "saltar" el header al scrollear.
   Lo anulamos en todas las páginas que aún cargan base.css. */
body { padding-top: 0 !important; transition: none; }

/* base.css pone overflow-x:hidden en html/body. En html eso rompe position:sticky
   (el header no acompaña el scroll en páginas que cargan base.css, como el blog).
   'clip' evita el scroll horizontal SIN crear contenedor de scroll → sticky funciona. */
html, body { overflow-x: clip; }

/* Páginas internas (blog, etc.): su toolbar/sidebar sticky se anclaban al header
   fijo anterior. Las realineamos al header sticky nuevo (84px). */
.blog-toolbar { top: 84px; }
.blog-sidebar, .blog-article-aside { top: calc(84px + 1.5rem); }

/* ======================== HEADER (site-wide) ======================== */
.em-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-warm) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.em-header.is-scrolled { border-bottom-color: var(--line-sage); box-shadow: 0 8px 24px rgba(31,42,39,.05); }
.em-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 84px; }
.em-logo { display: inline-flex; align-items: center; }
.em-logo img { height: 52px; width: auto; display: block; }
.em-nav { display: flex; align-items: center; gap: 2rem; }
.em-nav a {
  font-size: .96rem; font-weight: 500; color: var(--muted); position: relative;
  padding: .3rem 0; transition: color .2s ease; text-decoration: none;
}
.em-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s ease;
}
.em-nav a:hover, .em-nav a.is-active { color: var(--ink); }
.em-nav a:hover::after, .em-nav a.is-active::after { width: 100%; }
.em-header__actions { display: flex; align-items: center; gap: .9rem; }
/* CTA del header: tamaño compacto pero con aire y sombra peach bien visible */
.em-header__actions .em-btn--primary {
  padding: .68rem 1.4rem;
  font-size: .92rem;
  box-shadow: 0 2px 5px rgba(43,29,20,.12), 0 8px 18px rgba(220,171,139,.5);
}
.em-header__actions .em-btn--primary:hover { box-shadow: 0 4px 9px rgba(43,29,20,.14), 0 12px 24px rgba(220,171,139,.6); }

/* Authenticated-only mini menu (kept for admin/member dashboards; hidden to public) */
.em-auth { position: relative; }
.em-auth__toggle {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .95rem;
  border-radius: var(--r-pill); border: 1px solid var(--line-sage); background: #fff;
  font: inherit; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer;
}
.em-auth__toggle:hover { color: var(--ink); }
.em-auth__menu {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 200px;
  background: #fff; border: 1px solid var(--line-sage); border-radius: var(--r-lg);
  box-shadow: var(--shadow-deep); padding: .5rem; display: grid; gap: .15rem; z-index: 60;
}
.em-auth__menu[hidden] { display: none; }
.em-auth__greeting { padding: .4rem .7rem; font-size: .82rem; color: var(--muted-2); }
.em-auth__item {
  display: block; width: 100%; text-align: left; padding: .6rem .7rem; border: 0;
  background: none; font: inherit; font-size: .92rem; color: var(--ink); border-radius: .6rem;
  cursor: pointer; text-decoration: none;
}
.em-auth__item:hover { background: var(--bg-sage); }

/* Hamburguesa moderna: botón circular glassy con barras sage que se transforman
   en X al abrir (usa aria-expanded, que ya alterna el JS). */
.em-burger {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-sage);
  background: rgba(255,255,255,.65);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  cursor: pointer; padding: 0; position: relative;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.em-burger:hover { background: rgba(255,255,255,.9); box-shadow: var(--shadow-soft); }
.em-burger:active { transform: scale(.96); }
.em-burger span {
  position: absolute; top: 50%; left: 50%; width: 19px; height: 2px; border-radius: 2px;
  background: var(--brand); transform: translate(-50%, -50%);
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .18s ease;
}
.em-burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.em-burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.em-burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.em-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scaleX(0); }
.em-burger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Simple mobile dropdown */
.em-mobile-nav {
  display: none; border-top: 1px solid var(--line-sage);
  background: color-mix(in srgb, var(--bg-warm) 94%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
}
.em-mobile-nav[hidden] { display: none; }
.em-mobile-nav.is-open { display: block; }
.em-mobile-nav__inner { display: grid; gap: .25rem; padding: 1rem 0 1.25rem; }
.em-mobile-nav a, .em-mobile-nav button {
  font: inherit; text-align: left; background: none; border: 0; cursor: pointer;
  font-weight: 500; font-size: 1.02rem; color: var(--muted); padding: .7rem .2rem;
  border-radius: .5rem; text-decoration: none;
}
.em-mobile-nav a:hover, .em-mobile-nav button:hover { color: var(--ink); }
.em-mobile-nav .em-btn { margin-top: .6rem; }

/* ======================== HERO ======================== */
.em-hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(4rem, 8vw, 6.5rem); }
.em-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.em-hero__title {
  font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 800; line-height: 1.04;
  letter-spacing: -.015em; color: #3b4d36; margin: 1.2rem 0 1.5rem; text-wrap: balance;
}
.em-hero__title em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--brand); }
.em-hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.65; color: var(--muted); max-width: 30ch; margin: 0 0 2rem; }
.em-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.em-hero__note { margin: 1.6rem 0 0; font-size: .92rem; color: var(--muted-2); }
.em-hero__note a { color: var(--brand); border-bottom: 1px solid currentColor; }
.em-hero__media { position: relative; }
.em-hero__photo {
  position: relative; border-radius: 28px 28px 120px 28px; overflow: hidden;
  aspect-ratio: 4/4.4; box-shadow: var(--shadow-deep); z-index: 1; margin: 0;
}
.em-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.em-hero__badge {
  position: absolute; left: -22px; bottom: 38px; z-index: 2; background: #fff;
  border-radius: var(--r-xl); padding: 1rem 1.25rem; box-shadow: var(--shadow-deep);
  display: flex; align-items: center; gap: .85rem; max-width: 260px;
}
.em-hero__badge-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-2); display: grid; place-items: center; flex: none; color: #fff; font-weight: 700; }
.em-hero__badge p { margin: 0; font-size: .86rem; line-height: 1.4; color: var(--muted); }
.em-hero__badge strong { display: block; color: var(--ink); font-size: .95rem; }

/* ---- Hero full-bleed (imagen a lo ancho) ---- */
.em-hero--cover { padding: 0; min-height: clamp(560px, 82vh, 820px); display: flex; align-items: center; }
.em-hero__bg { position: absolute; inset: 0; z-index: 0; }
.em-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
/* Velo cálido que se desvanece hacia la derecha: deja legible el texto a la izquierda
   y muestra la foto de Tamara a la derecha. */
.em-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(250,248,246,.97) 0%,
    rgba(250,248,246,.92) 26%,
    rgba(250,248,246,.6) 46%,
    rgba(250,248,246,.18) 64%,
    rgba(250,248,246,0) 82%);
}
.em-hero__cover-inner { position: relative; z-index: 1; }
.em-hero--cover .em-hero__content { max-width: 560px; }
@media (max-width: 900px) {
  /* En móvil el hero se apila: la foto se ve nítida arriba (banda a lo ancho) y el
     texto va debajo sobre fondo claro — en vez de texto sobre la imagen difuminada. */
  .em-hero--cover { display: flex; flex-direction: column; min-height: auto; padding: 0; }
  /* Flores decorativas ocultas en móvil: se encimaban al texto en varias secciones. */
  .em-floral { display: none; }
  .em-hero__bg { position: relative; inset: auto; width: 100%; height: clamp(260px, 56vw, 380px); }
  .em-hero__bg img { object-position: 70% 26%; }
  .em-hero__bg::after { display: none; }
  .em-hero__cover-inner { padding: clamp(1.75rem, 6vw, 2.5rem) 0 clamp(2.5rem, 9vw, 3.5rem); }
  .em-hero--cover .em-hero__content { max-width: none; }
}

/* ======================== FIT ======================== */
.em-fit__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.em-fit__list { display: grid; gap: 1.1rem; }
.em-fit__item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; font-size: 1.05rem; line-height: 1.5; color: var(--ink); }
.em-fit__check {
  width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--btn-verde-claro);
  color: var(--btn-verde); display: grid; place-items: center; font-weight: 700; font-size: .9rem; margin-top: 1px;
}
.em-fit__closing { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--brand); line-height: 1.4; margin: 2rem 0 0; }

/* ======================== PROGRAMS ======================== */
.em-programs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; align-items: stretch; }
.em-prog-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: .75rem; box-shadow: var(--shadow-card); position: relative;
  transition: transform .25s ease, box-shadow .3s ease;
}
.em-prog-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(31,42,39,.1); }
.em-prog-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: .5rem; }
.em-prog-card__kicker { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0; }
.em-prog-card h3 { font-size: 1.4rem; font-weight: 700; color: var(--muted); margin: 0; }
.em-prog-card p { color: var(--ink); margin: 0; line-height: 1.55; flex: 1; }
.em-prog-card__cta { margin-top: 1rem; }
.em-prog-card.is-featured { background: linear-gradient(180deg, #6f8980 0%, #5d756d 100%); border-color: transparent; color: #fff; }
.em-prog-card.is-featured .em-prog-card__kicker { color: var(--accent-2); }
.em-prog-card.is-featured h3 { color: #fff; }
.em-prog-card.is-featured p { color: rgba(255,255,255,.86); }
.em-prog-card__tag {
  position: absolute; top: 1.25rem; right: 1.25rem; background: var(--accent); color: var(--fg-on-accent);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: var(--r-pill);
}
.em-programs__note { text-align: center; margin: 2.5rem 0 0; color: var(--muted); }
.em-programs__note a { color: var(--brand); font-weight: 600; border-bottom: 1px solid currentColor; }
.em-prog-soon {
  margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  padding: .7rem 1.2rem; border-radius: var(--r-md); font-weight: 600; font-size: .92rem;
  background: rgba(255,255,255,.16); color: #fff; border: 1px dashed rgba(255,255,255,.5);
}
.em-prog-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }

/* Club teaser */
.em-soon-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(255,255,255,.08); border: 1px solid rgba(244,242,162,.4);
}
.em-soon-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(244,242,162,.2); }
.em-membership--soon .em-membership__shot { opacity: .92; }

/* ======================== APPROACH ======================== */
.em-approach__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.em-approach__col { background: var(--bg-warm); border: 1px solid var(--line-sage); border-radius: var(--r-xl); padding: 2rem 1.75rem; }
.em-approach__num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 500; font-style: italic; color: var(--accent); line-height: 1; margin-bottom: .75rem; }
.em-approach__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #e9f1ec; color: #3b4d36; margin-bottom: 1.1rem; }
.em-approach__icon svg { width: 28px; height: 28px; }
.em-approach__col h3 { font-size: 1.3rem; color: var(--muted); margin: 0 0 1rem; }
.em-approach__col li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; color: var(--ink); line-height: 1.5; margin-bottom: .55rem; font-size: .98rem; }
.em-approach__col li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); margin-top: .55rem; }

/* ======================== MEMBERSHIP ======================== */
.em-membership { background: linear-gradient(165deg, #2c3a35 0%, #1f2a27 100%); color: #fff; border-radius: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.em-membership__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
.em-membership .em-eyebrow { color: var(--accent); }
.em-membership .em-eyebrow::before { background: var(--accent); }
.em-membership__title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 800; line-height: 1.1; margin: 0 0 1.1rem; color: #fff; }
.em-membership__title em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--accent); }
.em-membership__copy { color: rgba(255,255,255,.8); line-height: 1.65; font-size: 1.05rem; margin: 0 0 1rem; max-width: 46ch; }
.em-membership__features { display: grid; gap: .85rem; margin: 1.75rem 0; }
.em-membership__feature { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; color: rgba(255,255,255,.92); }
.em-membership__feature-ic { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none; }
.em-membership__media { position: relative; display: grid; gap: 1rem; }
.em-membership__shot { border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.3); margin: 0; }
.em-membership__shot img { width: 100%; height: 100%; object-fit: cover; }
.em-membership__shot--a { aspect-ratio: 16/10; }
.em-membership__shot--b { aspect-ratio: 16/9; margin-left: 2.5rem; }

/* ======================== TESTIMONIALS ======================== */
/* Carrusel: desplazamiento lento, arrastrable, se pausa y expande la tarjeta al pasar el mouse */
.em-tst__carousel {
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.em-tst__track {
  display: flex;
  align-items: flex-start;
  padding-block: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
}
.em-tst__track::-webkit-scrollbar { display: none; }
.em-tst__track.is-dragging { cursor: grabbing; }
.em-tst__track.is-dragging .em-tst-card { user-select: none; }
.em-tst-card {
  flex: 0 0 clamp(280px, 82vw, 360px);
  box-sizing: border-box;
  margin-right: 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 2rem 1.75rem; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 1rem;
  transition: box-shadow .22s ease, transform .22s ease;
}
.em-tst-card:hover { box-shadow: 0 20px 44px rgba(0, 0, 0, .12); transform: translateY(-3px); }
.em-tst-card__quote { font-family: var(--font-serif); font-size: 1.6rem; color: var(--accent); line-height: 1; }
.em-tst-card p {
  color: var(--ink); line-height: 1.6; font-size: .98rem; margin: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.em-tst-card:hover p,
.em-tst-card:focus-within p { -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.em-tst__track.is-dragging .em-tst-card:hover { box-shadow: var(--shadow-card); transform: none; }
.em-tst__track.is-dragging .em-tst-card:hover p { -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.em-tst-card__person { display: flex; align-items: center; gap: .85rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.em-tst-card__person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.em-tst-card__name { font-weight: 600; color: var(--ink); font-size: .95rem; }
.em-tst-card__role { font-size: .82rem; color: var(--muted-2); }

/* ======================== ABOUT ======================== */
.em-about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.em-about__photo { position: relative; }
.em-about__photo img { border-radius: 24px 24px 24px 100px; box-shadow: var(--shadow-deep); aspect-ratio: 4/4.6; object-fit: cover; width: 100%; }
/* Fuente manuscrita del diseño anterior para el "¡Hola! soy:" */
.em-about__hello { font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive; font-style: normal; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; color: var(--accent); margin: 0 0 .35rem; }
.em-about__name { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--muted); margin: 0 0 1.25rem; }
.em-about__quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--ink); line-height: 1.45; border-left: 3px solid var(--accent); padding-left: 1.25rem; margin: 1.5rem 0; }
.em-about__social { display: flex; gap: .75rem; margin-top: 1.5rem; align-items: center; flex-wrap: wrap; }
/* Solo los íconos sociales son círculos de 44px; el botón "¡Hablemos!" (.em-btn) se excluye. */
.em-about__social a:not(.em-btn) { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line-sage); display: grid; place-items: center; transition: transform .2s ease, box-shadow .2s ease; }
.em-about__social a:not(.em-btn):hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.em-about__social a:not(.em-btn) img { width: 20px; height: 20px; }

/* ======================== BLOG CTA ======================== */
.em-blogcta__card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: linear-gradient(135deg, var(--bg-sage) 0%, #fff 78%);
  border: 1px solid var(--line-sage);
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 4vw, 3.25rem);
}
.em-blogcta__cta { margin-top: 1.5rem; box-shadow: 0 12px 26px rgba(220,171,139,.5); }
.em-blogcta__cta:hover { box-shadow: 0 20px 40px rgba(220,171,139,.65); transform: translateY(-3px); }
.em-blogcta__media { position: relative; }
.em-blogcta__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-deep); }

/* ======================== FOOTER (site-wide) ======================== */
.em-footer { background: #243430; color: rgba(255,255,255,.78); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-family: var(--font-sans); }
.em-footer * { box-sizing: border-box; }
.em-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.em-footer__brand strong { color: #fff; font-size: 1.25rem; font-weight: 800; display: block; margin-bottom: .75rem; }
.em-footer p { line-height: 1.6; margin: 0 0 .75rem; color: rgba(255,255,255,.78); }
.em-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.em-footer a:hover { color: #fff; }
.em-footer__col h4 { color: #fff; font-size: .95rem; font-weight: 600; margin: 0 0 1rem; letter-spacing: .02em; }
.em-footer__links { display: grid; gap: .6rem; }
.em-footer__social { display: flex; gap: .6rem; margin-top: .25rem; }
/* Círculos blancos con el ícono de marca en su color real (instagram/linkedin son
   glifos multicolor: invertirlos a blanco los rompía). Consistente con "Sobre mí". */
.em-footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; transition: background .2s ease, transform .2s ease; }
.em-footer__social a:hover { background: #fff; transform: translateY(-2px); }
.em-footer__social img { width: 18px; height: 18px; }
.em-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ======================== GALERÍA (en terreno) ======================== */
/* Carrusel de imagenes: misma mecanica marquee que testimonios, tarjetas de foto.
   El boton abre GLightbox con la biblioteca completa. */
.em-gallery__actions { display: flex; justify-content: center; margin-top: 2.5rem; }
.em-gallery__carousel {
  margin-top: 2.5rem;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
/* Track scrollable: el auto-desplazamiento lo mueve el JS por scrollLeft, asi se
   puede ademas agarrar y arrastrar (mouse) o deslizar (touch) de forma nativa. */
.em-gallery__track {
  display: flex;
  align-items: stretch;
  padding-block: .5rem;
  overflow-x: auto;
  scrollbar-width: none;            /* Firefox: oculta la barra */
  -ms-overflow-style: none;         /* IE/Edge viejo */
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
}
.em-gallery__track::-webkit-scrollbar { display: none; } /* WebKit: oculta la barra */
.em-gallery__track.is-dragging { cursor: grabbing; }
.em-gallery__item {
  flex: 0 0 clamp(240px, 70vw, 340px);
  box-sizing: border-box;
  margin-right: 1.25rem;
  display: block;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  aspect-ratio: 4/3;
  transition: box-shadow .22s ease, transform .22s ease;
  user-select: none; -webkit-user-drag: none;
}
.em-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; pointer-events: none; }
.em-gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(29,34,32,.45));
  opacity: 0; transition: opacity .22s ease;
}
.em-gallery__item:hover { box-shadow: 0 20px 44px rgba(0,0,0,.16); transform: translateY(-3px); }
.em-gallery__item:hover::after,
.em-gallery__item:focus-visible::after { opacity: 1; }
.em-gallery__cap {
  position: absolute; left: .9rem; right: .9rem; bottom: .8rem; z-index: 1;
  color: #fff; font-size: .85rem; font-weight: 500; line-height: 1.3;
  opacity: 0; transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
}
.em-gallery__item:hover .em-gallery__cap,
.em-gallery__item:focus-visible .em-gallery__cap { opacity: 1; transform: translateY(0); }
/* Los enlaces extra de la biblioteca completa quedan ocultos: solo alimentan al lightbox. */
.em-gallery__more { display: none; }

/* ---- Modal de galeria: estanteria -> grid ---- */
.em-galmodal {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
}
.em-galmodal[hidden] { display: none; }
.em-galmodal__overlay {
  position: absolute; inset: 0;
  background: rgba(20, 28, 25, .55); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s ease;
}
.em-galmodal.is-open .em-galmodal__overlay { opacity: 1; }
.em-galmodal__panel {
  position: relative; z-index: 1;
  width: min(960px, 100%); max-height: 88vh; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--bg-warm);
  border-radius: clamp(1rem, 2.5vw, 1.75rem);
  box-shadow: 0 40px 90px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(16px) scale(.96);
  transition: opacity .32s cubic-bezier(.4,0,.2,1), transform .32s cubic-bezier(.4,0,.2,1);
}
.em-galmodal.is-open .em-galmodal__panel { opacity: 1; transform: translateY(0) scale(1); }
.em-galmodal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-soft); transition: transform .2s ease, background .2s ease, color .2s ease;
}
.em-galmodal__close:hover { transform: scale(1.08); background: var(--accent); color: #fff; }
/* La vista activa ocupa el alto restante del panel. Es un flex column:
   el header queda fijo y solo el cuerpo (shelf/grid) scrollea por dentro.
   min-height:0 es imprescindible para que el scroll funcione en un hijo flex. */
.em-galmodal__view {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  padding: clamp(1.75rem, 4vw, 3rem);
}
/* display:flex pisa el atributo [hidden] (display:none); esta regla lo restaura
   para que solo la vista activa (estanteria O grid) sea visible. */
.em-galmodal__view[hidden] { display: none; }
.em-galmodal__head { flex: none; text-align: center; margin-bottom: 2rem; }
.em-galmodal__title { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 800; color: var(--muted); margin: .25rem 0 0; }
.em-galmodal__head--grid {
  display: flex; align-items: center; gap: 1rem; text-align: left; margin-bottom: 1.5rem;
  padding-right: 56px; /* reserva sitio para la X y evita que el titulo la toque */
}
.em-galmodal__head--grid .em-galmodal__back { flex: none; }
.em-galmodal__head--grid .em-galmodal__title { margin: 0; min-width: 0; } /* permite truncar/wrap sin empujar */
/* Cuerpo scrollable de cada vista. align-content/auto-rows: las filas guardan su
   alto natural (no se estiran ni se solapan) y el contenedor scrollea. */
.em-shelf, .em-galgrid {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  align-content: start;
}
.em-galmodal__back {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: none; cursor: pointer; padding: .4rem .2rem;
  color: var(--brand); font: inherit; font-weight: 600; font-size: .92rem;
}
.em-galmodal__back:hover { color: var(--accent); }

/* Estanteria de libros: lomos ACOSTADOS apilados en vertical (web y movil),
   para leer el titulo en horizontal. */
.em-shelf {
  --book-ease: cubic-bezier(.22, .61, .36, 1);
  display: flex; flex-direction: column; align-items: stretch;
  gap: .85rem;
  width: min(560px, 100%); margin-inline: auto; /* no se estira de lado a lado en web */
}
.em-book {
  position: relative; cursor: pointer; border: none; background: none; padding: 0;
  display: block;
  transition: transform .4s var(--book-ease);
  will-change: transform;
}
.em-book__spine {
  width: 100%; min-height: 64px;
  border-radius: 4px 9px 9px 4px;
  /* banda mas oscura a la izquierda = canto del libro */
  background: linear-gradient(90deg, color-mix(in srgb, var(--spine) 60%, #000) 0 8px, var(--spine) 8px 100%);
  box-shadow:
    0 8px 16px rgba(0,0,0,.2),
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 1px 0 rgba(255,255,255,.12);
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 1rem;
  padding: 1rem 1.25rem; color: #fff;
  transition: box-shadow .4s var(--book-ease), filter .25s var(--book-ease);
}
.em-book__title {
  writing-mode: horizontal-tb; transform: none;
  font-family: var(--font-serif), Georgia, serif; font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.15rem); letter-spacing: .01em;
  line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.em-book__count {
  writing-mode: horizontal-tb; transform: none;
  margin-left: auto; font-size: .76rem; opacity: .85; letter-spacing: .03em;
  white-space: nowrap; flex: none;
}
.em-book__label { display: none; } /* el titulo ya se lee en el lomo */
/* Realce al hover SIN desplazamiento lateral (evita overflow/barra horizontal):
   sube la sombra y aclara levemente el lomo. */
.em-book:hover .em-book__spine {
  filter: brightness(1.06);
  box-shadow:
    0 14px 26px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(255,255,255,.1),
    inset 0 1px 0 rgba(255,255,255,.16);
}
.em-book:active .em-book__spine { filter: brightness(.98); }
.em-book:focus-visible { outline: none; }
.em-book:focus-visible .em-book__spine { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Grid de fotos de la categoria */
.em-galgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  padding-bottom: .5rem; /* respiro al final del scroll */
}
.em-galgrid__item {
  position: relative; cursor: pointer; border: none; padding: 0; background: none;
  border-radius: var(--r-lg, 14px); overflow: hidden; aspect-ratio: 4/3;
  min-height: 0; /* evita que la fila lo estire/solape al limitar el alto */
  box-shadow: var(--shadow-card);
  transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s cubic-bezier(.22,.61,.36,1);
}
.em-galgrid__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-galgrid__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,28,25,.55));
  opacity: 0; transition: opacity .4s cubic-bezier(.22,.61,.36,1);
}
.em-galgrid__item:hover { transform: translateY(-4px); box-shadow: 0 20px 36px rgba(0,0,0,.2); }
.em-galgrid__item:hover::after, .em-galgrid__item:focus-visible::after { opacity: 1; }
.em-galgrid__cap {
  position: absolute; left: .7rem; right: .7rem; bottom: .6rem; z-index: 1;
  color: #fff; font-size: .78rem; line-height: 1.3; font-weight: 500; text-align: left;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s cubic-bezier(.22,.61,.36,1), transform .4s cubic-bezier(.22,.61,.36,1);
}
.em-galgrid__item:hover .em-galgrid__cap, .em-galgrid__item:focus-visible .em-galgrid__cap { opacity: 1; transform: translateY(0); }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 900px) {
  .em-nav { display: none; }
  .em-burger { display: block; }
  /* El CTA del header se ve apretado junto a la hamburguesa en móvil; se oculta
     aquí (sigue disponible dentro del menú y en desktop). */
  .em-header__actions .em-btn--primary { display: none; }
  .em-hero__grid, .em-fit__grid, .em-membership__grid, .em-about__grid, .em-blogcta__card { grid-template-columns: 1fr; }
  .em-hero__media { order: -1; max-width: 440px; margin-inline: auto; }
  .em-programs__grid, .em-approach__grid { grid-template-columns: 1fr; }
  .em-membership__shot--b { margin-left: 0; }
  .em-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .em-galmodal__panel { max-height: 92vh; }
  .em-shelf { gap: .45rem; }
  .em-galgrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; }
}

/* ---- Galeria en movil estrecho: libros acostados en pila vertical ---- */
@media (max-width: 640px) {
  .em-galmodal { padding: 0; }
  .em-galmodal__panel {
    width: 100%; max-width: 100%; height: 100%; max-height: 100%;
    border-radius: 0;
  }
  .em-galmodal__view { padding: 1.25rem 1rem 2rem; }
  .em-galmodal__head { margin-bottom: 1.25rem; }
  .em-galmodal__close { top: 10px; right: 10px; }

  /* La estanteria (ya horizontal en base) ocupa todo el ancho en movil. */
  .em-shelf { width: 100%; gap: .7rem; }
  .em-book:hover { transform: none; } /* sin desplazar en tactil */

  .em-galmodal__head--grid {
    gap: .35rem .75rem; padding-right: 52px;
    flex-wrap: wrap; align-items: center;
  }
  .em-galmodal__head--grid .em-galmodal__back { font-size: .85rem; }
  .em-galmodal__head--grid .em-galmodal__title { font-size: 1.15rem; line-height: 1.15; }
  .em-galgrid { grid-template-columns: repeat(2, 1fr); gap: .6rem; align-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  .em-btn, .em-prog-card, .em-about__social a, .em-footer__social a { transition: none; }
  .em-gallery__track { animation: none; }
  .em-galmodal__panel, .em-galmodal__overlay, .em-book, .em-book__spine { transition: none; }
}

/* ======================== GLIGHTBOX (overrides de marca) ======================== */
/* Caption SOBRE la foto, en cursiva y claro (no en una barra blanca aparte). */
.glightbox-container .gslide-description {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 100%) !important;
  padding: 2.5rem 1.5rem 1.25rem !important;
  text-align: center; pointer-events: none;
}
.glightbox-container .gslide-title {
  color: #fff !important;
  font-family: var(--font-serif), Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.glightbox-container .gslide-desc { display: none; } /* sin subtexto extra */

/* Flechas laterales mas evidentes: circulo grande, alto contraste. */
.glightbox-container .gnext,
.glightbox-container .gprev {
  width: 56px !important; height: 56px !important;
  border-radius: 50% !important;
  background-color: rgba(0,0,0,.55) !important;
  border: 2px solid rgba(255,255,255,.85) !important;
  opacity: 1 !important;
  transition: background-color .2s ease, transform .2s ease;
}
.glightbox-container .gnext:hover,
.glightbox-container .gprev:hover {
  background-color: var(--accent) !important;
  transform: scale(1.08);
}
.glightbox-container .gnext svg,
.glightbox-container .gprev svg { width: 26px; height: 26px; }
.glightbox-container .gnext svg path,
.glightbox-container .gprev svg path { fill: #fff; stroke: #fff; }

/* Boton cerrar (X) mas grande y visible. */
.glightbox-container .gclose {
  width: 52px !important; height: 52px !important;
  border-radius: 50% !important;
  background-color: rgba(0,0,0,.55) !important;
  border: 2px solid rgba(255,255,255,.85) !important;
  opacity: 1 !important;
  top: 18px !important; right: 18px !important;
  transition: background-color .2s ease, transform .2s ease;
}
.glightbox-container .gclose:hover {
  background-color: var(--accent) !important;
  transform: scale(1.08);
}
.glightbox-container .gclose svg { width: 24px; height: 24px; }
.glightbox-container .gclose svg path { fill: #fff; }

/* En movil: el swipe es la navegacion principal; flechas mas chicas y X comoda. */
@media (max-width: 640px) {
  .glightbox-container .gnext,
  .glightbox-container .gprev { width: 44px !important; height: 44px !important; }
  .glightbox-container .gnext { right: 8px !important; }
  .glightbox-container .gprev { left: 8px !important; }
  .glightbox-container .gnext svg,
  .glightbox-container .gprev svg { width: 20px; height: 20px; }
  .glightbox-container .gclose {
    width: 46px !important; height: 46px !important;
    top: max(12px, env(safe-area-inset-top)) !important; right: 12px !important;
  }
  .glightbox-container .gslide-title { font-size: 1rem; }
}
