/* ===== Paleta MBM Solutions ===== */
:root {
  /* Fondo principal (negro) */
  --bg: #0A0A0A;
  --bg-hover: #1A1A1A;
  --bg-pressed: #050505;
  --bg-disabled: #4D4D4D;

  /* Texto principal (blanco) */
  --text: #FFFFFF;
  --text-hover: #F2F2F2;
  --text-pressed: #CCCCCC;
  --text-disabled: #E6E6E6;

  /* Acentos y botones secundarios (amarillo) */
  --accent: #FFD700;
  --accent-hover: #FFE033;
  --accent-pressed: #CCAC00;
  --accent-disabled: #FFF2B3;

  --border: #262626;
  --muted: #A6A6A6;
  --radius: 4px;
  --container: 1160px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.accent { color: var(--accent); }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--bg);
  padding: 8px 16px; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 700 15px/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn:active:not(:disabled) { transform: translateY(1px); }

/* Primario: fondo negro + texto blanco */
.btn-primary { background: var(--bg); color: var(--text); border-color: var(--text); }
.btn-primary:hover { background: var(--bg-hover); color: var(--text-hover); border-color: var(--text-hover); }
.btn-primary:active { background: var(--bg-pressed); color: var(--text-pressed); border-color: var(--text-pressed); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] {
  background: var(--bg-disabled); color: var(--text-disabled); border-color: var(--bg-disabled); cursor: not-allowed;
}

/* Secundario: amarillo */
.btn-secondary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary:active { background: var(--accent-pressed); border-color: var(--accent-pressed); }
.btn-secondary:disabled, .btn-secondary[aria-disabled="true"] {
  background: var(--accent-disabled); border-color: var(--accent-disabled); color: var(--bg-disabled); cursor: not-allowed;
}

/* Enlaces */
.link {
  color: var(--accent); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.link:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }
.link:active { color: var(--accent-pressed); border-bottom-color: var(--accent-pressed); }
.link.is-disabled, .link[aria-disabled="true"] { color: var(--accent-disabled); opacity: .6; cursor: not-allowed; border-bottom-color: transparent; }

/* ===== Encabezado ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 48px; width: auto; display: block; }

.header-actions { display: flex; align-items: center; gap: 20px; }

/* ===== Bienvenida ===== */
.hero {
  position: relative; overflow: hidden; padding: 112px 0 96px; border-bottom: 1px solid var(--border);
  /* Degradados negros para mantener el contraste del texto sobre la imagen */
  background:
    linear-gradient(90deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.78) 45%, rgba(10,10,10,.35) 100%),
    linear-gradient(0deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,0) 35%),
    url("assets/hero-bg.jpg") center right / cover no-repeat;
}
@media (max-width: 760px) {
  .hero {
    background:
      linear-gradient(rgba(10,10,10,.82), rgba(10,10,10,.82)),
      url("assets/hero-bg.jpg") center / cover no-repeat;
  }
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow {
  color: var(--accent); font-weight: 700; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; max-width: 14ch; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-pressed); max-width: 56ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.checklist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230A0A0A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Botón fantasma (texto blanco, solo borde) */
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-hover); border-color: var(--text-hover); }
.btn-ghost:active { background: var(--bg-pressed); color: var(--text-pressed); }
.btn-block { width: 100%; }

/* ===== Formulario ===== */
.form-card {
  background: var(--bg); border: 1px solid var(--border); border-top: 4px solid var(--accent);
  border-radius: var(--radius); padding: 32px 28px; scroll-margin-top: 96px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.form-card h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.form-sub { color: var(--muted); margin-bottom: 20px; }
.lead-form { display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--text-pressed); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg-pressed); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  font: 500 15px/1.4 var(--font); transition: border-color .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:hover, .field select:hover, .field textarea:hover { background-color: var(--bg-hover); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background-color: var(--bg-hover); }
.field input:disabled, .field select:disabled, .field textarea:disabled { background-color: var(--bg-disabled); color: var(--text-disabled); cursor: not-allowed; }
.field select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23FFD700' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.form-note { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

/* ===== Garantías ===== */
.trust { border-bottom: 1px solid var(--border); background: var(--bg-pressed); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { padding: 28px 20px; border-left: 1px solid var(--border); }
.trust-grid > div:first-child { border-left: 0; padding-left: 0; }
.trust strong { display: block; color: var(--accent); font-size: 1.15rem; font-weight: 800; }
.trust span { font-size: 14px; color: var(--muted); }
@media (max-width: 820px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .trust-grid > div { border-left: 0; padding: 20px 0; }
}

/* ===== Secciones ===== */
.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }

/* ===== Tarjetas de servicios ===== */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: background-color .2s, border-color .2s, transform .2s;
}
.card:hover { background: var(--bg-hover); border-color: var(--accent); transform: translateY(-4px); }
.card h3 { font-size: 1.3rem; font-weight: 700; }
.card p { color: var(--text-pressed); flex: 1; }
.card-icon {
  width: 56px; height: 56px; margin-bottom: 24px;
  display: grid; place-items: center;
  background: var(--accent); border-radius: var(--radius);
}
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-soon { border-style: dashed; }
.card-soon:hover { border-color: var(--bg-disabled); transform: none; }
.card-soon .card-icon { background: var(--bg-disabled); }
.card-soon .card-icon svg { stroke: var(--text-disabled); }

/* ===== Publicidad ===== */
.section-ads { background: var(--bg-pressed); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.banner { border-radius: var(--radius); padding: 40px 32px; position: relative; overflow: hidden; }
.banner h3 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; }
.badge {
  display: inline-block; margin-bottom: 16px; padding: 6px 12px;
  border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.badge-dark { border-color: var(--bg); color: var(--bg); }

.banner-main {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  background: var(--bg); border: 2px solid var(--accent); margin-bottom: 20px;
}
.banner-main h3 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
.banner-main p { color: var(--text-pressed); max-width: 48ch; }
.banner-art {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1; max-width: 280px; width: 100%; justify-self: center;
  background: var(--accent); color: var(--bg); border-radius: 50%;
  transform: rotate(-8deg);
}
.banner-art .big { font-size: clamp(3rem, 8vw, 5rem); font-weight: 800; line-height: 1; }
.banner-art .small { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }

.banners-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.banner-yellow { background: var(--accent); color: var(--bg); }
.banner-yellow p { color: #1A1A1A; }
.banner-outline { background: var(--bg); border: 1px solid var(--border); }
.banner-outline p { color: var(--text-pressed); }
.banner-outline:hover { border-color: var(--accent); }

@media (max-width: 820px) {
  .banner-main, .banners-row { grid-template-columns: 1fr; }
  .banner-art { max-width: 200px; }
  .banner { padding: 32px 20px; }
}

.ticker { margin-top: 48px; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; }
.ticker-track { display: flex; gap: 28px; width: max-content; animation: ticker 28s linear infinite; }
.ticker-track span { font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.ticker-track span:nth-child(even) { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===== Pie de página ===== */
.site-footer { padding: 72px 0 0; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.2fr 1.4fr 1fr 1fr; }
.footer-brand { font-size: 1.6rem; font-weight: 500; margin-bottom: 8px; }
.footer-brand strong { color: var(--accent); font-weight: 800; }
.footer-title { font-size: 13px; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; color: var(--text-pressed); font-size: 15px; }
.footer-list li { margin-bottom: 10px; }
.footer-list .link { word-break: break-word; }
.footer-bottom { margin-top: 56px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* ===== Redes sociales ===== */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-link {
  display: block; width: 44px; height: 44px; border-radius: 50%;
  --ico-c: var(--accent); --ico-g: var(--bg);
  transition: transform .15s;
}
.social-link svg { width: 100%; height: 100%; display: block; }
.social-link:hover { --ico-c: var(--accent-hover); transform: translateY(-2px); }
.social-link:active { --ico-c: var(--accent-pressed); transform: none; }
.social-link[aria-disabled="true"] { --ico-c: var(--accent-disabled); cursor: not-allowed; transform: none; }

/* ===== Botón flotante hacia el formulario ===== */
.float-cta {
  /* bottom alto para no quedar bajo la insignia "Powered by Netlify" */
  position: fixed; right: 20px; bottom: 76px; z-index: 60;
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--bg); text-decoration: none;
  font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  transition: background-color .15s, transform .1s;
}
.float-cta:hover { background: var(--accent-hover); }
.float-cta:active { background: var(--accent-pressed); transform: translateY(1px); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 72px 0; }
  .stats { gap: 8px; }
  .stats span { font-size: 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ===== Cómo trabajamos ===== */
.section-steps { border-top: 1px solid var(--border); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { border-top: 2px solid var(--accent); padding-top: 24px; }
.step-num { display: block; font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.steps h3 { font-size: 1.25rem; font-weight: 700; }
.steps p { color: var(--text-pressed); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* ===== Preguntas frecuentes ===== */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); transition: border-color .15s; }
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; font-size: 1.05rem; transition: background-color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.6rem; font-weight: 500; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { background: var(--bg-hover); }
.faq summary:active { background: var(--bg-pressed); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--text-pressed); }

/* ===== Llamada final ===== */
.cta-band { background: var(--accent); color: var(--bg); padding: 80px 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 800; max-width: 22ch; margin: 0 auto 12px; }
.cta-band p { font-size: 1.1rem; margin-bottom: 32px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta-band .btn-primary { border-color: var(--bg); }
.btn-outline-dark { background: transparent; color: var(--bg); border-color: var(--bg); }
.btn-outline-dark:hover { background: var(--accent-hover); }
.btn-outline-dark:active { background: var(--accent-pressed); }

.footer-logo { height: 48px; width: auto; display: block; margin-bottom: 12px; }

/* ===== Página de agradecimiento ===== */
.thanks { min-height: 100vh; display: grid; place-items: center; padding: 48px 0; text-align: center; }
.thanks-inner { display: flex; flex-direction: column; align-items: center; }
.thanks-inner img { margin-bottom: 40px; height: 64px; width: auto; }
.thanks h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
.thanks .hero-actions { justify-content: center; }

/* ===== Equipo ===== */
.section-team { border-top: 1px solid var(--border); }
.team { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.member {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--border); border-top: 4px solid var(--accent);
  border-radius: var(--radius); padding: 32px 28px; transition: background-color .2s, border-color .2s;
}
.member:hover { background: var(--bg-hover); border-color: var(--accent); }
.member-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.avatar {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--bg); font-weight: 800; font-size: 1.5rem; letter-spacing: .02em;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.member h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; }
.member-role { margin: 0; color: var(--accent); font-weight: 600; font-size: 14px; }
.member-bio { color: var(--text-pressed); }
.member-sub { margin: 8px 0 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.timeline { list-style: none; margin: 0 0 16px; padding: 0 0 0 18px; border-left: 2px solid var(--border); display: grid; gap: 14px; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent);
}
.timeline strong { display: block; font-weight: 700; }
.timeline span { font-size: 14px; color: var(--muted); }
.chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-hover); background: var(--bg-pressed);
}
