/* Landing exclusiva: software a medida en Montilla.
   Mundo RAW GROWTH: #080808 / #F2F2EC / #B8FF00. */

.msm {
  --bg: #080808;
  --surface: #101010;
  --text: #f2f2ec;
  --muted: #c8c8c0;
  --faint: #9a9a92;
  --accent: #b8ff00;
  --accent-ink: #080808;
  --line: rgba(242, 242, 236, 0.14);
  --danger: #ffb4a8;
  --ok: #b8ff00;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

.msm *,
.msm *::before,
.msm *::after { box-sizing: border-box; }

.msm a { color: inherit; }
.msm a:hover { color: var(--accent); }
.msm :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.msm-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 242, 236, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 242, 236, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 10%, transparent 72%);
}

.msm-header,
.msm-main,
.msm-footer { position: relative; z-index: 1; }

.msm-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.msm-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 8, 8, 0.92);
  border-bottom: 1px solid var(--line);
}

.msm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.msm-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}

.msm-logo:hover { color: var(--text); }

.msm-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.msm-nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.msm-nav-links a.msm-btn-primary { color: var(--accent-ink); }
.msm-nav-links a.msm-btn-primary:hover { color: var(--accent-ink); background: #d4ff4d; }

.msm-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.msm-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.msm-hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.msm-kicker {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.msm h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.75rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.msm-rule {
  width: 6.5rem;
  height: 3px;
  margin: 1.5rem 0 1.5rem;
  background: var(--accent);
  transform-origin: left center;
  animation: msm-draw 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes msm-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.msm-lead {
  max-width: 62ch;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.msm-lead a { color: var(--text); text-underline-offset: 3px; }

.msm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.msm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.msm-btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.msm-btn-primary:hover {
  background: #d4ff4d;
  color: var(--accent-ink);
}

.msm-btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.msm-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.msm-nap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 0.95rem;
}

.msm-nap a { color: var(--muted); text-decoration: none; }
.msm-nap a:hover { color: var(--accent); }

.msm-block {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}

.msm h2 {
  margin: 0 0 1.25rem;
  max-width: 18ch;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.msm-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.msm p { margin: 0 0 1rem; max-width: 68ch; }
.msm p:last-child { margin-bottom: 0; }

.msm-shot {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.msm-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.msm-shot figcaption {
  padding: 0.75rem 1rem 0.9rem;
  color: var(--faint);
  font-size: 0.875rem;
}

.msm-split + .msm-wrap { margin-top: clamp(2rem, 5vw, 3.5rem); }

.msm-offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.msm-offer div {
  padding: 1.25rem 1.25rem 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.msm-offer div:nth-child(odd) { padding-right: 1.5rem; }
.msm-offer div:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }

.msm-offer h3 {
  margin: 0 0 0.35rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.msm-offer p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.msm-places {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 68ch;
}

.msm-places li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.msm-places li:last-child { border-bottom: 1px solid var(--line); }
.msm-follow { margin-top: 1.25rem; }
.msm-places strong { color: var(--text); font-weight: 600; }

.msm-faq details {
  border-top: 1px solid var(--line);
}

.msm-faq details:last-child { border-bottom: 1px solid var(--line); }

.msm-faq summary {
  padding: 1rem 0;
  cursor: pointer;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.msm-faq summary:hover { color: var(--accent); }

.msm-faq details p {
  margin: 0;
  padding: 0 0 1.1rem;
  color: var(--muted);
  max-width: 68ch;
}

.msm-contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.msm-form {
  display: grid;
  gap: 0.85rem;
}

.msm-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.msm-form input,
.msm-form textarea {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.msm-form input::placeholder,
.msm-form textarea::placeholder { color: var(--faint); }

.msm-form button { width: 100%; border: 0; }

.msm-form button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { margin: 0; font-size: 0.95rem; }
.form-status--success { color: var(--ok); }
.form-status--error { color: var(--danger); }

.msm-footer {
  padding: 1.5rem 0 5.5rem;
  color: var(--faint);
  font-size: 0.9rem;
}

.msm-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.msm-footer a { color: var(--muted); text-decoration: none; margin-right: 1rem; }
.msm-footer a:hover { color: var(--accent); }

.msm-dock {
  position: fixed;
  z-index: 30;
  right: 1rem;
  bottom: 1rem;
}

.msm-dock a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1rem;
  background: #25d366;
  color: #06210f;
  text-decoration: none;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.msm-dock a:hover { color: #06210f; background: #3ee078; }

@media (max-width: 800px) {
  .msm-toggle { display: inline-block; }

  .msm-nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: #080808;
    border-bottom: 1px solid var(--line);
  }

  .msm-nav-links.open { display: flex; }

  .msm-nav-links a {
    display: block;
    padding: 0.85rem 0;
    width: 100%;
  }

  .msm-split,
  .msm-contact,
  .msm-offer { grid-template-columns: 1fr; }

  .msm-offer div,
  .msm-offer div:nth-child(odd),
  .msm-offer div:nth-child(even) {
    padding: 1.15rem 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .msm-rule { animation: none; }
  .msm-btn { transition: none; }
}

.msm .cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  pointer-events: none;
}

.msm .cookie-banner-inner {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: min(720px, calc(100% - 1.5rem));
  margin: 0 auto 0.75rem;
  padding: 0.85rem 1rem;
  background: #101010;
  color: #f2f2ec;
  border: 1px solid rgba(242, 242, 236, 0.14);
}

.msm .cookie-banner-text {
  flex: 1 1 16rem;
  margin: 0;
  color: #c8c8c0;
  font-size: 0.95rem;
}

.msm .cookie-banner-inner a { color: #b8ff00; }

.msm .cookie-banner-actions { display: flex; gap: 0.5rem; }

.msm .cookie-banner-actions .btn {
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(242, 242, 236, 0.14);
  background: transparent;
  color: #f2f2ec;
  font: inherit;
  cursor: pointer;
}

.msm .cookie-banner-actions .btn-primary {
  background: #b8ff00;
  color: #080808;
  border-color: #b8ff00;
}
