/* =========================================================
   TekitIA · Landing page
   Colores de marca:
   Azul marino #13213A · Verde #1F9D6B · Verde claro #2FC488 · Gris #4A5462
   ========================================================= */

:root {
  --navy: #13213A;
  --navy-2: #1B2D4D;
  --navy-3: #24395C;
  --green: #1F9D6B;
  --green-dark: #17805A;
  --green-light: #2FC488;
  --green-tint: #DCF5EA;
  --gray: #4A5462;
  --gray-light: #B8C4D6;
  --line: #DCE2EA;
  --bg: #FFFFFF;
  --bg-alt: #F3F5F8;
  --warn: #9A3412;
  --warn-tint: #FFF1E6;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(19, 33, 58, 0.10);
  --container: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--green-dark); }
a:hover { color: var(--navy); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
}
.btn-primary { background: var(--green); color: #FFFFFF; }
.btn-primary:hover { background: var(--green-dark); color: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #FFFFFF; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Etiquetas ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--green-light); }

.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.chip-green { background: var(--green-tint); color: #13603F; }
.chip-soon { background: #E8ECF2; color: var(--gray); }
.chip-on-dark { background: var(--navy-3); color: var(--gray-light); margin-top: 8px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-icon { width: 42px; height: 38px; color: var(--navy); }
.brand-word { font-weight: 800; font-size: 1.45rem; letter-spacing: 0.5px; color: inherit; }
.brand-word em { font-style: italic; color: var(--green); }
.brand-word-sm { font-size: 1.3rem; color: #FFFFFF; }
.brand-word-sm em { color: var(--green-light); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a:not(.btn) {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
}
.main-nav a:not(.btn):hover { background: var(--bg-alt); }
.main-nav .btn { margin-left: 12px; white-space: nowrap; }
.main-nav a { white-space: nowrap; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FFFFFF;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(47, 196, 136, 0.10), transparent 45%),
    var(--bg-alt);
  padding: 72px 0 80px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hl { color: var(--green); }
.lead { font-size: 1.12rem; color: var(--gray); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9rem; color: var(--gray); }
.hero-checks li { position: relative; padding-left: 22px; }
.hero-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

/* Ventana de ejemplo */
.mock-window { background: #FFFFFF; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--navy); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--navy-3); }
.mock-bar p { margin: 0 0 0 10px; color: var(--gray-light); font-size: 0.82rem; }
.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mock-ai {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--green-tint);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
}
.mock-ai p { margin: 0; }
.ai-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-top: 6px; flex-shrink: 0; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.mock-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.mock-table th { text-align: left; color: var(--gray); font-weight: 600; font-size: 0.75rem; padding: 6px; border-bottom: 1px solid var(--line); }
.mock-table td { padding: 8px 6px; border-bottom: 1px solid #EEF1F5; }
.mock-table td:nth-child(2), .mock-table th:nth-child(2),
.mock-table td:nth-child(4), .mock-table th:nth-child(4) { text-align: right; }
.row-ai td { background: #F0FAF5; font-weight: 600; }
.mock-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.mock-total { font-weight: 700; font-size: 0.85rem; }
.visual-note { font-size: 0.78rem; color: var(--gray); margin: 10px 0 0; }

/* ---------- Franja local ---------- */
.local-strip { background: var(--navy); color: #FFFFFF; padding: 26px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.strip-grid div { display: flex; flex-direction: column; border-left: 3px solid var(--green-light); padding-left: 14px; }
.strip-grid strong { font-size: 1rem; }
.strip-grid span { font-size: 0.85rem; color: var(--gray-light); }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #FFFFFF; }
.section-dark p { color: var(--gray-light); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-sub { color: var(--gray); font-size: 1.05rem; }
.section-dark .section-sub { color: var(--gray-light); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col-center { align-items: center; }

.pain-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pain-list li { position: relative; padding-left: 28px; color: var(--gray); }
.pain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 2.5px;
  background: var(--warn);
  border-radius: 2px;
}

.solution-card { background: var(--navy); color: #FFFFFF; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.solution-card h3 { font-size: 1.45rem; }
.solution-card p { color: var(--gray-light); }

.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(4px); }
.solution-card .link-arrow, .link-light { color: var(--green-light); }
.link-light:hover { color: #FFFFFF; }

/* ---------- Funciones ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature p { color: var(--gray); font-size: 0.92rem; margin: 0; }
.feature .chip { position: absolute; top: 16px; right: 16px; }
.f-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--green-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.steps li { position: relative; padding-top: 8px; }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 64px;
  right: -12px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.steps p { color: var(--gray); font-size: 0.93rem; }

/* ---------- Marketplace ---------- */
.market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.market-card { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius); padding: 28px; }
.market-card h3 { color: var(--green-light); }
.market-card ul { padding-left: 18px; margin: 0 0 12px; color: var(--gray-light); font-size: 0.9rem; }
.market-card li { margin-bottom: 6px; }

/* ---------- Licitaciones ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
#empresas p { color: var(--gray); }

.compare-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; }
.compare-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 14px; }
.compare-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 8px; padding: 10px 6px; border-bottom: 1px solid #EEF1F5; font-size: 0.88rem; align-items: center; }
.compare-row span:not(:first-child) { text-align: center; color: var(--green); letter-spacing: 2px; }
.compare-row-head { font-size: 0.75rem; font-weight: 600; color: var(--gray); }
.compare-row-head span:not(:first-child) { color: var(--gray); letter-spacing: 0; }
.compare-row-total { font-weight: 700; border-bottom: none; }
.compare-row-total span:not(:first-child) { color: var(--navy); letter-spacing: 0; }
.compare-row .warn { background: var(--warn-tint); color: var(--warn); border-radius: 6px; padding: 2px 0; letter-spacing: 0; font-weight: 700; }
.compare-row .miss { background: #FDECEC; color: #991B1B; border-radius: 6px; padding: 2px 0; letter-spacing: 0; font-size: 0.75rem; font-weight: 600; }

/* ---------- Precios ---------- */
.billing-toggle { display: inline-flex; background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 8px; }
.toggle-btn {
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray);
  padding: 10px 20px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
}
.toggle-btn.is-active { background: var(--navy); color: #FFFFFF; }
.save { font-size: 0.72rem; background: var(--green-tint); color: #13603F; padding: 2px 8px; border-radius: 999px; margin-left: 4px; }

.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}
.price-card-featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-desc { color: var(--gray); font-size: 0.88rem; min-height: 2.8em; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 4px 0 18px; }
.amount { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.amount-text { font-size: 1.6rem; }
.per { color: var(--gray); font-size: 0.9rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; flex-grow: 1; }
.price-card li { position: relative; padding-left: 24px; }
.price-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.fine-print { text-align: center; color: var(--gray); font-size: 0.85rem; margin-top: 28px; }

/* ---------- Confianza ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.trust-item { border-top: 3px solid var(--green); padding-top: 20px; }
.trust-item p { color: var(--gray); margin: 0; }

/* ---------- Preguntas ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  padding: 18px 22px;
  min-height: 56px;
  cursor: pointer;
}
.faq-q span { font-size: 1.4rem; color: var(--green); transition: transform 0.2s; flex-shrink: 0; }
.faq-q[aria-expanded="true"] span { transform: rotate(45deg); }
.faq-a { padding: 0 22px 18px; color: var(--gray); }
.faq-a p { margin: 0; }

/* ---------- Formulario ---------- */
.demo-form { background: #FFFFFF; border-radius: 14px; padding: 30px; display: flex; flex-direction: column; gap: 16px; color: var(--navy); }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field-row { display: flex; gap: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--gray); }
.field input, .field select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #C8D1DD;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: #FFFFFF;
}
.field input.is-invalid { border-color: #B91C1C; }
.form-msg { margin: 0; font-size: 0.9rem; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--green-dark); }
.form-msg.error { color: #B91C1C; }

/* ---------- Pie ---------- */
.site-footer { background: #0D1729; color: var(--gray-light); padding: 56px 0 24px; font-size: 0.9rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--gray-light); text-decoration: none; }
.footer-links a:hover { color: #FFFFFF; }
.footer-contact p { margin: 0 0 6px; }
.footer-bottom { border-top: 1px solid var(--navy-3); margin-top: 36px; padding-top: 20px; }
.footer-bottom p { margin: 0; font-size: 0.82rem; }

/* ---------- Animación al aparecer ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ai-dot { animation: none; }
  .btn:hover, .feature:hover { transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .feature-grid, .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card-featured { order: -1; }
}

@media (max-width: 920px) {
  .main-nav a { white-space: normal; }
  .main-nav .btn { margin-left: 0; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 2px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav .btn { margin: 8px 0 0; }
  .hero { padding: 48px 0 56px; }
  .hero-inner, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
  .market-grid, .trust-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .feature-grid, .price-grid, .steps, .strip-grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .solution-card, .demo-form { padding: 24px; }
  .compare-row { font-size: 0.78rem; grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}

/* ---------- Control de obra ---------- */
.control-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
.control-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.control-card p { color: var(--gray); font-size: 0.92rem; margin: 0; }

.control-visual { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.gantt-card, .cost-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.cv-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 16px; }

/* Cronograma (8 semanas) */
.gantt { position: relative; --label: 150px; }
.g-weeks, .g-row { display: grid; grid-template-columns: var(--label) 1fr; align-items: center; }
.g-weeks { grid-template-columns: var(--label) repeat(8, 1fr); font-size: 0.72rem; color: var(--gray); margin-bottom: 6px; }
.g-weeks span { text-align: center; }
.g-row { min-height: 36px; border-top: 1px solid #EEF1F5; }
.g-label { font-size: 0.85rem; padding-right: 10px; }
.g-track { position: relative; height: 100%; min-height: 36px; }
.g-bar {
  position: absolute;
  top: 9px;
  height: 18px;
  left: calc(var(--start) * 12.5%);
  width: calc(var(--len) * 12.5%);
  border-radius: 5px;
  background: linear-gradient(90deg, var(--green) var(--done), #CFE9DD var(--done));
}
.g-today {
  position: absolute;
  top: 18px;
  bottom: 0;
  left: calc(var(--label) + (100% - var(--label)) * var(--at) / 8);
  border-left: 2px dashed var(--warn);
}
.g-today span { position: absolute; top: -18px; left: -14px; font-size: 0.7rem; font-weight: 700; color: var(--warn); }

/* Costo real vs presupuesto */
.cost-rows { display: flex; flex-direction: column; gap: 14px; }
.cost-row { display: grid; grid-template-columns: 120px 1fr 64px; gap: 10px; align-items: center; font-size: 0.85rem; }
.c-track { position: relative; height: 26px; background: #F3F5F8; border-radius: 5px; }
.c-plan, .c-real { position: absolute; left: 0; width: var(--w); border-radius: 4px; }
.c-plan { top: 0; height: 12px; background: #CFE9DD; }
.c-real { bottom: 0; height: 12px; background: var(--green); }
.c-real.over { background: var(--warn); }
.c-val { font-weight: 700; text-align: right; }
.c-val.ok { color: var(--green-dark); }
.warn-txt { color: var(--warn); }
.cost-alert { margin: 16px 0 12px; font-size: 0.85rem; background: var(--warn-tint); color: var(--warn); border-radius: 8px; padding: 10px 12px; }

.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.78rem; color: var(--gray); margin-top: 14px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.lg-done { background: var(--green); }
.lg-plan { background: #CFE9DD; }
.visual-note.center { text-align: center; margin-top: 16px; }

@media (max-width: 1080px) {
  .control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-visual { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .control-grid { grid-template-columns: 1fr; }
  .gantt { --label: 96px; }
  .g-label { font-size: 0.75rem; }
  .cost-row { grid-template-columns: 88px 1fr 56px; font-size: 0.78rem; }
}