:root {
  --magenta: #b60530;
  --magenta-dark: #8a0424;
  --orange: #f39505;
  --green: #70a810;
  --green-dark: #407000;
  --ink: #1d1f24;
  --text: #3d424b;
  --muted: #6b7280;
  --line: #e4e6ea;
  --bg: #ffffff;
  --bg-alt: #f6f7f4;
  --dark: #1c2416;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--magenta); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: .8em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand img { display: block; height: 40px; width: auto; }
.footer-logo { display: block; height: 38px; width: auto; }
.brand-mark { font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; color: var(--magenta); text-transform: uppercase; }
.brand-mark span { text-transform: lowercase; font-weight: 400; }
.brand-tag { font-size: .66rem; color: #b86a00; font-weight: 600; margin-top: 3px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--magenta); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Buttons */
.btn {
  display: inline-block; background: var(--magenta); color: #fff !important;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 2px solid var(--magenta); transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--magenta-dark); border-color: var(--magenta-dark); }
.btn-ghost { background: transparent; color: var(--magenta) !important; }
.btn-ghost:hover { background: var(--magenta); color: #fff !important; }
.btn-small { padding: 8px 18px; }

/* Hero */
.hero {
  padding: 84px 0 76px;
  background:
    radial-gradient(900px 420px at 95% 0%, rgba(112,168,16,.16), transparent 70%),
    radial-gradient(700px 380px at 0% 100%, rgba(243,149,5,.10), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.2rem; max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-facts li {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius); padding: 16px 20px;
}
.hero-facts strong { font-size: 2rem; color: var(--ink); min-width: 2.4em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: .95rem; line-height: 1.4; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #cfd6c6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #a5d64a; }
.section-intro { max-width: 46em; font-size: 1.08rem; margin-bottom: 2em; }

/* Cards */
.cards { display: grid; gap: 22px; margin-top: 32px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card ul { margin: 0; padding-left: 1.1em; }
.card li { margin-bottom: .35em; }
.card li::marker { color: var(--green); }
.card-icon { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 18px; background: var(--magenta); position: relative; }
.card-icon.i-team { background: var(--orange); }
.card-icon.i-consult { background: var(--green); }
.card-icon::after {
  content: ""; position: absolute; inset: 12px; border: 3px solid #fff; border-radius: 50%;
}
.card-icon.i-team::after { border-radius: 4px; }
.card-icon.i-consult::after { border-radius: 0; border-width: 0 0 3px 3px; transform: rotate(-45deg); inset: 12px 11px 16px; }

/* Profiles */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text);
}
.chip:hover { border-color: var(--magenta); color: var(--magenta); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.profiles { grid-template-columns: repeat(3, 1fr); }
.profile[hidden] { display: none; }
.profile { display: flex; flex-direction: column; padding: 24px; }
.profile p { font-size: .97rem; }
.tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 14px;
}
.t-datos { background: #fbe4ea; color: var(--magenta-dark); }
.t-cloud { background: #eaf4d6; color: var(--green-dark); }
.t-desarrollo { background: #fdeed6; color: #8a4f00; }
.t-gestion { background: #e8eaee; color: #343a46; }
.profile dl { margin: auto 0 0; font-size: .9rem; border-top: 1px solid var(--line); padding-top: 14px; }
.profile dt { font-weight: 700; color: var(--ink); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.profile dd { margin: 0 0 10px; }
.profile dd:last-child { margin-bottom: 0; }
.note { margin-top: 28px; }

/* Tech */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; margin-top: 32px; }
.tech-grid h3 { font-size: 1rem; padding-bottom: 8px; border-bottom: 2px solid var(--green); display: inline-block; }
.pills { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px; font-size: .9rem; }

/* Collaboration */
.models .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.models .card p { margin: 0; }
.steps {
  list-style: none; counter-reset: step; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.steps li { counter-increment: step; border-top: 2px solid #a5d64a; padding-top: 16px; }
.steps li::before {
  content: "0" counter(step); display: block; font-size: .85rem; font-weight: 700;
  color: #a5d64a; letter-spacing: .1em; margin-bottom: 6px;
}
.steps strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.steps span { font-size: .92rem; }

/* About */
.about { display: grid; grid-template-columns: auto 1.3fr 1fr; gap: 48px; align-items: start; }
.leaf { display: block; width: 165px; height: auto; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.values li { border-left: 3px solid var(--orange); padding-left: 18px; }
.values strong { display: block; color: var(--ink); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }
.small { font-size: .88rem; color: var(--muted); margin: 18px 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: #aeb3bd; padding: 36px 0; font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .brand-mark { color: #fff; font-size: 1.5rem; }
.site-footer p { margin: 6px 0 0; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: #dfe2e7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Legal page */
.legal { max-width: 780px; padding-top: 56px; padding-bottom: 72px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .leaf { display: none; }
  .cards.three, .profiles, .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .leaf { display: none; }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 52px 0; }
  .cards.three, .profiles, .tech-grid, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav .btn { text-align: center; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
