/* SebSab — landing page styles. Brand: navy + bright blue ("azul tecnológico"). */
:root {
  --navy: #0b1f3a;
  --navy-2: #0f2a4d;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --sky: #93c5fd;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f3f6fb;
  --white: #ffffff;
  --whatsapp: #25d366;
  --radius: 18px;
  --shadow: 0 10px 30px rgb(15 23 42 / 0.08);
  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:where(a, button, input, textarea, summary):focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; margin-top: 48px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.accent { color: var(--blue); }
.hero .accent, .contact .accent { color: var(--sky); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.eyebrow-dark { color: var(--sky); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { color: var(--white); border-color: rgb(255 255 255 / 0.35); }
.btn-ghost:hover { border-color: var(--white); background: rgb(255 255 255 / 0.06); }
.btn-whatsapp { background: var(--whatsapp); color: #06301a; }
.btn-whatsapp:hover { background: #1fbe5a; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: transparent; transition: background .25s, box-shadow .25s;
}
.site-header.scrolled, .site-header.menu-open { background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font: 800 26px/1 var(--font-head); letter-spacing: -0.03em; color: var(--white); }
.brand-word em { font-style: normal; color: var(--sky); }
.scrolled .brand-word, .menu-open .brand-word { color: var(--ink); }
.scrolled .brand-word em, .menu-open .brand-word em { color: var(--blue); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: rgb(255 255 255 / 0.88); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--white); }
.scrolled .nav a:not(.btn) { color: var(--text); }
.scrolled .nav a:not(.btn):hover { color: var(--blue); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.scrolled .nav-toggle span, .menu-open .nav-toggle span { background: var(--ink); }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 16px 20px; box-shadow: 0 12px 24px rgb(15 23 42 / .12);
    display: none;
  }
  .menu-open .nav { display: flex; }
  .nav a:not(.btn), .scrolled .nav a:not(.btn) { color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% 0%, #123a6b 0%, transparent 60%), var(--navy);
  padding: calc(var(--header-h) + 110px) 0 150px;
}
.hero-flow { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 220px; }
.hero-inner { position: relative; }
.hero h1 { color: var(--white); font-size: clamp(42px, 6.4vw, 78px); font-weight: 800; max-width: 920px; }
.hero-sub { color: rgb(255 255 255 / 0.82); font-size: clamp(17px, 2vw, 20px); max-width: 680px; margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 44px 0 0; }
.hero-points li { color: rgb(255 255 255 / 0.78); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.hero-points li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgb(147 197 253 / .18); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-tight { padding-top: 40px; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 900px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; }
.section-head p:not(.eyebrow) { margin-top: 18px; font-size: 18px; color: var(--text); }

/* Services */
.services { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.service { background: var(--soft); border-radius: var(--radius); padding: 28px 22px; border: 1px solid transparent; transition: border-color .2s, box-shadow .2s, transform .2s; }
.service:hover { border-color: #cfe0fb; box-shadow: var(--shadow); transform: translateY(-3px); }
.service h3 { font-size: 21px; font-weight: 700; }
.service > p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.service ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.service li { position: relative; padding-left: 22px; font-size: 15px; color: var(--text); line-height: 1.45; }
.service li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 7px; height: 7px; border-right: 2px solid var(--blue); border-top: 2px solid var(--blue); transform: rotate(45deg); }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* Where to start */
.starts { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.start { flex: 1 1 320px; max-width: 380px; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 22px; background: var(--white); }
.start p { font-size: 16px; }
.start .btn { text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { position: relative; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--blue); color: var(--white); font-weight: 700; box-shadow: 0 8px 18px rgb(37 99 235 / .3); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 25px; left: 60px; right: -22px; border-top: 2px dashed #93c5fd; }
.step h3 { font-size: 23px; margin-top: 22px; }
.step p { margin-top: 10px; color: var(--muted); }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .step:not(:last-child)::after { display: none; }
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative; font: 600 18px/1.35 var(--font-body); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 20px; color: var(--text); }
.faq-more { text-align: center; margin-top: 28px; }

/* Contact */
.contact { background: radial-gradient(900px 420px at 10% 100%, #123a6b 0%, transparent 60%), var(--navy); padding: 110px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact h2 { color: var(--white); font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; }
.contact-copy p { color: rgb(255 255 255 / .82); font-size: 18px; margin: 22px 0 32px; }
.contact-form { background: var(--white); border-radius: 22px; padding: 32px; box-shadow: 0 24px 60px rgb(0 0 0 / .25); }
.contact-form h3 { font-size: 26px; margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px 14px; background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgb(37 99 235 / .18); outline-offset: 0; }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: #dc2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.form-status { margin-top: 12px; font-size: 15px; text-align: center; min-height: 1px; }
.form-status.ok { color: #047857; font-weight: 600; }
.form-status.error { color: #b91c1c; }
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-form { padding: 24px 18px; }
}

/* Footer */
.site-footer { background: var(--navy); border-top: 1px solid rgb(255 255 255 / .08); color: rgb(255 255 255 / .75); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-tagline { margin-top: 14px; max-width: 280px; }
.site-footer h4 { font: 600 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgb(255 255 255 / .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .brand-word { color: var(--white); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .1); font-size: 14px; }
.footer-bottom strong { color: var(--sky); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--whatsapp); color: var(--white); box-shadow: 0 10px 24px rgb(0 0 0 / .25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }

/* Reveal on scroll (only when JS is available; always visible otherwise) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section, .contact { padding: 80px 0; }
  .hero { padding: calc(var(--header-h) + 64px) 0 130px; }
  .hero-ctas .btn { width: 100%; }
  .center .btn { width: 100%; }
}
