:root {
  color-scheme: light;
  --ink: #151a21;
  --muted: #4c5865;
  --soft: #5f6b77;
  --line: #dfe5eb;
  --surface: #f6f8fa;
  --accent: #2456c5;
  --accent-soft: #eaf0ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; font-size: 16px; line-height: 1.58; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.lang-es { display: none; }
html[lang="es"] .lang-es { display: inline; }
html[lang="es"] .lang-en { display: none; }
.page-shell { width: min(1360px, 100%); margin: auto; padding: 0 clamp(24px, 5.2vw, 78px); }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: #fff; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 1.08rem; font-weight: 670; letter-spacing: -.035em; }
.wordmark small { font-size: .88rem; color: var(--muted); font-weight: 470; letter-spacing: -.01em; }
.mark { width: 23px; height: 23px; display: grid; grid-template-columns: repeat(2, 7px); grid-template-rows: repeat(2, 7px); gap: 5px; transform: rotate(45deg); }
.mark span { display: block; background: var(--accent); border-radius: 2px; }
.mark span:nth-child(2), .mark span:nth-child(3) { opacity: .48; }
.site-header nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); font-size: .94rem; font-weight: 540; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--accent); }
.language-picker { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .85rem; }
.language-caption { color: var(--soft); margin-right: 2px; }
.language-divider { color: #8a95a3; }
.language-option { background: transparent; color: var(--soft); border: 0; border-bottom: 2px solid transparent; padding: 6px 0 4px; cursor: pointer; }
.language-option[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 700; }
.language-option:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(42px, 6vw, 88px); align-items: center; padding: clamp(66px, 7vw, 105px) 0 100px; }
.hero-copy { max-width: 650px; }
.eyebrow, .section-topline, .project-type, .stack-label, .flow-card-kicker { font-size: .83rem; font-weight: 720; letter-spacing: .095em; }
.eyebrow { color: var(--accent); margin: 0 0 23px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.4rem, 5.25vw, 6rem); line-height: 1.055; letter-spacing: -.067em; font-weight: 650; margin-bottom: 27px; }
h1 em, h2 em { color: var(--accent); font-style: normal; font-weight: inherit; }
.lead { max-width: 615px; color: var(--muted); font-size: clamp(1.1rem, 1.55vw, 1.25rem); line-height: 1.64; margin-bottom: 35px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 49px; background: var(--ink); color: #fff; border-radius: 9px; padding: 10px 18px; font-weight: 630; }
.primary-link:hover { background: #314052; }
.secondary-link { color: var(--accent); font-weight: 650; padding: 10px 0; }
.secondary-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-visual { min-width: 0; }
.flow-card { border: 1px solid var(--line); background: var(--surface); border-radius: 23px; padding: clamp(24px, 3vw, 34px); box-shadow: 0 16px 46px rgba(30, 45, 70, .055); }
.flow-card-header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.flow-card-kicker { color: var(--soft); }
.flow-card-status { display: inline-block; padding: 5px 10px; border-radius: 99px; background: var(--accent-soft); color: #2049a8; font-size: .8rem; font-weight: 650; }
.flow-card h2 { font-size: clamp(1.8rem, 2.3vw, 2.5rem); letter-spacing: -.045em; line-height: 1.18; margin-bottom: 8px; }
.flow-card p { color: var(--muted); margin-bottom: 20px; }
.flow-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.flow-list li { display: flex; align-items: flex-start; gap: 17px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.flow-number { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--accent); border: 1px solid #d5dded; font-size: .77rem; font-weight: 750; }
.flow-list strong, .flow-list small { display: block; }
.flow-list strong { font-size: .95rem; line-height: 1.3; font-weight: 630; }
.flow-list small { font-size: .85rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.section { padding: 84px 0 96px; border-top: 1px solid var(--line); }
.section-topline { display: flex; align-items: center; gap: 18px; color: var(--accent); margin-bottom: 38px; }
.section-rule { height: 1px; flex: 1; background: var(--line); }
.section-topline > span:last-child { color: var(--soft); }
.section h2 { font-size: clamp(2.6rem, 4.5vw, 4.9rem); letter-spacing: -.062em; line-height: 1.09; font-weight: 640; margin-bottom: 18px; }
.section-intro { max-width: 790px; color: var(--muted); font-size: 1.09rem; line-height: 1.64; margin-bottom: 39px; }
.project { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 31px 25px; margin-bottom: 16px; }
.project-featured { background: #f9fbff; border-color: #ccd9f3; }
.project-meta, .project-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.project-meta { color: var(--accent); }
.project-number { font-size: .96rem; font-weight: 750; }
.project-type { color: var(--soft); }
.project-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(195px, .28fr); gap: 33px; padding: 23px 0 27px; }
.project h3 { font-size: clamp(1.6rem, 2.35vw, 2.25rem); line-height: 1.22; font-weight: 630; letter-spacing: -.04em; margin-bottom: 11px; }
.project p { color: var(--muted); max-width: 720px; line-height: 1.63; margin-bottom: 0; }
.project-status { display: flex; flex-direction: column; justify-content: center; gap: 6px; border-left: 1px solid var(--line); padding-left: 21px; color: var(--muted); font-size: .88rem; }
.project-status strong { color: var(--ink); font-weight: 660; }
.project-bottom { border-top: 1px solid var(--line); padding-top: 17px; }
.tags, .stack-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span, .stack-list span { border-radius: 6px; border: 1px solid #d9e0e7; background: #fff; color: #46515f; padding: 5px 9px; font-size: .8rem; }
.demo-state { color: var(--soft); font-size: .86rem; white-space: nowrap; }
.demo-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: .86rem; font-weight: 680; white-space: nowrap; }
.demo-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.profile-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; }
.profile-copy { color: var(--muted); font-size: 1.07rem; line-height: 1.68; }
.profile-copy p { margin-bottom: 20px; }
.profile-note { color: var(--ink); font-weight: 600; font-size: .95rem !important; }
.stack { display: grid; grid-template-columns: 245px 1fr; gap: 27px; align-items: start; border-top: 1px solid var(--line); margin-top: 43px; padding-top: 23px; }
.stack-label { color: var(--soft); padding-top: 5px; }
.stack-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.stack-group strong { display: block; margin-bottom: 11px; color: var(--muted); font-size: .88rem; font-weight: 650; }
.stack-list span { padding: 7px 10px; }
.contact-section { background: #f8fafc; margin: 0 calc(-1 * clamp(24px, 5.2vw, 78px)); padding-left: clamp(24px, 5.2vw, 78px); padding-right: clamp(24px, 5.2vw, 78px); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 11px; }
.contact-actions p { max-width: 480px; font-size: 1.08rem; color: var(--muted); margin: 0 0 11px; }
.contact-actions a { display: flex; justify-content: space-between; gap: 25px; width: min(100%, 460px); border-bottom: 1px solid #ccd4dd; padding: 11px 0; font-size: 1.02rem; font-weight: 590; }
.contact-actions a span { color: var(--accent); }
.contact-actions a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 93px; color: var(--soft); font-size: .85rem; }
.footer-dot { color: var(--accent); }
.brand-band { overflow: hidden; margin: 38px 0 0; background: #12355b; border-radius: 18px; }
.brand-band img { display: block; width: 100%; height: clamp(270px, 27vw, 340px); object-fit: cover; object-position: center 49%; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 42px; padding: 78px 0 80px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { max-width: 710px; }
  .profile-grid, .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .profile-copy { max-width: 730px; }
  .stack-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .site-header { flex-wrap: wrap; gap: 2px; padding: 12px 0; }
  .site-header nav { width: 100%; justify-content: flex-start; }
  .site-header nav a { display: none; }
}
@media (max-width: 650px) {
  .page-shell { padding: 0 20px; }
  .site-header { min-height: 74px; }
  .site-header nav { gap: 11px; }
  .site-header nav a { display: none; }
  .wordmark { font-size: .96rem; }
  .wordmark small { font-size: .8rem; }
  .hero { padding: 59px 0 67px; gap: 38px; }
  h1 { font-size: clamp(3.05rem, 12vw, 5rem); }
  .lead { font-size: 1.06rem; }
  .flow-card { padding: 21px; }
  .section { padding: 61px 0 70px; }
  .section-topline { margin-bottom: 27px; }
  .project { padding: 23px 21px; }
  .project-body { grid-template-columns: 1fr; gap: 17px; }
  .project-status { border-left: 0; border-top: 1px solid var(--line); padding: 17px 0 0; }
  .project-bottom { align-items: flex-start; flex-direction: column; }
  .demo-state, .demo-link { white-space: normal; }
  .stack { grid-template-columns: 1fr; gap: 13px; }
  .stack-groups { grid-template-columns: 1fr; gap: 22px; }
  .contact-section { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  .contact-actions a { font-size: .95rem; }
  .site-footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 21px 0; }
  .brand-band { margin-top: 25px; border-radius: 14px; }
  .brand-band img { height: 190px; }
}
