﻿:root {
  --bg: #071321;
  --bg-2: #0b1928;
  --panel: rgba(13, 28, 43, .93);
  --panel-soft: rgba(18, 38, 55, .83);

  --text: #f4f8fc;
  --muted: #9eb1c3;
  --line: rgba(137, 174, 205, .16);

  --lime: #b8ff39;
  --cyan: #33d9ff;

  --blue: #28a7ff;
  --green: #00d49b;
  --orange: #ff9a24;
  --purple: #a56cff;
  --pink: #ff4c9a;
  --yellow: #ffd326;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(45, 150, 220, .12), transparent 34%),
    linear-gradient(150deg, #06101c 0%, #081624 58%, #06111d 100%);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* TOPBAR */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;

  min-height: 72px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;

  padding: 10px 4vw;

  border-bottom: 1px solid var(--line);

  background: rgba(4, 16, 29, .92);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  color: #0b1608;
  font-size: 29px;
  line-height: 1;
  font-weight: 950;

  background:
    linear-gradient(135deg, #d9f2ea 0 38%, var(--lime) 39% 70%, #a8c9c0 71%);
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand-copy strong {
  font-size: 26px;
  letter-spacing: .02em;
}

.brand-copy span {
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.main-nav a {
  position: relative;
  padding: 10px 2px;

  color: #dbe6ef;
  text-decoration: none;
  font-size: 13px;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;

  border-radius: 99px;

  background: linear-gradient(90deg, var(--cyan), var(--lime));
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.company-pill {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 0 15px;

  border: 1px solid rgba(62, 161, 220, .35);
  border-radius: 14px;

  color: #ecf5fb;
  background: rgba(15, 32, 49, .85);
}

.company-pill svg {
  width: 18px;
  height: 18px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-pill span {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border: 1px solid var(--cyan);
  border-radius: 50%;

  color: #8be8ff;
  background: rgba(51,217,255,.08);
}

.user-pill strong {
  font-size: 12px;
}


/* HERO */

main {
  width: min(1550px, 100%);
  margin: 0 auto;
}

.hero {
  min-height: 245px;

  display: grid;
  grid-template-columns: .95fr 1.05fr;

  border-bottom: 1px solid var(--line);

  overflow: hidden;

  background:
    linear-gradient(90deg, rgba(6,18,31,.98) 0%, rgba(6,18,31,.9) 48%, rgba(6,18,31,.25) 100%),
    radial-gradient(circle at 82% 30%, rgba(51,217,255,.18), transparent 35%);
}

.hero-copy {
  padding: 34px 4vw 26px;
}

.eyebrow {
  margin-bottom: 9px;

  color: var(--cyan);

  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 640px;
  margin: 0;

  font-size: clamp(36px, 4vw, 60px);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero h1 span {
  color: var(--lime);
}

.hero p {
  max-width: 650px;
  margin: 15px 0 19px;

  color: #c2d2df;

  font-size: 16px;
  line-height: 1.48;
}

.hero-badge {
  width: fit-content;

  display: flex;
  align-items: center;
  gap: 9px;

  padding: 8px 13px;

  border: 1px solid rgba(51,217,255,.38);
  border-radius: 999px;

  color: var(--lime);

  font-size: 11px;
  font-weight: 900;
}

.hero-badge > span {
  width: 9px;
  height: 9px;

  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(184,255,57,.5);
}

.hero-badge small {
  padding-left: 8px;

  border-left: 1px solid rgba(255,255,255,.22);

  color: #c2cfda;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  min-height: 245px;

  background:
    linear-gradient(120deg, rgba(17,45,60,.45), rgba(9,22,35,.95)),
    radial-gradient(circle at 70% 25%, rgba(51,217,255,.20), transparent 24%),
    radial-gradient(circle at 35% 78%, rgba(184,255,57,.12), transparent 28%);
}

.hero-lines {
  position: absolute;
  inset: 0;

  opacity: .35;

  background-image:
    linear-gradient(rgba(65, 167, 218, .15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 167, 218, .15) 1px, transparent 1px);

  background-size: 32px 32px;

  mask-image: linear-gradient(90deg, transparent, black);
}

.hero-phrase {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  flex-direction: column;

  font-size: 18px;
  line-height: 1.18;
}

.hero-phrase strong:nth-child(1) {
  color: #fff;
}

.hero-phrase strong:nth-child(2) {
  color: var(--cyan);
}

.hero-phrase strong:nth-child(3) {
  color: var(--lime);
}

.hero-phrase span {
  margin-top: 8px;

  color: #91a6b8;

  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .13em;
}


/* ECOSYSTEM */

.ecosystem {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 13px;

  padding: 15px;
}

.module {
  --accent: var(--cyan);
  --accent-rgb: 51,217,255;

  position: relative;
  overflow: hidden;

  min-height: 250px;

  padding: 15px;

  border: 1px solid color-mix(in srgb, var(--accent) 68%, transparent);
  border-radius: 18px;

  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), .12), transparent 35%),
    linear-gradient(145deg, rgba(var(--accent-rgb), .08), rgba(8,21,34,.92) 48%);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 12px 35px rgba(0,0,0,.18);
}

.module-company {
  grid-column: span 3;
  --accent: var(--blue);
  --accent-rgb: 40,167,255;
}

.module-know {
  grid-column: span 3;
  --accent: var(--green);
  --accent-rgb: 0,212,155;
}

.module-improve {
  grid-column: span 3;
  --accent: var(--orange);
  --accent-rgb: 255,154,36;
}

.module-prepare {
  grid-column: span 3;
  --accent: var(--purple);
  --accent-rgb: 165,108,255;
}

.module-plan {
  grid-column: span 3;
  --accent: var(--pink);
  --accent-rgb: 255,76,154;
}

.module-execute {
  grid-column: span 3;
  --accent: var(--blue);
  --accent-rgb: 40,167,255;
}

.module-control {
  grid-column: span 3;
  --accent: #50e58c;
  --accent-rgb: 80,229,140;
}

.module-profit {
  grid-column: span 3;
  --accent: var(--yellow);
  --accent-rgb: 255,211,38;
}

.module-head {
  min-height: 74px;

  display: flex;
  align-items: flex-start;
  gap: 12px;

  margin-bottom: 13px;
}

.module-icon {
  flex: 0 0 54px;

  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 14px;

  color: var(--accent);

  background: rgba(var(--accent-rgb), .12);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), .08);
}

.module-icon svg {
  width: 29px;
  height: 29px;
}

.module h2 {
  margin: 2px 0 5px;

  font-size: 20px;
  line-height: 1;
}

.module p {
  margin: 0;

  color: #c3d0da;

  font-size: 12px;
  line-height: 1.42;
}


/* TOOLS */

.tool-grid {
  display: grid;
  gap: 8px;
}

.tool-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.improve-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-stack {
  display: grid;
  gap: 7px;
}

.tool {
  width: 100%;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;

  min-height: 76px;

  padding: 11px 12px;

  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 12px;

  color: #eef6fb;

  text-align: left;

  cursor: pointer;

  background: rgba(4,16,28,.48);

  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease;
}

.tool:hover {
  transform: translateY(-2px);

  border-color: var(--accent);

  background: rgba(var(--accent-rgb), .10);
}

.tool > svg {
  width: 26px;
  height: 26px;

  color: var(--accent);
}

.tool > span {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tool strong {
  font-size: 13px;
}

.tool small {
  color: #afbfcc;

  font-size: 10.5px;
  line-height: 1.25;
}

.tool b {
  color: var(--accent);

  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.tool.compact {
  min-height: 55px;
  padding: 8px 10px;
}

.tool.compact > svg {
  width: 22px;
  height: 22px;
}

.tool.compact strong {
  font-size: 12px;
}

.tool.compact small {
  font-size: 9.5px;
}

.tool.wide {
  min-height: 76px;
}


/* VALUES */

.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  margin: 0 15px 15px;
  padding: 17px 18px;

  border: 1px solid var(--line);
  border-radius: 17px;

  background: rgba(8,23,37,.88);
}

.value-strip > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 5px 16px;

  border-right: 1px solid var(--line);
}

.value-strip > div:last-child {
  border-right: 0;
}

.value-strip svg {
  width: 27px;
  height: 27px;

  color: var(--cyan);
}

.value-strip span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.value-strip strong {
  font-size: 11px;
}

.value-strip small {
  color: #8da1b1;
  font-size: 9px;
}


/* FOOTER */

footer {
  min-height: 74px;

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 18px 4vw;

  border-top: 1px solid var(--line);

  color: #95a9ba;

  background: #06101b;
}

footer > div {
  display: flex;
  align-items: baseline;
  gap: 6px;

  color: #fff;
}

footer > div strong {
  font-size: 20px;
}

footer > div span {
  font-size: 9px;
}

footer p {
  margin: 0;
  flex: 1;

  font-size: 10px;
}

footer small {
  color: var(--lime);
  font-weight: 800;
}


/* TOAST */

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;

  width: min(350px, calc(100vw - 36px));

  display: flex;
  flex-direction: column;
  gap: 3px;

  padding: 13px 15px;

  border: 1px solid rgba(51,217,255,.35);
  border-radius: 13px;

  background: rgba(5,18,30,.96);

  box-shadow: 0 18px 60px rgba(0,0,0,.45);

  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);

  transition: .2s ease;
}

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

.toast strong {
  color: var(--lime);
  font-size: 12px;
}

.toast span {
  color: #c4d2dd;
  font-size: 10px;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

  .main-nav {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .module-company,
  .module-know,
  .module-improve,
  .module-prepare,
  .module-plan,
  .module-execute,
  .module-control,
  .module-profit {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {

  .topbar {
    min-height: 60px;
    padding: 8px 13px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    font-size: 23px;
  }

  .brand-copy strong {
    font-size: 21px;
  }

  .company-pill,
  .user-pill strong {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 27px 19px 22px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-badge {
    align-items: flex-start;
    border-radius: 13px;
  }

  .hero-badge small {
    max-width: 210px;
  }

  .hero-visual {
    min-height: 120px;
  }

  .hero-phrase {
    right: 18px;
  }

  .ecosystem {
    display: block;
    padding: 12px;
  }

  .module {
    min-height: 0;
    margin-bottom: 11px;
  }

  .tool-grid.two,
  .improve-grid {
    grid-template-columns: 1fr;
  }

  .value-strip {
    grid-template-columns: 1fr 1fr;
    margin: 0 12px 12px;
  }

  .value-strip > div {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-strip > div:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  footer {
    flex-wrap: wrap;
  }
}


/* ===== WIRU HUB CIRUGIA COMPACTA V1 ===== */

.brand-logo {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
  border-radius: 11px;
}

.topbar {
  min-height: 58px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.brand-copy strong {
  font-size: 22px;
}

.brand-copy span {
  font-size: 10px;
}

/* Hero: sin bloque visual derecho.
   Usamos todo el ancho para redistribuir el contenido. */
.hero {
  display: block;
  min-height: 0;
  background:
    radial-gradient(circle at 82% 15%, rgba(51,217,255,.08), transparent 28%),
    linear-gradient(100deg, #06121f 0%, #091a29 100%);
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  grid-template-areas:
    "eyebrow text"
    "title text"
    "title badge";
  column-gap: 42px;
  row-gap: 3px;
  align-items: center;

  padding: 17px 4vw 16px;
}

.hero-copy .eyebrow {
  grid-area: eyebrow;
  margin: 0;
  font-size: 9px;
}

.hero h1 {
  grid-area: title;
  max-width: 690px;
  margin: 0;

  font-size: clamp(30px, 2.8vw, 43px);
  line-height: .98;
}

.hero p {
  grid-area: text;
  align-self: end;

  max-width: 590px;
  margin: 0 0 7px;

  font-size: 12.5px;
  line-height: 1.4;
}

.hero-badge {
  grid-area: badge;
  align-self: start;

  margin: 0;
  padding: 7px 11px;
}

.hero-badge small {
  font-size: 9.5px;
}

.hero-visual {
  display: none !important;
}

/* Aprovechar mejor el espacio del ecosistema */
.ecosystem {
  gap: 9px;
  padding: 9px 10px;
}

.module {
  min-height: 0;
  padding: 11px;
  border-radius: 15px;
}

.module-head {
  min-height: 52px;
  margin-bottom: 7px;
  gap: 9px;
}

.module-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.module-icon svg {
  width: 22px;
  height: 22px;
}

.module h2 {
  margin-top: 1px;
  margin-bottom: 3px;
  font-size: 17px;
}

.module p {
  font-size: 10px;
  line-height: 1.25;
}

.tool-grid,
.tool-stack {
  gap: 6px;
}

.tool {
  min-height: 55px;
  padding: 7px 9px;
  gap: 8px;
}

.tool.compact {
  min-height: 43px;
  padding: 5px 8px;
}

.tool > svg {
  width: 21px;
  height: 21px;
}

.tool.compact > svg {
  width: 19px;
  height: 19px;
}

.tool strong,
.tool.compact strong {
  font-size: 10.5px;
}

.tool small,
.tool.compact small {
  font-size: 8.2px;
  line-height: 1.18;
}

.tool b {
  font-size: 8.8px;
}

.tool.wide {
  min-height: 55px;
}

/* Segunda fila más compacta */
.module-plan,
.module-execute,
.module-control,
.module-profit {
  min-height: 145px;
}

/* Franja inferior compacta */
.value-strip {
  margin: 0 10px 8px;
  padding: 9px 12px;
}

.value-strip > div {
  padding-top: 3px;
  padding-bottom: 3px;
}

.value-strip svg {
  width: 22px;
  height: 22px;
}

footer {
  min-height: 46px;
  padding-top: 9px;
  padding-bottom: 9px;
}

/* En móvil conservamos flujo vertical */
@media (max-width: 720px) {
  .hero-copy {
    display: block;
    padding: 23px 19px 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    margin-top: 11px;
    font-size: 13px;
  }

  .hero-badge {
    margin-top: 13px;
  }
}

