/* ASCICOM Tech Consulting — Global styles
   Sistema: tipografía Geist + Geist Mono, paleta naranja signature + neutros */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  /* Color tokens (naranja por defecto, sobreescritos por los tweaks) */
  --accent: #F26B1A;
  --accent-soft: #FF8A3D;
  --accent-deep: #C24E0B;
  --accent-glow: rgba(242, 107, 26, 0.18);

  /* Neutros */
  --ink: #0A0A0A;
  --ink-2: #161616;
  --ink-3: #1F1F1F;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --paper: #FAF9F7;
  --paper-2: #F2F0EC;
  --paper-3: #E6E3DD;
  --text-on-dark: #F4F2EE;
  --text-on-dark-mute: rgba(244, 242, 238, 0.62);
  --text-on-light: #0A0A0A;
  --text-on-light-mute: rgba(10, 10, 10, 0.58);

  /* Tipografía */
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 6px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.18);

  /* Easing */
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-in-out: cubic-bezier(.7,0,.3,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--text-on-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Container ─────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Header / Nav ─────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  --brand-name: #F4F2EE;
  --brand-tag: #F26B1A;
}
.brand--light { --brand-name: #0A0A0A; }
.brand__logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.28));
}
.brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: .95;
  width: 126px;
  flex: 0 0 126px;
  white-space: nowrap;
}
.brand__name .name {
  color: var(--brand-name);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand__name .brand__tag {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 9.8px;
  letter-spacing: 0.14em;
  color: var(--brand-tag);
  margin-top: 4px;
  text-transform: uppercase;
  line-height: 1;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-dark-mute);
  border-radius: 8px;
  transition: color .18s var(--ease-out), background .18s var(--ease-out);
}
.nav a:hover { color: var(--text-on-dark); }
.nav a.active { color: var(--text-on-dark); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: all .18s var(--ease-out);
  white-space: nowrap;
  background: transparent;
  color: inherit;
}
.btn svg { transition: transform .2s var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--accent);
  color: #0A0A0A;
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 8px 24px var(--accent-glow);
  transform: translateY(-1px);
}
.btn--ghost-dark {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--line-strong);
}
.btn--ghost-dark:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.24);
}
.btn--ghost-light {
  background: transparent;
  color: var(--text-on-light);
  border-color: rgba(0,0,0,.16);
}
.btn--ghost-light:hover {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.32);
}
.btn--lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

/* ── Floating WhatsApp ───────────────────── */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: grid;
  place-items: center;
  align-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 22%, rgba(255,176,88,.85) 0%, rgba(255,112,32,.94) 42%, rgba(219,78,8,1) 100%);
  color: #FFFFFF;
  box-shadow:
    0 18px 34px rgba(0,0,0,.3),
    0 14px 34px rgba(242, 107, 26, .28),
    inset 0 -3px 0 rgba(255,255,255,.18),
    inset 0 1px 0 rgba(255,255,255,.24);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), filter .18s var(--ease-out);
}
.whatsapp-float:hover {
  filter: saturate(1.08) brightness(1.03);
  box-shadow:
    0 22px 42px rgba(0,0,0,.34),
    0 18px 40px rgba(242, 107, 26, .34),
    inset 0 -3px 0 rgba(255,255,255,.2),
    inset 0 1px 0 rgba(255,255,255,.28);
  transform: translateY(-3px);
}
.whatsapp-float svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
}
.whatsapp-float span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Kicker (mono uppercase label) ─────── */
.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.kicker--center::before { display: none; }
.kicker--center {
  letter-spacing: 0.22em;
  font-size: 11px;
  color: rgba(10,10,10,0.5);
}

/* ── Section ───────────────────────────── */
.section {
  padding: clamp(64px, 10vw, 120px) 0;
}
.section--light { background: var(--paper); color: var(--text-on-light); }
.section--paper { background: var(--paper-2); color: var(--text-on-light); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }

.section-title {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 18px 0 14px;
  text-wrap: balance;
}
.section-lead {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-light-mute);
  text-wrap: pretty;
}
.section--dark .section-lead { color: var(--text-on-dark-mute); }
.section-head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}
.section-head--center .section-lead { margin: 0 auto; }

/* ── Hexagon mark ─────────────────────── */
.hex {
  display: grid;
  place-items: center;
  position: relative;
}
.hex svg { display: block; }

/* ── Reveal animation ─────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal-stagger.is-in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ── Footer ─────────────────────────── */
.site-footer {
  background: #050505;
  color: var(--text-on-dark);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 56px;
}
.site-footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a {
  color: var(--text-on-dark-mute);
  font-size: 14px;
  transition: color .15s var(--ease-out);
}
.site-footer a:hover { color: var(--text-on-dark); }
.site-footer__about {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-on-dark-mute);
  margin: 18px 0 24px;
  max-width: 320px;
}
.site-footer__social {
  display: flex;
  gap: 10px;
}
.site-footer__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text-on-dark-mute);
  transition: all .18s var(--ease-out);
}
.site-footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.site-footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-on-dark-mute);
}
.site-footer__bottom a { margin-left: 24px; }
.iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 13px;
  margin-top: 14px;
}
.iso-badge svg { color: var(--accent); }
.iso-badge .iso-num { font-weight: 600; color: var(--text-on-dark); }
.iso-badge .iso-lbl { color: var(--text-on-dark-mute); font-size: 11px; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-on-dark-mute);
}
.contact-line svg { color: var(--accent); flex-shrink: 0; }

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 700px) {
  .site-footer {
    padding: 64px 0 28px;
  }
  .site-footer__grid {
    display: flex;
    flex-direction: column;
    gap: 34px;
  }
  .site-footer__grid > div {
    width: 100%;
    min-width: 0;
  }
  .site-footer__about {
    max-width: none;
  }
  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
  }
  .site-footer__bottom a {
    display: inline-flex;
    margin-left: 0;
    margin-right: 20px;
    line-height: 1.4;
  }
  .contact-line {
    align-items: flex-start;
    overflow-wrap: anywhere;
  }
}
