: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;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botón demo */
.demo-btn {
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: linear-gradient(135deg, #ffffff, var(--accent-soft));
  color: var(--accent-strong);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.demo-btn i { font-size: 1rem; }

.demo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

.demo-btn:active { transform: translateY(0); }

/* 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Ú */
.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: 380px; }
.mobile-cta { font-weight: 600; color: var(--accent-strong); }

/* LAYOUT */
.main-layout {
  padding: 0 12px;
  max-width: 100%;
  margin: 0;
}

.hero-centered {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-layout {
  position: relative;
  width: 80%;
  max-width: 1200px;
  min-height: 420px;
  max-height: 520px;
  margin: 10px auto;
  border-radius: 28px;
  background: radial-gradient(circle at 10% 0%, #e0ebff, #ffffff 55%, #e5e7eb 110%);
  box-shadow: var(--shadow-soft);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corner-card {
  position: absolute;
  max-width: 280px;
  padding: 14px 16px;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-size: 0.92rem;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
}

.corner-card p { margin: 6px 0 0; }

.corner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-main);
}

.corner-title i { font-size: 1rem; color: var(--accent-strong); }

.corner-top-left { top: 20px; left: 20px; }
.corner-top-right { top: 20px; right: 20px; }
.corner-bottom-right { bottom: 20px; right: 20px; }
.corner-bottom-left { bottom: 20px; left: 20px; }

/* PULSO */
.pulse-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  z-index: 1;
}

.pulse-button:hover { transform: translateY(-3px) scale(1.03); }
.pulse-button:active { transform: translateY(0) scale(0.99); }

.pulse-orbit {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 0%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(circle at 70% 100%, rgba(37, 99, 235, 0.14), transparent 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.pulse-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.35), transparent 65%);
  filter: blur(9px);
  opacity: 0.9;
  animation: glow-breathe 3s ease-in-out infinite;
}

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.4);
  opacity: 0;
  animation: pulse-ring 2.4s infinite ease-out;
}

.ring-1 { width: 230px; height: 230px; animation-delay: 0s; }
.ring-2 { width: 270px; height: 270px; animation-delay: 0.35s; }
.ring-3 { width: 305px; height: 305px; animation-delay: 0.7s; }

.pulse-core {
  position: relative;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ffffff, #e5efff);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.5);
  white-space: nowrap;
  animation: float-core 3s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(191, 219, 254, 0.9);
}

.pulse-icon { font-size: 1.2rem; }

.pulse-arrow {
  font-size: 1.05rem;
  color: var(--accent-strong);
  animation: arrow-nudge 1.6s ease-in-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.1); opacity: 0; }
}

@keyframes float-core {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes glow-breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* 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); }

.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);
}

/* ===== MODAL DEMO (VIDEO ACHICADO PARA QUE QUEPA SIEMPRE) ===== */
body.modal-open { overflow: hidden; }

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px; /* margen exterior */
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.demo-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.demo-dialog {
  width: min(480px, 90vw);   /* popup más angosto */
  max-height: 80vh;          /* límite vertical */
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.25);
}

.demo-dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  background: linear-gradient(135deg, #ffffff, var(--bg-soft));
}

.demo-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-main);
}

.demo-title i { color: var(--accent-strong); }

.demo-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.demo-close:hover {
  background-color: var(--accent-soft);
  transform: scale(1.03);
}

/* Área del video: usa el espacio disponible sin romper el modal */
.demo-video-wrap {
  padding: 12px;
  background: #ffffff;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AQUÍ se controla el ALTO real del video (achicado y responsive) */
.demo-video-frame {
  width: 100%;
  height: clamp(180px, 45vh, 320px);
  background: #0b1220;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.demo-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0b1220;
}

.demo-hint {
  padding: 10px 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 12px;
  border-top: 1px solid rgba(229, 231, 235, 0.95);
  background: #ffffff;
}

.demo-hint i { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-layout {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    max-height: none;
    padding: 20px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 8px 0 8px;
  }

  .corner-card { position: static; max-width: 100%; }
  .footer-main { grid-template-columns: 1fr; }
  .pulse-orbit { width: 260px; height: 260px; }

  .demo-btn {
    padding: 9px 12px;
    font-size: 12.5px;
    gap: 7px;
  }

  .demo-modal { padding: 14px; }

  .demo-dialog { width: min(620px, 92vw); }

  .demo-video-wrap { padding: 10px; }

  /* más bajo en móvil para que nunca se corte */
  .demo-video-frame {
    height: clamp(170px, 38vh, 260px);
  }
}
