/* ============================================================
   ITCorp.one — Dark Tech Theme
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-2: #0e1729;
  --surface: #121d33;
  --surface-2: #17233d;
  --border: rgba(148, 163, 184, 0.16);
  --text: #e6edf7;
  --muted: #94a3b8;
  --blue: #5690ff;
  --blue-2: #3271e6;
  --cyan: #22d3ee;
  --purple: #8c83f7;
  --purple-2: #655be2;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5d;
  --grad-blue: linear-gradient(135deg, #5690ff 0%, #3271e6 100%);
  --grad-purple: linear-gradient(135deg, #8c83f7 0%, #655be2 100%);
  --grad-cyan: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --container: 1180px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; padding: 15px 24px; font-size: 16px; }
.btn--whatsapp { background: var(--whatsapp); color: #052e16; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.38); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; }
.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grad-blue);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 6px 18px rgba(86, 144, 255, 0.35);
}
.logo__text { letter-spacing: -0.5px; }
.logo__dot { color: var(--blue); }

.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__list a {
  display: block;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__list a:hover { color: var(--text); background: rgba(148, 163, 184, 0.1); }

.header__actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}
.lang-toggle:hover { color: var(--cyan); border-color: var(--cyan); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
}
.hamburger span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 72px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 460px at 12% 8%, rgba(86, 144, 255, 0.18), transparent 60%),
    radial-gradient(640px 440px at 88% 22%, rgba(101, 91, 226, 0.16), transparent 60%),
    radial-gradient(560px 420px at 60% 100%, rgba(34, 211, 238, 0.10), transparent 60%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  margin-bottom: 22px;
}

.hero__title { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.12; font-weight: 800; letter-spacing: -1.2px; }
.hero__title--accent { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__subtitle { margin-top: 20px; font-size: 17px; color: var(--muted); max-width: 540px; }

.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__meta-item { font-size: 13.5px; color: var(--muted); }
.hero__meta-item::first-line { }

.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.hero__frame img { width: 100%; height: auto; }

.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(18, 29, 51, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12.5px;
}
.hero__float strong { display: block; font-size: 13px; }
.hero__float small { color: var(--muted); font-size: 11.5px; }
.hero__float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 18px;
  background: rgba(86, 144, 255, 0.14);
}
.hero__float--1 { top: 8%; left: -26px; }
.hero__float--2 { bottom: 10%; right: -20px; }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats__item {
  padding: 34px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stats__item:last-child { border-right: none; }
.stats__number {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stats__plus { font-size: 24px; font-weight: 800; color: var(--cyan); }
.stats__slash { font-size: 22px; font-weight: 800; color: var(--cyan); }
.stats__label { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- Secciones genéricas ---------- */
.section { padding: 96px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(86, 144, 255, 0.1);
  border: 1px solid rgba(86, 144, 255, 0.28);
  margin-bottom: 16px;
}
.section__title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; }
.section__desc { margin-top: 16px; color: var(--muted); font-size: 16px; }

/* ---------- Tarjetas ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(86, 144, 255, 0.45);
  box-shadow: var(--shadow);
}

/* ---------- Servicios ---------- */
.services { background: var(--bg-2); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { display: flex; flex-direction: column; }
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  margin-bottom: 22px;
}
.service-card__icon--blue { background: rgba(86, 144, 255, 0.14); color: var(--blue); }
.service-card__icon--cyan { background: rgba(34, 211, 238, 0.14); color: var(--cyan); }
.service-card__icon--purple { background: rgba(140, 131, 247, 0.14); color: var(--purple); }
.service-card__title { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.service-card__desc { color: var(--muted); font-size: 14.5px; }
.service-card__list { margin-top: 18px; display: grid; gap: 9px; }
.service-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--muted);
}
.service-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-weight: 700;
}
.service-card__link {
  margin-top: auto;
  padding-top: 22px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--blue);
  transition: color 0.2s ease;
}
.service-card__link:hover { color: var(--cyan); }

/* ---------- Portafolio ---------- */
.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.portfolio-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 50px 22px 20px;
  background: linear-gradient(transparent, rgba(11, 18, 32, 0.92));
  z-index: 1;
}
.portfolio-item__tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  margin-bottom: 10px;
}
.portfolio-item h3 { font-size: 19px; font-weight: 700; }
.portfolio-item p { margin-top: 4px; font-size: 13.5px; color: var(--muted); max-width: 380px; }

/* ---------- Proceso ---------- */
.process { background: var(--bg-2); }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.process-step:hover { transform: translateY(-6px); border-color: rgba(140, 131, 247, 0.45); }
.process-step__num {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: 10px;
  color: var(--purple);
  background: rgba(140, 131, 247, 0.12);
  margin-bottom: 16px;
}
.process-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--muted); }

/* ---------- Testimonios ---------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.testimonial:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.4); box-shadow: var(--shadow); }
.testimonial__stars { color: #fbbf24; letter-spacing: 3px; font-size: 15px; }
.testimonial__text { color: var(--muted); font-size: 14.5px; font-style: italic; flex: 1; }
.testimonial__author { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--border); padding-top: 18px; }
.testimonial__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-purple);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.testimonial__author strong { display: block; font-size: 15px; }
.testimonial__author small { color: var(--muted); font-size: 12.5px; }

/* ---------- Contacto ---------- */
.contact { background: var(--bg-2); }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.contact__card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  gap: 26px;
}
.contact__item { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  flex-shrink: 0;
}
.contact__icon--wa { background: rgba(37, 211, 102, 0.12); color: var(--whatsapp); }
.contact__icon--mail { background: rgba(86, 144, 255, 0.12); color: var(--blue); }
.contact__icon--clock { background: rgba(140, 131, 247, 0.12); color: var(--purple); }
.contact__item strong { display: block; font-size: 16px; }
.contact__item p { color: var(--muted); font-size: 14px; }
.contact__link { display: inline-block; margin-top: 4px; font-weight: 600; font-size: 13.5px; color: var(--blue); }
.contact__link:hover { color: var(--cyan); }

.contact__formcard { padding: 34px; }
.contact__formtitle { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__field { margin-bottom: 16px; }
.contact__field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.contact__field input,
.contact__field select,
.contact__field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact__field input:focus,
.contact__field select:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(86, 144, 255, 0.18);
}
.contact__field textarea { resize: vertical; min-height: 96px; }
.contact__formnote { margin-top: 12px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 320px; }
.footer__col h4 { font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { color: var(--muted); font-size: 14px; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer__bottom p { color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); background: var(--whatsapp-dark); }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { gap: 40px; }
  .hero__float--1 { left: 0; }
  .hero__float--2 { right: 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(11, 18, 32, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px 26px;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__list a { padding: 13px 14px; font-size: 16px; }
  .hamburger { display: inline-flex; }
  .header__actions .btn--whatsapp { display: none; }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 560px; margin: 0 auto; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item { border-bottom: 1px solid var(--border); }
  .stats__item:nth-child(2) { border-right: none; }
  .stats__item:nth-child(3), .stats__item:nth-child(4) { border-bottom: none; }
  .services__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio-item { min-height: 0; }
  .process__grid { grid-template-columns: 1fr; }
  .contact__row { grid-template-columns: 1fr; }
  .hero__float { padding: 10px 13px; }
  .hero__float--1 { left: -8px; }
  .hero__float--2 { right: -8px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}
