/* ==========================================================================
   Mi Solución Digital · Sistema de diseño 2026
   Una sola fuente de verdad para colores, tipografía, espacios y componentes.
   Paleta corporativa: azul #1c90d4 · azul cielo #38b6ff · vino #af214e
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Marca */
  --msd-blue: #1c90d4;
  --msd-sky: #38b6ff;
  --msd-wine: #af214e;
  --msd-blue-600: #1675ad;
  --msd-sky-200: #9fdcff;
  --msd-wine-300: #e0668d;

  /* Neutros derivados del azul corporativo */
  --msd-night: #06182a;
  --msd-night-2: #0b2540;
  --msd-ink: #0c1c2e;
  --msd-text: #22364a;
  --msd-muted: #5a6d80;
  --msd-line: rgba(12, 28, 46, 0.1);
  --msd-soft: #f1f7fc;
  --msd-white: #fff;

  /* Degradados */
  --msd-grad: linear-gradient(120deg, var(--msd-sky) 0%, var(--msd-blue) 48%, var(--msd-wine) 100%);
  --msd-grad-text-dark: linear-gradient(95deg, var(--msd-sky) 0%, var(--msd-sky-200) 45%, var(--msd-wine-300) 100%);
  --msd-grad-text-light: linear-gradient(95deg, var(--msd-blue) 0%, var(--msd-blue-600) 45%, var(--msd-wine) 100%);

  /* Tipografía */
  --msd-f-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --msd-f-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Forma y profundidad */
  --msd-r-sm: 12px;
  --msd-r: 18px;
  --msd-r-lg: 28px;
  --msd-shadow: 0 1px 2px rgba(12, 28, 46, 0.05), 0 18px 40px -18px rgba(12, 28, 46, 0.22);
  --msd-shadow-lg: 0 30px 80px -24px rgba(6, 24, 42, 0.45);

  /* Layout */
  --msd-container: 1200px;
  --msd-gutter: clamp(16px, 4vw, 32px);
  --msd-section-y: clamp(72px, 9vw, 128px);
  --msd-nav-h: 72px;
  --msd-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--msd-nav-h); }
body.msd {
  margin: 0;
  font-family: var(--msd-f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--msd-text);
  background: var(--msd-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.msd *, .msd *::before, .msd *::after { box-sizing: border-box; }
.msd img, .msd video { max-width: 100%; display: block; }
.msd h1, .msd h2, .msd h3, .msd h4, .msd h5 {
  font-family: var(--msd-f-display);
  color: var(--msd-ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  font-weight: 600;
}
.msd p { margin: 0; }
.msd a { color: var(--msd-blue); text-decoration: none; }
.msd a:hover { color: var(--msd-blue-600); }
.msd :focus-visible { outline: 2px solid var(--msd-sky); outline-offset: 3px; border-radius: 6px; }
.msd .msd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.msd-container { width: 100%; max-width: var(--msd-container); margin: 0 auto; padding: 0 var(--msd-gutter); }
.msd-section { position: relative; padding: var(--msd-section-y) 0; }
.msd-section--soft { background: var(--msd-soft); }
.msd-section--dark { background: var(--msd-night); color: rgba(255, 255, 255, 0.72); }
.msd-section--dark h2, .msd-section--dark h3, .msd-section--dark h4 { color: #fff; }

/* Texto */
.msd-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--msd-blue);
  background: rgba(28, 144, 212, 0.09);
  border: 1px solid rgba(28, 144, 212, 0.18);
}
.msd-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 0 currentColor;
  animation: msd-pulse 2.4s var(--msd-ease) infinite;
}
.msd-eyebrow--dark { color: #fff; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); }
.msd-eyebrow--dark::before { background: var(--msd-sky); color: var(--msd-sky); }

.msd-h2 { font-size: clamp(2rem, 1.25rem + 3vw, 3.4rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.msd-h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); letter-spacing: -0.02em; }
.msd-lead { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem); line-height: 1.6; color: var(--msd-muted); max-width: 62ch; }
.msd-section--dark .msd-lead { color: rgba(255, 255, 255, 0.72); }
.msd-grad-text { background: var(--msd-grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.msd-section--dark .msd-grad-text, .msd-hero .msd-grad-text { background-image: var(--msd-grad-text-dark); }
.msd-kicker { font-weight: 700; color: var(--msd-blue); }

.msd-head { display: grid; gap: 1.25rem; margin-bottom: clamp(40px, 5vw, 64px); }
.msd-head--split { align-items: end; }
.msd-head--center { justify-items: center; text-align: center; }
.msd-head--center .msd-lead { margin: 0 auto; }
@media (min-width: 992px) {
  .msd-head--split { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.msd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0 1.6rem;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--msd-f-body); font-size: 1rem; font-weight: 700; line-height: 1;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--msd-ease), box-shadow 0.35s var(--msd-ease), background-position 0.6s var(--msd-ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.msd-btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--msd-ease); }
.msd-btn:hover svg { transform: translateX(3px); }
.msd-btn--primary {
  color: #fff !important;
  background: linear-gradient(110deg, var(--msd-sky), var(--msd-blue) 40%, var(--msd-wine) 80%, var(--msd-blue));
  background-size: 250% 100%;
  box-shadow: 0 14px 34px -14px rgba(28, 144, 212, 0.85);
}
.msd-btn--primary:hover { background-position: 60% 0; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(175, 33, 78, 0.6); }
.msd-btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.msd-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.msd-btn--light { color: var(--msd-blue) !important; background: #fff; box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.5); }
.msd-btn--light:hover { transform: translateY(-2px); color: var(--msd-wine) !important; }
.msd-btn--outline { color: var(--msd-ink) !important; border-color: var(--msd-line); background: #fff; }
.msd-btn--outline:hover { border-color: var(--msd-blue); color: var(--msd-blue) !important; }
.msd-btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: 0.9rem; }
.msd-btn__play {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -0.6rem;
  border-radius: 50%; background: rgba(255, 255, 255, 0.16);
}
.msd-btn__play svg { width: 12px; height: 12px; margin-left: 2px; }
.msd-btn:hover .msd-btn__play svg { transform: none; }

.msd-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) {
  .msd-btn { white-space: normal; text-align: center; line-height: 1.25; padding: 12px 1.3rem; }
  .msd-actions--stack .msd-btn, .msd-statement .msd-btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Navegación
   -------------------------------------------------------------------------- */
.msd-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  height: var(--msd-nav-h);
  display: flex; align-items: center;
  transition: background-color 0.4s var(--msd-ease), border-color 0.4s, height 0.4s var(--msd-ease);
  border-bottom: 1px solid transparent;
}
.msd-nav.is-scrolled, .msd-nav--solid, .msd-nav.is-open {
  background: rgba(6, 24, 42, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.msd-nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.msd-nav__logo { display: inline-flex; align-items: center; flex: none; }
.msd-nav__logo img { height: 34px; width: auto; }
.msd-nav__menu { display: flex; align-items: center; gap: 6px; }
.msd-nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.msd-nav__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.85rem;
  border-radius: 999px; font-size: 0.93rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.78) !important; text-decoration: none !important;
  transition: background-color 0.25s, color 0.25s;
}
.msd-nav__links a:hover, .msd-nav__links a[aria-current="page"] { color: #fff !important; background: rgba(255, 255, 255, 0.09); }
.msd-nav__meta { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.msd-nav__loc { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); white-space: nowrap; }
.msd-nav__loc svg { width: 14px; height: 14px; }
.msd-nav__lang {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em;
  color: #fff !important; text-decoration: none !important; transition: background-color 0.25s, border-color 0.25s;
}
.msd-nav__lang:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.msd-nav__toggle {
  display: none; position: relative; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); cursor: pointer;
}
.msd-nav__toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform 0.35s var(--msd-ease), top 0.35s var(--msd-ease);
}
.msd-nav__toggle span:first-child { top: 17px; }
.msd-nav__toggle span:last-child { top: 25px; }
.msd-nav.is-open .msd-nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.msd-nav.is-open .msd-nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1099px) { .msd-nav__loc { display: none; } }
@media (max-width: 991px) {
  :root { --msd-nav-h: 64px; }
  .msd-nav__logo img { height: 28px; }
  .msd-nav__toggle { display: block; }
  .msd-nav__menu {
    position: fixed; top: var(--msd-nav-h); left: 0; right: 0;
    height: calc(100vh - var(--msd-nav-h)); height: calc(100dvh - var(--msd-nav-h));
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px var(--msd-gutter) 40px;
    background: rgba(6, 24, 42, 0.97);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.35s var(--msd-ease), transform 0.35s var(--msd-ease), visibility 0.35s;
  }
  .msd-nav.is-open .msd-nav__menu { opacity: 1; visibility: visible; transform: none; }
  .msd-nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .msd-nav__links a {
    min-height: 60px; padding: 0 4px; border-radius: 0; font-family: var(--msd-f-display);
    font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .msd-nav__links a:hover { background: none; }
  .msd-nav__meta { margin: 0; justify-content: space-between; flex-wrap: wrap; }
  .msd-nav__meta .msd-btn { flex: 1 1 100%; order: 3; min-height: 54px; }
  .msd-nav__loc { display: inline-flex; }
  body.msd-nav-lock { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.msd-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--msd-nav-h) + clamp(28px, 6vh, 72px));
  background: var(--msd-night); color: #fff;
}
.msd-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.msd-hero__bg::before, .msd-hero__bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
  animation: msd-drift 18s ease-in-out infinite alternate;
}
.msd-hero__bg::before { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, var(--msd-blue) 0%, transparent 65%); }
.msd-hero__bg::after { width: 50vmax; height: 50vmax; right: -16vmax; bottom: -20vmax; background: radial-gradient(circle, var(--msd-wine) 0%, transparent 65%); animation-delay: -9s; opacity: 0.45; }
.msd-hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
}
.msd-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; mix-blend-mode: luminosity; transition: opacity 1.2s ease; }
.msd-hero__video.is-ready { opacity: 0.22; }
.msd-hero__body { flex: 1; display: flex; align-items: center; padding-bottom: clamp(40px, 7vh, 80px); }
.msd-hero__inner { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 992px) { .msd-hero__inner { grid-template-columns: 1.2fr 0.8fr; } }
.msd-hero__title {
  margin: 1.25rem 0 1.25rem !important;
  font-size: clamp(2.05rem, 1rem + 3.2vw, 3.75rem) !important;
  line-height: 1.03 !important; letter-spacing: -0.04em !important; font-weight: 700 !important;
  color: #fff !important; text-wrap: balance;
}
.msd-hero__sub { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem); line-height: 1.6; color: rgba(255, 255, 255, 0.74); max-width: 54ch; margin-bottom: 2rem !important; }
.msd-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }
.msd-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.msd-hero__meta svg { width: 16px; height: 16px; color: var(--msd-sky); }

/* Tablero ilustrativo del sistema */
.msd-panel {
  position: relative; padding: 20px;
  border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--msd-shadow-lg);
  font-size: 0.86rem;
}
.msd-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.msd-panel__dots { display: flex; gap: 6px; }
.msd-panel__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.msd-panel__title { font-family: var(--msd-f-display); font-weight: 600; color: #fff; font-size: 0.92rem; }
.msd-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: #7ee2b0; background: rgba(46, 204, 128, 0.12); }
.msd-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: msd-pulse 1.8s infinite; }
.msd-stages { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.msd-stage { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 4px 12px; }
.msd-stage__icon { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(56, 182, 255, 0.14); color: var(--msd-sky); }
.msd-stage__icon svg { width: 16px; height: 16px; }
.msd-stage__label { color: rgba(255, 255, 255, 0.86); font-weight: 600; }
.msd-stage__val { font-family: var(--msd-f-display); color: #fff; font-weight: 600; }
.msd-stage__bar { grid-column: 2 / 4; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.msd-stage__bar i { display: block; height: 100%; width: var(--w, 50%); border-radius: inherit; background: linear-gradient(90deg, var(--msd-sky), var(--msd-blue) 60%, var(--msd-wine)); transform-origin: left; animation: msd-grow 1.6s var(--msd-ease) both; animation-delay: var(--d, 0.4s); }
.msd-panel__ai {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px;
  border-radius: 14px; background: linear-gradient(120deg, rgba(56, 182, 255, 0.14), rgba(175, 33, 78, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.86); line-height: 1.45;
}
.msd-panel__ai svg { width: 18px; height: 18px; flex: none; color: var(--msd-sky-200); margin-top: 1px; }
.msd-panel__ai b { color: #fff; }
.msd-panel__spark { margin-top: 14px; height: 56px; }
.msd-panel__spark path.line { stroke-dasharray: 400; stroke-dashoffset: 400; animation: msd-draw 2.4s var(--msd-ease) 0.6s forwards; }
.msd-float {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: #fff; white-space: nowrap;
  background: rgba(11, 37, 64, 0.85); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
  animation: msd-float 6s ease-in-out infinite;
}
.msd-float svg { width: 15px; height: 15px; color: var(--msd-sky); }
.msd-float--a { top: -18px; left: -26px; }
.msd-float--b { bottom: -20px; right: -14px; animation-delay: -3s; }
.msd-float--b svg { color: #7ee2b0; }
.msd-panel-wrap { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.msd-panel-note { margin-top: 28px; font-size: 0.72rem; text-align: left; color: rgba(255, 255, 255, 0.38); }
@media (max-width: 991px) {
  .msd-float--a { left: 8px; }
  .msd-float--b { right: 8px; }
}

/* Cinta de capacidades */
.msd-marquee {
  position: relative; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.msd-marquee__track { display: flex; width: max-content; animation: msd-marquee 42s linear infinite; }
.msd-marquee__track span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--msd-f-display); font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.15rem); font-weight: 500;
  color: rgba(255, 255, 255, 0.55); white-space: nowrap;
}
.msd-marquee__track span::after { content: "✦"; color: var(--msd-sky); font-size: 0.8em; }
.msd-marquee:hover .msd-marquee__track { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   Bento de servicios (Sistema de crecimiento)
   -------------------------------------------------------------------------- */
.msd-bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .msd-bento { grid-template-columns: repeat(2, 1fr); }
  .msd-bento__e { grid-column: span 2; }
}
@media (min-width: 992px) {
  .msd-bento { grid-template-columns: repeat(4, 1fr); grid-template-areas: "a a b c" "d e e c"; }
  .msd-bento__a { grid-area: a; } .msd-bento__b { grid-area: b; } .msd-bento__c { grid-area: c; }
  .msd-bento__d { grid-area: d; } .msd-bento__e { grid-area: e; grid-column: auto; }
}
.msd-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--msd-r-lg); border: 1px solid var(--msd-line); background: #fff;
  transition: transform 0.5s var(--msd-ease), box-shadow 0.5s var(--msd-ease), border-color 0.5s;
}
.msd-card:hover { transform: translateY(-4px); box-shadow: var(--msd-shadow); border-color: rgba(28, 144, 212, 0.3); }
.msd-card__top { display: flex; align-items: center; justify-content: space-between; }
.msd-card__num { font-family: var(--msd-f-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: var(--msd-muted); }
.msd-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  color: var(--msd-blue); background: linear-gradient(140deg, rgba(56, 182, 255, 0.16), rgba(28, 144, 212, 0.08));
  border: 1px solid rgba(28, 144, 212, 0.15);
}
.msd-icon svg { width: 22px; height: 22px; }
.msd-card p { color: var(--msd-muted); }
.msd-card__visual { margin-top: auto; padding-top: 10px; }
.msd-card--feature {
  color: rgba(255, 255, 255, 0.75); border-color: transparent;
  background: radial-gradient(120% 140% at 100% 0%, rgba(175, 33, 78, 0.55) 0%, transparent 55%), radial-gradient(120% 120% at 0% 100%, rgba(28, 144, 212, 0.55) 0%, transparent 60%), var(--msd-night);
}
.msd-card--feature h3 { color: #fff; }
.msd-card--feature p { color: rgba(255, 255, 255, 0.75); }
.msd-card--feature p b { color: #fff; }
.msd-card--feature .msd-card__num { color: rgba(255, 255, 255, 0.55); }
.msd-card--feature .msd-icon { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); }
.msd-loop { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: var(--msd-sky-200); }
.msd-loop svg { width: 16px; height: 16px; animation: msd-spin 6s linear infinite; }

/* Mini visuales dentro de las tarjetas */
.msd-viz-kpi { display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.msd-viz-kpi i { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--msd-sky), var(--msd-blue)); height: var(--h); opacity: 0.85; transform-origin: bottom; }
.msd-viz-kpi i:last-child { background: linear-gradient(180deg, var(--msd-wine-300), var(--msd-wine)); }
.msd-is-visible .msd-viz-kpi i { animation: msd-rise 1.2s var(--msd-ease) both; }
.msd-viz-kpi i:nth-child(2) { animation-delay: 0.08s !important; } .msd-viz-kpi i:nth-child(3) { animation-delay: 0.16s !important; }
.msd-viz-kpi i:nth-child(4) { animation-delay: 0.24s !important; } .msd-viz-kpi i:nth-child(5) { animation-delay: 0.32s !important; }
.msd-viz-ads { position: relative; height: 72px; }
.msd-viz-ads i { position: absolute; bottom: 0; width: 58%; height: 56px; border-radius: 12px; border: 1px solid var(--msd-line); background: #fff; box-shadow: var(--msd-shadow); transition: transform 0.5s var(--msd-ease); }
.msd-viz-ads i::before { content: ""; position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 8px; background: var(--msd-grad); }
.msd-viz-ads i::after { content: ""; position: absolute; left: 44px; right: 12px; top: 14px; height: 6px; border-radius: 6px; background: var(--msd-soft); box-shadow: 0 12px 0 var(--msd-soft); }
.msd-viz-ads i:nth-child(1) { left: 0; transform: rotate(-6deg); }
.msd-viz-ads i:nth-child(2) { left: 20%; bottom: 8px; transform: rotate(3deg); }
.msd-viz-ads i:nth-child(3) { left: 40%; bottom: 14px; }
.msd-card:hover .msd-viz-ads i:nth-child(1) { transform: rotate(-10deg) translateX(-6px); }
.msd-card:hover .msd-viz-ads i:nth-child(2) { transform: rotate(6deg) translateY(-4px); }
.msd-viz-net { width: 100%; height: auto; }
.msd-viz-net .edge { stroke: rgba(28, 144, 212, 0.35); stroke-width: 1.5; stroke-dasharray: 4 5; animation: msd-dash 14s linear infinite; }
.msd-viz-net .node { fill: #fff; stroke: rgba(28, 144, 212, 0.35); }
.msd-viz-net .hub { fill: url(#msdHubGrad); }
.msd-viz-net text { font-family: var(--msd-f-body); font-size: 11px; font-weight: 700; fill: var(--msd-ink); }
.msd-viz-net .hub-text { fill: #fff; font-family: var(--msd-f-display); font-size: 12px; }
.msd-viz-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.msd-viz-flow span { padding: 6px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: var(--msd-blue); background: var(--msd-soft); border: 1px solid rgba(28, 144, 212, 0.14); }
.msd-viz-flow svg { width: 14px; height: 14px; color: var(--msd-muted); }
.msd-viz-flow span:last-child { color: #fff; background: var(--msd-blue); border-color: var(--msd-blue); }

/* --------------------------------------------------------------------------
   Secciones con video
   -------------------------------------------------------------------------- */
.msd-split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 992px) { .msd-split { grid-template-columns: 1fr 1fr; } .msd-split--wide-left { grid-template-columns: 1.1fr 0.9fr; } }
.msd-media {
  position: relative; overflow: hidden; border-radius: var(--msd-r-lg);
  aspect-ratio: 4 / 5; max-height: 640px; width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(80% 60% at 20% 20%, rgba(56, 182, 255, 0.45), transparent 60%),
    radial-gradient(70% 60% at 90% 90%, rgba(175, 33, 78, 0.5), transparent 60%),
    var(--msd-night-2);
  box-shadow: var(--msd-shadow-lg);
}
.msd-media::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.msd-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.msd-media video.is-ready { opacity: 1; }
.msd-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 24, 42, 0.85)); }
@media (max-width: 991px) { .msd-media { aspect-ratio: 16 / 11; } }
.msd-media__card {
  position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; padding: 16px 18px;
  border-radius: 18px; background: rgba(6, 24, 42, 0.6); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff;
}
.msd-media__card strong { display: block; font-family: var(--msd-f-display); font-size: 1rem; margin-bottom: 10px; }
.msd-steps { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; color: rgba(255, 255, 255, 0.8); flex-wrap: wrap; }
.msd-steps i { width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--msd-sky), var(--msd-wine-300)); }

.msd-pills { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .msd-pills { grid-template-columns: 1fr 1fr; } }
.msd-pills li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 14px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
}
.msd-pills svg { width: 20px; height: 20px; flex: none; color: var(--msd-sky); }

/* Panel oscuro insertado (tecnología) */
.msd-inset {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: clamp(24px, 3vw, 36px);
  padding: clamp(28px, 5vw, 72px);
  background: var(--msd-night); color: rgba(255, 255, 255, 0.74);
}
.msd-inset video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; mix-blend-mode: luminosity; transition: opacity 1.2s ease; }
.msd-inset video.is-ready { opacity: 0.25; }
.msd-inset::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 0% 0%, rgba(28, 144, 212, 0.55), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(175, 33, 78, 0.45), transparent 60%);
}
.msd-inset h2, .msd-inset h3, .msd-inset h4 { color: #fff; }
.msd-checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .msd-checks { grid-template-columns: 1fr 1fr; } }
.msd-checks li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.msd-checks svg { width: 20px; height: 20px; flex: none; color: #7ee2b0; }
.msd-caps { display: grid; gap: 12px; }
.msd-cap {
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-items: start;
  padding: 18px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.3s, transform 0.4s var(--msd-ease);
}
.msd-cap:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(4px); }
.msd-cap .msd-icon { grid-row: span 2; width: 44px; height: 44px; color: #fff; background: rgba(56, 182, 255, 0.18); border-color: rgba(56, 182, 255, 0.3); }
.msd-cap h3 { font-size: 1.08rem; color: #fff; }
.msd-cap p { font-size: 0.93rem; color: rgba(255, 255, 255, 0.7); }
.msd-inset__foot { margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center; font-weight: 700; color: #fff; }

/* --------------------------------------------------------------------------
   Experiencia · métricas
   -------------------------------------------------------------------------- */
.msd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 40px; border-radius: var(--msd-r-lg); overflow: hidden; background: var(--msd-line); border: 1px solid var(--msd-line); }
.msd-stat { padding: clamp(18px, 3vw, 32px); background: #fff; }
.msd-stat b { display: block; font-family: var(--msd-f-display); font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; font-weight: 700; }
.msd-stat span { display: block; margin-top: 8px; font-size: 0.88rem; color: var(--msd-muted); }
@media (max-width: 559px) { .msd-stat span { font-size: 0.78rem; } }
.msd-grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .msd-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .msd-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.msd-statement { display: grid; gap: 24px; align-items: center; margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 4vw, 40px); border-radius: var(--msd-r-lg); background: var(--msd-soft); }
.msd-statement p { font-family: var(--msd-f-display); font-size: clamp(1.2rem, 1rem + 0.9vw, 1.7rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; color: var(--msd-ink); }
@media (min-width: 992px) { .msd-statement { grid-template-columns: 1fr auto; gap: 48px; } }

/* --------------------------------------------------------------------------
   Proyectos
   -------------------------------------------------------------------------- */
.msd-filters {
  display: flex; gap: 8px; margin: 0 calc(var(--msd-gutter) * -1) 28px; padding: 4px var(--msd-gutter);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.msd-filters::-webkit-scrollbar { display: none; }
.msd-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 1.05rem;
  border-radius: 999px; border: 1px solid var(--msd-line); background: #fff; cursor: pointer;
  font-family: var(--msd-f-body); font-size: 0.9rem; font-weight: 700; color: var(--msd-text);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.msd-chip:hover { border-color: var(--msd-blue); color: var(--msd-blue); }
.msd-chip.is-active { color: #fff; background: var(--msd-ink); border-color: var(--msd-ink); }
.msd-cases { display: grid; gap: 16px; grid-template-columns: 1fr; grid-auto-flow: dense; }
@media (min-width: 640px) { .msd-cases { grid-template-columns: 1fr 1fr; } .msd-case--wide { grid-column: span 2; } }
@media (min-width: 992px) { .msd-cases { grid-template-columns: repeat(3, 1fr); } }
.msd-case {
  position: relative; overflow: hidden; margin: 0; border-radius: var(--msd-r-lg); background: var(--msd-soft);
  aspect-ratio: 4 / 3.4;
  animation: msd-fade-up 0.6s var(--msd-ease) both;
}
@media (min-width: 640px) { .msd-case--wide { aspect-ratio: auto; } }
.msd-case img, .msd-case picture { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--msd-ease); }
.msd-case:hover img { transform: scale(1.05); }
.msd-case figcaption {
  position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(6, 24, 42, 0.88));
  color: #fff; display: grid; gap: 8px;
}
.msd-case figcaption strong { font-family: var(--msd-f-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.msd-case figcaption em { font-style: normal; font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); }
.msd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.msd-tags span { padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); }
.msd-case.is-hidden { display: none; }

/* --------------------------------------------------------------------------
   Testimonios (carrusel con scroll-snap, sin librerías)
   -------------------------------------------------------------------------- */
.msd-slider { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px var(--msd-gutter) 24px; margin: 0 calc(var(--msd-gutter) * -1); scrollbar-width: none; }
.msd-slider::-webkit-scrollbar { display: none; }
.msd-quote {
  flex: 0 0 min(88%, 520px); scroll-snap-align: start; scroll-margin-left: var(--msd-gutter);
  display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3vw, 36px);
  border-radius: var(--msd-r-lg); background: #fff; border: 1px solid var(--msd-line);
}
.msd-quote__mark { font-family: var(--msd-f-display); font-size: 4rem; line-height: 0.6; height: 28px; background: var(--msd-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.msd-quote blockquote { margin: 0; font-size: 1.06rem; line-height: 1.7; color: var(--msd-text); }
.msd-quote footer { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.msd-quote footer img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(28, 144, 212, 0.25); }
.msd-quote cite { font-style: normal; display: grid; line-height: 1.35; }
.msd-quote cite b { color: var(--msd-ink); }
.msd-quote cite span { font-size: 0.85rem; color: var(--msd-muted); }
.msd-stars { color: #f5a623; letter-spacing: 2px; font-size: 0.9rem; }
.msd-slider-nav { display: flex; gap: 10px; }
.msd-round {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--msd-line); background: #fff; color: var(--msd-ink); cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.msd-round:hover { background: var(--msd-ink); color: #fff; border-color: var(--msd-ink); }
.msd-round svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.msd-posts { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .msd-posts { grid-template-columns: repeat(3, 1fr); } }
.msd-post { display: flex; flex-direction: column; border-radius: var(--msd-r-lg); background: #fff; border: 1px solid var(--msd-line); overflow: hidden; transition: transform 0.5s var(--msd-ease), box-shadow 0.5s var(--msd-ease); }
.msd-post:hover { transform: translateY(-4px); box-shadow: var(--msd-shadow); }
.msd-post__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--msd-soft); }
.msd-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--msd-ease); }
.msd-post:hover .msd-post__img img { transform: scale(1.05); }
.msd-post__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 26px; flex: 1; }
.msd-post__meta { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--msd-muted); }
.msd-post__tag { padding: 4px 10px; border-radius: 999px; font-weight: 700; color: var(--msd-blue); background: rgba(28, 144, 212, 0.09); }
.msd-post h3 { font-size: 1.18rem; line-height: 1.25; }
.msd-post h3 a { color: var(--msd-ink) !important; }
.msd-post h3 a::after { content: ""; position: absolute; inset: 0; }
.msd-post { position: relative; }
.msd-post p { font-size: 0.94rem; color: var(--msd-muted); }
.msd-post__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9rem; color: var(--msd-blue); }
.msd-post__more svg { width: 16px; height: 16px; transition: transform 0.35s var(--msd-ease); }
.msd-post:hover .msd-post__more svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.msd-contact { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 992px) { .msd-contact { grid-template-columns: 0.9fr 1.1fr; } }
.msd-contact__list { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 12px; }
.msd-contact__list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.msd-contact__list .msd-icon { width: 44px; height: 44px; }
.msd-contact__list small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--msd-muted); }
.msd-contact__list a, .msd-contact__list span { color: var(--msd-ink); font-weight: 600; }
.msd-map { overflow: hidden; border-radius: var(--msd-r-lg); border: 1px solid var(--msd-line); aspect-ratio: 16 / 10; }
.msd-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85); }
.msd-form {
  padding: clamp(24px, 4vw, 44px); border-radius: var(--msd-r-lg);
  background: #fff; border: 1px solid var(--msd-line); box-shadow: var(--msd-shadow);
}
.msd-form h3 { font-size: 1.5rem; margin-bottom: 6px; }
.msd-form > p { color: var(--msd-muted); margin-bottom: 24px; }
.msd-fields { display: grid; gap: 14px; }
@media (min-width: 560px) { .msd-fields { grid-template-columns: 1fr 1fr; } .msd-field--full { grid-column: 1 / -1; } }
.msd-field label { display: block; margin-bottom: 6px; font-size: 0.82rem; font-weight: 700; color: var(--msd-ink); }
.msd-field input, .msd-field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font: inherit; font-size: 1rem; color: var(--msd-ink);
  border-radius: 14px; border: 1px solid var(--msd-line); background: var(--msd-soft);
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.msd-field textarea { min-height: 130px; resize: vertical; }
.msd-field input:focus, .msd-field textarea:focus { outline: none; border-color: var(--msd-blue); background: #fff; box-shadow: 0 0 0 4px rgba(28, 144, 212, 0.14); }
.msd-form .msd-btn { width: 100%; margin-top: 18px; }
.msd-form__legal { margin-top: 14px !important; font-size: 0.78rem; color: var(--msd-muted); text-align: center; }

/* CTA final */
.msd-cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  border-radius: clamp(24px, 3vw, 36px); padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 64px);
  background: var(--msd-night); color: rgba(255, 255, 255, 0.75);
}
.msd-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 50% 0%, rgba(28, 144, 212, 0.6), transparent 70%), radial-gradient(50% 80% at 100% 100%, rgba(175, 33, 78, 0.45), transparent 70%); }
.msd-cta h2 { color: #fff; margin: 18px auto 16px; max-width: 18ch; }
.msd-cta .msd-lead { color: rgba(255, 255, 255, 0.72); margin: 0 auto 32px; }
.msd-cta .msd-actions { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.msd-footer { background: var(--msd-night); color: rgba(255, 255, 255, 0.6); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: 0.93rem; }
.msd-footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .msd-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.msd-footer img { height: 34px; width: auto; margin-bottom: 18px; }
.msd-footer h4 { font-family: var(--msd-f-body); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 16px; }
.msd-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.msd-footer a { color: rgba(255, 255, 255, 0.82) !important; text-decoration: none !important; }
.msd-footer a:hover { color: var(--msd-sky) !important; }
.msd-footer p { max-width: 38ch; }
.msd-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); }

/* WhatsApp flotante */
.msd-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 1020;
  width: 60px; height: 60px; border-radius: 50%;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--msd-ease);
}
.msd-wa:hover { transform: scale(1.06); }
.msd-wa img { width: 100%; height: 100%; }
.msd-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: 0.4; z-index: -1; animation: msd-ring 2.6s var(--msd-ease) infinite; }

/* Modal de video (dialog nativo) */
.msd-dialog { width: min(960px, 92vw); padding: 0; border: 0; border-radius: 20px; background: #000; overflow: visible; }
.msd-dialog::backdrop { background: rgba(6, 24, 42, 0.8); backdrop-filter: blur(6px); }
.msd-dialog__frame { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; }
.msd-dialog iframe { width: 100%; height: 100%; border: 0; display: block; }
.msd-dialog__close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.msd-dialog__close svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Revelado al hacer scroll (solo si hay JS)
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--msd-ease), transform 0.9s var(--msd-ease); transition-delay: var(--d, 0s); }
.js [data-reveal].msd-is-visible { opacity: 1; transform: none; }
.js .msd-hero [data-reveal] { transition-duration: 1.1s; }

/* --------------------------------------------------------------------------
   Animaciones
   -------------------------------------------------------------------------- */
@keyframes msd-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes msd-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vmax, 4vmax) scale(1.12); } }
@keyframes msd-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes msd-rise { from { transform: scaleY(0.15); } to { transform: scaleY(1); } }
@keyframes msd-draw { to { stroke-dashoffset: 0; } }
@keyframes msd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes msd-marquee { to { transform: translateX(-50%); } }
@keyframes msd-dash { to { stroke-dashoffset: -200; } }
@keyframes msd-spin { to { transform: rotate(360deg); } }
@keyframes msd-ring { 0% { transform: scale(1); opacity: 0.45; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes msd-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .msd *, .msd *::before, .msd *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .msd-marquee__track { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Piel para páginas internas (blog, artículos, IA, aviso, gracias)
   Reutiliza el marcado de la plantilla anterior y lo alinea al sistema 2026.
   ========================================================================== */
body.msd-skin { padding-top: var(--msd-nav-h); font-family: var(--msd-f-body); color: var(--msd-text); -webkit-font-smoothing: antialiased; }
.msd-skin .spinner-grow { display: none !important; }
.msd-skin h1, .msd-skin h2, .msd-skin h3, .msd-skin h4, .msd-skin h5, .msd-skin h6 { font-family: var(--msd-f-display); letter-spacing: -0.02em; }
.msd-skin .section-title { font-family: var(--msd-f-display); font-weight: 700; letter-spacing: -0.035em; color: var(--msd-ink); font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); line-height: 1.06; }
.msd-skin .section-title b { background: var(--msd-grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.msd-skin .section-sub-title { color: var(--msd-muted); }
.msd-skin section { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.msd-skin .bg-grey, .msd-skin .bg-light { background: var(--msd-soft) !important; }
.msd-skin .text-primary { color: var(--msd-blue) !important; }

/* Tarjetas genéricas */
.msd-skin .shadow, .msd-skin .shadow-sm { box-shadow: none !important; border: 1px solid var(--msd-line); }
.msd-skin .rounded { border-radius: var(--msd-r-lg) !important; }
.msd-skin .feature-item, .msd-skin #features .shadow { background: #fff; transition: transform 0.5s var(--msd-ease), box-shadow 0.5s var(--msd-ease); }
.msd-skin .feature-item:hover, .msd-skin #features .shadow:hover { transform: translateY(-4px); box-shadow: var(--msd-shadow) !important; }
.msd-skin .fs-40 { color: var(--msd-blue); }

/* Botones de la plantilla */
.msd-skin .btn { border-radius: 999px !important; font-weight: 700; font-family: var(--msd-f-body); }
.msd-skin .btn-primary, .msd-skin .btn-shadow {
  border: 0 !important; color: #fff !important;
  background: linear-gradient(110deg, var(--msd-sky), var(--msd-blue) 45%, var(--msd-wine)) !important;
  box-shadow: 0 14px 34px -14px rgba(28, 144, 212, 0.85) !important;
}
.msd-skin .btn-outline-primary { color: var(--msd-blue); border-color: var(--msd-blue); }

/* Secciones con imagen de fondo */
.msd-skin .overlay:before, .msd-skin .bg-overlay:before, .msd-skin .jumbotron:before {
  background: linear-gradient(120deg, rgba(6, 24, 42, 0.92), rgba(28, 144, 212, 0.75) 60%, rgba(175, 33, 78, 0.7)) !important;
  opacity: 1 !important;
}
.msd-skin .featurettes, .msd-skin #cta { border-radius: 0; }
.msd-skin .jumbotron { min-height: 60vh; min-height: 60svh; }
.msd-skin .jumbotron h1 { opacity: 1 !important; animation: none !important; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem) !important; line-height: 1.06; letter-spacing: -0.035em; }

/* Blog */
.msd-skin .blog-item { background: #fff; border-radius: var(--msd-r-lg); border: 1px solid var(--msd-line); overflow: hidden; height: 100%; transition: transform 0.5s var(--msd-ease), box-shadow 0.5s var(--msd-ease); }
.msd-skin .blog-item:hover { transform: translateY(-4px); box-shadow: var(--msd-shadow); }
.msd-skin .blog-item-wrapper { margin-bottom: 24px; }
.msd-skin .blog-img { overflow: hidden; aspect-ratio: 16 / 10; }
.msd-skin .blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--msd-ease); }
.msd-skin .blog-item:hover .blog-img img { transform: scale(1.05); }
.msd-skin .blog-text { padding: 22px 24px 26px !important; }
.msd-skin .blog-tag h6, .msd-skin .blog-tag small { display: inline-block; margin: 0; padding: 4px 10px; border-radius: 999px; font-family: var(--msd-f-body); font-size: 0.75rem; font-weight: 700; color: var(--msd-blue); background: rgba(28, 144, 212, 0.09); }
.msd-skin .blog-title h4 { font-size: 1.18rem; line-height: 1.25; color: var(--msd-ink); margin: 12px 0 8px; }
.msd-skin .blog-title a:hover h4 { color: var(--msd-blue); }
.msd-skin .blog-date, .msd-skin .blog-author p { font-size: 0.8rem; color: var(--msd-muted); }
.msd-skin .blog-desc p { font-size: 0.94rem; color: var(--msd-muted); }

/* Artículo individual */
.msd-skin #single-content { font-size: 1.06rem; line-height: 1.8; color: var(--msd-text); }
.msd-skin #single-content h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); line-height: 1.06; letter-spacing: -0.035em; color: var(--msd-ink); }
.msd-skin #single-content h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-top: 2.2rem; color: var(--msd-ink); }
.msd-skin #single-content h3 { font-size: 1.35rem; margin-top: 1.8rem; color: var(--msd-ink); }
.msd-skin #single-content img { border-radius: var(--msd-r-lg); }
.msd-skin #single-content blockquote { margin: 2rem 0; padding: 20px 24px; border-left: 4px solid var(--msd-blue); border-radius: 0 var(--msd-r) var(--msd-r) 0; background: var(--msd-soft); font-family: var(--msd-f-display); font-size: 1.2rem; }
.msd-skin #single-content a { color: var(--msd-blue); text-decoration: underline; text-underline-offset: 3px; }

/* Formularios */
.msd-skin .form-control { border-radius: 14px !important; border: 1px solid var(--msd-line) !important; background: var(--msd-soft) !important; min-height: 52px; }
.msd-skin .form-control:focus { border-color: var(--msd-blue) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(28, 144, 212, 0.14) !important; }

/* Restos de la plantilla que ya no aplican */
.msd-skin .mastfoot { display: none; }

/* Ajustes finos de composición */
.msd-inset .msd-h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem); }
.msd-bento__c .msd-card__visual { margin-block: auto; }
.msd-form { align-self: start; }
.msd-inset .msd-lead { color: rgba(255, 255, 255, 0.74); }
.msd-nav--solid { background: rgba(6, 24, 42, 0.94); }
.msd-skin section { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.msd-skin .jumbotron, .msd-skin .jumbotron h1, .msd-skin .jumbotron h2, .msd-skin .jumbotron h3, .msd-skin .jumbotron h4, .msd-skin .jumbotron p,
.msd-skin .featurettes h1, .msd-skin .featurettes h2, .msd-skin .featurettes h4, .msd-skin .featurettes h5, .msd-skin .featurettes h6, .msd-skin .featurettes p { color: #fff !important; }
@media (max-width: 991px) {
  .msd-nav.is-open { background: var(--msd-night); }
  .msd-nav__menu { background: var(--msd-night); }
  .msd-nav__links a { display: flex; width: 100%; }
}
