/* ===================================================================
   Miceware — Sistema de diseño (rediseño 2026)
   Se carga DESPUÉS de Bootstrap para poder ajustar sobre él.
   Los colores de header/footer siguen saliendo del panel (inline).
   =================================================================== */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-variable.woff2') format('woff2');
}

:root {
  /* Paleta oficial Miceware (ver manual de marca) */
  --mw-ink: #0A1124;
  --mw-paper: #F4F5FB;
  --mw-surface: #FFFFFF;
  --mw-indigo: #002E7C;      /* azul profundo (primario) */
  --mw-violet: #7A7CC9;      /* lavanda (primario) */
  --mw-violet-soft: #ECECF8;
  --mw-signal: #8FE9D0;      /* verde agua (acento CTA) */
  --mw-signal-ink: #063127;  /* texto sobre el acento */
  --mw-aqua: #7EADFB;        /* turquesa (acento) */
  --mw-yellow: #FEE4A9;      /* amarillo suave (acento) */
  --mw-line: rgba(10, 17, 36, 0.12);
  --mw-line-strong: rgba(10, 17, 36, 0.22);
  --mw-muted: #565E78;
  --mw-hero-bg: #070C1C;
  --mw-accent-ink: #002E7C;   /* texto sobre lavanda-suave */
  --mw-prose: #3C4358;        /* texto de cuerpo largo */
  --mw-font: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ===== MODO OSCURO (data-theme="dark") ===== */
:root[data-theme="dark"] {
  --mw-ink: #E9ECF7;
  --mw-paper: #0A0F1E;
  --mw-surface: #141B2E;
  --mw-violet-soft: rgba(122, 124, 201, 0.20);
  --mw-line: rgba(255, 255, 255, 0.12);
  --mw-line-strong: rgba(255, 255, 255, 0.22);
  --mw-muted: #99A2BD;
  --mw-accent-ink: #AEB1E6;
  --mw-prose: rgba(233, 236, 247, 0.82);
}

/* --- Base tipográfica global (Roboto en todo el sitio) --- */
body {
  font-family: var(--mw-font);
  color: var(--mw-ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.btn, .navbar, .card, input, select, textarea, button {
  font-family: var(--mw-font);
}
h1, h2, h3 { text-wrap: balance; }

.mw-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Contenedor --- */
.mw-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ===================================================================
   HEADER / NAV
   El color de fondo lo sigue poniendo el panel (.custom-header inline).
   =================================================================== */
.mw-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mw-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.75rem 0;
}
.mw-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
}
.mw-brand img { height: 30px; width: auto; object-fit: contain; display: block; }
.mw-brand span {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
}
.mw-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mw-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.mw-links a:hover,
.mw-links a:focus-visible,
.mw-links .dropdown-toggle[aria-expanded="true"] { color: #fff; }

.mw-actions { display: flex; align-items: center; gap: 0.75rem; }
.mw-nav-desktop-actions { display: flex; align-items: center; gap: 0.75rem; }
.mw-icon-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  background: transparent;
  color: #fff;
  position: relative;
  text-decoration: none;
}
.mw-icon-btn:hover { border-color: var(--mw-signal); color: #fff; }
.mw-icon-btn .mw-badge {
  position: absolute; top: -7px; right: -7px;
  background: var(--mw-signal); color: var(--mw-signal-ink);
  font-size: 0.62rem; font-weight: 700;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.mw-btn-ghost {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  color: #fff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mw-btn-ghost:hover { border-color: var(--mw-signal); color: #fff; }

/* Dropdown del menú (usa JS de Bootstrap, lo re-estilamos) */
.mw-header .dropdown-menu {
  background: var(--mw-surface);
  border: 1px solid var(--mw-line);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  padding: 0.4rem;
  margin-top: 0.5rem !important;
}
.mw-header .dropdown-item {
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  color: var(--mw-ink);
}
.mw-header .dropdown-item:hover { background: var(--mw-violet-soft); color: var(--mw-accent-ink); }

/* Botón de cambio de tema */
.mw-theme-toggle {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px; background: transparent; color: #fff;
  cursor: pointer; font-size: 1.05rem;
}
.mw-theme-toggle:hover { border-color: var(--mw-signal); }
.mw-theme-toggle .bi-sun-fill { display: none; }
.mw-theme-toggle .bi-moon-stars-fill { display: inline-flex; }
:root[data-theme="dark"] .mw-theme-toggle .bi-sun-fill { display: inline-flex; }
:root[data-theme="dark"] .mw-theme-toggle .bi-moon-stars-fill { display: none; }

/* Avatar de usuario */
.mw-user-toggle {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: #fff;
  padding: 0.3rem 0.5rem; border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}
.mw-user-toggle img {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.mw-user-toggle span { font-size: 0.82rem; font-weight: 600; }

/* Buscador */
.mw-search { display: flex; gap: 0.4rem; }
.mw-search input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  border-radius: 3px;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  min-width: 0;
}
.mw-search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.mw-search input:focus { outline: 2px solid var(--mw-violet); outline-offset: 1px; }
.mw-search button {
  background: var(--mw-signal); color: var(--mw-signal-ink);
  border: none; border-radius: 3px;
  padding: 0.45rem 0.9rem; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--mw-violet); outline-offset: 2px; }

/* ===================================================================
   HERO
   =================================================================== */
.mw-hero {
  position: relative;
  background: var(--mw-hero-bg);
  color: #EDEFF7;
  overflow: hidden;
}
.mw-hero.has-image::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--mw-hero-img);
  background-size: cover; background-position: center;
  opacity: 0.35;
}
.mw-hero canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.5;
}
.mw-hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  max-width: 640px;
}
.mw-hero .mw-eyebrow { color: var(--mw-violet); margin-bottom: 1.1rem; display: inline-block; }
.mw-hero h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
.mw-hero p.mw-sub {
  margin: 1.4rem 0 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(237, 237, 247, 0.72);
  max-width: 46ch;
}
.mw-cta {
  margin-top: 2.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--mw-signal);
  color: var(--mw-signal-ink);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mw-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(143, 233, 208, 0.35); color: var(--mw-signal-ink); }
.mw-cta svg { width: 15px; height: 15px; }

@media (prefers-reduced-motion: no-preference) {
  .mw-hero .mw-eyebrow, .mw-hero h1, .mw-hero p.mw-sub, .mw-cta {
    animation: mw-rise 0.7s cubic-bezier(.2, .8, .2, 1) both;
  }
  .mw-hero h1 { animation-delay: 0.06s; }
  .mw-hero p.mw-sub { animation-delay: 0.12s; }
  .mw-cta { animation-delay: 0.18s; }
}
@keyframes mw-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===================================================================
   SECCIONES / MÓDULOS
   =================================================================== */
.mw-section { padding: clamp(3.2rem, 7vw, 5.2rem) 0; }
.mw-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
}
.mw-section-head .mw-eyebrow { color: var(--mw-violet); margin-bottom: 0.6rem; display: block; }
.mw-section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}
.mw-tally {
  font-size: 0.8rem;
  color: var(--mw-muted);
  font-variant-numeric: tabular-nums;
}

.mw-bus { display: block; width: 100%; height: 22px; margin-bottom: -1px; }
.mw-bus path { stroke: var(--mw-line-strong); stroke-width: 1; fill: none; }
.mw-bus circle { fill: var(--mw-violet); }

.mw-module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
@media (max-width: 980px) { .mw-module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mw-module-grid { grid-template-columns: 1fr; } }

.mw-module {
  background: var(--mw-surface);
  border: 1px solid var(--mw-line);
  padding: 1.5rem 1.4rem 1.4rem;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.mw-module:hover { border-color: var(--mw-violet); transform: translateY(-3px); }
.mw-module .mw-tag {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mw-accent-ink);
  background: var(--mw-violet-soft);
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
}
.mw-module .mw-thumb {
  height: 130px;
  border-radius: 3px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.mw-module .mw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mw-module .mw-thumb i { font-size: 2.6rem; }
.mw-module h3 { font-size: 1.02rem; font-weight: 700; margin: 0; }
.mw-module p { font-size: 0.88rem; line-height: 1.55; color: var(--mw-muted); margin: 0; }
.mw-go {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--mw-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.mw-go svg { width: 12px; height: 12px; transition: transform 0.15s ease; }
.mw-go:hover { color: var(--mw-accent-ink); }
.mw-go:hover svg { transform: translateX(3px); }
.mw-empty {
  text-align: center;
  padding: 2.5rem;
  border: 1px dashed var(--mw-line-strong);
  border-radius: 4px;
  color: var(--mw-muted);
}

/* ===================================================================
   FILOSOFÍA / INSTITUCIONAL
   =================================================================== */
/* Sección Filosofía: oscura como el hero (fondo editable opcional desde el panel) */
.mw-philosophy {
  position: relative;
  background: var(--mw-hero-bg);
  color: #EDEFF7;
}
.mw-philosophy.has-bg {
  background-image: linear-gradient(rgba(7, 12, 28, 0.82), rgba(7, 12, 28, 0.82)), var(--mw-filo-bg);
  background-size: cover;
  background-position: center;
}
.mw-phil-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .mw-phil-grid { grid-template-columns: 1fr; } }
.mw-phil-grid h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 1.1rem;
  max-width: 24ch;
  color: #fff;
}
.mw-phil-grid p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(237, 239, 247, 0.78);
  max-width: 56ch;
  margin: 0;
  white-space: pre-line;
}
.mw-phil-diagram { display: flex; justify-content: center; }
.mw-phil-diagram svg { width: 100%; max-width: 300px; height: auto; }
.mw-phil-diagram circle.node { fill: transparent; stroke: var(--mw-violet); stroke-width: 1.4; }
.mw-phil-diagram circle.dot { fill: var(--mw-aqua); }
.mw-phil-diagram path.link { stroke: rgba(122, 124, 201, 0.5); stroke-width: 1; fill: none; }
.mw-phil-diagram text { font-size: 8px; fill: rgba(237, 239, 247, 0.7); letter-spacing: 0.04em; }

/* ===================================================================
   FOOTER
   El color de fondo lo sigue poniendo el panel (inline).
   =================================================================== */
.mw-footer { color: #C9CEDE; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.mw-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 780px) { .mw-footer-grid { grid-template-columns: 1fr; gap: 2.2rem; } }
.mw-footer h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mw-violet);
  margin: 0 0 1.1rem;
}
.mw-footer p.mw-about { font-size: 0.9rem; line-height: 1.7; color: #9BA3BE; max-width: 42ch; margin: 0; }
.mw-foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.mw-foot-links a {
  text-decoration: none; color: #C9CEDE; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 0.55rem;
  transition: color 0.15s ease;
}
.mw-foot-links a i { color: var(--mw-violet); }
.mw-foot-links a:hover { color: #fff; }
.mw-foot-contact { font-size: 0.86rem; display: flex; flex-direction: column; gap: 0.6rem; color: #C9CEDE; }
.mw-foot-contact i { color: var(--mw-violet); margin-right: 0.4rem; }
.mw-foot-bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(237, 237, 247, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.74rem;
  color: #7E869E;
  letter-spacing: 0.02em;
}

/* ===================================================================
   NAV MÓVIL
   =================================================================== */
.mw-burger {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px; background: transparent; color: #fff; cursor: pointer;
}
.mw-mobile-panel { display: none; }

@media (max-width: 900px) {
  .mw-links, .mw-nav-desktop-actions { display: none; }
  .mw-burger { display: flex; }
  .mw-mobile-panel.open {
    display: block;
    padding: 0.5rem 0 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mw-mobile-panel .mw-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .mw-mobile-panel .mw-links a { padding: 0.6rem 0.25rem; font-size: 0.95rem; }
  .mw-mobile-panel .mw-search { margin-top: 0.75rem; }
  .mw-mobile-panel .mw-search input { flex: 1; }
}

/* ===================================================================
   PÁGINAS INTERNAS (encabezado, botones, detalle de servicio)
   =================================================================== */
.mw-page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.2rem, 3vw, 2rem); text-align: center; }
.mw-page-head .mw-eyebrow { color: var(--mw-violet); display: block; margin-bottom: 0.7rem; }
.mw-page-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.mw-page-head p { margin: 0.8rem auto 0; max-width: 60ch; color: var(--mw-muted); font-size: 1.05rem; }

/* Fila meta dentro de una tarjeta módulo (ej. vistas) */
.mw-module .mw-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.74rem; color: var(--mw-muted);
  border-top: 1px solid var(--mw-line); padding-top: 0.7rem; margin-top: 0.2rem;
}
.mw-module .mw-meta i { color: var(--mw-violet); }
.mw-module .mw-go.mw-btn-block { justify-content: center; }

/* Botones sólidos de marca */
.mw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--mw-indigo); color: #fff; font-weight: 700; font-size: 0.9rem;
  text-decoration: none; padding: 0.7rem 1.3rem; border-radius: 3px; border: none;
  cursor: pointer; transition: filter 0.15s ease, transform 0.15s ease;
}
.mw-btn:hover { filter: brightness(1.15); color: #fff; transform: translateY(-1px); }
.mw-btn-mint { background: var(--mw-signal); color: var(--mw-signal-ink); }
.mw-btn-mint:hover { color: var(--mw-signal-ink); }
.mw-btn-ghost-dark { background: transparent; border: 1px solid var(--mw-line-strong); color: var(--mw-ink); }
.mw-btn-ghost-dark:hover { border-color: var(--mw-accent-ink); color: var(--mw-accent-ink); filter: none; transform: none; }
.mw-btn-block { width: 100%; }

/* Estado vacío genérico ya existe como .mw-empty */

/* --- Detalle de servicio --- */
.mw-detail { max-width: 920px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 6vw, 4rem); }
.mw-back {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem;
  font-weight: 600; color: var(--mw-muted); text-decoration: none; margin-bottom: 1.5rem;
}
.mw-back:hover { color: var(--mw-accent-ink); }
.mw-detail-head {
  display: flex; align-items: center; gap: 1.3rem;
  padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--mw-line);
}
.mw-detail-icon {
  width: 76px; height: 76px; flex-shrink: 0; border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--mw-violet-soft); color: var(--mw-accent-ink);
}
.mw-detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.mw-detail-icon i { font-size: 2rem; }
.mw-detail-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; margin: 0.4rem 0 0; }
.mw-detail-body { font-size: 1.05rem; line-height: 1.8; color: var(--mw-prose); white-space: pre-line; margin-bottom: 2.5rem; }
.mw-block-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 1rem; display: flex; align-items: center; gap: 0.5rem; }
.mw-block-title i { color: var(--mw-violet); }
.mw-gallery { margin-bottom: 2.5rem; }
.mw-gallery .carousel { border: 1px solid var(--mw-line); border-radius: 8px; overflow: hidden; }
.mw-video-card {
  border: 1px solid var(--mw-line); border-radius: 8px; overflow: hidden;
  background: var(--mw-hero-bg); min-height: 360px; position: relative; margin-bottom: 1rem;
}
.mw-video-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: rgba(7, 12, 28, 0.72); color: #fff; z-index: 2; gap: 0.6rem;
}
.mw-play {
  width: 72px; height: 72px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--mw-signal); color: var(--mw-signal-ink);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  transition: transform 0.15s ease;
}
.mw-play:hover { transform: scale(1.08); }
/* Demos (subdominios en vivo) */
.mw-demos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 600px) { .mw-demos { grid-template-columns: 1fr; } }
.mw-demo {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem;
  background: var(--mw-surface); border: 1px solid var(--mw-line); border-radius: 8px;
  text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease;
}
.mw-demo:hover { border-color: var(--mw-violet); transform: translateY(-2px); }
.mw-demo-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 9px;
  background: var(--mw-signal); color: var(--mw-signal-ink);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.mw-demo-body { display: flex; flex-direction: column; min-width: 0; }
.mw-demo-title { font-weight: 700; color: var(--mw-ink); font-size: 0.98rem; }
.mw-demo-url { font-size: 0.82rem; color: var(--mw-violet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mw-cta-band {
  background: var(--mw-hero-bg); border-radius: 10px; padding: 2.2rem;
  text-align: center; color: #EDEFF7;
}
.mw-cta-band h4 { font-size: 1.3rem; font-weight: 800; margin: 0 0 0.5rem; color: #fff; }
.mw-cta-band p { color: rgba(237, 239, 247, 0.7); margin: 0 0 1.3rem; font-size: 0.95rem; }

/* Modal con estética de marca */
.mw-modal .modal-content { border: none; border-radius: 10px; overflow: hidden; }
.mw-modal .modal-header { background: var(--mw-hero-bg); color: #fff; border: none; padding: 1.2rem 1.4rem; }
.mw-modal .modal-title { font-weight: 700; font-size: 1.05rem; }
.mw-modal .modal-body { padding: 1.4rem; }
.mw-modal .form-label { font-size: 0.8rem; font-weight: 700; color: var(--mw-muted); }
.mw-modal .form-control { border-radius: 4px; }
.mw-modal .modal-footer { border-top: 1px solid var(--mw-line); padding: 1rem 1.4rem; }

/* ===================================================================
   BLOG (listado + lectura) y FAQ
   =================================================================== */
.mw-article-list { display: flex; flex-direction: column; gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.mw-article {
  display: grid; grid-template-columns: 240px 1fr;
  background: var(--mw-surface); border: 1px solid var(--mw-line);
  border-radius: 8px; overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.mw-article:hover { border-color: var(--mw-violet); transform: translateY(-3px); }
.mw-article-thumb {
  min-height: 200px; background: var(--mw-violet-soft);
  display: flex; align-items: center; justify-content: center;
}
.mw-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mw-article-thumb i { font-size: 3rem; color: var(--mw-violet); }
.mw-article-body { padding: 1.6rem 1.8rem; display: flex; flex-direction: column; }
.mw-article-meta {
  display: flex; gap: 1rem; align-items: center; font-size: 0.74rem; font-weight: 600;
  color: var(--mw-violet); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.7rem;
}
.mw-article-meta .sep { color: var(--mw-muted); }
.mw-article-body h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.6rem; }
.mw-article-body p { color: var(--mw-muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 1.2rem; flex-grow: 1; }
@media (max-width: 640px) { .mw-article { grid-template-columns: 1fr; } .mw-article-thumb { min-height: 160px; } }

.mw-article-read { max-width: 760px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 6vw, 4rem); }
.mw-article-read .mw-article-meta { margin-bottom: 0.4rem; }
.mw-article-read h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.01em; margin: 0.4rem 0 1rem; }
.mw-article-read .lead { font-size: 1.15rem; color: var(--mw-muted); line-height: 1.6; margin-bottom: 2rem; }
.mw-article-read figure { margin: 0 0 2.5rem; }
.mw-article-read figure img { width: 100%; border-radius: 8px; max-height: 450px; object-fit: cover; }
.mw-article-read .mw-content { font-size: 1.08rem; line-height: 1.85; color: var(--mw-prose); }
.mw-article-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--mw-line);
  font-size: 0.85rem; color: var(--mw-muted); gap: 1rem; flex-wrap: wrap;
}

.mw-faq { max-width: 800px; margin: 0 auto; }
.mw-faq .accordion { border-radius: 8px; overflow: hidden; border: 1px solid var(--mw-line); }
.mw-faq .accordion-item { border: none; border-bottom: 1px solid var(--mw-line); background: var(--mw-surface); }
.mw-faq .accordion-item:last-child { border-bottom: none; }
.mw-faq .accordion-button {
  font-weight: 700; font-size: 1.05rem; color: var(--mw-ink);
  background: var(--mw-surface); padding: 1.1rem 1.3rem;
}
.mw-faq .accordion-button:not(.collapsed) { color: var(--mw-accent-ink); background: var(--mw-violet-soft); box-shadow: none; }
.mw-faq .accordion-button:focus { box-shadow: none; border-color: var(--mw-violet); }
.mw-faq .accordion-body { color: var(--mw-muted); line-height: 1.7; font-size: 0.98rem; padding: 0 1.3rem 1.3rem; }
.mw-faq-cta { text-align: center; margin-top: 2.5rem; }
.mw-faq-cta p { color: var(--mw-muted); margin-bottom: 0.8rem; }

/* ===================================================================
   FORMULARIOS EN PÁGINAS CLARAS (login, registro, contacto)
   =================================================================== */
.mw-form-wrap { max-width: 480px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.mw-form-wrap.wide { max-width: 580px; }
.mw-form-card {
  background: var(--mw-surface); border: 1px solid var(--mw-line);
  border-radius: 12px; padding: clamp(1.6rem, 4vw, 2.5rem);
}
.mw-form-head { text-align: center; margin-bottom: 1.6rem; }
.mw-form-head .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--mw-violet-soft); color: var(--mw-accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 0.8rem;
}
.mw-form-head h1, .mw-form-head h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.4rem; }
.mw-form-head .sub { color: var(--mw-muted); font-size: 0.92rem; margin: 0; }
.mw-field { margin-bottom: 1rem; text-align: left; }
.mw-field label {
  display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--mw-muted); margin-bottom: 0.35rem;
}
.mw-field .form-control, .mw-field .form-select {
  width: 100%; border: 1px solid var(--mw-line-strong); border-radius: 5px;
  padding: 0.6rem 0.8rem; font-size: 0.95rem; background: var(--mw-surface); color: var(--mw-ink);
}
.mw-field .form-control:focus, .mw-field .form-select:focus {
  outline: none; border-color: var(--mw-violet); box-shadow: 0 0 0 3px rgba(122, 124, 201, 0.18);
}
.mw-field .form-control:disabled { background: #F2F3F9; color: var(--mw-muted); }
.mw-divider {
  display: flex; align-items: center; gap: 0.8rem; color: var(--mw-muted);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 1.3rem 0;
}
.mw-divider::before, .mw-divider::after { content: ""; flex: 1; height: 1px; background: var(--mw-line); }
.mw-btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--mw-surface); border: 1px solid var(--mw-line-strong); color: var(--mw-ink);
  font-weight: 600; padding: 0.65rem; border-radius: 5px; text-decoration: none;
  transition: border-color 0.15s ease;
}
.mw-btn-google:hover { border-color: var(--mw-violet); color: var(--mw-ink); }
.mw-form-foot {
  text-align: center; margin-top: 1.4rem; padding-top: 1.2rem;
  border-top: 1px solid var(--mw-line); font-size: 0.85rem; color: var(--mw-muted);
}
.mw-form-foot a { color: var(--mw-accent-ink); font-weight: 700; text-decoration: none; }
.mw-captcha {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem; background: var(--mw-violet-soft); border-radius: 8px; margin-bottom: 1.2rem;
}
.mw-captcha .q { font-weight: 700; color: var(--mw-accent-ink); font-size: 1.05rem; }
.mw-captcha input { width: 90px; text-align: center; }
.mw-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 480px) { .mw-row-2 { grid-template-columns: 1fr; } }
