: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;
}

/* Ajustado 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 TECNOLOGÍA */

.tech-hero {
  display: flex;
  justify-content: center;
}

.tech-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;
}

.tech-hero-copy {
  flex: 1.4;
}

.tech-hero-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.eyebrow-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  margin: 0 0 6px;
}

.tech-title {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 8px;
}

.tech-subtitle {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Métricas */

.tech-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-chip {
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  min-width: 140px;
  box-shadow: var(--shadow-subtle);
}

.metric-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Icono hero */

.tech-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: radial-gradient(circle at 0% 0%, #38bdf8, #2563eb 60%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

.tech-hero-icon i {
  font-size: 1.8rem;
  color: #ffffff;
}

.tech-hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ENCABEZADOS DE SECCIÓN */

.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);
}

/* ARQUITECTURA */

.tech-arch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tech-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.94rem;
}

/* Iconos grandes alusivos (calugas) */

.tech-card-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);
}

.tech-card-icon i {
  font-size: 1.4rem;
  color: #ffffff;
}

.tech-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.tech-card p {
  margin: 0 0 8px;
  color: var(--text-muted);
}

.tech-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tech-card li {
  margin-bottom: 4px;
}

/* INNOVACIÓN */

.innovation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.innovation-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;
}

.innovation-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: radial-gradient(circle at 0% 0%, #a855f7, #6366f1 60%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 10px 24px rgba(88, 28, 135, 0.35);
}

.innovation-icon i {
  font-size: 1.3rem;
  color: #ffffff;
}

.innovation-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.innovation-card p {
  margin: 0;
  color: var(--text-muted);
}

/* PROBLEMA QUE RESUELVE */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.problem-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.94rem;
}

.problem-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.problem-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.problem-card li {
  margin-bottom: 4px;
}

/* Tarjeta "Con Woben" más destacada */

.problem-card-now {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

/* Pills de impacto */

.impact-chips {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.impact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.impact-pill i {
  font-size: 0.9rem;
  color: var(--accent-strong);
}

/* CTA FINAL */

.tech-cta {
  margin-top: 4px;
}

.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;
}

.cta-card {
  border-radius: 20px;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cta-text h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.cta-text p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 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) {
  .tech-hero-card {
    flex-direction: row;
  }
}

@media (max-width: 880px) {
  .tech-hero-card {
    padding: 20px 18px;
  }
}

@media (max-width: 768px) {
  .section-block {
    margin: 12px auto 20px;
  }

  .tech-hero-card {
    border-radius: 22px;
  }

  .tech-arch-grid {
    grid-template-columns: 1fr;
  }

  .innovation-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}
