/*
 * Utilidades usadas en la maqueta que no existían en la hoja compilada (styles.css),
 * por lo que no tenían efecto. Mismos valores que generaría Tailwind v4.
 */
.size-20 { width: calc(var(--spacing) * 20); height: calc(var(--spacing) * 20); }
.h-\[100vh\] { height: 100vh; }
.placeholder\:text-white\/40::placeholder { color: color-mix(in oklab, #fff 40%, transparent); }
@media (hover: hover) {
  .hover\:text-mollyvett-soft:hover { color: var(--color-mollyvett-soft); }
}
@media (width >= 40rem) {
  .sm\:col-span-1 { grid-column: span 1 / span 1; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:h-12 { height: calc(var(--spacing) * 12); }
  .sm\:h-14 { height: calc(var(--spacing) * 14); }
}
@media (width >= 64rem) {
  .lg\:p-8 { padding: calc(var(--spacing) * 8); }
  .lg\:pt-10 { padding-top: calc(var(--spacing) * 10); }
  .lg\:flex-1 { flex: 1; }
  .lg\:self-center { align-self: center; }
}

/* Preguntas frecuentes (<details>) */
.list-none { list-style-type: none; }
summary.list-none::-webkit-details-marker { display: none; }
.group-open\:rotate-45:is(:where(.group):is([open], :popover-open, :open) *) { rotate: 45deg; }

/* ============================================================
   Coverflow del hero: ventana estilo macOS (modo oscuro) + reflejo.
   Marco grafito para contrastar con el fondo blanco de la página
   y combinar con la interfaz oscura de las capturas.
   ============================================================ */
.mv-cf-stage {
  /* alto = ventana (1920×1024 + barra) + espacio para el reflejo */
  --mv-w: min(92vw, 72rem);
  height: calc(var(--mv-w) * 0.5333 + 2.25rem + clamp(3rem, 9vw, 7rem));
}
.mv-window {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(0.55rem, 1.1vw, 0.9rem);
  background: #1c1c1f;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.55),                 /* contorno nítido */
    inset 0 0 0 1px rgb(255 255 255 / 0.09),     /* filo interior de luz */
    0 2px 6px rgb(9 9 11 / 0.18),
    0 22px 44px -10px rgb(9 9 11 / 0.38),
    0 60px 120px -24px rgb(9 9 11 / 0.45);
  -webkit-box-reflect: below 12px linear-gradient(transparent 80%, rgb(0 0 0 / 0.14));
  transition: box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.mv-window.is-active {
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.6),
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    0 2px 6px rgb(9 9 11 / 0.2),
    0 28px 56px -12px rgb(9 9 11 / 0.45),
    0 80px 150px -28px rgb(225 105 13 / 0.35);
}
.mv-window__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(1.4rem, 2.6vw, 2.25rem);
  padding-inline: clamp(0.6rem, 1.2vw, 1rem);
  background: linear-gradient(#3a3a3e, #2a2a2d);
  border-bottom: 1px solid #000;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
}
.mv-window__lights {
  position: absolute;
  left: clamp(0.6rem, 1.2vw, 1rem);
  display: flex;
  gap: clamp(0.25rem, 0.55vw, 0.5rem);
}
.mv-window__lights i {
  display: block;
  width: clamp(0.45rem, 0.9vw, 0.75rem);
  aspect-ratio: 1;
  border-radius: 9999px;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.3);
}
.mv-window__lights i:nth-child(2) { background: #febc2e; }
.mv-window__lights i:nth-child(3) { background: #28c840; }
.mv-window__url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  width: min(42%, 22rem);
  padding: 0.2em 0.9em;
  border-radius: 0.45em;
  background: rgb(0 0 0 / 0.32);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
  color: rgb(255 255 255 / 0.72);
  font-size: clamp(0.5rem, 0.95vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mv-window__url svg { flex: none; opacity: 0.6; }
.mv-window img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1024;
  background: #18181b;
}

/* ---- Pantalla: video real + reflejo de vidrio ---- */
.mv-screen {
  position: relative;
  overflow: hidden;
}
.mv-screen::after {
  /* reflejo de vidrio que sigue al puntero (variables --gx/--gy desde JS) */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    60% 80% at var(--gx, 30%) var(--gy, -10%),
    rgb(255 255 255 / 0.1),
    rgb(255 255 255 / 0.03) 40%,
    transparent 70%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.mv-window.is-active .mv-screen::after { opacity: 1; }


/* Video de cada pantalla: encima de su imagen fija; visible solo mientras se reproduce */
.mv-screen__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mv-screen__video.is-playing { opacity: 1; }

/* Hero: reassurance line under the CTAs */
.mv-hero-trust {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: #71717a;
}
.mv-hero-trust i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* Coverflow caption: name of the centred screen + dots */
.mv-cf-caption {
  position: relative;
  z-index: 40;
  margin-top: calc(clamp(3rem, 9vw, 7rem) * -0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.mv-cf-caption__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #27272a;
  min-height: 1.5rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mv-cf-caption__title.is-swapping {
  opacity: 0;
  transform: translateY(4px);
}
.mv-cf-dots {
  display: flex;
  align-items: center;
  gap: 2px;
}
.mv-cf-dots button {
  position: relative;
  /* 22 + 2 de separación = 24 px por punto (WCAG 2.5.8, tamaño mínimo del objetivo) */
  width: 22px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.mv-cf-dots button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d4d4d8;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(.16,1,.3,1), background-color 0.35s ease;
}
.mv-cf-dots button:hover::before { background: #a1a1aa; }
.mv-cf-dots button[aria-current="true"] { width: 30px; }
.mv-cf-dots button[aria-current="true"]::before {
  width: 20px;
  background: #e1690d;
}
.mv-cf-dots button:focus-visible {
  outline: 2px solid #e1690d;
  outline-offset: 1px;
  border-radius: 6px;
}

/* ============================================================
   Menú único (components/menu-html.ts): barra oscura translúcida,
   logo blanco. Siempre visible; al bajar solo se vuelve un poco más
   densa, con transición suave (solo color, nada se mueve).
   ============================================================ */
.mv-nav {
  --nav-h: 3.25rem;
  --ease: cubic-bezier(.16,1,.3,1);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
  background: rgb(24 24 27 / 0.55);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  transition: background-color .6s var(--ease), border-color .6s var(--ease);
}
.mv-nav.is-scrolled { background: rgb(24 24 27 / 0.72); }
.mv-nav.is-open { background: rgb(24 24 27 / 0.9); border-color: rgb(255 255 255 / 0.1); }
.mv-nav__bar {
  max-width: 80rem;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .mv-nav__bar { padding: 0 1.5rem; } }
.mv-nav__logo { display: flex; align-items: center; flex-shrink: 0; padding: 0 .25rem; transition: opacity .2s; }
.mv-nav__logo:hover { opacity: .8; }
.mv-nav__logo img { height: 1.75rem; width: auto; object-fit: contain; }
.mv-nav__menu { display: none; flex: 1; justify-content: center; }
.mv-nav__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.mv-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .5rem .8rem;
  font-size: .8125rem;
  font-weight: 500;
  color: rgb(228 228 231 / 0.85);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .45s ease;
}
.mv-nav__link:hover, .mv-nav__link[aria-current] { color: #fff; }
/* Sección actual: además del color, un subrayado fino (WCAG 1.4.1: no solo color) */
.mv-nav__link[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .45em; text-decoration-color: rgb(255 255 255 / .55); }
.mv-nav__actions { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.mv-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .95rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  color: #fff;
  background: #b04f09; /* naranja oscuro: texto blanco legible (contraste 6:1) */
  transition: opacity .4s ease;
}
.mv-nav__cta:hover { opacity: .88; }
.mv-nav__actions > .mv-nav__cta { display: none; }
@media (min-width: 360px) { .mv-nav__actions > .mv-nav__cta { display: inline-flex; } }

/* Botón hamburguesa + panel móvil (filas con miniatura, como el menú anterior) */
.mv-nav__burger {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-right: -.35rem;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.mv-nav__burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.05rem;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.mv-nav__burger span:first-child { transform: translate(-50%, calc(-50% - 3.5px)); }
.mv-nav__burger span:last-child { transform: translate(-50%, calc(-50% + 3.5px)); }
.mv-nav__burger[aria-expanded="true"] span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.mv-nav__burger[aria-expanded="true"] span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.mv-movil {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.mv-nav.is-menu-open .mv-movil { grid-template-rows: 1fr; }
.mv-movil__inner {
  min-height: 0;
  overflow: hidden;
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 .75rem;
  visibility: hidden;
  transition: visibility 0s .5s;
}
.mv-nav.is-menu-open .mv-movil__inner {
  visibility: visible;
  overflow-y: auto;
  max-height: calc(100dvh - var(--nav-h));
  padding-bottom: 1rem;
  transition: visibility 0s;
}
.mv-movil__row,
.mv-movil__actions {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .5s var(--ease);
}
.mv-nav.is-menu-open .mv-movil__row,
.mv-nav.is-menu-open .mv-movil__actions {
  opacity: 1;
  transform: none;
  transition-delay: calc(60ms + var(--i, 0) * 45ms);
}
.mv-movil__row + .mv-movil__row,
.mv-movil__row + .mv-movil__actions { border-top: 1px solid rgb(255 255 255 / 0.08); }
a.mv-movil__row {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: .25rem 0;
  padding: .5rem;
  border-radius: .6rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
a.mv-movil__row:active { background: rgb(255 255 255 / 0.08); }
/* Ícono de cada opción del menú de celular: mosaico de vidrio oscuro con ícono de trazo */
.mv-movil__thumb {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  border-radius: 22%;
  color: #fff;
  background: linear-gradient(160deg, rgb(255 255 255 / .12), rgb(255 255 255 / .04));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), 0 6px 14px -8px rgb(0 0 0 / .6);
}
.mv-movil__thumb svg { width: 1.6rem; height: 1.6rem; opacity: .9; }
a.mv-movil__row:active .mv-movil__thumb { color: #e1690d; }
.mv-movil__text { display: flex; flex-direction: column; }
.mv-movil__title { display: flex; align-items: center; gap: .4rem; font-size: 1.125rem; font-weight: 600; line-height: 1.2; }
.mv-movil__desc { margin-top: .15rem; font-size: .875rem; color: rgb(161 161 170); }
.mv-movil__actions { display: flex; flex-direction: column; gap: .6rem; padding: 1rem .5rem 0; }
.mv-movil__actions .mv-nav__cta { padding: .8rem 1rem; font-size: .95rem; }
.mv-movil__login { text-align: center; padding: .75rem; font-size: .95rem; font-weight: 600; color: #fff; border-radius: 999px; background: rgb(255 255 255 / 0.1); }

@media (min-width: 1000px) {
  .mv-nav__menu { display: flex; }
  .mv-nav__burger, .mv-movil { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mv-nav, .mv-nav * { transition-duration: 0s !important; transition-delay: 0s !important; }
}

/* Con una sola barra (3.25rem), la primera sección ya no necesita tanto aire arriba */
main > .pt-32:first-child { padding-top: 6.5rem; }
@media (min-width: 640px) {
  main > .sm\:pt-36:first-child { padding-top: 7.5rem; }
}

/* ============================================================
   Índice /funciones/ (components/funciones-indice-html.ts)
   ============================================================ */
.mv-window--plain { -webkit-box-reflect: unset; }
.mv-fx-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1024;
  background: #18181b;
  object-fit: cover;
}
.mv-fx-list { display: flex; flex-direction: column; gap: 5rem; }
.mv-fx {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.mv-fx__tag { font-size: .875rem; font-weight: 600; color: #b04f09; margin-bottom: .6rem; }
.mv-fx__title {
  font-family: var(--font-heading, inherit);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  font-weight: 500;
  color: #09090b;
}
.mv-fx__title a { color: inherit; }
.mv-fx__desc { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.75rem; color: #52525b; max-width: 32rem; }
.mv-fx__more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.4rem;
  font-size: .9375rem;
  font-weight: 600;
  color: #09090b;
}
.mv-fx__more span:first-child {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 2px;
  transition: background-size .55s cubic-bezier(.16,1,.3,1);
}
.mv-fx__more span:last-child { transition: transform .55s cubic-bezier(.16,1,.3,1); }
.mv-fx__more:hover span:first-child,
.mv-fx__more:focus-visible span:first-child { background-size: 100% 1px; }
.mv-fx__more:hover span:last-child { transform: translateX(4px); }
.mv-fx__media .mv-window { transition: transform .8s cubic-bezier(.16,1,.3,1), box-shadow .8s cubic-bezier(.16,1,.3,1); }
.mv-fx:hover .mv-fx__media .mv-window { transform: translateY(-4px); }
@media (min-width: 900px) {
  .mv-fx-list { gap: 8rem; }
  .mv-fx { grid-template-columns: 1.45fr 1fr; gap: 4rem; }
  .mv-fx--rev { grid-template-columns: 1fr 1.45fr; }
  .mv-fx--rev .mv-fx__media { order: 2; }
}

/* ============================================================
   Transiciones suaves al navegar
   - Entre páginas (/funciones/, /guias/, cada función…): el
     contenido sale con un fundido y la página nueva entra subiendo
     apenas. El menú se queda quieto. Es la API nativa de View
     Transitions: sin JS y sin afectar el SEO; los navegadores que no
     la soportan simplemente cambian de página como siempre.
   - Dentro de la portada (/#planes, /#contacto…): desplazamiento
     suave, dejando espacio para el menú fijo.
   ============================================================ */
@view-transition { navigation: auto; }

html { scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* La página que se va se desvanece; la nueva aparece con un fundido corto
     y su contenido entra por partes (ver "Entrada del contenido"). */
  ::view-transition-old(root) { animation: mv-vt-out .28s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: mv-vt-fade .35s ease both; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}
@keyframes mv-vt-out {
  to { opacity: 0; }
}
@keyframes mv-vt-fade {
  from { opacity: 0; }
}

/* El menú es el mismo en todas las páginas: no participa del fundido */
.mv-nav { view-transition-name: mv-nav; }
::view-transition-group(mv-nav) { animation: none; z-index: 100; }
::view-transition-old(mv-nav) { display: none; }
::view-transition-new(mv-nav) { animation: none; }

/* ============================================================
   Entrada del contenido (páginas interiores)
   - Encabezado: migas, etiqueta, título, texto y botones aparecen
     uno tras otro, subiendo con fundido y un desenfoque que se aclara.
   - Al bajar: cada bloque aparece suave al entrar en pantalla
     (main.js añade .mv-reveal / .is-in).
   Solo con .mv-js (lo pone un script en <head>), para que sin JS
   todo se vea normal.
   ============================================================ */
@keyframes mv-rise {
  from { opacity: 0; transform: translateY(22px); filter: blur(8px); }
  /* filter: none (no blur(0)): con "both" el estado final se queda puesto y blur(0) mantiene
     una capa de filtro viva en cada bloque para siempre */
  to { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .mv-js main > :first-child nav[aria-label="Migas de pan"],
  .mv-js .mv-hero-in > :nth-child(-n+7),
  .mv-js .mv-in {
    animation: mv-rise 1.1s cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: calc(120ms + var(--d, 0) * 110ms);
  }
  .mv-js .mv-hero-in > :nth-child(1) { --d: 1; }
  .mv-js .mv-hero-in > :nth-child(2) { --d: 2; }
  .mv-js .mv-hero-in > :nth-child(3) { --d: 3; }
  .mv-js .mv-hero-in > :nth-child(4) { --d: 4; }
  .mv-js .mv-hero-in > :nth-child(5) { --d: 5; }
  .mv-js .mv-hero-in > :nth-child(6) { --d: 6; }
  .mv-js .mv-hero-in > :nth-child(7) { --d: 7; }

  .mv-js .mv-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 1s ease, transform 1.3s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--rd, 0ms);
  }
  .mv-js .mv-reveal.is-in { opacity: 1; transform: none; }
}

/* ============================================================
   Portada: el coverflow aparece hasta que la imagen central ya
   está decodificada (main.js añade .is-ready), con fundido y
   subida suave. Si el JS fallara, aparece solo a los 2.5 s.
   ============================================================ */
@keyframes mv-cf-in {
  from { opacity: 0; transform: translateY(26px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes mv-show { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .mv-js .mv-cf-enter {
    opacity: 0;
    transform: translateY(26px) scale(.985);
    animation: mv-show 0s 2.5s forwards;
  }
  .mv-js .mv-cf-enter.is-ready {
    animation: mv-cf-in 1.2s cubic-bezier(.16, 1, .3, 1) both;
  }
}

/* Ícono de app montado sobre la esquina de una tarjeta (como el de Photos en Umbrel) */
.mv-tile-icon {
  z-index: 2;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.45)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.3));
}

/* "Conocer más" en las tarjetas del carrusel de Conoce MollyVett */
.mv-card-more {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .9rem;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
}
.mv-card-more span:first-child {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 2px;
  transition: background-size .55s cubic-bezier(.16,1,.3,1);
}
.mv-card-more span:last-child { transition: transform .55s cubic-bezier(.16,1,.3,1); }
.mv-card-more:hover span:first-child,
.mv-card-more:focus-visible span:first-child { background-size: 100% 1px; }
.mv-card-more:hover span:last-child { transform: translateX(4px); }

/* Sección "La app de MollyVett": botones de instalación y pasos por plataforma */
.mv-install__btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.mv-install__btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.05rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: #fff; cursor: pointer;
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14);
  transition: background-color .4s ease, border-color .4s ease, transform .4s cubic-bezier(.16,1,.3,1);
}
.mv-install__btn svg { width: 18px; height: 18px; }
.mv-install__btn:hover { background: rgb(255 255 255 / .12); transform: translateY(-1px); }
.mv-install__btn[aria-expanded="true"] { background: #fff; color: #111; border-color: #fff; }
.mv-install__panel {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .5s cubic-bezier(.16,1,.3,1), opacity .35s ease, margin .5s cubic-bezier(.16,1,.3,1);
}
.mv-install__panel.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 1rem; }
.mv-install__inner { overflow: hidden; min-height: 0; }
.mv-install__card {
  border-radius: 18px; padding: 1.1rem 1.25rem 1.2rem;
  background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12);
}
.mv-install__card h3 { font-family: var(--font-heading, inherit); font-size: 1.05rem; font-weight: 600; margin: 0 0 .6rem; }
.mv-install__card ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; color: rgb(255 255 255 / .75); font-size: .95rem; line-height: 1.5; }
.mv-install__card b { color: #fff; font-weight: 600; }
.mv-install__card ol { list-style: decimal; }
.mv-install__card li::marker { color: #e1690d; font-weight: 700; }

/* Puntos breves de la sección de la app */
.mv-app-points { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.mv-app-points li { position: relative; padding-left: 1.75rem; font-size: 1rem; color: rgb(255 255 255 / .78); line-height: 1.5; }
.mv-app-points li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: rgb(225 105 13 / .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/62% no-repeat;
}
.mv-install__reg { margin-top: 1.25rem; font-size: .95rem; color: rgb(255 255 255 / .6); }
.mv-install__reg a {
  color: #ff9a4a; font-weight: 600;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-position: 0 100%; background-size: 0% 1px; padding-bottom: 1px;
  transition: background-size .55s cubic-bezier(.16,1,.3,1);
}
.mv-install__reg a:hover { background-size: 100% 1px; }

/* Ícono de la app en la sección "La app de MollyVett" (resplandor como el de Umbrel) */
.mv-app-icon { filter: drop-shadow(0 0 22px rgb(225 105 13 / .45)) drop-shadow(0 10px 20px rgb(0 0 0 / .35)); }

/* ============================================================
   Zoom de la pantalla de inicio (sección #funcionalidades).
   La ventana macOS empieza a pantalla completa y se "aleja" siguiendo el scroll
   (main.js → app store sticky zoom). Solo se anima transform: ligero y sin relayout.
============================================================ */
.mv-zoom { position: relative; z-index: 20; height: 100vh; height: 100svh; }
.mv-zoom__sticky { position: relative; height: 100%; overflow: hidden; }
/* Fondo + ventana se escalan juntos como una sola imagen */
.mv-zoom__stage {
  position: absolute; inset: 0; transform-origin: 50% 50%;
  will-change: transform; backface-visibility: hidden;
  transition: transform 1.7s cubic-bezier(.4, 0, .15, 1);
}
.mv-zoom__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 50% 55%, rgb(225 105 13 / .22), transparent 70%),
    radial-gradient(45% 40% at 18% 20%, rgb(99 102 241 / .18), transparent 70%),
    radial-gradient(45% 40% at 85% 85%, rgb(14 165 233 / .14), transparent 70%),
    #0b0a12;
  background-size: cover; background-position: center;
}
.mv-zoom__win {
  --mv-bar: 2.25rem;
  z-index: 1;
  position: absolute; left: 50%; top: 50%; margin: 0;
  width: min(82rem, 92vw);
  border-radius: 14px; overflow: hidden;
  background: #1c1b22;
  border: 1px solid rgb(255 255 255 / .14);
  box-shadow: 0 0 0 .5px rgb(0 0 0 / .6), 0 40px 90px -20px rgb(0 0 0 / .65), 0 18px 36px -18px rgb(0 0 0 / .5);
  transform: translate3d(-50%, -50%, 0);
  transform-origin: 50% 50%;
  will-change: transform;
  /* arranque suave (no "de golpe") y llegada lenta */
  transition: transform 1.6s cubic-bezier(.45, 0, .15, 1);
  backface-visibility: hidden;
}
.mv-zoom__bar {
  height: var(--mv-bar); display: flex; align-items: center; gap: .5rem; padding: 0 .9rem;
  background: linear-gradient(to bottom, #2b2a31, #232229);
  border-bottom: 1px solid rgb(0 0 0 / .45);
  position: relative;
}
.mv-zoom__dot { width: .75rem; height: .75rem; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .25); }
.mv-zoom__dot:nth-child(2) { background: #febc2e; }
.mv-zoom__dot:nth-child(3) { background: #28c840; }
.mv-zoom__url {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: .75rem; color: rgb(255 255 255 / .55); letter-spacing: .01em;
  padding: .2rem .9rem; border-radius: .4rem; background: rgb(255 255 255 / .06);
}
.mv-zoom__win picture, .mv-zoom__win img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) {
  .mv-zoom__win { --mv-bar: 1.5rem; border-radius: 10px; }
  .mv-zoom__dot { width: .5rem; height: .5rem; }
  .mv-zoom__bar { gap: .35rem; padding: 0 .6rem; }
  .mv-zoom__url { font-size: .6rem; padding: .1rem .6rem; }
}
/* Paisaje detrás de la ventana: cubre la pantalla; un velo oscuro da contraste a la ventana */
.mv-zoom__bg picture, .mv-zoom__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.mv-zoom__bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, #0b0a12 0%, rgb(11 10 18 / .35) 18%, rgb(11 10 18 / .15) 50%, rgb(11 10 18 / .3) 100%),
    radial-gradient(55% 45% at 50% 50%, rgb(11 10 18 / .35), transparent 75%);
}

/* overflow: clip recorta igual que hidden pero no rompe position: sticky */
#funcionalidades { overflow: clip; }
/* En celular vertical la sección medía toda la pantalla y la ventana (16:9) quedaba chiquita entre
   mucho paisaje vacío: ahora mide lo que la ventana más un margen. main.js la acerca hasta cubrirla
   y luego se aleja, igual que en PC. */
@media (max-width: 767px) {
  .mv-zoom { height: calc(92vw * .5625 + 1.5rem + 22vw); }
}
/* Respiro entre la imagen del zoom y "Todo en un mismo sistema" (quedaba pegado al borde) */
#funcionalidades > .mv-zoom + div { padding-top: clamp(3.5rem, 7vw, 6rem); }

/* ============================================================
   Módulos (#funcionalidades): pastillas con anillo de progreso +
   carrusel que avanza solo (modulos.js). Estilo Umbrel "300+ apps".
============================================================ */
.mv-mod { --mv-mod-ms: 6000ms; margin-top: 2.5rem; }
.mv-mod__tabs {
  /* "safe center": centrada si cabe; si no cabe, empieza en la orilla y se desplaza
     (con "center" a secas se recortaban Expedientes y Búsqueda sin poder verlos) */
  display: flex; justify-content: safe center; gap: .75rem; flex-wrap: nowrap;
  max-width: 72rem; margin: 0 auto; padding: .25rem 0 .5rem;
  overflow-x: auto; scrollbar-width: none;
}
@supports not (justify-content: safe center) {
  .mv-mod__tabs { justify-content: flex-start; }
  .mv-mod__tabs > :first-child { margin-inline-start: auto; }
  .mv-mod__tabs > :last-child { margin-inline-end: auto; }
}
.mv-mod__tabs::-webkit-scrollbar { display: none; }
.mv-mod__tab {
  position: relative; flex: none; width: 7rem; height: 6rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem;
  border-radius: 19px; border: 1px solid rgb(9 9 11 / .08); background: rgb(255 255 255 / .7);
  color: rgb(113 113 122); font-family: var(--font-heading, inherit); font-size: .95rem; font-weight: 500;
  transition: color .45s ease, background-color .45s ease, border-color .45s ease, box-shadow .45s ease, transform .45s cubic-bezier(.16,1,.3,1);
  cursor: pointer;
}
.mv-mod__tab:hover { color: rgb(9 9 11); background: #fff; border-color: rgb(9 9 11 / .12); transform: translateY(-2px); }
.mv-mod__tab:focus-visible { outline: 2px solid #e1690d; outline-offset: 2px; }
.mv-mod__tab-ico { width: 1.6rem; height: 1.6rem; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.mv-mod__tab[aria-selected="true"] {
  color: #b04f09; background: #fff; border-color: rgb(9 9 11 / .1);
  box-shadow: 0 10px 30px -12px rgb(9 9 11 / .18), 0 2px 6px -2px rgb(9 9 11 / .06);
}
.mv-mod__tab[aria-selected="true"] .mv-mod__tab-ico { transform: scale(1.06); }
/* Anillo que se "carga" alrededor de la pastilla activa: mide el tiempo para avanzar */
.mv-mod__ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mv-mod__ring rect { fill: none; stroke: #e1690d; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 0 1; opacity: 0; vector-effect: non-scaling-stroke; }
.mv-mod__tab[aria-selected="true"] .mv-mod__ring rect { opacity: 1; }
.mv-mod__tab[aria-selected="true"] .mv-mod__ring rect { animation: mv-mod-ring var(--mv-mod-ms) linear forwards; }
.mv-mod.is-paused .mv-mod__ring rect { animation-play-state: paused; }
.mv-mod.is-static .mv-mod__ring rect { animation: none; stroke-dasharray: 1 0; }
@keyframes mv-mod-ring { from { stroke-dasharray: 0 1; } to { stroke-dasharray: 1 0; } }

/* Carrusel: scroll nativo con snap (deslizable en móvil); las vecinas asoman */
.mv-mod__track {
  --w: min(64rem, calc(100vw - 2.5rem)); --gap: 1.25rem;
  position: relative; left: 50%; width: 100vw; transform: translateX(-50%);
  margin-top: 2.25rem; display: flex; gap: var(--gap);
  padding: .5rem calc((100vw - var(--w)) / 2) 2.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.mv-mod__track::-webkit-scrollbar { display: none; }
@media (min-width: 1280px) { .mv-mod__track { --gap: 3rem; } }
.mv-mod__card {
  flex: none; width: var(--w); scroll-snap-align: center;
  display: grid; overflow: hidden; border-radius: 1.5rem;
  background: #fff; border: 1px solid rgb(9 9 11 / .08);
  box-shadow: 0 24px 60px -30px rgb(9 9 11 / .22), 0 2px 8px -4px rgb(9 9 11 / .06);
  opacity: .45; transition: opacity .7s ease;
}
.mv-mod__card.is-active { opacity: 1; }
@media (min-width: 1024px) { .mv-mod__card { grid-template-columns: 1fr 1fr; height: 28rem; } }
.mv-mod__text { display: flex; flex-direction: column; justify-content: center; padding: 1.75rem; }
@media (min-width: 640px) { .mv-mod__text { padding: 2.5rem 3rem; } }
.mv-mod__eyebrow { font-size: .875rem; font-weight: 600; color: #b04f09; }
.mv-mod__text h3 { margin-top: .75rem; font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.18; color: rgb(9 9 11); letter-spacing: -.01em; }
.mv-mod__desc { margin-top: 1rem; font-size: 1.02rem; line-height: 1.7; color: rgb(82 82 91); }
.mv-mod__link {
  align-self: flex-start; margin-top: 1.5rem; font-size: .9rem; font-weight: 600; color: rgb(9 9 11);
  display: inline-flex; gap: .35rem; transition: color .4s ease;
}
.mv-mod__link span { transition: transform .45s cubic-bezier(.16,1,.3,1); }
.mv-mod__link:hover { color: #b04f09; }
.mv-mod__link:hover span { transform: translateX(3px); }

/* Panel derecho: patrón de puntitos + mini-tarjetas (estilo "Oscuro" de los íconos de la app) */
.mv-mod__panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem;
  background: var(--tint, #eef4fb); border-top: 1px solid rgb(9 9 11 / .06);
}
@media (min-width: 1024px) { .mv-mod__panel { border-top: 0; border-left: 1px solid rgb(9 9 11 / .06); padding: 2.5rem; } }
.mv-mod__dots {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, rgb(15 23 42 / .14) 1px, transparent 1.3px);
  background-size: 18px 18px;
}
.mv-mod__dots--hover {
  opacity: 0; transition: opacity .5s ease;
  background-image: radial-gradient(circle, rgb(15 23 42 / .38) 1px, transparent 1.3px);
  -webkit-mask-image: radial-gradient(circle 9rem at var(--dot-x, 50%) var(--dot-y, 50%), #000 0%, rgb(0 0 0 / .7) 35%, transparent 78%);
          mask-image: radial-gradient(circle 9rem at var(--dot-x, 50%) var(--dot-y, 50%), #000 0%, rgb(0 0 0 / .7) 35%, transparent 78%);
}
@media (hover: hover) { .mv-mod__panel:hover .mv-mod__dots--hover { opacity: 1; } }
.mv-mod__items { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 26rem; display: grid; gap: .75rem; }
.mv-mod__item {
  display: flex; align-items: center; gap: .9rem; padding: .95rem 1rem;
  border-radius: .9rem; background: rgb(255 255 255 / .9); border: 1px solid rgb(255 255 255 / .9);
  box-shadow: 0 8px 24px -14px rgb(9 9 11 / .2), 0 1px 3px rgb(9 9 11 / .05);
  /* Sin backdrop-filter: con fondo blanco al 90 % el desenfoque no se veía y eran 33 capas caras */
  transform: translateY(10px); opacity: 0;
  transition: transform .7s cubic-bezier(.16,1,.3,1), opacity .7s ease;
}
.mv-mod__card.is-active .mv-mod__item { transform: none; opacity: 1; }
.mv-mod__card.is-active .mv-mod__item:nth-child(2) { transition-delay: .08s; }
.mv-mod__card.is-active .mv-mod__item:nth-child(3) { transition-delay: .16s; }
.mv-mod__item-ico {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 22%;
  background: linear-gradient(160deg, #2a2a30, #121215);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 4px 10px -4px rgb(0 0 0 / .45);
}
.mv-mod__item-ico svg { width: 1.4rem; height: 1.4rem; }
.mv-mod__item-txt { display: flex; flex-direction: column; min-width: 0; }
.mv-mod__item-txt b { font-weight: 500; font-size: .98rem; color: rgb(9 9 11); line-height: 1.35; }
.mv-mod__item-txt small { margin-top: .15rem; font-size: .82rem; color: rgb(113 113 122); }

@media (max-width: 1023px) {
  .mv-mod__tabs { justify-content: flex-start; padding-inline: 1.25rem; margin-inline: -1.25rem; }
  .mv-mod__tab { width: 6rem; height: 5.25rem; font-size: .85rem; }
}
@media (max-width: 1100px) and (min-width: 1024px) { .mv-mod__tabs { justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) {
  .mv-mod__item { transform: none; opacity: 1; transition: none; }
  .mv-mod__card { transition: none; }
}

.mv-kbd { display: inline-block; min-width: 1.35em; padding: 0 .35em; border-radius: .3rem; border: 1px solid rgb(9 9 11 / .14); border-bottom-width: 2px; background: #fff; font: 600 .72rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgb(63 63 70); text-align: center; }
.mv-roles-tabla { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: .95rem; }
.mv-roles-tabla th, .mv-roles-tabla td { padding: .8rem 1rem; border-bottom: 1px solid rgb(9 9 11 / .06); text-align: center; }
.mv-roles-tabla thead th { font-weight: 600; font-size: .85rem; color: rgb(63 63 70); background: #fafafa; }
.mv-roles-tabla tbody th { text-align: left; font-weight: 500; color: rgb(24 24 27); }
.mv-roles-tabla tr:last-child th, .mv-roles-tabla tr:last-child td { border-bottom: 0; }
.mv-rol--t { color: #16a34a; font-weight: 700; }
.mv-rol--v { color: #0284c7; }
.mv-rol--o { color: rgb(161 161 170); }
/* 11 botones × 6.25rem + separación = 74.25rem: caben completos desde 1280 px */
@media (min-width: 1024px) { .mv-mod__tabs { gap: .55rem; max-width: 76rem; } .mv-mod__tab { width: 6.25rem; font-size: .9rem; } }
/* Pastillas "Más de MollyVett" y "Funciones relacionadas": mismo estilo que las de la portada */
.mv-otra {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem;
  min-width: 7rem; height: 6rem; padding: .75rem 1rem; white-space: nowrap;
  border-radius: 19px; border: 1px solid rgb(9 9 11 / .08); background: rgb(255 255 255 / .7);
  color: rgb(113 113 122); font-family: var(--font-heading, inherit); font-size: .95rem; font-weight: 500;
  transition: color .45s ease, background-color .45s ease, border-color .45s ease, transform .45s cubic-bezier(.16,1,.3,1);
}
.mv-otra:hover { color: #b04f09; background: #fff; border-color: rgb(9 9 11 / .12); transform: translateY(-2px); }
.mv-otra .mv-ico { width: 1.6rem; height: 1.6rem; }
/* Ícono en mosaico oscuro (estilo "Oscuro" de la app) */
.mv-ico-tile {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 22%; color: #fb923c;
  background: linear-gradient(160deg, #2a2a30, #121215); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 4px 10px -4px rgb(0 0 0 / .45);
}
.mv-ico-tile .mv-ico { width: 1.4rem; height: 1.4rem; }
.mv-ico-tile--lg { width: 4.5rem; height: 4.5rem; }
.mv-ico-tile--lg .mv-ico { width: 2.3rem; height: 2.3rem; }

/* ============================================================
   Tarjetas del sitio: mismo diseño en todas las páginas.
   Subgrid: ícono, título y texto quedan a la misma altura en cada fila;
   texto justificado con separación silábica (lang es-MX).
   ============================================================ */
/* Tarjetas: ícono, título y texto alineados a la misma altura en cada fila (subgrid) */
.mv-grid { display: grid; gap: 1.25rem; margin-inline: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .mv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mv-grid { grid-template-columns: repeat(3, 1fr); } }
.mv-card {
  --glow: 225 105 13;
  position: relative; display: grid; grid-row: span var(--rows, 3); grid-template-rows: subgrid; row-gap: 0;
  padding: 1.75rem; border-radius: 1.25rem; background: #fff;
  border: 1px solid rgb(9 9 11 / .07);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgb(9 9 11 / .04), 0 4px 10px -4px rgb(9 9 11 / .06), 0 22px 40px -24px rgb(9 9 11 / .18);
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), box-shadow .7s cubic-bezier(.16, 1, .3, 1), border-color .7s ease;
}
@media (min-width: 640px) { .mv-card { padding: 2rem; } }
.mv-card::before { /* brillo de color muy sutil en la esquina, del tono del ícono */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(18rem 12rem at 0% 0%, rgb(var(--glow) / .07), transparent 70%);
}
.mv-card:hover {
  transform: translateY(-4px); border-color: rgb(9 9 11 / .1);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgb(9 9 11 / .04), 0 10px 20px -8px rgb(9 9 11 / .08), 0 32px 56px -28px rgb(var(--glow) / .35);
}
.mv-card__ic { position: relative; z-index: 0; width: 2.75rem; height: 2.75rem; }
.mv-card__ic::after { /* resplandor bajo el ícono, como luz que proyecta */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -.55rem; height: .9rem; border-radius: 50%; z-index: -1;
  background: rgb(var(--glow) / .45); filter: blur(10px); opacity: .7; transition: opacity .7s ease;
}
.mv-card:hover .mv-card__ic::after { opacity: 1; }
.mv-card__ic img, .mv-card__ic .sg-tile { position: relative; display: grid; width: 2.75rem; height: 2.75rem; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.mv-card:hover .mv-card__ic img, .mv-card:hover .mv-card__ic .sg-tile { transform: translateY(-2px) scale(1.04); }
.mv-card__t { margin: 1.35rem 0 0; font-family: var(--font-heading, inherit); font-size: 1.25rem; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; align-self: start; }
.mv-card__x { margin-top: .6rem; }
.mv-card__x p { margin: 0; font-size: 1rem; line-height: 1.65; color: #52525b; }
/* Justificado con separación silábica: solo alineación, respeta color y tamaño de cada tarjeta */
.mv-card__x p, .mv-justify { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 6 3 2; text-wrap: pretty; }
.mv-card__x p + p { margin-top: .6rem; }

/* Pasos: indicador de progreso sobrio (barras + "Paso N de T"), sin números en baldosa */
.mv-card__ic--paso { width: auto; height: auto; }
.mv-card__ic--paso::after { display: none; }
.mv-paso { display: inline-flex; align-items: center; gap: .75rem; }
.mv-paso__b { display: inline-flex; gap: .3rem; }
.mv-paso__b i { width: 1.4rem; height: 3px; border-radius: 3px; background: rgb(9 9 11 / .12); transition: background .7s ease; }
.mv-paso__b i.on { background: #09090b; }
.mv-paso__t { font-size: .8125rem; font-weight: 500; letter-spacing: .01em; color: #71717a; font-variant-numeric: tabular-nums; }
.mv-card--dark .mv-paso__b i { background: rgb(255 255 255 / .14); }
.mv-card--dark .mv-paso__b i.on { background: rgb(255 255 255 / .85); }
.mv-card--dark:hover .mv-paso__b i.on { background: #fff; }
.mv-card--dark .mv-paso__t { color: rgb(255 255 255 / .5); }


/* Variante oscura (secciones negras) */
.mv-card--dark { background: linear-gradient(180deg, rgb(255 255 255 / .08), rgb(255 255 255 / .04)); border-color: rgb(255 255 255 / .12); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 22px 40px -24px rgb(0 0 0 / .6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.mv-card--dark:hover { border-color: rgb(255 255 255 / .2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 32px 56px -28px rgb(var(--glow) / .45); }
.mv-card--dark .mv-card__t { color: #fff; }
.mv-card--dark .mv-card__x p { color: rgb(255 255 255 / .65); }
.mv-card--dark::before { background: radial-gradient(18rem 12rem at 0% 0%, rgb(var(--glow) / .12), transparent 70%); }
/* Tarjeta-enlace (guías): etiqueta arriba y "Leer" al pie, alineados entre tarjetas */
.mv-card__k { margin: 0; font-size: .875rem; font-weight: 600; color: #b04f09; }
.mv-card__more { align-self: end; margin-top: 1.5rem; font-size: .875rem; font-weight: 600; color: #09090b; transition: color .5s ease; }
a.mv-card:hover .mv-card__more { color: #b04f09; }
.mv-card--link .mv-card__t { margin-top: .75rem; }
@media (prefers-reduced-motion: reduce) { .mv-card { transition: none; } .mv-card:hover { transform: none; } }

/* ============================================================
   Nosotros: franja de la portada + historia en escenas (/nosotros/)
============================================================ */
.mv-band { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; max-width: 52rem; margin: 0 auto; }
@media (min-width: 768px) { .mv-band { flex-direction: row; text-align: left; gap: 2.5rem; } }
.mv-band__foto { flex: none; width: 7.5rem; height: 7.5rem; border-radius: 50%; object-fit: cover; background: #fff;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgb(9 9 11 / .06), 0 20px 40px -18px rgb(9 9 11 / .35); }
.mv-band__tag { font-size: .9rem; font-weight: 600; color: #b04f09; }
.mv-band__txt { margin-top: .5rem; font-family: var(--font-heading, inherit); font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.3; color: rgb(9 9 11); letter-spacing: -.01em; }

/* Aparecer al entrar (nosotros.js). Sin JS: <noscript> lo muestra todo. */
.mv-rv { opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.3s cubic-bezier(.16,1,.3,1), filter 1.1s ease;
  transition-delay: calc(var(--d, 0) * 140ms); }
.mv-rv.is-in { opacity: 1; transform: none; filter: none; }
.mv-rv.mv-sl { filter: none; transition: opacity .45s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); transition-delay: 0s; }
.mv-w { transition: opacity .25s linear; }
@media (prefers-reduced-motion: reduce) { .mv-rv { opacity: 1; transform: none; filter: none; transition: none; } }

.mv-story { position: relative; background: #050506; color: #fff; overflow: clip; }
.mv-story::before { content: ""; position: absolute; inset: 0 0 auto; height: 120vh; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 30%, rgb(225 105 13 / .16), transparent 70%); }
.mv-esc { position: relative; min-height: 64vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4.5rem 1.25rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 768px) { .mv-esc { padding: 5.5rem 1.5rem; } }
.mv-esc--app { min-height: 0; }
.mv-esc--molly { min-height: 100vh; min-height: 100svh; padding-top: 8rem; }
.mv-esc__migas { display: flex; gap: .5rem; font-size: .85rem; color: rgb(255 255 255 / .45); margin-bottom: 2.5rem; }
.mv-esc__migas a:hover { color: #fff; }
.mv-esc__foto { margin: 0 0 2.25rem; }
.mv-esc__foto img { width: min(15rem, 56vw); aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #fff;
  box-shadow: 0 0 0 8px rgb(255 255 255 / .05), 0 0 90px 12px rgb(225 105 13 / .25), 0 30px 60px -20px rgb(0 0 0 / .7); }
.mv-esc__foto.mv-rv { transform: scale(.92); filter: blur(14px); transition-duration: 1.6s, 1.8s, 1.6s; }
.mv-esc__foto.mv-rv.is-in { transform: none; filter: none; }
.mv-esc__tag { font-size: .95rem; font-weight: 600; color: #fb923c; letter-spacing: .01em; }
.mv-esc__titulo { margin-top: 1rem; font-family: var(--font-heading, inherit); font-size: clamp(2.2rem, 5.6vw, 4.4rem); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
.mv-esc--molly .mv-esc__titulo { margin-top: 0; }
.mv-esc__texto { margin-top: 1.5rem; max-width: 38rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.7; color: rgb(255 255 255 / .68); text-wrap: pretty; }
.mv-esc--app { max-width: 76rem; min-height: 0; }
.mv-esc__app { width: 100%; margin-top: 3.5rem; }
.mv-esc__app.mv-rv { transform: translate3d(0,40px,0); filter: none; transition: opacity 1.2s cubic-bezier(.16,1,.3,1), transform 1.4s cubic-bezier(.16,1,.3,1); }
.mv-esc__app.mv-rv.is-in { transform: none; }
.mv-esc__scroll { margin-top: 3.5rem; width: 1px; height: 3.5rem; background: linear-gradient(rgb(255 255 255 / .5), transparent); }
.mv-esc--frase { min-height: 60vh; padding-bottom: 7rem; }
.mv-esc--frase p { font-family: var(--font-heading, inherit); font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.mv-esc--frase footer { margin-top: 1.75rem; font-size: 1.05rem; color: rgb(255 255 255 / .6); }
.mv-esc--frase footer span { color: #f43f5e; }

/* Misión, visión y valores: editorial y oscuro, continúa la historia */
.mv-edit-sec { background: #050506; color: #fff; }
.mv-edit { max-width: 64rem; margin: 0 auto; }
.mv-edit > .mv-esc__tag, .mv-edit__titulo { text-align: center; }
.mv-edit > .mv-esc__tag { display: block; }
.mv-edit__titulo { margin-bottom: 3.5rem; }
.mv-edit__fila { display: grid; gap: .75rem; padding: 2.25rem 0; border-top: 1px solid rgb(255 255 255 / .1); }
@media (min-width: 768px) { .mv-edit__fila { grid-template-columns: 11rem 1fr; gap: 2rem; padding: 2.75rem 0; } }
.mv-edit__tag { font-size: .95rem; font-weight: 600; color: #fb923c; padding-top: .3rem; }
.mv-edit__txt { font-family: var(--font-heading, inherit); font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.5; letter-spacing: -.005em; color: rgb(255 255 255 / .88); text-wrap: pretty; }
.mv-edit__valores { margin: 0; display: grid; gap: 1.75rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .mv-edit__valores { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mv-edit__valores { grid-template-columns: repeat(4, 1fr); } }
.mv-edit__valores > div { padding-top: 1rem; border-top: 1px solid rgb(251 146 60 / .45); }
.mv-edit__valores dt { font-family: var(--font-heading, inherit); font-size: 1.15rem; font-weight: 500; color: #fff; }
.mv-edit__valores dd { margin: .45rem 0 0; font-size: .95rem; line-height: 1.6; color: rgb(255 255 255 / .6); }

/* Clips 3D de "Más funciones" en grande (páginas de función): marco oscuro 4:3, sin barra de ventana */
.mv-clip3d { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1.25rem; background: #0b0b0d;
  box-shadow: 0 30px 80px -30px rgb(9 9 11 / .45), 0 0 0 1px rgb(9 9 11 / .08); }
.mv-clip3d video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Dos videos mitad y mitad (pase del Hotel: de día / de noche), mismo marco que los clips 3D */
.mv-duo { display: grid; gap: 3.5rem; }
.mv-duo__media { position: relative; aspect-ratio: 960 / 1186; overflow: hidden; border-radius: 1.25rem; background: #2a2b2e;
  box-shadow: 0 30px 80px -30px rgb(9 9 11 / .45), 0 0 0 1px rgb(9 9 11 / .08);
  transition: transform .8s cubic-bezier(.16,1,.3,1); }
.mv-duo__lado:hover .mv-duo__media { transform: translateY(-4px); }
.mv-duo__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-duo__t { font-family: var(--font-heading, inherit); font-size: 1.5rem; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.mv-duo__lista { margin-top: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.mv-duo__lista li { position: relative; padding-left: 1.6rem; font-size: 1.0625rem; line-height: 1.65; color: #52525b; }
.mv-duo__lista li::before { content: ''; position: absolute; left: .2rem; top: .55em; width: .55rem; height: .55rem; border-radius: 50%;
  background: #2dd4bf; box-shadow: 0 0 0 3px rgb(45 212 191 / .18); }
@media (min-width: 768px) {
  .mv-duo { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .mv-duo__media { transition: none; } .mv-duo__lado:hover .mv-duo__media { transform: none; } }

/* ============================================================
   Planes: cada plan es un objeto que flota, como un producto.
   La pieza es el ícono de MollyVett hecho bloque (cara + canto).
   Básico = un consultorio · Profesional = + módulos acoplados ·
   Empresarial = varias clínicas en red.
   Movimiento sobrio: deriva lenta de lado a lado (cada plan con
   su propio ritmo, nunca sincronizados) + flotación vertical por
   pieza con su sombra. Solo transform/opacity; se pausa fuera de
   pantalla; sin movimiento si el sistema lo pide.
============================================================ */
.mv-obj { position: relative; width: 100%; height: 100%; overflow: hidden; container-type: size;
  background:
    radial-gradient(60% 50% at 50% 46%, rgb(225 105 13 / .22), transparent 72%),
    radial-gradient(80% 60% at 50% 115%, rgb(255 255 255 / .07), transparent 62%),
    #09090b; }
.mv-obj__luz { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 38% at 50% -6%, rgb(255 255 255 / .1), transparent 70%); }
.mv-obj__deriva { position: absolute; inset: 0; animation: mvDeriva var(--dt, 12s) ease-in-out infinite var(--dd, 0s); }

/* Pieza: flota en vertical; su bloque está inclinado para que se vea el canto */
.mv-pz { position: absolute; left: var(--x); top: var(--y); width: var(--s); translate: -50% -50%; perspective: 700px;
  animation: mvFlota var(--t, 7s) ease-in-out infinite var(--dl, 0s); }
.mv-blq { --g: .32cqw; position: relative; aspect-ratio: 1; border-radius: 23%; background: #f4f4f5;
  transform: rotateX(18deg);
  box-shadow:
    0 calc(var(--g) * 1) 0 color-mix(in srgb, var(--edge) 92%, #fff),
    0 calc(var(--g) * 2) 0 var(--edge),
    0 calc(var(--g) * 3) 0 color-mix(in srgb, var(--edge) 86%, #000),
    0 calc(var(--g) * 4) 0 color-mix(in srgb, var(--edge) 74%, #000),
    0 calc(var(--g) * 5) 0 color-mix(in srgb, var(--edge) 62%, #000),
    0 calc(var(--g) * 6) calc(var(--g) * 2) rgb(0 0 0 / .45); }
.mv-pz--m .mv-blq { --g: .2cqw; background: #e1690d; }
.mv-blq img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.mv-blq::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(170deg, rgb(255 255 255 / .55), rgb(255 255 255 / 0) 42%, rgb(0 0 0 / .06));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 0 0 1px rgb(0 0 0 / .06); }
.mv-pz--m .mv-blq::after { background: linear-gradient(170deg, rgb(255 255 255 / .35), rgb(255 255 255 / 0) 45%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45); }

/* Sombra en el piso: se encoge cuando su pieza sube (mismo ritmo y desfase) */
.mv-sb { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: calc(var(--w) * .2); translate: -50% -50%;
  border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .85), rgb(0 0 0 / .3) 60%, transparent);
  animation: mvSombra var(--t, 7s) ease-in-out infinite var(--dl, 0s); }

/* Líneas de la red (Empresarial) */
.mv-obj__red { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mv-obj__red path { fill: none; stroke: rgb(251 146 60 / .35); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }

/* Tarjetas de la app que acompañan a la pieza */
.mv-obj__chip { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; display: flex; align-items: center; gap: 1.4cqw;
  padding: 1.1cqw 2.2cqw 1.1cqw 1.1cqw; border-radius: 999px; white-space: nowrap; color: #fff;
  font-size: clamp(9px, 2.5cqw, 13px); line-height: 1.2;
  background: linear-gradient(180deg, rgb(44 44 48 / .94), rgb(24 24 27 / .94));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 0 0 1px rgb(255 255 255 / .08), 0 1.8cqw 4cqw -1cqw rgb(0 0 0 / .7);
  animation: mvFlota var(--t, 6s) ease-in-out infinite var(--dl, 0s); }
.mv-obj__chip b { display: block; font-weight: 600; letter-spacing: -.01em; }
.mv-obj__chip small { display: block; margin-top: .15em; font-size: .84em; color: rgb(255 255 255 / .58); }
.mv-obj__chip > img { width: 7cqw; height: 7cqw; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .22); }
.mv-obj__ok { display: grid; place-items: center; width: 7cqw; height: 7cqw; border-radius: 50%;
  color: #4ade80; background: rgb(34 197 94 / .16); box-shadow: inset 0 0 0 1px rgb(74 222 128 / .3); }
.mv-obj__ok svg { width: 52%; height: 52%; }

.mv-obj__fundador { margin-top: .4rem; font-size: .82rem; font-weight: 500; color: #fb923c; }

@keyframes mvDeriva { 0%, 100% { transform: translate3d(-2.4cqw, 0, 0) rotate(-.5deg); } 50% { transform: translate3d(2.4cqw, 0, 0) rotate(.5deg); } }
@keyframes mvFlota { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -3.2cqh, 0); } }
@keyframes mvSombra { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.8); opacity: .55; } }

.mv-obj.is-pausa, .mv-obj.is-pausa * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .mv-obj, .mv-obj * { animation: none !important; } }

/* ============================================================
   Notificaciones · "Así te llegan": avisos que caen y se apilan
   sobre el fondo de la escena del Plan Básico (.mv-obj). Cinco
   avisos, uno cada 3 s; el nuevo cae arriba y los anteriores
   bajan, se achican y se desvanecen. Solo transform/opacity.
============================================================ */
.mv-avisos { --h: 5.9rem; --sep: .7rem; height: auto; aspect-ratio: 16 / 9; max-width: 60rem; margin: 3rem auto 0; border-radius: 1.5rem;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08); }
@media (max-width: 640px) { .mv-avisos { aspect-ratio: 4 / 5; --h: 6.4rem; } }
.mv-avisos__pila { position: absolute; left: 50%; top: 50%; width: min(88%, 29rem); height: calc(var(--h) * 3 + var(--sep) * 2); translate: -50% -50%; margin: 0; padding: 0; list-style: none; }
.mv-aviso { position: absolute; inset: 0 0 auto; height: var(--h); display: grid; grid-template-columns: 2.6rem 1fr; gap: .8rem; align-items: start;
  padding: .85rem 1rem; border-radius: 1.35rem; color: #fff; opacity: 0;
  background: linear-gradient(180deg, rgb(44 44 48 / .95), rgb(24 24 27 / .95));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 0 0 1px rgb(255 255 255 / .08), 0 18px 40px -14px rgb(0 0 0 / .75);
  transform-origin: 50% 0;
  animation: mvAvisoCae 15s cubic-bezier(.22, .9, .25, 1) infinite;
  animation-delay: calc(var(--i) * -3s); }
.mv-aviso img { width: 2.6rem; height: 2.6rem; border-radius: 22%; box-shadow: 0 0 0 1px rgb(255 255 255 / .12); }
.mv-aviso > div { min-width: 0; }
.mv-aviso__app { display: flex; justify-content: space-between; margin: 0; font-size: .72rem; letter-spacing: .02em; color: rgb(255 255 255 / .5); }
.mv-aviso__t { margin: .1rem 0 0; font-size: .92rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-aviso__x { margin: .15rem 0 0; font-size: .84rem; line-height: 1.35; color: rgb(255 255 255 / .72);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes mvAvisoCae {
  0% { transform: translate3d(0, -130%, 0) scale(1); opacity: 0; }
  4%, 20% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  24%, 40% { transform: translate3d(0, calc(var(--h) + var(--sep)), 0) scale(.96); opacity: .8; }
  44%, 60% { transform: translate3d(0, calc((var(--h) + var(--sep)) * 2), 0) scale(.92); opacity: .5; }
  64%, 100% { transform: translate3d(0, calc((var(--h) + var(--sep)) * 3), 0) scale(.88); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mv-aviso { animation: none !important; }
  .mv-aviso:nth-child(1) { opacity: 1; transform: none; }
  .mv-aviso:nth-child(2) { opacity: .8; transform: translate3d(0, calc(var(--h) + var(--sep)), 0) scale(.96); }
  .mv-aviso:nth-child(3) { opacity: .5; transform: translate3d(0, calc((var(--h) + var(--sep)) * 2), 0) scale(.92); }
}

/* Correos automáticos: capturas reales en fila con desplazamiento lateral */
.mv-correos { display: flex; gap: 1.25rem; margin-top: 3rem; padding: .5rem 0 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; outline: none; }
.mv-correos::-webkit-scrollbar { display: none; }
.mv-correo { flex: 0 0 15rem; margin: 0; scroll-snap-align: start; }
.mv-correo__img { position: relative; aspect-ratio: 3 / 5; overflow: hidden; border-radius: 1.1rem; background: #f5f5f5;
  box-shadow: 0 0 0 1px rgb(9 9 11 / .08), 0 24px 50px -28px rgb(9 9 11 / .45);
  transition: transform .6s cubic-bezier(.19, 1, .22, 1), box-shadow .6s cubic-bezier(.19, 1, .22, 1); }
.mv-correo__img::after { content: ""; position: absolute; inset: auto 0 0; height: 18%; background: linear-gradient(transparent, rgb(255 255 255 / .92)); pointer-events: none; }
.mv-correo__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (hover: hover) { .mv-correo:hover .mv-correo__img { transform: translateY(-4px); box-shadow: 0 0 0 1px rgb(9 9 11 / .08), 0 30px 60px -28px rgb(9 9 11 / .5); } }
.mv-correo figcaption { margin-top: 1rem; }
.mv-correo__para { display: inline-block; margin-bottom: .45rem; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
  color: #c2410c; background: rgb(251 146 60 / .14); }
.mv-correo figcaption b { display: block; font-family: var(--font-heading, inherit); font-size: 1.05rem; font-weight: 500; }
.mv-correo figcaption small { display: block; margin-top: .3rem; font-size: .88rem; line-height: 1.5; color: rgb(9 9 11 / .6); }
@media (min-width: 1100px) { .mv-correos { margin-inline: calc((100vw - min(100vw, var(--container-page, 80rem))) / -2); padding-inline: calc((100vw - min(100vw, var(--container-page, 80rem))) / 2 + 1.5rem); scroll-padding-inline: calc((100vw - min(100vw, var(--container-page, 80rem))) / 2 + 1.5rem); } }

/* Reportes · "Los 8 reportes": filas editoriales (mismo lenguaje que la tabla de Planes y Misión/valores) */
.mv-reps { max-width: 64rem; margin: 3.5rem auto 0; border-bottom: 1px solid rgb(9 9 11 / .1); }
.mv-rep { display: grid; gap: .9rem; padding: 2rem 0; border-top: 1px solid rgb(9 9 11 / .1); }
@media (min-width: 768px) { .mv-rep { grid-template-columns: 17rem 1fr; gap: 2.5rem; padding: 2.4rem 0; } }
.mv-rep__t { font-family: var(--font-heading, inherit); font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.mv-rep__f { margin-top: .35rem; font-size: .95rem; color: rgb(9 9 11 / .5); }
.mv-rep__m { font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.65; color: rgb(9 9 11 / .82); text-wrap: pretty; }
.mv-rep__d { margin-top: .8rem; font-size: .95rem; line-height: 1.65; color: rgb(9 9 11 / .55); text-wrap: pretty; }
.mv-rep__d span { color: rgb(9 9 11 / .85); font-weight: 500; }


/* ============================================================
   Páginas legales (/terminos-y-condiciones/, /aviso-de-privacidad/)
   Misma tipografía y ritmo que las guías; índice fijo al costado
   en escritorio y desplegable en celular.
   ============================================================ */
.mv-legal-hero { max-width: 48rem; }
.mv-legal-tabs { display: inline-flex; gap: 4px; margin-top: 2rem; padding: 4px; border-radius: 999px; background: rgb(9 9 11 / .05); }
.mv-legal-tabs a { padding: .55rem 1.1rem; border-radius: 999px; font-size: .875rem; font-weight: 500; color: rgb(9 9 11 / .6); white-space: nowrap; transition: color .3s, background-color .3s; }
.mv-legal-tabs a:hover { color: #09090b; }
.mv-legal-tabs a[aria-current="page"] { background: #09090b; color: #fff; }
.mv-legal-fecha { margin-top: 1.25rem; font-size: .875rem; color: rgb(9 9 11 / .62); }

.mv-legal-grid { display: grid; gap: 2.5rem; margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid rgb(9 9 11 / .08); }
@media (min-width: 1024px) { .mv-legal-grid { grid-template-columns: 15rem minmax(0, 1fr); gap: 5rem; margin-top: 4.5rem; padding-top: 4.5rem; } }

.mv-legal-toc { display: none; }
@media (min-width: 1024px) {
  .mv-legal-toc { display: block; position: sticky; top: 6.5rem; align-self: start; max-height: calc(100vh - 8.5rem); overflow-y: auto; scrollbar-width: none; }
  .mv-legal-toc::-webkit-scrollbar { display: none; }
}
.mv-legal-toc > p { margin-bottom: .9rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgb(9 9 11 / .45); }
.mv-legal-toc ol, .mv-legal-toc-movil ol { list-style: none; margin: 0; padding: 0; }
.mv-legal-toc a, .mv-legal-toc-movil a { display: flex; gap: .6rem; padding: .4rem 0 .4rem .9rem; border-left: 1px solid rgb(9 9 11 / .08); font-size: .875rem; line-height: 1.35; color: rgb(9 9 11 / .55); transition: color .3s, border-color .3s; }
.mv-legal-toc a span, .mv-legal-toc-movil a span { min-width: 1.1rem; color: rgb(9 9 11 / .55); font-variant-numeric: tabular-nums; }
.mv-legal-toc a:hover, .mv-legal-toc-movil a:hover { color: #09090b; border-left-color: var(--color-mollyvett); }

.mv-legal-toc-movil { margin-bottom: 2.5rem; border: 1px solid rgb(9 9 11 / .08); border-radius: .75rem; background: #fafafa; }
.mv-legal-toc-movil summary { cursor: pointer; padding: 1rem 1.25rem; font-size: .95rem; font-weight: 600; color: #09090b; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mv-legal-toc-movil summary::-webkit-details-marker { display: none; }
.mv-legal-toc-movil summary::after { content: ""; width: .5rem; height: .5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s; }
.mv-legal-toc-movil[open] summary::after { transform: rotate(-135deg); }
.mv-legal-toc-movil ol { padding: 0 1.25rem 1rem; }
@media (min-width: 1024px) { .mv-legal-toc-movil { display: none; } }

.mv-legal-doc { max-width: 46rem; font-size: 1rem; line-height: 1.75; color: rgb(9 9 11 / .7); text-wrap: pretty; }
@media (min-width: 640px) { .mv-legal-doc { font-size: 1.0625rem; } }
.mv-legal-intro p:first-child { margin-top: 0; }
.mv-legal-doc section { scroll-margin-top: 6.5rem; }
.mv-legal-doc h2 { display: flex; gap: .75rem; align-items: baseline; margin-top: 3.5rem; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; color: #09090b; }
@media (min-width: 640px) { .mv-legal-doc h2 { font-size: 1.875rem; } }
.mv-legal-doc h2 span { font-size: .6em; font-weight: 600; color: #b04f09; font-variant-numeric: tabular-nums; }
.mv-legal-doc h3 { margin-top: 2rem; font-size: 1.0625rem; font-weight: 600; color: #09090b; }
.mv-legal-doc p { margin-top: 1rem; }
.mv-legal-doc strong { font-weight: 600; color: #09090b; }
.mv-legal-doc a { color: #09090b; text-decoration: underline; text-decoration-color: rgb(225 105 13 / .45); text-underline-offset: 3px; transition: color .3s, text-decoration-color .3s; }
.mv-legal-doc a:hover { color: #b04f09; text-decoration-color: currentColor; }
.mv-legal-doc ul, .mv-legal-doc ol { margin-top: 1rem; display: grid; gap: .6rem; }
.mv-legal-doc ul > li { position: relative; padding-left: 1.4rem; }
.mv-legal-doc ul > li::before { content: ""; position: absolute; left: .25rem; top: .72em; width: .35rem; height: .35rem; border-radius: 999px; background: var(--color-mollyvett); }
.mv-legal-doc ol { list-style: lower-alpha; padding-left: 1.5rem; }
.mv-legal-doc ol > li { padding-left: .35rem; }
.mv-legal-doc ol > li::marker { color: rgb(9 9 11 / .4); font-weight: 500; }
.mv-legal-doc ul.mv-legal-caja { margin-top: 1.25rem; gap: .5rem; padding: 1.5rem; border: 1px solid rgb(9 9 11 / .08); border-radius: .75rem; background: #fafafa; }
.mv-legal-doc ul.mv-legal-caja > li { padding-left: 0; }
.mv-legal-doc ul.mv-legal-caja > li::before { display: none; }

/* Cambio entre documentos legales sin recargar (main.js → "legal tabs"):
   sale con un zoom rápido hacia el frente y el nuevo llega desde más cerca, asentándose suave. */
@keyframes mv-legal-out { to { opacity: 0; transform: scale(1.06); filter: blur(6px); } }
@keyframes mv-legal-in { from { opacity: 0; transform: scale(1.06); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
[data-legal] { transform-origin: 50% 0; }
[data-legal="miga"] { display: inline-block; transform-origin: 0 50%; }
/* Selectores reforzados: el título y el resumen también llevan la entrada inicial de la página
   (.mv-js .mv-hero-in > :nth-child), que de otro modo ganaría y dejaría el cambio sin animación. */
.mv-js .mv-legal-hero [data-legal].mv-legal-out, .mv-js .mv-legal-hero > [data-legal].mv-legal-out, .mv-legal-out { animation: mv-legal-out .34s cubic-bezier(.45, 0, .55, 1) forwards; pointer-events: none; }
.mv-js .mv-legal-hero [data-legal].mv-legal-in, .mv-js .mv-legal-hero > [data-legal].mv-legal-in, .mv-legal-in { animation: mv-legal-in .8s cubic-bezier(.16, 1, .3, 1) both; }
/* Títulos más pausados para que se sientan suaves. */
.mv-js .mv-legal-hero [data-legal].mv-legal-in { animation-duration: 1.15s; }
.mv-js .mv-legal-hero > [data-legal="resumen"].mv-legal-in { animation-delay: .1s; }
.mv-legal-in[data-legal="cuerpo"] { animation-delay: .2s; }

/* ============================================================
   Comentarios de usuarios (#comentarios, portada)
   Un comentario a la vez, en la letra de los títulos del sitio.
   Sin degradados ni cristal: tipografía, foto redonda y espacio.
   El carrusel es el de "Funciones destacadas"; cada diapositiva
   ocupa todo el ancho y las que no están al frente se apagan
   (main.js marca la del frente con .is-actual).
   ============================================================ */
.mv-cita-slide { flex-basis: 100%; padding-bottom: 4.5rem; transition: opacity .7s ease; }
.mv-cita-slide--sola { padding-bottom: 0; }
.mv-js #comentarios .mv-cita-slide:not(.is-actual) { opacity: 0; }
.mv-cita { display: flex; flex-direction: column; align-items: center; max-width: 56rem; margin: 0 auto; text-align: center; user-select: none; }
.mv-cita__titulo { margin: 0 0 1.25rem; font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 600; line-height: 1.4; color: rgb(255 255 255 / .7); text-wrap: balance; }
.mv-cita__texto { margin: 0; }
.mv-cita__ciudad { display: block; }
.mv-cita__sitio { color: inherit; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .3); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.mv-cita__sitio:hover, .mv-cita__sitio:focus-visible { color: #fff; text-decoration-color: var(--color-mollyvett, #e1690d); outline: none; }

/* Comentarios: isla — píldora negra estilo Dynamic Island que brota de una gota debajo del autor
   (se posiciona respecto a .mv-cita__autor, pero vive dentro del enlace: hover y clic son del enlace).
   Las diapositivas llevan padding-bottom para que la isla quepa sin que el carrusel la recorte. */
.mv-isla {
  position: absolute; left: 50%; top: calc(100% + 14px); z-index: 5;
  display: flex; align-items: center; gap: .65rem;
  padding: .375rem .45rem .375rem .375rem; border-radius: 999px;
  background: #000; color: #fff; white-space: nowrap; text-decoration: none; line-height: 1.2;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), inset 0 1px 0 rgb(255 255 255 / .08),
              0 18px 40px -12px rgb(0 0 0 / .9), 0 0 48px -10px color-mix(in srgb, var(--color-mollyvett, #e1690d) 45%, transparent);
  transform-origin: 50% 0;
  transform: translate(-50%, -10px) scale(.18, .32);
  opacity: 0; filter: blur(6px); pointer-events: none;
  transition: transform .55s cubic-bezier(.34, 1.45, .55, 1), opacity .2s ease, filter .35s ease;
}
/* La gota: cuelga del enlace y une la isla con él. */
.mv-isla::after {
  content: ""; position: absolute; left: 50%; bottom: 100%;
  width: 14px; height: 10px; margin-left: -7px; margin-bottom: -1px;
  background: #000; clip-path: path("M0 10 H14 C10 10 8.6 7 7 0 C5.4 7 4 10 0 10 Z");
}
.mv-isla > * { opacity: 0; transform: scale(.85); transition: opacity .2s ease, transform .35s ease; }
.mv-isla__logo { flex: none; width: 2rem; height: 2rem; border-radius: 999px; background: #fff; object-fit: contain; }
.mv-isla__texto { display: flex; flex-direction: column; gap: .1rem; padding-right: .35rem; text-align: left; }
.mv-isla__dominio { font-family: var(--font-heading, inherit); font-size: .875rem; font-weight: 600; letter-spacing: -.01em; }
.mv-isla__accion { display: flex; align-items: center; gap: .35rem; font-size: .7rem; color: rgb(255 255 255 / .55); }
.mv-isla__punto { width: 6px; height: 6px; border-radius: 999px; background: #34d399; box-shadow: 0 0 0 0 rgb(52 211 153 / .6); }
.mv-isla__flecha {
  flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px;
  color: #fff; background: var(--color-mollyvett, #e1690d);
}

@media (hover: hover) { .mv-cita__sitio:hover .mv-isla { opacity: 1; filter: none; transform: translate(-50%, 0) scale(1); } }
.mv-cita__sitio:focus-visible .mv-isla { opacity: 1; filter: none; transform: translate(-50%, 0) scale(1); }
@media (hover: hover) { .mv-cita__sitio:hover .mv-isla > * { opacity: 1; transform: none; transition-delay: .14s; } }
.mv-cita__sitio:focus-visible .mv-isla > * { opacity: 1; transform: none; transition-delay: .14s; }
@media (hover: hover) { .mv-cita__sitio:hover .mv-isla__punto { animation: mv-isla-pulso 1.6s ease-out .4s infinite; } }
.mv-cita__sitio:hover .mv-isla__flecha svg, .mv-cita__sitio:focus-visible .mv-isla__flecha svg { animation: mv-isla-flecha .5s cubic-bezier(.34, 1.45, .55, 1) .25s both; }
@keyframes mv-isla-pulso { 0% { box-shadow: 0 0 0 0 rgb(52 211 153 / .6); } 100% { box-shadow: 0 0 0 7px rgb(52 211 153 / 0); } }
@keyframes mv-isla-flecha { from { transform: translate(-4px, 4px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mv-isla, .mv-isla > * { transition: opacity .15s ease; filter: none; }
  .mv-isla__punto, .mv-isla__flecha svg { animation: none !important; }
}
.mv-cita__texto p { font-size: clamp(1.625rem, 3.4vw, 2.75rem); line-height: 1.22; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.mv-cita__autor { position: relative; display: flex; align-items: center; gap: .9rem; margin-top: 2.25rem; text-align: left; }
.mv-cita__foto { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 999px; object-fit: cover; }
.mv-cita__foto--iniciales { display: grid; place-items: center; font-weight: 600; font-size: 1rem; color: rgb(255 255 255 / .85); background: #27272a; }
.mv-cita__datos { display: flex; flex-direction: column; min-width: 0; }
.mv-cita__nombre { font-weight: 600; color: #fff; line-height: 1.3; }
.mv-cita__clinica { margin-top: .15rem; font-size: .9rem; line-height: 1.4; color: rgb(255 255 255 / .55); }
.mv-cita-controles { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .mv-cita-slide { transition: none; } }

/* ============================================================
   Rendimiento en celular (16-nov-2026). La vista de PC no cambia.
   En teléfonos cada backdrop-filter, reflejo y filtro se recalcula en
   cada cuadro del scroll: era la causa de que la página "se trabara".
   ============================================================ */
@keyframes mv-rise-m {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 767px) {
  /* Entrada más corta y sin desenfoque animado: el contenido se ve antes (mejor LCP) */
  @media (prefers-reduced-motion: no-preference) {
    .mv-js main > :first-child nav[aria-label="Migas de pan"],
    .mv-js .mv-hero-in > :nth-child(-n+7),
    .mv-js .mv-in {
      animation-name: mv-rise-m;
      animation-duration: .7s;
      animation-delay: calc(40ms + var(--d, 0) * 55ms);
    }
  }
  /* El reflejo de las ventanas del coverflow casi no se ve en pantalla chica y cuesta mucho */
  .mv-window { -webkit-box-reflect: unset; }
}
@media (max-width: 1023px), (hover: none) {
  /* Desenfoque progresivo de las tarjetas (4 capas × 18 tarjetas): en celular basta el
     degradado oscuro que ya llevan encima para que el texto se lea */
  div[aria-hidden="true"].bottom-0.h-1\/2 > div[style*="backdrop-filter"] {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  /* …y sin el desenfoque, el degradado que sigue se refuerza para que el texto blanco se lea igual */
  div[aria-hidden="true"].bottom-0.h-1\/2 + div[aria-hidden="true"][style*="linear-gradient"] {
    background: linear-gradient(0deg, rgb(0 0 0 / .9) 0%, rgb(0 0 0 / .78) 40%, rgb(0 0 0 / .45) 68%, rgb(0 0 0 / 0) 92%) !important;
  }
  /* Pie: en celular es más alto que la pantalla, así que se desplaza normal desde el inicio
     (antes cargaba fijo detrás de la página y main.js lo soltaba después: brincaba y el
     lema "Hecho con ❤ para veterinarias." quedaba tapado o se perdía) */
  footer.sticky[data-tone="dark"] { position: relative; bottom: auto; }
}

/* Póster como imagen detrás de los videos diferidos (funciones-indice-html.ts → posterDetras):
   la imagen ocupa el marco y el video, transparente hasta su primer cuadro, se pinta encima. */
.mv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-screen > .mv-poster + .mv-fx-video { position: relative; background: transparent; }
.mv-clip3d > .mv-poster + video, .mv-duo__media > .mv-poster + video { background: transparent; }

/* ============================================================
   Contraste (WCAG AA 4.5:1) con el naranja de la marca (17-nov-2026).
   #e1690d con texto blanco o sobre blanco da 3.4:1. Todo lo que lleva TEXTO usa el naranja
   oscuro #b04f09 (5.1:1 con blanco, 4.9:1 sobre #fafafa); lo decorativo (anillos, bordes, brillos, íconos, tintes) sigue en
   #e1690d. Sobre fondos oscuros se queda #e1690d: ahí el oscuro bajaría el contraste.
   ============================================================ */
.bg-mollyvett { background-color: #b04f09; }
.text-mollyvett { color: #b04f09; }
[data-tone="dark"] .text-mollyvett { color: #e1690d; }
@media (hover: hover) {
  .hover\:bg-mollyvett-hover:hover { background-color: #95420a; }
}
/* Pie naranja: textos secundarios casi blancos (blanco al 60-70 % sobre naranja daba 3:1) */
footer.bg-mollyvett .text-white\/70, footer.bg-mollyvett .text-white\/60 { color: rgb(255 255 255 / .92); }
footer.bg-mollyvett a.text-white\/70:hover { text-decoration: underline; text-underline-offset: .25em; }

/* ============================================================
   WhatsApp flotante (lib/plantilla.tsx → BotonWhatsApp).
   Círculo de vidrio oscuro como el menú, ícono verde WhatsApp.
   Aparece suave al bajar; se oculta junto al contacto y el pie
   (main.js → "whatsapp flotante"). Sin JS se muestra siempre.
   ============================================================ */
.mv-wa {
  --wa-ease: cubic-bezier(.16,1,.3,1);
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  color: #25d366;
  background: rgb(24 24 27 / 0.72);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
  transition: opacity .5s var(--wa-ease), transform .5s var(--wa-ease), background-color .3s ease, visibility 0s;
}
.mv-wa:hover { background: rgb(39 39 42 / 0.86); transform: translateY(-2px); }
.mv-wa:focus-visible { outline: 2px solid #25d366; outline-offset: 3px; }
.mv-js .mv-wa:not(.is-visible) {
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s var(--wa-ease), transform .4s var(--wa-ease), visibility 0s linear .4s;
}
@media (max-width: 639px) {
  .mv-wa { width: 48px; height: 48px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .mv-wa, .mv-wa:hover, .mv-js .mv-wa:not(.is-visible) { transform: none; }
}
