/* IAMetrical - page-specific styles (site.css). Loaded after the DS styles.css. */

/* The UA [hidden] rule loses to author `display` rules (e.g. .panel{display:flex});
   re-assert it so any element carrying the hidden attribute is always collapsed. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-800); }

/* ---- page shell ---- */
.page {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
.main {
  max-width: 1280px;
  margin: 0 auto;
  border-left: 1px solid var(--color-divider);
  border-right: 1px solid var(--color-divider);
}

/* ---- header ---- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px clamp(20px, 5vw, 64px);
}
.brand {
  font-family: var(--font-heading); font-weight: 600;
  letter-spacing: 0.12em; font-size: 22px;
  color: var(--color-text); text-decoration: none;
}
.brand b { color: var(--color-accent-700); font-weight: 600; }
.nav-desktop { display: flex; align-items: center; gap: 36px; white-space: nowrap; }
.nav-link { color: var(--color-text); text-decoration: none; font-size: 15px; }
.nav-link:hover { color: var(--color-accent-700); }
.nav-link[aria-current="page"] { color: var(--color-accent-700); }
.nav-cta { font-size: 16px; padding: 10px 18px; white-space: nowrap; }
.menu-btn { display: none; }
.nav-mobile { display: none; flex-direction: column; border-top: 1px solid var(--color-divider); padding: 8px clamp(20px, 5vw, 64px) 20px; }
.nav-mobile.open { display: flex; }
.nav-mobile .m-link { padding: 14px 0; border-bottom: 1px solid var(--color-divider); color: var(--color-text); text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: 22px; }
.nav-mobile .m-link[aria-current="page"] { color: var(--color-accent-700); }
.nav-mobile .m-cta { margin-top: 20px; padding: 14px 20px; font-size: 18px; }
@media (max-width: 759px) {
  .nav-desktop { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 760px) {
  .nav-mobile, .nav-mobile.open { display: none; }
}

/* ---- buttons ---- */
.btn-solid { background: var(--color-accent-700); border-color: var(--color-accent-700); color: var(--color-bg); }
.btn-solid:hover { background: var(--color-accent-800); color: var(--color-bg); }
.btn-solid:active { background: var(--color-accent-900); }
.btn-hero { padding: 15px 22px; font-size: 19px; }
.btn-submit { padding: 14px 22px; font-size: 19px; }
.btn-self { align-self: flex-start; }

/* ---- shared type ---- */
.kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-700); }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.sec-title {
  font-family: var(--font-heading); font-size: clamp(36px, 5vw, 58px);
  font-weight: 600; line-height: 1; margin: 0; text-transform: uppercase;
}
.sec-sub { font-size: 18px; color: var(--color-neutral-800); margin: 0; }
.card-h3 { font-family: var(--font-heading); font-size: 26px; font-weight: 600; line-height: 1.1; margin: 0; }
.card-p { font-size: 16px; line-height: 1.55; color: var(--color-neutral-800); margin: 0; }

/* ---- sections ---- */
.section {
  border-top: 1px solid var(--color-divider);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
  display: flex; flex-direction: column; gap: 36px;
}
.section-ex { padding-bottom: clamp(64px, 9vw, 120px); }
.section-grid {
  border-top: 1px solid var(--color-divider);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.section-grid-faq { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 5vw, 64px); }

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 64px) clamp(64px, 9vw, 120px);
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(46px, 7.4vw, 88px); line-height: 0.98;
  font-weight: 600; letter-spacing: -0.015em; margin: 0;
  text-transform: uppercase; text-wrap: balance;
}
.hero-sub { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--color-neutral-800); margin: 0; max-width: 34em; text-wrap: pretty; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 8px; }

/* ---- blueprint figure ---- */
.fig { margin: 0; padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 18px; }
.fig-head {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-neutral-700);
}

/* ---- flow (vertical, hero) ---- */
.flow-v { display: flex; flex-direction: column; }
.flow-v-step { display: flex; flex-direction: column; }
.flow-node {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border: 1px solid var(--color-divider); background: var(--color-bg); color: var(--color-neutral-700);
  transition: background .5s ease, border-color .5s ease, color .5s ease;
}
.flow-node .fnum { font-size: 12px; letter-spacing: 0.08em; color: var(--color-neutral-700); }
.flow-node .flabel { font-family: var(--font-heading); font-size: 21px; font-weight: 600; }
.flow-node .fdot { margin-left: auto; width: 8px; height: 8px; background: var(--color-neutral-300); transition: background .5s ease; }
.flow-v-conn { width: 1px; height: 24px; margin-left: 28px; background: var(--color-divider); transition: background .5s ease; }
.flow-node.is-lit { border-color: var(--color-accent-700); background: var(--color-accent-100); color: var(--color-text); }
.flow-node.is-lit .fnum { color: var(--color-accent-700); }
.flow-node.is-lit .fdot { background: var(--color-accent-700); }
.flow-v-conn.is-lit { background: var(--color-accent-700); }

/* ---- problems ---- */
.prob-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--color-divider); border: 1px solid var(--color-divider);
}
@media (max-width: 899px) { .prob-grid { grid-template-columns: 1fr; } }
.prob-card { background: var(--color-bg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.prob-icon { display: flex; color: var(--color-accent-700); }

/* ---- tabs ---- */
.tabs {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px; background: var(--color-divider); border: 1px solid var(--color-divider);
}
@media (max-width: 1099px) { .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 759px) { .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  min-height: 44px; padding: 18px 16px 20px; border: none;
  background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-heading); font-size: 19px; font-weight: 600; line-height: 1.1;
  text-align: left; cursor: pointer; transition: background .25s;
}
.tab:hover { box-shadow: inset 0 -3px 0 var(--color-accent); }
.tab[aria-selected="true"] { background: var(--color-accent-700); color: var(--color-bg); }
.tab .tab-top { display: flex; justify-content: space-between; width: 100%; color: var(--color-accent-700); }
.tab[aria-selected="true"] .tab-top { color: var(--color-bg); }
.tab .tab-n { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.1em; }

/* ---- example panel ---- */
.panel { display: flex; flex-direction: column; }
.ab-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1px; background: var(--color-divider);
}
.ab-col { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 32px); background: var(--color-bg); }
.ab-after { background: var(--color-accent-100); }
.ab-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-neutral-700); }
.ab-label-accent { color: var(--color-accent-700); }
.ab-text { font-size: 17px; line-height: 1.6; color: var(--color-neutral-800); margin: 0; text-wrap: pretty; }
.ab-text-strong { color: var(--color-text); }

/* ---- horizontal flow (examples) ---- */
.flow-h {
  display: flex; flex-direction: row; align-items: stretch;
  padding: clamp(20px, 3vw, 28px) clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--color-divider);
}
.flow-h-step { display: flex; flex-direction: row; align-items: center; flex: 1 1 0; min-width: 0; }
.flow-h-node {
  flex: 1; align-self: stretch; min-width: 0;
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  border: 1px solid var(--color-divider); background: var(--color-bg); color: var(--color-neutral-700);
  transition: background .5s ease, border-color .5s ease, color .5s ease;
}
.flow-h-node .fnum { font-size: 11px; letter-spacing: 0.1em; color: var(--color-neutral-700); }
.flow-h-node .flabel { font-family: var(--font-heading); font-size: 19px; font-weight: 600; line-height: 1.15; }
.flow-h-conn { width: 24px; height: 1px; flex: none; background: var(--color-divider); transition: background .5s ease; }
.flow-h-node.is-lit { border-color: var(--color-accent-700); background: var(--color-accent-100); color: var(--color-text); }
.flow-h-node.is-lit .fnum { color: var(--color-accent-700); }
.flow-h-conn.is-lit { background: var(--color-accent-700); }
@media (max-width: 759px) {
  .flow-h { flex-direction: column; align-items: stretch; }
  .flow-h-step { flex-direction: column; width: 100%; flex: none; }
  .flow-h-node { width: 100%; flex: none; }
  .flow-h-conn { width: 1px; height: 16px; }
}

/* ---- estimation row ---- */
.estim {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 20px clamp(22px, 3vw, 32px); border-top: 1px solid var(--color-divider);
}
.estim-icon { display: flex; color: var(--color-accent-700); }
.estim-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-neutral-700); }
.estim-value { font-family: var(--font-heading); font-size: 24px; font-weight: 600; color: var(--color-text); }
.estim-note { margin-left: auto; font-size: 13px; color: var(--color-neutral-700); }

/* ---- services ---- */
.svc-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--color-divider); border: 1px solid var(--color-divider);
}
@media (max-width: 1099px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card { background: var(--color-bg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.svc-top { display: flex; justify-content: space-between; color: var(--color-accent-700); }
.svc-code { font-size: 11px; letter-spacing: 0.1em; }

/* ---- steps (cómo trabajamos) ---- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--color-divider); border: 1px solid var(--color-divider);
}
@media (max-width: 1099px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--color-bg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--font-heading); font-size: 48px; font-weight: 600; line-height: 1; color: var(--color-accent-700); }

/* ---- contact / lead copy ---- */
.agenda-copy { display: flex; flex-direction: column; gap: 20px; }
.agenda-sub { font-size: 18px; line-height: 1.55; color: var(--color-neutral-800); margin: 0; max-width: 30em; }
.booking-box { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 24px; }

/* ---- contact form ---- */
#contacto-form { display: flex; flex-direction: column; gap: 18px; }
.form-grid2 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px;
}
.input-lg { min-height: 44px; font-size: 16px; }
.fset { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.legend { font-size: 12px; color: color-mix(in srgb, var(--color-text) 70%, transparent); margin-bottom: 6px; padding: 0; }
.seg-wrap { display: flex; flex-wrap: wrap; }
.seg-wrap .seg-opt { min-height: 44px; flex: 1 1 auto; justify-content: center; font-size: 15px; }
.company-fields { display: flex; flex-direction: column; gap: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--color-divider); background: var(--color-bg); color: var(--color-text);
  cursor: pointer; font-family: var(--font-heading); font-size: 18px; font-weight: 600;
  transition: background .2s, border-color .2s, color .2s;
}
.pick:hover { border-color: var(--color-accent-700); }
.pick[aria-pressed="true"] { border-color: var(--color-accent-700); background: var(--color-accent-700); color: var(--color-bg); }
.chip { font-family: var(--font-body); font-size: 15px; padding: 8px 14px; font-weight: 400; }
.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--color-neutral-800); cursor: pointer; }
.privacy input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--color-accent-700); flex: none; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- status panels ---- */
.status-panel { display: flex; flex-direction: column; gap: 16px; padding: 12px 0; }
.status-check {
  display: flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--color-accent-700); color: var(--color-accent-700);
}
.status-title { font-family: var(--font-heading); font-size: 32px; font-weight: 600; line-height: 1.05; margin: 0; }
.status-text { font-size: 17px; line-height: 1.55; color: var(--color-neutral-800); margin: 0; }
.status-text a { color: var(--color-accent-700); }

/* ---- demo closing CTA ---- */
.demo-cta {
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  max-width: 860px;
}

/* ---- FAQ ---- */
.faq-head { display: flex; flex-direction: column; gap: 12px; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--color-divider); }
.faq-item { border-bottom: 1px solid var(--color-divider); }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 20px 0; border: none; background: transparent; color: var(--color-text);
  cursor: pointer; text-align: left; font-family: var(--font-heading); font-size: 22px; font-weight: 600; line-height: 1.2;
}
.faq-btn:hover { color: var(--color-accent-700); }
.faq-icon { display: flex; flex: none; color: var(--color-accent-700); }
.faq-a { font-size: 16px; line-height: 1.6; color: var(--color-neutral-800); margin: 0; padding: 0 40px 22px 0; max-width: 40em; }

/* ---- footer ---- */
.footer { background: var(--color-accent-900); color: var(--color-bg); }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 64px) 32px;
  display: flex; flex-direction: column; gap: 48px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.12em; font-size: 24px; }
.fl-ia { color: var(--color-accent-300); }
.footer-tag { font-size: 15px; color: var(--color-neutral-300); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-nav a { color: var(--color-bg); text-decoration: none; }
.footer-nav a:hover { color: var(--color-accent-300); }
.footer-nav .fl-mail { color: var(--color-accent-300); }
.footer-nav .fl-mail:hover { color: var(--color-bg); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--color-bg) 18%, transparent);
  font-size: 13px; color: var(--color-neutral-300);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--color-neutral-300); text-decoration: none; }
.footer-legal a:hover { color: var(--color-bg); }
