/* AE CyberStrategy — estilos del sitio */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg: #0B1018;
  --bg-2: #141B26;
  --bg-3: #1C2533;
  --line: #263042;
  --light: #F3F5F6;
  --white: #FFFFFF;
  --ink: #0B1018;
  --mint: #00E0B8;
  --teal: #00806A;
  --muted-d: #8A96A8;
  --muted-l: #5B6678;
  --soft-d: #C9D1DE;
  --radius: 14px;
  --head: "Space Grotesk", Arial, sans-serif;
  --body: "Inter", Calibri, Arial, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--white); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ic { width: 1.2em; height: 1.2em; flex: none; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--mint); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 16px; }

/* ---------- Logo ---------- */
.logo { width: 46px; height: auto; color: var(--white); }
.logo .logo-mid { fill: var(--mint); }
.logo-xl { width: 140px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 600 16px/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: #3BF0CD; }
.btn-ghost { background: transparent; color: var(--white); border-color: #3A4558; }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* ---------- Etiquetas ---------- */
.eyebrow { font: 600 13px/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.light .eyebrow { color: var(--teal); }
.tag { display: inline-block; font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--mint); padding: 5px 8px; border-radius: 999px; }
.tag-light { background: var(--teal); color: var(--white); }
.chip { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--bg-3); color: var(--mint); }
.chip .ic { width: 24px; height: 24px; }
.chip-solid { background: var(--mint); color: var(--ink); }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11, 16, 24, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 500 15px var(--head); letter-spacing: .24em; text-transform: uppercase; color: var(--soft-d); }
.menu { display: flex; align-items: center; gap: 32px; }
.menu ul { display: flex; gap: 28px; }
.menu ul a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--soft-d); padding: 8px 0; position: relative; }
.menu ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--mint); transform: scaleX(0); transition: transform .25s var(--ease); }
.menu ul a:hover, .menu ul a.active { color: var(--white); }
.menu ul a.active::after, .menu ul a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 0; color: var(--white); width: 48px; height: 48px; cursor: pointer; }
.menu-btn .ic { width: 28px; height: 28px; margin: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("/assets/img/hero.webp") 70% center / cover no-repeat; transform: scale(1.06); animation: drift 22s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,16,24,.96) 0%, rgba(11,16,24,.82) 45%, rgba(11,16,24,.2) 100%); }
@keyframes drift { to { transform: scale(1.12) translateX(-2%); } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 700; margin-bottom: 24px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--soft-d); max-width: 36ch; }
.rotator { color: var(--mint); font-weight: 600; }
.hero .lead { max-width: 46ch; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -0.15em; background: var(--mint); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-tags { margin-top: 56px; font-size: 14px; letter-spacing: .14em; color: var(--mint); }

.terminal { background: rgba(14, 18, 27, .88); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2C3648; }
.term-bar span:first-child { background: var(--mint); }
.term-bar em { margin-left: 10px; font: normal 13px "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; color: var(--muted-d); }
.term-body { margin: 0; padding: 20px 22px 26px; min-height: 240px; font: 14.5px/1.85 ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; color: var(--soft-d); white-space: pre-wrap; }
.term-body .ok { color: var(--mint); }
.term-body .warn { color: #FFB86B; }
.term-body .cur { display: inline-block; width: 8px; height: 1.1em; background: var(--mint); vertical-align: -0.2em; animation: blink 1s steps(1) infinite; }

/* ---------- Secciones ---------- */
.sec { padding: 112px 0; }
.sec.light { background: var(--light); color: var(--ink); }
.sec.dark { background: var(--bg); }
.sec h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 700; max-width: 22ch; }
.sec-lead { margin-top: 18px; max-width: 64ch; font-size: 18px; color: var(--muted-d); }
.light .sec-lead { color: var(--muted-l); }

/* Preguntas */
.q-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.q-card { display: flex; flex-direction: column; gap: 18px; background: var(--white); border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(11,16,24,.06), 0 8px 24px rgba(11,16,24,.06); transition: transform .25s var(--ease), box-shadow .25s; }
.q-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11,16,24,.08), 0 18px 40px rgba(11,16,24,.12); }
.q { font: 600 19px/1.35 var(--head); flex: 1; }
.q-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--teal); }
.q-card:hover .q-link .ic { transform: translateX(4px); }
.q-link .ic { transition: transform .2s; }

/* Servicios */
.services { display: grid; grid-template-columns: 340px 1fr; gap: 32px; margin-top: 56px; }
.tabs { display: flex; flex-direction: column; gap: 8px; }
.tab { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 16px; border-radius: 12px; background: transparent; border: 1px solid transparent; color: var(--soft-d); font: 500 16px/1.3 var(--body); text-align: left; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.tab:hover { background: var(--bg-2); color: var(--white); }
.tab[aria-selected="true"] { background: var(--bg-2); border-color: var(--line); color: var(--white); }
.tab-num { font: 600 13px var(--head); color: var(--muted-d); width: 22px; }
.tab-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--bg-3); color: var(--mint); transition: background .2s, color .2s; }
.tab[aria-selected="true"] .tab-ic { background: var(--mint); color: var(--ink); }
.tab[aria-selected="true"] .tab-num { color: var(--mint); }
.tab-name { flex: 1; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 40px; animation: fadeUp .45s var(--ease); }
.panel:focus-visible { outline-offset: -2px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.panel-intro { font-size: 17px; color: var(--soft-d); max-width: 62ch; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; margin: 22px 0 0; }
.meta div { border-top: 1px solid var(--line); padding-top: 12px; }
.meta dt { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.meta dd { margin: 4px 0 0; color: var(--muted-d); font-size: 15px; }
.sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.sub-3 { grid-template-columns: repeat(3, 1fr); }
.sub-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .2s, transform .2s var(--ease); }
.sub-card:hover { border-color: #33405A; transform: translateY(-2px); }
.sub-card h4 { font-size: 18px; margin: 16px 0 6px; }
.sub-card p { font-size: 15px; color: var(--muted-d); }
.sub-card .chip { width: 44px; height: 44px; }

/* Proceso */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 64px; counter-reset: s; }
.steps-line { position: absolute; left: 10%; right: 10%; top: 31px; height: 2px; background: #D3DAE0; }
.steps-fill { display: block; height: 100%; width: 0; background: var(--teal); transition: width .2s linear; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 0 22px 26px; margin-top: 32px; box-shadow: 0 1px 2px rgba(11,16,24,.06), 0 8px 24px rgba(11,16,24,.06); text-align: left; }
.step-n { display: grid; place-items: center; width: 64px; height: 64px; margin: -32px auto 18px; border-radius: 50%; background: var(--ink); color: var(--white); font: 700 20px var(--head); border: 5px solid var(--light); transition: background .3s, color .3s; }
.step.lit .step-n { background: var(--teal); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted-l); }

/* Entregables */
.deliver { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: stretch; }
.deliver-quote { background: var(--mint); color: var(--ink); border-radius: 18px; padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow-dark { color: var(--ink) !important; opacity: .75; }
.deliver-quote h2 { font-size: clamp(26px, 3vw, 36px); max-width: none; }
.d-list { display: grid; gap: 14px; }
.d-item { display: flex; gap: 18px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.d-item h3 { font-size: 19px; margin-bottom: 4px; }
.d-item p { color: var(--muted-d); font-size: 15px; }

/* Certificaciones */
.cert-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 48px; }
.cert-card { background: var(--white); border-radius: 18px; padding: 32px; box-shadow: 0 1px 2px rgba(11,16,24,.06), 0 8px 24px rgba(11,16,24,.06); }
.cert-card h3 { display: flex; align-items: center; gap: 14px; font-size: 21px; margin-bottom: 28px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 24px 16px; }
.badges li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.35; }
.badges img { width: 112px; height: 112px; object-fit: contain; transition: transform .3s var(--ease); }
.badges li:hover img { transform: translateY(-4px) scale(1.04); }
.prep { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; font-size: 16px; color: var(--muted-l); }

/* Por qué */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.why { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.why h3 { font-size: 19px; margin: 20px 0 8px; }
.why p { color: var(--muted-d); font-size: 15px; }
.claim { margin-top: 48px; font: 700 clamp(22px, 2.6vw, 30px)/1.25 var(--head); color: var(--mint); }

/* Contacto */
.contact { position: relative; padding: 120px 0; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; background: url("/assets/img/contact.webp") 75% center / cover no-repeat; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,16,24,.97) 0%, rgba(11,16,24,.88) 50%, rgba(11,16,24,.55) 100%); }
.contact-in { position: relative; display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; margin-bottom: 20px; max-width: 16ch; }
.contact-list { display: grid; gap: 14px; margin-top: 36px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.contact-list .chip { width: 44px; height: 44px; }
.contact-list a { color: var(--white); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--mint); }
.form { background: rgba(20, 27, 38, .92); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: grid; gap: 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.form h3 { font-size: 22px; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--soft-d); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 10px; border: 1px solid #33405A; background: var(--bg); color: var(--white); font: 16px var(--body); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(0, 224, 184, .2); }
.field [aria-invalid="true"] { border-color: #FF7A66; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-actions .btn { flex: 1 1 200px; }
.form-msg { min-height: 1.4em; font-size: 14px; color: var(--mint); }
.form-msg.err { color: #FF9A8A; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted-d); font-size: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--mint); }
.footer .logo { width: 38px; }

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; }
.nf-in { display: grid; justify-items: start; gap: 18px; padding: 48px 24px; }
.nf h1 { font-size: clamp(36px, 6vw, 60px); }

/* ---------- Animaciones al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .terminal { max-width: 560px; }
  .q-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
  .tab { flex: 0 0 auto; width: auto; scroll-snap-align: start; }
  .tab-num { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps-line { display: none; }
  .deliver, .cert-grid, .contact-in { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .menu { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; background: rgba(11, 16, 24, .97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .menu.open { opacity: 1; transform: none; visibility: visible; }
  .menu ul { flex-direction: column; gap: 4px; }
  .menu ul a { display: block; padding: 12px 0; font-size: 18px; }
  .nav { background: rgba(11, 16, 24, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 80px 0; }
  .hero { padding-top: 104px; }
  .hero-bg { background-position: 80% center; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(11,16,24,.9) 0%, rgba(11,16,24,.82) 100%); }
  .q-grid, .why-grid, .steps, .sub-grid, .sub-3 { grid-template-columns: 1fr; }
  .panel, .deliver-quote, .cert-card, .form { padding: 24px; }
  .brand span { display: none; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .term-body { font-size: 13px; min-height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
