/* ============================================================
   Alfa Tecnologias — site institucional
   ============================================================ */
:root {
  --ink: #0b1220;
  --ink-2: #111a2e;
  --ink-3: #1b2640;
  --text: #0f172a;
  --muted: #5b6577;
  --line: #e6e9ef;
  --bg-muted: #f5f7fb;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-soft: #e8efff;
  --accent: #60a5fa;
  --green: #16a34a;
  --amber: #d97706;
  --violet: #7c3aed;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.text-accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn svg { font-size: 1.05rem; }
.btn--sm { padding: .55rem 1rem; font-size: .875rem; }
.btn--lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .7); }
.btn--primary:hover { background: var(--primary-600); transform: translateY(-1px); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn:focus-visible, .filter:focus-visible, .nav a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow--dark { color: var(--primary); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 18, 32, .72); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06); transition: background .3s ease;
}
.header.is-scrolled { background: rgba(11, 18, 32, .94); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-size: 1rem; letter-spacing: .08em; font-weight: 500; font-style: italic; }
.brand__name strong { font-weight: 800; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a:not(.btn) { color: #cbd5e1; font-size: .92rem; font-weight: 500; padding: .5rem .8rem; border-radius: 8px; transition: color .2s, background .2s; }
.nav a:not(.btn):hover, .nav a.is-active { color: #fff; background: rgba(255,255,255,.06); }
.nav__cta { margin-left: .5rem; }

.menu-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px; cursor: pointer; border-radius: 8px; }
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; padding: calc(var(--header-h) + 5rem) 0 6rem; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(37, 99, 235, .35), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(96, 165, 250, .14), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 1.25rem; }
.hero__lead { font-size: 1.12rem; color: #c3cad6; max-width: 36rem; }
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2rem 0 2.75rem; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2.5rem; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.6rem; font-weight: 800; }
.hero__stats span { font-size: .85rem; color: #94a3b8; }

.hero__visual { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.hero__ring {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(37,99,235,.35), rgba(11,18,32,0) 65%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 80px rgba(37,99,235,.25), 0 0 0 40px rgba(255,255,255,.015), 0 0 0 80px rgba(255,255,255,.01);
}
.hero__mark { position: absolute; inset: 27%; width: 46%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); animation: float 6s ease-in-out infinite; }
.hero__chip {
  position: absolute; display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(17, 26, 46, .85); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px);
  padding: .55rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 500; color: #e2e8f0;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); animation: float 7s ease-in-out infinite;
}
.hero__chip--1 { top: 10%; left: -2%; }
.hero__chip--2 { top: 48%; right: -6%; animation-delay: -2s; }
.hero__chip--3 { bottom: 8%; left: 8%; animation-delay: -4s; }
.dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.dot--green { background: #22c55e; } .dot--blue { background: #60a5fa; } .dot--amber { background: #f59e0b; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section--muted { background: var(--bg-muted); }
.section__head { text-align: center; max-width: 42rem; margin: 0 auto 3.5rem; }
.section__head h2, .about h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Services */
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service h3 { font-size: 1.3rem; font-weight: 700; }
.service p { color: var(--muted); }
.service__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.25rem; }
.service__icon--blue { background: #e8efff; color: var(--primary); }
.service__icon--amber { background: #fff4e0; color: var(--amber); }
.service__icon--green { background: #e7f8ee; color: var(--green); }
.checklist { list-style: none; padding: 1rem 0 0; margin: 0; border-top: 1px dashed var(--line); display: grid; gap: .5rem; }
.checklist li { position: relative; padding-left: 1.6rem; font-size: .93rem; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/60% no-repeat;
}

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__text p { color: var(--muted); font-size: 1.04rem; }
.about__text .btn { margin-top: .75rem; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.features li { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: var(--shadow-sm); }
.features__num { font-weight: 800; font-size: .95rem; color: var(--primary); background: var(--primary-soft); border-radius: 10px; min-width: 44px; height: 44px; display: grid; place-items: center; }
.features h4 { font-size: 1.02rem; margin-bottom: .2rem; }
.features p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Certifications */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.filter { font: inherit; font-size: .88rem; font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: all .2s; }
.filter:hover { color: var(--text); border-color: #cbd2dc; }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cert { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; background: #fff; transition: transform .2s, box-shadow .2s, opacity .25s; }
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cert.is-hidden { display: none; }
.cert h4 { font-size: 1.08rem; margin: .75rem 0 .2rem; }
.cert p { margin: 0; font-size: .86rem; color: var(--muted); }
.cert__tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 6px; }
.cert__tag--amber { background: #fff4e0; color: #b45309; }
.cert__tag--blue { background: #e8efff; color: var(--primary-600); }
.cert__tag--green { background: #e7f8ee; color: #15803d; }
.cert__tag--violet { background: #f1eaff; color: #6d28d9; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: 4.5rem 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 50%, rgba(37,99,235,.35), transparent 70%); }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; }
.cta-band h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; }
.cta-band p { color: #c3cad6; max-width: 38rem; margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; align-items: center; gap: .9rem; flex-shrink: 0; }
.link-light { color: #93c5fd; font-size: .9rem; font-weight: 500; }
.link-light:hover { color: #fff; }

/* Contact */
.contact__card { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; background: #fff; transition: transform .2s, box-shadow .2s; }
a.contact__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact__card h4 { font-size: 1rem; margin: 1rem 0 .3rem; }
.contact__card p { margin: 0; color: var(--muted); font-size: .93rem; word-break: break-word; }
.contact__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; }
.contact__icon--green { background: #e7f8ee; color: var(--green); }
.contact__icon--blue { background: #e8efff; color: var(--primary); }
.contact__icon--amber { background: #fff4e0; color: var(--amber); }
.contact__icon--violet { background: #f1eaff; color: var(--violet); }

/* Footer */
.footer { background: #070c17; color: #94a3b8; padding: 4rem 0 0; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.footer__about { margin: 1rem 0 .5rem; max-width: 22rem; }
.footer__meta { font-size: .85rem; color: #64748b; }
.footer h5 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer a:hover { color: #fff; }
.social { display: flex; gap: .6rem; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; transition: background .2s; }
.social a:hover { background: var(--primary); border-color: var(--primary); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.07); padding: 1.5rem 0; font-size: .85rem; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.wa-float svg { width: 30px; height: 30px; stroke: none; }
.wa-float:hover { transform: scale(1.07); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Fotos ---------- */
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(.7) contrast(1.05); }
.hero__bg { background-color: var(--ink); }
.hero__bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11,18,32,.96) 0%, rgba(11,18,32,.82) 45%, rgba(11,18,32,.55) 100%),
    radial-gradient(900px 500px at 85% 20%, rgba(37,99,235,.35), transparent 60%);
}
.hero__bg::after { z-index: 2; }
.hero__frame {
  position: absolute; inset: 8% 4% 10% 4%; margin: 0; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 10px rgba(255,255,255,.03);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,0) 50%, rgba(11,18,32,.75) 100%); }
.hero__frame figcaption {
  position: absolute; left: 1rem; top: 1rem; z-index: 1; display: inline-flex; align-items: center; gap: .45rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: #fff; background: rgba(0,0,0,.45);
  padding: .35rem .65rem; border-radius: 6px; backdrop-filter: blur(4px);
}
.dot--red { background: #ef4444; animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hero__chip { z-index: 3; }
.hero__inner { z-index: 3; }

.service { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service__media { aspect-ratio: 16 / 10; overflow: hidden; background: #e9edf3; }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service:hover .service__media img { transform: scale(1.05); }
.service__body { padding: 0 2rem 2rem; position: relative; }
.service__body .service__icon { margin-top: -26px; box-shadow: 0 8px 20px -8px rgba(15,23,42,.35); border: 3px solid #fff; }

.about__media { position: relative; margin: 0; }
.about__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about__badge {
  position: absolute; right: -1.25rem; bottom: -1.25rem; display: flex; align-items: center; gap: .75rem;
  background: var(--ink); color: #fff; padding: 1rem 1.25rem; border-radius: 16px; box-shadow: 0 20px 40px -15px rgba(11,18,32,.6);
}
.about__badge strong { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.about__badge span { font-size: .82rem; color: #cbd5e1; line-height: 1.3; }
.features--row { grid-template-columns: repeat(4, 1fr); margin-top: 4rem; }
.features--row li { flex-direction: column; gap: .9rem; }

.cert { display: flex; flex-direction: column; }
.cert__logo {
  height: 72px; display: flex; align-items: center; justify-content: center; margin: -.35rem -.35rem 1rem;
  padding: .9rem 1.25rem; border-radius: 10px; background: var(--bg-muted);
}
.cert__logo img { max-height: 40px; max-width: 78%; width: auto; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.cert:hover .cert__logo img { filter: none; opacity: 1; }
.cert__logo--text { font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; color: #64748b; font-style: italic; }
.cert h4 { margin-top: .6rem; }

.cert__tag, .features--row .features__num { align-self: flex-start; }
.hero__chip--1 { top: 2%; left: -4%; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .certs { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .features--row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .25rem;
    background: rgba(11, 18, 32, .98); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .8rem 1rem; font-size: 1rem; }
  .nav__cta { margin: .5rem 0 0; }
  .hero { padding-top: calc(var(--header-h) + 3rem); }
  .hero__inner, .about { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; order: -1; aspect-ratio: 4 / 3; }
  .grid--3 { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { align-items: flex-start; }
}
@media (max-width: 600px) {
  .section { padding: 4.5rem 0; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .grid--4, .footer__grid, .features--row { grid-template-columns: 1fr; }
  .about__badge { right: .75rem; bottom: -1rem; }
  .hero__stats { gap: 1.5rem; }
  .hero__chip--2 { right: 0; }
  .brand__name { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
