:root {
  --navy: #1F3F60;
  --navy-2: #2A5078;
  --grid: #2B5075;
  --turq: #00B4C4;
  --light: #ECF1F6;
  --ink: #262626;
  --gray: #6E7882;
  --soft: #B9CDE0;
  --border: #D5DDE6;
  --white: #FFFFFF;
  --radius: 10px;
  --font: Calibri, Carlito, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; }

/* language switch: only the active language is shown */
html[data-lang="es"] [lang="en"], html[data-lang="en"] [lang="es"] { display: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-light { background: var(--light); }

.chip { display: inline-block; background: var(--turq); color: var(--white); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; margin: 0 0 14px; }
.lead { color: var(--gray); font-size: 1.15rem; max-width: 760px; margin: 0 0 40px; }
.card { background: var(--white); border-radius: var(--radius); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--navy); border-bottom: 1px solid var(--navy-2); }
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { width: 150px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--white); }
.nav .nav-cta { color: var(--white); background: var(--turq); padding: 6px 14px; border-radius: 999px; }
.lang-toggle { background: transparent; color: var(--white); border: 1px solid var(--soft); border-radius: 999px; padding: 5px 12px; font: 700 .85rem var(--font); cursor: pointer; }
.lang-toggle:hover { border-color: var(--turq); color: var(--turq); }

/* hero: navy with the technical grid used in the portfolio */
.hero {
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--white);
  text-align: center;
  padding: 130px 0 120px;
}
.eyebrow { color: var(--turq); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; margin: 0 0 18px; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5.4vw, 3.6rem); max-width: 900px; margin: 0 auto 18px; }
.hero-sub { color: var(--soft); font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 0 auto 36px; max-width: 760px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 13px 26px; border-radius: 999px; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--turq); color: var(--white); }
.btn-primary:hover { background: #00a1b0; }
.btn-ghost { border: 1px solid var(--soft); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--light); padding: 14px 14px 26px; }
.pillar-img { background: var(--white); border-radius: 8px; aspect-ratio: 16 / 11; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pillar-img img { max-height: 100%; object-fit: contain; }
.pillar { padding: 26px 18px 28px; }
.pillar .num { color: var(--turq); font-weight: 700; font-size: 1.6rem; margin: 0 8px 6px; }
.pillar h3, .pillar p { margin-left: 8px; margin-right: 8px; }
.pillar p:last-child { margin-top: 8px; margin-bottom: 0; }

/* services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 12px; }
.service { padding: 24px 20px; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--turq); color: var(--white); font-weight: 700; margin-bottom: 14px; }
.service h3 { margin-bottom: 12px; }
.service ul { margin: 0; padding-left: 18px; font-size: .97rem; }
.service li { margin-bottom: 6px; }
.service li::marker { color: var(--turq); }

/* process */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; position: relative; }
.steps::before { content: ""; position: absolute; top: 18px; left: 7%; right: 7%; height: 2px; background: var(--border); }
.steps li { text-align: center; position: relative; }
.dot { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; margin-bottom: 12px; }
.dot.accent { background: var(--turq); }
.steps h3 { font-size: 1rem; margin-bottom: 4px; }
.steps p { color: var(--gray); font-size: .9rem; margin: 0; }

/* blueprint validation band */
.blueprint {
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--white);
}
.blueprint h2, .blueprint h3 { color: var(--white); }
.bp-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; margin-top: 18px; }
.bp-figure { margin: 0; border: 1px solid var(--turq); padding: 18px; border-radius: 4px; }
figcaption { color: var(--soft); font-size: .9rem; margin-top: 10px; }
.bp-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }
.bp-item { border: 1px solid var(--navy-2); background: rgba(31, 63, 96, .85); border-radius: var(--radius); padding: 22px 22px 24px; }
.bp-item h3 { margin-bottom: 6px; }
.bp-item h3::before { content: "◆ "; color: var(--turq); font-size: .8em; }
.bp-item p { color: var(--soft); margin: 0; }
.bp-shots { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 40px; max-width: 760px; }

/* top-down pillar: small native diagram instead of a picture */
.td-diagram { flex-direction: column; justify-content: center; gap: 0; padding: 18px; }
.td-master { background: var(--navy); color: var(--white); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-align: center; padding: 10px 16px; border-radius: 6px; }
.td-master small { display: block; font-weight: 400; letter-spacing: 0; color: var(--soft); font-size: .72rem; margin-top: 2px; }
.td-lines { width: 70%; height: 22px; border: 2px solid var(--turq); border-bottom: 0; margin-top: 12px; position: relative; }
.td-lines::before { content: ""; position: absolute; left: 50%; top: -14px; height: 34px; border-left: 2px solid var(--turq); }
.td-subs { display: flex; gap: 8px; width: 100%; justify-content: space-between; }
.td-subs span { flex: 1; background: var(--light); color: var(--navy); font-weight: 700; font-size: .78rem; text-align: center; padding: 8px 4px; border-radius: 6px; }
.bp-shots figure { margin: 0; }
.bp-shots img { border-radius: 8px; background: var(--white); width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; }
.project { background: var(--light); padding: 24px 22px; }
.tag { color: var(--turq); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.project h3 { font-size: 1.3rem; margin-bottom: 8px; }
.project p:last-child { margin: 0; font-size: .97rem; }
.clients { margin: 36px 0 0; color: var(--gray); text-align: center; }
.clients strong { color: var(--navy); }

/* contact */
.contact { background: var(--navy); color: var(--white); text-align: center; }
.contact h2 { color: var(--white); }
.contact-meta { color: var(--soft); margin: 22px 0 0; }
.contact-meta a { text-decoration: none; }

/* footer */
.site-footer { background: #17324D; color: var(--soft); font-size: .9rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.footer-row p { margin: 0; }
.footer-row img { width: 100px; }

/* legal page */
.legal { padding: 64px 0; max-width: 820px; }
.legal h1 { font-size: 2rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.legal .todo { background: #FFF4CC; padding: 0 4px; }

/* responsive */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
  .steps::before { display: none; }
  .bp-grid, .bp-shots { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .lang-toggle { margin-left: auto; }
  .pillars, .projects, .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .hero { padding: 96px 0 88px; }
  .wrap { padding: 0 16px; }
  .footer-row { flex-direction: column; text-align: center; }
}
