/* ============================================================
   MMCL — María Mónica Clavijo López · Boutique Lingüística
   Hoja de estilos compartida · Temas claro/oscuro
   Paleta: Brand Book MMCL 2026 (cerezo · rosa · morado · blanco)
   Tipografía: Jost (≈Azo Sans, títulos) · Source Serif 4 (≈Lucida Bright, contenido)
   ============================================================ */

:root {
  /* Paleta de marca */
  --mm-rose-50: #f9f1f2;
  --mm-rose-100: #ecbec0;
  --mm-rose-300: #c37581;
  --mm-rose-400: #ad8083;
  --mm-cherry-400: #c25061;
  --mm-cherry-500: #c2354a;
  --mm-cherry-700: #8c3e4d;
  --mm-cherry-800: #7a3e4a;
  --mm-lav-100: #ded8e2;
  --mm-lav-300: #bdb2c6;
  --mm-lav-500: #9d8ba9;
  --mm-plum-300: #56383e;
  --mm-plum-600: #33273b;
  --mm-plum-700: #2c2233;
  --mm-plum-800: #261e2d;
  --mm-plum-900: #1e1723;
  --mm-night: #16111a;
  --mm-black: #0f0c12;

  --font-display: 'Jost', 'Azo Sans', 'Avenir Next', 'Century Gothic', sans-serif;
  --font-title: 'Source Serif 4', 'Lucida Bright', Georgia, serif;
  --font-body: 'Jost', 'Azo Sans', 'Avenir Next', 'Century Gothic', sans-serif;

  --header-h: 72px;
  --radius: 14px;
  --radius-sm: 9px;
  --container: 1180px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- Tema claro (por defecto) ---------- */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf6f7;
  --bg-alt: #f4ecee;
  --bg-deep: #f0e6ec;
  --surface: #ffffff;
  --surface-2: #fdf9fa;
  --ink: #33273b;
  --ink-soft: #564a5e;
  --muted: #877692;
  --line: #e9dde2;
  --line-strong: #d9c8cf;
  --primary: #8c3e4d;
  --primary-ink: #ffffff;
  --primary-strong: #c2354a;
  --accent: #c25061;
  --accent-soft: #ecbec0;
  --lav: #ded8e2;
  --lav-ink: #4a3d55;
  --chip-bg: #f6e7e9;
  --chip-ink: #8c3e4d;
  --chip-line: #e5c8cd;
  --header-bg: rgba(44, 34, 51, 0.78);
  --header-ink: #f3edf6;
  --shadow: 0 10px 30px -12px rgba(51, 39, 59, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(51, 39, 59, 0.28);
  --petal: rgba(236, 190, 192, 0.85);
  --petal-2: rgba(195, 117, 129, 0.55);
  --hero-wash: radial-gradient(1100px 520px at 85% -10%, rgba(236, 190, 192, .35), transparent 65%),
               radial-gradient(900px 500px at -10% 25%, rgba(222, 216, 226, .5), transparent 60%);
  --zone-lit: #8c3e4d;
  --zone-lit-bg: #f8eaec;
  --zone-lang: #5c4a72;
  --zone-lang-bg: #ece7f2;
}

/* ---------- Tema oscuro ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16111a;
  --bg-alt: #1b1521;
  --bg-deep: #120e16;
  --surface: #241c2c;
  --surface-2: #2a2133;
  --ink: #ede6f0;
  --ink-soft: #cfc3d6;
  --muted: #9d8ba9;
  --line: #382c43;
  --line-strong: #4a3b57;
  --primary: #c37581;
  --primary-ink: #1e1723;
  --primary-strong: #c25061;
  --accent: #c37581;
  --accent-soft: #56383e;
  --lav: #3a2f47;
  --lav-ink: #d5cbde;
  --chip-bg: #34232c;
  --chip-ink: #ecbec0;
  --chip-line: #56383e;
  --header-bg: rgba(30, 23, 35, 0.72);
  --header-ink: #ede6f0;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, 0.65);
  --petal: rgba(195, 117, 129, 0.5);
  --petal-2: rgba(157, 139, 169, 0.35);
  --hero-wash: radial-gradient(1100px 520px at 85% -10%, rgba(140, 62, 77, .28), transparent 65%),
               radial-gradient(900px 500px at -10% 25%, rgba(51, 39, 59, .65), transparent 60%);
  --zone-lit: #e3a7b0;
  --zone-lit-bg: #33222a;
  --zone-lang: #c0aede;
  --zone-lang-bg: #2a2438;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #16111a;
    --bg-alt: #1b1521;
    --bg-deep: #120e16;
    --surface: #241c2c;
    --surface-2: #2a2133;
    --ink: #ede6f0;
    --ink-soft: #cfc3d6;
    --muted: #9d8ba9;
    --line: #382c43;
    --line-strong: #4a3b57;
    --primary: #c37581;
    --primary-ink: #1e1723;
    --primary-strong: #c25061;
    --accent: #c37581;
    --accent-soft: #56383e;
    --lav: #3a2f47;
    --lav-ink: #d5cbde;
    --chip-bg: #34232c;
    --chip-ink: #ecbec0;
    --chip-line: #56383e;
    --header-bg: rgba(30, 23, 35, 0.72);
    --header-ink: #ede6f0;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, 0.65);
    --petal: rgba(195, 117, 129, 0.5);
    --petal-2: rgba(157, 139, 169, 0.35);
    --hero-wash: radial-gradient(1100px 520px at 85% -10%, rgba(140, 62, 77, .28), transparent 65%),
                 radial-gradient(900px 500px at -10% 25%, rgba(51, 39, 59, .65), transparent 60%);
    --zone-lit: #e3a7b0;
    --zone-lit-bg: #33222a;
    --zone-lang: #c0aede;
    --zone-lang-bg: #2a2438;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
strong, b { font-weight: 600; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-strong); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--accent-soft); color: var(--ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--accent); flex: none; }

.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.01em; margin-bottom: 14px; }
.section-lede { font-size: 17px; color: var(--ink-soft); max-width: 720px; margin-bottom: 48px; }

/* ---------- Botones ---------- */
.btn {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-strong); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--primary-ink); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.text-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.text-link .arr { transition: transform .25s var(--ease); display: inline-block; }
.text-link:hover .arr { transform: translateX(5px); }

/* ---------- Chips de lenguas ---------- */
.lang-chip {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--chip-ink);
  background: var(--chip-bg);
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
  white-space: nowrap;
}
.lang-chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Header ---------- */
.mm-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(236, 190, 192, 0.14);
  color: var(--header-ink);
  transition: transform .35s var(--ease);
}
.mm-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.mm-logo { display: flex; flex-direction: column; line-height: 1.05; color: var(--header-ink); flex: none; }
.mm-logo:hover { color: #fff; }
.mm-logo .l1 { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; }
.mm-logo .l2 { font-family: var(--font-display); font-weight: 400; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--mm-rose-100); }
.mm-nav { display: flex; align-items: center; gap: 26px; }
.mm-nav > a, .mm-nav-drop > button {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--header-ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
}
.mm-nav > a::after, .mm-nav-drop > button::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--mm-rose-100);
  transition: right .3s var(--ease);
}
.mm-nav > a:hover::after, .mm-nav > a.active::after, .mm-nav-drop > button:hover::after { right: 0; }
.mm-nav > a:hover, .mm-nav-drop > button:hover { color: #fff; }

.mm-nav-drop { position: relative; }
.mm-nav-drop > button { display: inline-flex; align-items: center; gap: 6px; }
.mm-nav-drop .caret { transition: transform .25s; font-size: 10px; }
.mm-nav-drop.open .caret { transform: rotate(180deg); }
.mm-drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 270px;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mm-nav-drop.open .mm-drop-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
/* Puente invisible sobre el hueco de 14px entre el botón y el panel:
   evita que el hover se pierda (y el menú se cierre) al cruzar el espacio */
.mm-drop-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mm-drop-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.mm-drop-menu a:hover { background: var(--bg-alt); color: var(--primary); }
.mm-drop-menu .di {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}
.mm-drop-menu .dt { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; }
.mm-drop-menu .dd { font-size: 12.5px; color: var(--muted); font-family: var(--font-display); letter-spacing: .02em; }

/* Botones de idioma ES EN FR — cada uno como botón pill */
.lang-switch { display: flex; gap: 7px; align-items: center; }
.lang-switch button {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(236, 190, 192, 0.55);
  background: transparent;
  color: var(--header-ink);
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s;
}
.lang-switch button:hover { transform: translateY(-1px); background: rgba(236, 190, 192, .15); }
.lang-switch button.active { background: var(--mm-rose-100); color: var(--mm-plum-700); border-color: var(--mm-rose-100); }

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1.5px solid rgba(236, 190, 192, 0.4);
  background: transparent;
  color: var(--header-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s, transform .2s;
  flex: none;
}
.theme-toggle:hover { background: rgba(236, 190, 192, .15); transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: none;
  background: transparent;
  color: var(--header-ink);
  cursor: pointer;
  border-radius: 10px;
  place-items: center;
}
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- Menú móvil ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: color-mix(in oklab, var(--mm-plum-700) 96%, transparent);
  color: #f3edf6;
  display: flex;
  flex-direction: column;
  padding: 22px 26px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile-close {
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 1.5px solid rgba(236, 190, 192, .5);
  background: transparent;
  color: #f3edf6;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.mobile-close svg { width: 22px; height: 22px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f3edf6;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(236, 190, 192, .14);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu nav a .sub { font-size: 12px; letter-spacing: .2em; color: var(--mm-rose-100); }
.mobile-menu nav a:hover { color: var(--mm-rose-100); }
.mobile-menu nav .group-label {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mm-lav-300);
  margin: 22px 0 4px;
}
.mobile-menu .lang-switch { margin-top: 30px; }

/* ---------- Pétalos ---------- */
.petal-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
main, .mm-footer { position: relative; z-index: 1; }

/* ---------- Tarjetas ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; }
.field > label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field > label .req { color: var(--primary-strong); }
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
}
.field .hint { font-size: 13.5px; color: var(--muted); }
.field .error-msg { font-size: 13.5px; color: var(--primary-strong); display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--primary-strong); }
.field.invalid .error-msg { display: block; }

/* ---------- Modales ---------- */
.mm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 12, 18, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ease);
}
.mm-modal-backdrop.open { opacity: 1; pointer-events: auto; }
.mm-modal {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
  max-height: min(86vh, 760px);
  overflow-y: auto;
  padding: 34px;
  transform: translateY(14px) scale(.98);
  transition: transform .28s var(--ease);
}
.mm-modal-backdrop.open .mm-modal { transform: none; }
.mm-modal h3 { font-size: 26px; margin-bottom: 6px; }

/* ---------- Hoja de compartir ---------- */
.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
  text-align: center;
  color: var(--ink);
}
.share-item:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--ink); }
.share-item .si-logo {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
}
.share-item .si-logo img, .share-item .si-logo svg { width: 26px; height: 26px; }
:root[data-theme="dark"] .share-item .si-logo img.si-mono { filter: invert(.92) sepia(.06) saturate(1.4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .share-item .si-logo img.si-mono { filter: invert(.92) sepia(.06) saturate(1.4); }
}
.share-item .si-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.25;
}
.share-native {
  width: 100%;
  margin-top: 16px;
}

/* ---------- Toast ---------- */
.mm-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(20px);
  z-index: 140;
  background: var(--mm-plum-700);
  color: #f3edf6;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .04em;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: min(92vw, 480px);
  text-align: center;
}
.mm-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- reCAPTCHA simulado ---------- */
.recaptcha-sim {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  min-width: 280px;
}
.recaptcha-sim .rc-box {
  width: 26px; height: 26px;
  border: 2px solid var(--mm-lav-500);
  border-radius: 4px;
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: border-color .2s;
  flex: none;
}
.recaptcha-sim.checking .rc-box { border-color: transparent; }
.recaptcha-sim .rc-spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--accent-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: rc-spin .7s linear infinite;
  display: none;
}
.recaptcha-sim.checking .rc-spinner { display: block; }
.recaptcha-sim .rc-check { display: none; color: #2e8b57; }
.recaptcha-sim.done .rc-check { display: block; }
.recaptcha-sim.done .rc-spinner { display: none; }
.recaptcha-sim .rc-label { font-size: 14.5px; font-family: var(--font-display); color: var(--ink-soft); }
.recaptcha-sim .rc-brand { margin-left: auto; text-align: center; color: var(--muted); font-family: var(--font-display); font-size: 9px; line-height: 1.3; }
.recaptcha-sim .rc-brand .rc-shield { width: 22px; height: 22px; margin: 0 auto 2px; color: var(--mm-lav-500); }
@keyframes rc-spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.mm-footer {
  background: var(--mm-plum-700);
  color: #d9cfe0;
  padding: 72px 0 30px;
  margin-top: 0;
}
.mm-footer a { color: #d9cfe0; }
.mm-footer a:hover { color: var(--mm-rose-100); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(236, 190, 192, .16);
}
.footer-brand .mm-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 15px; color: var(--mm-lav-300); max-width: 300px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mm-rose-100);
  margin-bottom: 18px;
}
.footer-col nav { display: flex; flex-direction: column; gap: 10px; }
.footer-col nav a { font-family: var(--font-display); font-size: 14.5px; letter-spacing: .03em; }
.footer-contact-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--font-display); font-size: 13.5px; white-space: nowrap; }
.footer-contact-line svg { width: 16px; height: 16px; color: var(--mm-rose-100); flex: none; }
.footer-email { white-space: nowrap; font-size: 13.5px; letter-spacing: .01em; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 26px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 13px; color: var(--mm-lav-300); font-family: var(--font-display); letter-spacing: .04em; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(236, 190, 192, .3);
  display: grid;
  place-items: center;
  transition: background .25s, transform .2s;
}
.footer-social a:hover { background: rgba(236, 190, 192, .14); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-oneingot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mm-lav-300);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  width: 46px; height: 46px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: var(--primary-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Comentarios ---------- */
.comments-box { margin-top: 38px; border-top: 1px solid var(--line); padding-top: 30px; }
.comments-box h4 { font-size: 21px; }
.comment-note { font-size: 14px; color: var(--muted); }
.comment-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--lav);
  color: var(--lav-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  flex: none;
}
.comment-meta { font-family: var(--font-display); font-size: 13px; color: var(--muted); letter-spacing: .03em; }
.comment-meta b { color: var(--ink); font-weight: 600; font-size: 14.5px; letter-spacing: .02em; }
.comment-body { font-size: 15.5px; margin: 4px 0 0; }

/* ---------- Animaciones de revelado (GSAP toma el control) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .gs-reveal { opacity: 0; transform: translateY(28px); }
  .gs-reveal-l { opacity: 0; transform: translateX(-36px); }
  .gs-reveal-r { opacity: 0; transform: translateX(36px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .mm-nav { display: none; }
  .menu-toggle { display: grid; }
  .mobile-only-toggle { display: grid !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .mm-header-inner { padding: 0 16px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .mm-modal { padding: 24px 20px; }
  .back-to-top { right: 16px; bottom: 16px; }
}


/* ---------- Filtros (portafolio y blogs) ---------- */
.filter-bar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.filter-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.filter-chip {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.filter-chip:hover { border-color: var(--accent); }
.filter-chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.filter-select {
  font-family: var(--font-display);
  font-size: 13.5px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Powered by ---------- */
.footer-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 34px 0 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--mm-lav-300);
}
.footer-powered a { color: var(--mm-rose-100); }
.footer-powered a:hover { color: #fff; }
.footer-powered img { height: 30px; width: auto; opacity: .92; }

/* ---------- Logo horizontal del header ---------- */
.mm-logo-img { display: block; height: 40px; width: auto; }
@media (max-width: 640px) { .mm-logo-img { height: 32px; } }

/* ---------- Botón de archivo en modo oscuro ---------- */
:root[data-theme="dark"] #q-file-btn { color: var(--mm-rose-100); border-color: rgba(236, 190, 192, .5); }
:root[data-theme="dark"] #q-file-btn:hover { background: rgba(236, 190, 192, .14); color: var(--mm-rose-100); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) #q-file-btn { color: var(--mm-rose-100); border-color: rgba(236, 190, 192, .5); }
  :root:not([data-theme]) #q-file-btn:hover { background: rgba(236, 190, 192, .14); color: var(--mm-rose-100); }
}

/* ---------- Cursor de marca: plumín (nib) de estilógrafo ----------
   Cambia de color según el tema para que siempre resalte. */
:root {
  --nib-cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'><path d='M2 2 L20 8.5 C23.5 15 19.5 22.5 12.5 23 C6.5 23.5 3 18 2.5 12 Z' fill='%237a3e4a' stroke='%23faf6f7' stroke-width='1.4'/><line x1='2' y1='2' x2='12' y2='13.5' stroke='%23faf6f7' stroke-width='1.4'/><circle cx='12.6' cy='14.6' r='2' fill='%23faf6f7'/></svg>");
}
:root[data-theme="dark"] {
  --nib-cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'><path d='M2 2 L20 8.5 C23.5 15 19.5 22.5 12.5 23 C6.5 23.5 3 18 2.5 12 Z' fill='%23ecbec0' stroke='%231e1723' stroke-width='1.4'/><line x1='2' y1='2' x2='12' y2='13.5' stroke='%231e1723' stroke-width='1.4'/><circle cx='12.6' cy='14.6' r='2' fill='%231e1723'/></svg>");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --nib-cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'><path d='M2 2 L20 8.5 C23.5 15 19.5 22.5 12.5 23 C6.5 23.5 3 18 2.5 12 Z' fill='%23ecbec0' stroke='%231e1723' stroke-width='1.4'/><line x1='2' y1='2' x2='12' y2='13.5' stroke='%231e1723' stroke-width='1.4'/><circle cx='12.6' cy='14.6' r='2' fill='%231e1723'/></svg>");
  }
}
body { cursor: var(--nib-cursor) 1 1, auto; }
a, button, select, .svc-chip, .share-item, .filter-chip, label { cursor: var(--nib-cursor) 1 1, pointer; }

/* ---------- Autor en entradas de blog ---------- */
.bd-author { color: var(--muted); }

/* ---------- Logo híbrido (image-slot + texto fallback) ---------- */
.mm-logo-hybrid { display: flex; align-items: center; gap: 0; }
.mm-logo-hybrid .logo-slot {
  width: 180px;
  height: 42px;
  display: block;
  --is-bg: transparent;
  --is-border-color: transparent;
  --is-border-radius: 6px;
  flex: none;
}
/* Cuando el slot está vacío (sin img child), lo ocultamos y mostramos el texto */
.mm-logo-hybrid .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.mm-logo-hybrid .logo-text .l1 { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; }
.mm-logo-hybrid .logo-text .l2 { font-family: var(--font-display); font-weight: 400; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--mm-rose-100); }
/* Si el slot tiene imagen real, oculta el texto */
.mm-logo-hybrid:has(.logo-slot img:not([src=""])) .logo-text { display: none; }
.mm-logo-hybrid:has(.logo-slot img:not([src=""])) .logo-slot { display: block; }
/* Cuando el slot NO tiene imagen, ocúltalo para no mostrar el borde */
.mm-logo-hybrid:not(:has(.logo-slot img:not([src=""]))) .logo-slot { opacity: 0; position: absolute; pointer-events: none; width: 0; }
