/* ===== Maisoft — design tokens ===== */
:root {
  --blue: #0126fe;
  --blue-dark: #0019c2;
  --blue-light: #eef0ff;
  --ink: #0b0d17;
  --ink-soft: #4a4e5c;
  --muted: #585d6d;
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --border: #e6e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 13, 23, 0.15);
  --shadow-lg: 0 30px 60px -24px rgba(11, 13, 23, 0.28);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark p { color: #b7bac6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-light);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 8px 24px -8px rgba(1,38,254,.6); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--blue-light); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 40px; height: 78px; }
.brand { flex: none; display: flex; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.mobile-cta { display: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 72px;
  background: radial-gradient(circle at 85% 10%, var(--blue-light) 0%, transparent 45%), var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 3.9vw, 3.2rem); }
.hero h1 span { color: var(--blue); }
.hero-sub { font-size: 17.5px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; }
.hero-checks li { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-checks li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230126fe' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); }
.hero-badge {
  position: absolute; left: -22px; bottom: 28px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; max-width: 260px;
}
.hero-badge-num { font-family: "Sora", sans-serif; font-weight: 700; font-size: 28px; color: var(--blue); line-height: 1; }
.hero-badge-txt { font-size: 13.5px; color: var(--ink-soft); line-height: 1.3; }

/* ===== Stats ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0;
}
.stat { text-align: center; }
.stat .num { font-family: "Sora", sans-serif; font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 700; color: var(--blue); }
.stat .label { color: var(--muted); font-size: 14px; }

/* ===== Services ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 30px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-icon { display: flex; align-items: center; flex: none; }
.card-icon svg { width: 28px; height: 28px; stroke: var(--blue); }
.card h3 { font-size: 20px; margin: 0; }
.card p { font-size: 15px; }
.checks { list-style: none; display: grid; gap: 8px; }
.checks li { font-size: 14.5px; color: var(--ink-soft); padding-left: 26px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230126fe' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* ===== Steps ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; background: var(--blue); color: #fff;
  font-family: "Sora", sans-serif; font-weight: 700; margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; margin: 0; }

/* ===== Why us ===== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-media img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.why-list { list-style: none; }
.why-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.why-list li:last-child { border-bottom: none; }
.why-num {
  flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 15px;
}
.why-copy h3 { font-size: 17.5px; margin-bottom: 4px; }
.why-copy p { font-size: 14px; margin: 0; }

/* ===== Portfolio ===== */
.port-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.port-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.port-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 1px solid var(--border); }
.port-body { padding: 22px 24px 24px; }
.port-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); margin-bottom: 8px; display: block; }
.port-body h3 { font-size: 18px; margin-bottom: 8px; }
.port-body p { font-size: 14px; margin-bottom: 0; }
.industries { margin-top: 48px; text-align: center; }
.industries-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--ink-soft); }
.portfolio-note { text-align: center; margin: 32px 0 0; color: var(--muted); font-size: 14.5px; }

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, var(--blue) 0%, #3350ff 100%); border-radius: 24px; padding: 64px; color: #fff; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta p { color: rgba(255,255,255,.94); max-width: 520px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FAQ ===== */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; font-size: 15.5px;
  position: relative; font-family: "Sora", sans-serif; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230126fe' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; font-size: 15px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.contact-list { list-style: none; margin-top: 24px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-list .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-list .ico svg { width: 20px; height: 20px; stroke: var(--blue); }
.contact-list strong { display: block; font-size: 15px; }
.contact-list span, .contact-list a { color: var(--muted); font-size: 14.5px; }
.form-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; font-family: inherit; font-size: 14.5px; color: var(--ink);
}
.field select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23585d6d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/16px no-repeat; padding-right: 36px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.field textarea { resize: vertical; min-height: 110px; }
.field input.invalid, .field textarea.invalid { border-color: #d92d20; }
.form-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-success { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; border-radius: 10px; padding: 14px 16px; font-size: 14.5px; margin-top: 14px; }

/* ===== Footer ===== */
.footer { padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 24px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 340px; font-size: 14px; }
.footer h3 { font-family: "Inter", sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #9297a8; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; font-size: 14.5px; color: #d3d5df; }
.footer a { color: #d3d5df; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13.5px; color: #9297a8; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: #9297a8; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .nav { gap: 24px; }
  .nav-links { gap: 20px; }
  .nav-cta .btn-outline { display: none; }
}

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 24px; gap: 20px;
  }
  body.nav-open .nav-links a { font-size: 17px; }
  body.nav-open .nav-links .btn-primary { color: #fff; }
  body.nav-open .nav-links .btn-outline { color: var(--ink); }
  body.nav-open .mobile-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

  .hero-grid, .why-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-badge { left: 16px; }
  .why-media { order: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 44px 28px; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0; }
  .grid-2, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== Páginas de servicio ===== */
.card-link { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 14.5px; }
.card-link:hover { text-decoration: underline; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.page-hero { padding: 64px 0 56px; background: radial-gradient(circle at 85% 10%, var(--blue-light) 0%, transparent 45%), var(--bg); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 820px; }
.page-hero .lead { font-size: 18px; max-width: 700px; }
.page-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 28px; }
.prose p, .prose li { font-size: 16px; color: var(--ink-soft); }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 12px 0 20px; }
.prose ul li { padding-left: 28px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230126fe' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }
.prose img { border-radius: 16px; margin: 8px 0 24px; box-shadow: var(--shadow); }
.side { position: sticky; top: 100px; display: grid; gap: 20px; }
.side-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; }
.side-card h3 { color: #fff; font-size: 18px; }
.side-card p { color: #b7bac6; font-size: 14.5px; }
.side-card .btn { width: 100%; margin-top: 6px; }
.side-card .btn-ghost { margin-top: 10px; }
.side-list { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.side-list h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; font-family: "Inter", sans-serif; }
.side-list ul { list-style: none; display: grid; gap: 10px; }
.side-list a { color: var(--ink); font-size: 14.5px; font-weight: 500; }
.side-list a:hover, .side-list li.current a { color: var(--blue); }
.faq-inline { display: grid; gap: 12px; margin-top: 12px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related a { display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; color: var(--ink); font-weight: 600; font-size: 15px; transition: transform .18s ease, box-shadow .18s ease; }
.related a:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--blue); }
.related span { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.err { text-align: center; padding: 120px 0; }
.err h1 { font-size: clamp(2rem, 4vw, 3rem); }
@media (max-width: 960px) {
  .page-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .related { grid-template-columns: 1fr; }
}

/* Links dentro de texto corrido: distinguibles sin depender del color */
p a, .prose li a, .portfolio-note a, .form-note a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, .prose li a:hover { text-decoration-thickness: 2px; }
