:root {
  --navy:      #1B2B4B;
  --navy-d:    #111C33;
  --navy-m:    #253D6A;
  --white:     #FFFFFF;
  --bg:        #F6F6F4;
  --bg-alt:    #EDECEA;
  --text:      #1A1A1A;
  --muted:     #6A6A6A;
  --border:    #D9D9D6;
  --font:      'Inter', 'Segoe UI', Arial, sans-serif;
  --max-w:     1120px;
  --nav-h:     64px;
  --radius:    3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 88px 0; }
.section--alt { background: var(--bg); }
.section--dark { background: var(--navy); color: var(--white); }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { max-width: 64ch; }
p + p { margin-top: .9em; }
.muted { color: var(--muted); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--navy);
  z-index: 200;
  box-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 28px;
}
.nav-logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--white); flex-shrink: 0;
}
.logo-box {
  width: 36px; height: 36px; border: 2px solid rgba(255,255,255,.75);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; letter-spacing: -.04em; flex-shrink: 0;
}
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: .95rem; font-weight: 700; letter-spacing: .18em; }
.logo-sub  { font-size: .55rem; letter-spacing: .28em; color: rgba(255,255,255,.5); margin-top: 3px; }

.nav-links {
  display: flex; list-style: none; gap: 0;
}
.nav-links a {
  display: block; padding: 0 16px;
  height: var(--nav-h); line-height: var(--nav-h);
  color: rgba(255,255,255,.78); text-decoration: none;
  font-size: .875rem; font-weight: 500; letter-spacing: .02em;
  transition: color .15s, background .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.09); }

.nav-cta {
  display: inline-flex; align-items: center;
  padding: 9px 20px; background: rgba(255,255,255,.12);
  color: var(--white); font-size: .85rem; font-weight: 600;
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.22);
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); transition: .2s;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; font-size: .9rem; font-weight: 600;
  letter-spacing: .03em; border-radius: var(--radius);
  text-decoration: none; transition: .15s; cursor: pointer;
  border: 2px solid transparent;
}
.btn--white  { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--bg); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.07); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-m); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 9px 20px; font-size: .82rem; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--navy); color: var(--white);
  padding: calc(var(--nav-h) + 64px) 0 80px;
}
.hero-label {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 20px;
}
.hero-title { color: var(--white); margin-bottom: 22px; }
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,.68);
  max-width: 52ch; margin-bottom: 44px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page header (inner pages) */
.page-hdr {
  background: var(--navy); color: var(--white);
  padding: calc(var(--nav-h) + 52px) 0 52px;
}
.page-hdr h1 { color: var(--white); margin-bottom: 12px; }
.page-hdr p  { color: rgba(255,255,255,.65); max-width: 56ch; }

/* Section header */
.sh { margin-bottom: 52px; }
.sh-label {
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.sh h2 { margin-bottom: 14px; }
.sh p   { color: var(--muted); }

/* Stats row */
.stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-n { font-size: 2.25rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.stat-l { font-size: .85rem; color: var(--muted); }

/* Card grid */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }

.card {
  padding: 36px 28px; border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-idx {
  font-size: 2rem; font-weight: 800; color: var(--border);
  line-height: 1; margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .92rem; color: var(--muted); }

/* Service cards */
.svc {
  padding: 36px 28px;
  border-top: 3px solid var(--navy);
  border: 1px solid var(--border);
  border-top-width: 3px;
  border-radius: var(--radius);
}
.svc h3 { margin-bottom: 12px; }
.svc p { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.svc-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.svc-list li {
  font-size: .875rem; color: var(--text);
  padding-left: 14px; position: relative;
}
.svc-list li::before {
  content: ''; position: absolute; left: 0; top: .58em;
  width: 5px; height: 1px; background: var(--navy);
}

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.pc {
  padding: 44px 36px;
  border-right: 1px solid var(--border);
}
.pc:last-child { border-right: none; }
.pc.featured { background: var(--navy); }
.pc.featured h3,
.pc.featured .pc-price,
.pc.featured .pc-period,
.pc.featured .pc-feat li { color: var(--white); }
.pc-badge {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 20px; display: block;
}
.pc h3 { margin-bottom: 24px; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.pc-price { font-size: 2.75rem; font-weight: 800; color: var(--navy); line-height: 1; }
.pc-period { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.pc-feat {
  list-style: none; margin-top: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.pc-feat li {
  font-size: .875rem; color: var(--muted);
  padding-left: 14px; position: relative;
}
.pc-feat li::before {
  content: ''; position: absolute; left: 0; top: .58em;
  width: 5px; height: 1px; background: currentColor;
}
.pc .btn { margin-top: 36px; width: 100%; justify-content: center; }

/* Contact */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 2fr; gap: 72px; align-items: start;
}
.ci-label {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 3px;
}
.ci-val { font-size: .93rem; margin-bottom: 20px; }
.ci-val a { color: var(--navy); text-decoration: none; }

.fg { margin-bottom: 22px; }
.fl {
  display: block; font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 7px;
}
.fi, .ft, .fs {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: var(--font); color: var(--text);
  background: var(--white); outline: none; transition: border-color .15s;
}
.fi:focus, .ft:focus, .fs:focus { border-color: var(--navy); }
.ft { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* CTA strip */
.cta-strip {
  background: var(--navy); color: var(--white);
  padding: 80px 0; text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 14px; }
.cta-strip p  { color: rgba(255,255,255,.65); margin: 0 auto 36px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Nosotros values */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.value {
  padding: 40px 32px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.value:nth-child(3n) { border-right: none; }
.value-n {
  font-size: 2rem; font-weight: 800; color: var(--navy-d);
  opacity: .12; line-height: 1; margin-bottom: 16px;
}
.value h3 { margin-bottom: 10px; }
.value p { font-size: .9rem; color: var(--muted); }

/* Footer */
.footer {
  background: var(--navy-d); color: rgba(255,255,255,.5);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--white); margin-bottom: 14px;
}
.footer-desc { font-size: .85rem; line-height: 1.7; max-width: 260px; }
.fc h4 {
  font-size: .68rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--white); margin-bottom: 14px; font-weight: 700;
}
.fc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.fc a {
  font-size: .85rem; color: rgba(255,255,255,.5);
  text-decoration: none; transition: color .15s;
}
.fc a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pc { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .values { grid-template-columns: repeat(2,1fr); }
  .values .value:nth-child(3n) { border-right: 1px solid var(--border); }
  .values .value:nth-child(2n) { border-right: none; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0;
    background: var(--navy-d); flex-direction: column; gap: 0;
    padding: 20px 0; transform: translateX(100%);
    transition: transform .25s ease; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    height: auto; line-height: 1; padding: 16px 24px;
    font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .values { grid-template-columns: 1fr; }
  .values .value { border-right: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; }
}
