@font-face {
  font-family: 'Cairo';
  src: url('/fonts/cairo/Cairo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Cairo';
  src: url('/fonts/cairo/Cairo-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

:root {
  --primary: #0075c9;
  --header-offset: 0px;
  --anchor-gap: 12px;
  --primary-dark: #0033a1;
  --sky: #54c0e8;
  --ink: #1d1d1b;
  --surface: #f2f4f7;
  --surface-card: #f8fafc;
  --night: #020b1d;
  --navbar-bg: #020c1e;
  --navbar-bg-hover: #041836;
  --color-accent: #58b6d8;
  --color-accent-hover: #4aa3c2;
  --color-accent-active: #3e8fa8;
  --color-dark: #020c1e;
  --white: #ffffff;
  --border: #e1e6ee;
}

* { box-sizing: border-box; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + var(--anchor-gap));
}
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

h1 { font-size: 64px; line-height: 1.1; font-weight: 600; margin: 0; }
h2 { font-size: 48px; line-height: 1.2; font-weight: 600; margin: 0 0 16px; }
h3 { font-size: 28px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navbar-bg);
  border-bottom: 1px solid #0a1b34;
  box-shadow: none;
  backdrop-filter: none;
}

.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: inline-flex; align-items: center; color: #ffffff; }
.brand-logo { height: 120px; width: auto; display: block; }

.nav-shell { display: flex; align-items: center; gap: 16px; box-shadow: none; filter: none; }
.nav-capsule { display: flex; align-items: center; gap: 18px; background: transparent; border-radius: 999px; padding: 8px 12px; box-shadow: none; filter: none; }
.nav-capsule a { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; color: #ffffff; font-size: 14px; font-weight: 600; transition: .2s; }
.nav-capsule a:hover,
.nav-capsule a:active { background: var(--navbar-bg-hover); color: #ffffff; }

.menu-toggle { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1px solid transparent; }
.btn-contact { background: var(--primary); color: var(--white); padding: 10px 20px; }
.btn-contact:hover { background: var(--primary-dark); }
.site-header .btn-contact { background: var(--primary); color: var(--white); }
.site-header .btn-contact:hover { background: var(--primary-dark); color: var(--white); }
.site-header .btn-contact:active { background: var(--primary-dark); color: var(--white); }

.hero {
  background: radial-gradient(circle at 70% 40%, rgba(84, 192, 232, 0.2), transparent 48%), linear-gradient(120deg, var(--night) 0%, #021336 70%, #082646 100%);
  color: #e9f4ff;
  padding: 120px 0;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(120, 151, 190, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 151, 190, 0.14) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-grid, .metrics { position: relative; z-index: 1; }
.hero-kicker { margin: 0 0 24px; color: var(--sky); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.hero-kicker2 { margin: 0 0 24px; color: var(--sky); font-size: 14px; letter-spacing: 2px; }
.hero h1 { font-size: 72px; letter-spacing: -1px; max-width: 11ch; color: #f4f9ff; }
.hero h1 span { color: var(--sky); }
.lead { margin: 24px 0 0; max-width: 640px; color: #b4c5d8; font-size: 18px; }
.hero-actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn-light { background: #f4f5f7; color: #141821; padding: 10px 20px; }
.btn-outline { border-color: #324866; color: #eaf3ff; background: rgba(6, 18, 36, 0.65); padding: 10px 20px; }

.metrics { margin-top: 64px; padding-top: 64px; border-top: 1px solid rgba(84, 192, 232, 0.45); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.metrics strong { display: block; font-size: 48px; color: #f1f7ff; line-height: 1; }
.metrics .infinity-symbol {
  display: inline-block;
  font-size: 1.8em;
  line-height: 1;
  vertical-align: top;
  transform: translateY(-0.08em);
}
.metrics p { margin: 8px 0 0; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: #7588a3; }
.metrics img { margin: -9px 0 0 0; }
.section { padding: 96px 0; }
.section-soft { background: var(--surface); }
.section-soft h2 span { color: var(--sky); }
.section-dark { background: var(--night); color: #f1f6ff; padding: 120px 0; }
.section-intro { margin: 0 0 48px; font-size: 18px; color: #6b7280; max-width: 58ch; }
.section-dark .section-intro { color: #97aac4; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; font-weight: 600; }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; background: var(--sky); display: inline-block; }

.stack-lg > * + * { margin-top: 16px; }
.grid { display: grid; gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card, .service-card, .highlight-box, .contact-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.pillar-card { min-height: 260px; position: relative; overflow: hidden; }
.pillar-card::after { content: attr(data-number); position: absolute; top: 24px; right: 24px; color: #e7edf4; font-size: 48px; font-weight: 700; }
.icon-box { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(140deg, var(--primary), var(--sky)); color: #e8f4ff; display: grid; place-content: center; font-size: 24px; margin-bottom: 16px; }
.card p, .service-card p, .highlight-box li, .contact-form label { font-size: 14px; color: #6b7280; }
.service-card { min-height: 300px; }
#servicios .transform-services-title,
#servicios .tech-services-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.9px;
  font-weight: 700;
  color: #2a4d73;
}
#servicios .transform-services-title::before,
#servicios .tech-services-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
#servicios .transform-services-title::before { background: #245c96; }
#servicios .tech-services-title::before { background: #46a6e3; }
#servicios .service-card {
  background: #f7fbff;
  border: 1px solid #e0e9f3;
  border-radius: 20px;
  padding: 26px;
  min-height: 280px;
}
#servicios .service-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  color: #1f3551;
}
#servicios .service-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.52;
  color: #5f7086;
}
#servicios .service-card .icon-box {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  margin-bottom: 14px;
}
#servicios .transform-services-grid .icon-box {
  background: linear-gradient(145deg, #1e4f88, #2a67a7);
  color: #ffffff;
}
#servicios .tech-services-title span { color: #2f80c6; }
#servicios .tech-services-grid .icon-box {
  background: linear-gradient(145deg, #2d7fc2, #4bb0ea);
  color: #ffffff;
}
#servicios .service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
#servicios .service-chips li {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #edf4fb;
  color: #2a67a7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.2;
}

.process-line { height: 2px; width: 100%; margin: 0 0 24px; background: linear-gradient(90deg, transparent 0%, var(--primary) 8%, var(--sky) 92%, transparent 100%); }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.process-item { border: 1px solid rgba(122, 148, 181, 0.22); border-radius: 16px; background: rgba(15, 27, 49, 0.5); padding: 24px; }
.process-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-content: center; color: var(--sky); border: 1px solid rgba(151, 194, 227, 0.22); }
.process-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.process-number { color: var(--sky); margin: 16px 0 8px; font-size: 12px; }
.process-item h3 { color: #f6fbff; font-size: 18px; }
.process-item2 { border: 1px solid rgba(122, 148, 181, 0.22); border-radius: 16px; background: rgba(0, 0, 10, 0.85); padding: 24px; }
.process-item2 h3 { color: #f6fbff; font-size: 18px; }
.about-composition {
  /* Antes se forzaba el layout con posicionamiento absoluto y altura mínima fija. */
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0 0 24px;
}
.philosophy-hero {
  background: linear-gradient(153deg, #0c2a52 0%, #1b568f 52%, #4ea4df 100%);
  border-radius: 38px;
  padding: 38px 36px;
  color: #f6fbff;
  box-shadow: 0 28px 60px rgba(14, 39, 74, 0.28);
}
.philosophy-hero .hero-kicker {
  color: rgba(227, 244, 255, 0.92);
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}
.philosophy-hero p { margin: 0; font-size: 17px; line-height: 1.52; }

.philosophy-text-line {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #ffffff;
  max-width: 24ch;
}
.philosophy-text-line + .philosophy-text-line { margin-top: 6px; }
.promise-overlay-card {
  position: relative;
  margin: -10px 12px 0 84px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #dde7f3;
  box-shadow: 0 20px 40px rgba(18, 45, 81, 0.14);
  padding: 26px 28px;
  max-width: 460px;
}
.promise-overlay-card .hero-kicker { margin-bottom: 10px; color: #2f80c6; letter-spacing: 2px; }
.promise-overlay-card p { margin: 0; font-size: 17px; line-height: 1.52; color: #1c2f46; }


.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.highlight-box ul { margin: 0; padding-left: 20px; }
.highlight-box li { margin: 8px 0; }
.page-header { background: linear-gradient(120deg, #f4f6fa, #e9eef5); border-bottom: 1px solid #dfe5ee; }
#nosotros,
#propuesta,
#servicios,
#enfoque,
#contact,
#contacto {
  scroll-margin-top: 0;
}
.contact-anchor {
  position: relative;
  visibility: hidden;
}

.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-info-list { display: grid; gap: 14px; margin-top: 22px; }
.contact-info-item { display: flex; align-items: center; gap: 14px; }
.contact-info-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--primary), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #e8f4ff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-info-text { display: grid; gap: 4px; }
.contact-info-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.contact-info-value {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  color: #6b7280;
}
.contact-form { display: grid; gap: 16px; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form-full { grid-column: 1 / -1; }
.contact-form-submit { width: 100%; justify-content: center; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid #d5dde8; font-family: 'Cairo', sans-serif; }
.contact-form input.input-error, .contact-form textarea.input-error { border-color: #e11d48; }
.contact-form small { display: block; margin-top: 6px; color: #e11d48; }
.field-error { min-height: 18px; }
.contact-feedback {
  display: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
}
.contact-feedback.show { display: block; }
.contact-feedback.error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}
.contact-feedback.success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.contact-modal[hidden] { display: none; }
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 12, 30, 0.55);
}
.contact-modal-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 22px 48px rgba(8, 28, 56, 0.22);
}
.contact-modal-content h3 {
  margin-bottom: 10px;
  font-size: 26px;
}
.contact-modal-content p {
  margin: 0 0 18px;
  color: #4b5563;
}

.site-footer { background: var(--navbar-bg); color: #dce8f8; padding: 64px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 24px; }
.footer-copyright {
  margin: 32px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(220, 232, 248, 0.2);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: rgba(220, 232, 248, 0.8);
}

@media (max-width: 1080px) {
  .cards-4, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 64px; }
  .about-composition { padding: 16px 0 0 14px; gap: 20px; }
  .philosophy-hero { border-radius: 30px; padding: 30px 26px; }
  .philosophy-text-line { font-size: 17px; max-width: 26ch; }
  .promise-overlay-card { margin: -8px 8px 0 42px; max-width: none; }
}

@media (max-width: 860px) {
  section, .section, .hero, .section-dark { padding-top: 64px; padding-bottom: 64px; }
  .menu-toggle { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #ffffff; min-height: 38px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
  .nav-shell { display: none; position: absolute; left: 24px; right: 24px; top: 76px; flex-direction: column; background: var(--navbar-bg); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 16px; padding: 12px; }
  .site-header.is-open .nav-shell { display: flex; }
  .nav-capsule { width: 100%; flex-direction: column; gap: 8px; border-radius: 16px; }
  .nav-capsule a, .btn-contact { width: 100%; justify-content: flex-start; }
  .cards-2, .cards-4, .two-col, .contact-card, .footer-grid, .metrics, .process-grid { grid-template-columns: 1fr; }
  .about-composition { padding: 0; gap: 14px; }
  .philosophy-hero { border-radius: 26px; padding: 30px 24px; }
  .philosophy-text-line { max-width: none; font-size: 17px; }
  .promise-overlay-card {
    position: static;
    margin: 0;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(18, 45, 81, 0.12);
    max-width: none;
    padding: 20px;
  }
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-form-submit { justify-content: flex-start; }
  .hero h1 { font-size: 48px; }
  h2 { font-size: 34px; }
}
