:root {
  --bg-page: #f3f4f6;
  --bg-surface: #ffffff;
  --bg-soft: #f9fafb;
  --border-subtle: #e5e7eb;

  --text-main: #111827;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;

  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eff6ff;

  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.07);
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
}

/* TOPBAR */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botón sándwich */

.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background-color: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.18s ease;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--text-soft);
}

.menu-toggle:hover {
  background-color: var(--accent-soft);
}

/* Logo */

.logo-mark{
  width: 40px;
  height: 40px;
  background: url("imagenes/woben_logo.png") no-repeat center;
  background-size: contain;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-soft);
}

/* MENÚ SANDWICH */

.mobile-menu {
  position: fixed;
  top: 56px;
  left: 8px;
  right: 8px;
  background-color: #ffffff;
  border-radius: 0 0 18px 18px;
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-top: none;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  transition: max-height 0.25s ease;
  z-index: 30;
}

.mobile-menu-header {
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu a {
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a i {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.mobile-menu a:hover {
  background-color: var(--accent-soft);
  color: var(--accent-strong);
  padding-left: 4px;
}

/* Aumentado para todos los ítems del menú global */
.mobile-menu.open {
  max-height: 380px;
}

.mobile-cta {
  font-weight: 600;
  color: var(--accent-strong);
}

/* LAYOUT PRINCIPAL */

.main-layout {
  padding: 0 12px;
  max-width: 100%;
  margin: 0;
}

/* BLOQUES GENERALES */

.section-block {
  max-width: 1120px;
  margin: 18px auto 26px;
}

/* HERO CÓMO FUNCIONA */

.how-hero {
  display: flex;
  justify-content: center;
}

.how-hero-card {
  border-radius: 28px;
  background: radial-gradient(circle at 10% 0%, #e0ebff, #ffffff 55%, #e5e7eb 110%);
  box-shadow: var(--shadow-soft);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.how-hero-copy {
  flex: 1.4;
}

.how-hero-visual {
  flex: 1;
}

.eyebrow-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  margin: 0 0 6px;
}

.how-title {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 8px;
}

.how-subtitle {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.how-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 500;
}

.pill-badge-soft {
  background-color: #e5e7eb;
  color: var(--text-main);
}

.pill-badge i {
  font-size: 0.85rem;
}

/* Botones */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  background-color: var(--bg-soft);
  color: var(--text-main);
}

.btn-primary i,
.btn-ghost i {
  font-size: 0.95rem;
}

/* Métricas */

.how-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-chip {
  padding: 8px 12px;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(229, 231, 235, 0.9);
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  min-width: 160px;
}

.metric-label {
  color: var(--text-soft);
  margin-bottom: 2px;
}

.metric-value {
  color: var(--text-main);
  font-weight: 500;
}

/* Panel visual de pasos */

.how-visual-card {
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.96);
  padding: 18px 18px 16px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-subtle);
}

.visual-label {
  margin: 0 0 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.visual-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.visual-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
}

.visual-step-index {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-strong);
  background-color: var(--accent-soft);
}

.visual-steps strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-main);
}

.visual-steps p {
  margin: 0;
  color: var(--text-muted);
}

/* SECCIÓN DE PASOS DETALLADOS */

.section-heading {
  max-width: 640px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.section-subtitle {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.steps-section {
  margin-top: 10px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  background-color: var(--bg-surface);
  border-radius: 18px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: var(--shadow-subtle);
  font-size: 0.92rem;
}

/* Iconos grandes y alusivos para calugas con texto */

.step-icon,
.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: radial-gradient(circle at 0% 0%, #38bdf8, #2563eb 60%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.step-icon i,
.benefit-icon i {
  font-size: 1.4rem;
  color: #ffffff;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.step-card > p {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.step-list i {
  margin-top: 2px;
  font-size: 0.5rem;
  color: var(--accent-strong);
}

/* SECCIÓN BENEFICIOS */

.benefits-section {
  margin-top: 4px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.benefit-card {
  border-radius: 18px;
  background-color: var(--bg-surface);
  padding: 16px 16px 14px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: var(--shadow-subtle);
  font-size: 0.92rem;
}

.benefit-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.benefit-card p {
  margin: 0;
  color: var(--text-muted);
}

.benefits-cta {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background-color: var(--bg-soft);
  border: 1px dashed var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.benefits-cta p {
  margin: 0;
  color: var(--text-main);
}

/* FOOTER */

.site-footer {
  margin-top: 0;
  padding: 26px 16px 16px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

.footer-main {
  max-width: 1120px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.3fr);
  gap: 22px;
}

.footer-col h3,
.footer-col h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.footer-col p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-col li i {
  margin-right: 6px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

/* Línea inferior */

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.back-to-top {
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.back-to-top:hover {
  background-color: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent-soft);
}

/* RESPONSIVE */

@media (min-width: 880px) {
  .main-layout {
    padding-top: 0;
  }

  .how-hero-card {
    flex-direction: row;
  }
}

@media (max-width: 880px) {
  .how-hero-card {
    padding: 20px 18px;
  }
}

@media (max-width: 768px) {
  .section-block {
    margin: 12px auto 20px;
  }

  .how-hero-card {
    border-radius: 22px;
  }

  .metrics-row {
    gap: 8px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}
