: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 (homologada) */

.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;
}

.mobile-menu.open {
  max-height: calc(100vh - 84px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-cta {
  font-weight: 600;
  color: var(--accent-strong);
}

/* LAYOUT PRINCIPAL */

.main-layout {
  padding: 16px 12px 96px;
  max-width: 1120px;
  margin: 0 auto;
}

/* WIZARD */

.wizard-layout {
  display: flex;
  justify-content: center;
}

.wizard-panel {
  width: 100%;
  max-width: 1100px;
  background-color: var(--bg-surface);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 22px 24px 28px;
}

/* STEPPER */

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background-color: var(--bg-soft);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  background-color: #ffffff;
}

.step-text {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-main);
}

.step-caption {
  font-size: 0.76rem;
  color: var(--text-soft);
}

.step-active {
  background-color: var(--accent-soft);
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
}

.step-active .step-circle {
  border-color: var(--accent);
  color: var(--accent);
}

.step-active .step-title {
  color: var(--accent-strong);
}

.step-completed {
  background-color: #ecfdf3;
  border-color: #22c55e33;
}

.step-completed .step-circle {
  border-color: #22c55e;
  color: #22c55e;
}

/* CONTENIDO */

.wizard-content {
  margin-top: 6px;
}

.pill-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 6px;
}

.wizard-panel h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.panel-description {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* PASO 1 – MATRICES */

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 10px;
}

.matrix-card {
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: radial-gradient(circle at 0% 0%, #eff6ff, #ffffff 45%, #f3f4f6 120%);
  border: 1px solid rgba(209, 213, 219, 0.85);
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.matrix-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border-color: rgba(37, 99, 235, 0.35);
}

.matrix-card-selected {
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.38);
}

.matrix-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.matrix-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 0 0, #bfdbfe, #2563eb);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.55);
}

.matrix-card-text {
  flex: 1;
}

.matrix-title {
  margin: 0 0 4px;
  font-size: 1rem;
}

.matrix-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.matrix-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.matrix-meta-row i {
  margin-right: 4px;
}

.matrix-selection-hint {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* PASO 2 – DIMENSIONES Y VARIABLES */

.dim-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.dim-step-counter {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dim-step-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dim-controls-top {
  margin-top: 2px;
}

.dim-controls-bottom {
  margin-top: 10px;
}

.dimension-panel-card {
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-soft);
  padding: 14px 14px 16px;
  margin-bottom: 8px;
}

/* Themes por dimensión */

.dim-theme-1 {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.dim-theme-2 {
  background: linear-gradient(135deg, #ecfdf3, #ffffff);
}

.dim-theme-3 {
  background: linear-gradient(135deg, #fdf2ff, #ffffff);
}

.dimension-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dimension-title-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dimension-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background-color: #ffffffcc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  color: var(--accent-strong);
  flex-shrink: 0;
}

.dimension-panel-desc {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dimension-panel-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.variables-rule {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.variables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

.variable-pill {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background-color: #ffffff;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.1s ease;
}

.variable-pill:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.variable-pill-selected {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
}

.variable-icon-wrapper {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background-color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.variable-pill-selected .variable-icon-wrapper {
  background-color: #1d4ed8;
}

.variable-icon-wrapper i {
  font-size: 0.8rem;
  color: var(--accent-strong);
}

.variable-pill-selected .variable-icon-wrapper i {
  color: #ffffff;
}

.variable-text {
  text-align: left;
}

.variable-name {
  font-size: 0.86rem;
  font-weight: 500;
}

/* Botones genéricos */

.primary-btn,
.secondary-btn {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  background-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.4);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.48);
}

.primary-btn:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.secondary-btn {
  border-color: var(--border-subtle);
  color: var(--text-muted);
  background-color: #ffffff;
}

.secondary-btn:hover {
  background-color: var(--bg-soft);
}

.secondary-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Acciones generales */

.wizard-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* PASO 3 – FORMULARIO DE CONTACTO */

.contact-form {
  max-width: 580px;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.form-row label {
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.form-row input {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 7px 12px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.form-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

.checkbox-row {
  margin: 8px 0 4px;
}

.terms-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}

.terms-label input {
  margin-top: 2px;
}

.form-error {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #b91c1c;
}

.summary-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* TOAST */

.toast-container {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 60;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background-color: #ecfdf3;
  color: #166534;
  font-size: 0.82rem;
  border: 1px solid #bbf7d0;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.25);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* MODAL RESUMEN */

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(3px);
}

.modal-dialog {
  position: relative;
  max-width: 720px;
  margin: 70px auto;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
  padding: 16px 18px 14px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.modal-header h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.modal-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-close-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.modal-close-btn:hover {
  background-color: var(--bg-soft);
  color: var(--text-main);
}

.modal-body {
  max-height: 380px;
  overflow: auto;
  padding: 6px 4px 8px;
}

.modal-section + .modal-section {
  margin-top: 10px;
}

.modal-matrix-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 2px 0;
}

.modal-matrix-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.modal-dimension {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  background-color: #f9fafb;
  margin-top: 6px;
}

.modal-dimension-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.modal-dimension-meta {
  color: var(--text-soft);
}

.modal-variable-list,
.modal-contact-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-variable-list li + li {
  margin-top: 2px;
}

.modal-contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.modal-footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* UTILS */

.hidden {
  display: none;
}

.pulse-next {
  animation: pulse-outline 1.7s ease-in-out infinite;
}

@keyframes pulse-outline {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* FOOTER (homologado) */

.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);
}

.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 (max-width: 768px) {
  .section-block {
    margin: 12px auto 20px;
  }

  .wizard-panel {
    padding: 16px 14px 18px;
    border-radius: 18px;
  }

  .wizard-steps {
    grid-template-columns: 1fr;
  }

  .dimension-panel-header {
    flex-direction: column;
  }

  .wizard-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .modal-dialog {
    margin: 40px 12px;
  }
}


/* ==========================
   Overlay de carga (envío)
   ========================== */
.sending-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(3px);
  z-index: 9999;
}

.sending-overlay.hidden {
  display: none;
}

.sending-card {
  width: min(420px, 92vw);
  background: var(--bg-surface);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
}

.sending-spinner {
  font-size: 44px;
  color: var(--brand);
}

.sending-text {
  font-weight: 600;
  color: var(--text-strong);
}

