:root {
  --navy: #0B1E33;
  --navy-deep: #071523;
  --panel: rgba(255, 255, 255, 0.03);
  --cyan: #6FD8E8;
  --cyan-dim: rgba(111, 216, 232, 0.4);
  --cyan-faint: rgba(111, 216, 232, 0.08);
  --fire: #FF7A00;
  --fire-dark: #C75E00;
  --ink: #EAF6FA;
  --ink-muted: rgba(234, 246, 250, 0.62);
  --ink-faint: rgba(234, 246, 250, 0.4);
  --whatsapp: #25D366;
  --radius: 4px;
  --container: 1160px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.6;
  background: var(--navy);
  background-image:
    repeating-linear-gradient(0deg, rgba(111,216,232,0.05) 0px, rgba(111,216,232,0.05) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(90deg, rgba(111,216,232,0.05) 0px, rgba(111,216,232,0.05) 1px, transparent 1px, transparent 44px);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #A7ECF4; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn::before, .btn::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--cyan);
  opacity: .8;
}
.btn::before { top: -4px; left: -4px; border-top: 2px solid; border-left: 2px solid; }
.btn::after { bottom: -4px; right: -4px; border-bottom: 2px solid; border-right: 2px solid; }

.btn--whatsapp {
  background: var(--fire);
  color: var(--navy-deep);
}
.btn--whatsapp:hover { background: #FF8F26; }

.btn--ghost {
  background: transparent;
  border-color: var(--cyan-dim);
  color: var(--cyan);
}
.btn--ghost:hover { border-color: var(--cyan); background: var(--cyan-faint); }

.btn--lg { padding: 17px 30px; font-size: 0.88rem; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 21, 35, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cyan-dim);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

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

.brand__icon-box {
  width: 50px;
  height: 50px;
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__icon { height: 32px; width: auto; }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
}

.brand__text small {
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--cyan);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a:not(.btn) {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink);
  font-size: 0.78rem;
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width .2s ease;
}
.nav a:not(.btn):hover { color: var(--cyan); }
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 100px;
  border-bottom: 1px solid var(--cyan-dim);
}

.hero--photo {
  background:
    linear-gradient(100deg, rgba(7, 21, 35, .95) 0%, rgba(7, 21, 35, .88) 42%, rgba(11, 30, 51, .62) 68%, rgba(11, 30, 51, .85) 100%),
    url("assets/hero.jpg") center 60% / cover no-repeat;
}

.hero__schematic {
  position: absolute;
  right: -60px;
  top: 40px;
  width: 560px;
  height: 460px;
  color: var(--cyan);
  opacity: .3;
  z-index: 0;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .76rem;
  font-weight: 500;
  color: var(--cyan);
  margin: 0 0 22px;
  display: inline-block;
  border: 1px solid var(--cyan-dim);
  padding: 8px 14px;
}
.eyebrow::before { content: "[ "; }
.eyebrow::after { content: " ]"; }

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.14;
  font-weight: 700;
  margin: 0 0 22px;
}

.text-accent {
  color: var(--cyan);
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
}

.hero__lead {
  font-size: 1.02rem;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 0 36px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Section headings */
.section-eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 500;
  color: var(--cyan);
  margin: 0 0 12px;
}
.section-eyebrow--light { color: var(--cyan); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 40px;
  color: var(--ink);
  max-width: 640px;
}
.section-title--light { color: var(--ink); }

/* Servicios */
.servicios { padding: 90px 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--panel);
  border: 1px dashed var(--cyan-dim);
  padding: 30px 26px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--cyan);
}
.card::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.card::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }
.card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.card__icon {
  width: 50px; height: 50px;
  border: 1px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-deep);
  color: var(--cyan);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }

.card h3 { margin: 0 0 10px; font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.card p { margin: 0; font-family: var(--font-mono); color: var(--ink-muted); font-size: .82rem; line-height: 1.7; }

/* Service cards with a real photo */
.card--photo {
  padding: 0;
  overflow: hidden;
}

.card__fig {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--cyan);
  background: rgba(7, 21, 35, .7);
  padding: 3px 8px;
  border: 1px solid var(--cyan-dim);
}

.card__photo {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) saturate(.85) contrast(1.05);
}

.card__icon--overlay {
  position: absolute;
  top: 138px;
  left: 26px;
  margin-bottom: 0;
}

.card--photo .card__body {
  padding: 30px 26px 26px;
}

/* Nosotros */
.nosotros { padding: 90px 0; border-bottom: 1px solid var(--cyan-dim); }

.nosotros__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.nosotros__media { position: relative; }
.nosotros__media::before, .nosotros__media::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--cyan);
  z-index: 1;
}
.nosotros__media::before { top: -8px; left: -8px; border-top: 2px solid; border-left: 2px solid; }
.nosotros__media::after { bottom: -8px; right: -8px; border-bottom: 2px solid; border-right: 2px solid; }

.nosotros__media img {
  width: 100%;
  filter: grayscale(15%) saturate(.85) contrast(1.05);
  border: 1px solid var(--cyan-dim);
}

.nosotros__content {
  display: grid;
  gap: 34px;
}

.nosotros__text p { font-family: var(--font-mono); color: var(--ink-muted); font-size: .95rem; line-height: 1.8; }

.nosotros__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat {
  background: var(--panel);
  border: 1px dashed var(--cyan-dim);
  padding: 22px 20px;
  position: relative;
}
.stat::before, .stat::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--cyan);
}
.stat::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.stat::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-family: var(--font-mono);
  color: var(--ink-muted);
  font-size: .78rem;
  line-height: 1.6;
}

/* Proyectos */
.proyectos { padding: 90px 0; border-bottom: 1px solid var(--cyan-dim); }

.cards--proyectos { margin-bottom: 56px; }

.project-card {
  border: 1px dashed var(--cyan-dim);
  padding: 34px 26px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--ink);
  background: var(--panel);
  position: relative;
}
.project-card::before, .project-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--cyan);
}
.project-card::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.project-card::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

.project-card__fig {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--ink-faint);
}

.project-card__icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  color: var(--cyan);
  margin-bottom: 16px;
}
.project-card__icon svg { width: 20px; height: 20px; }

.project-card__badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  border: 1px solid var(--cyan-dim);
  padding: 4px 12px;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: auto;
}

.project-card h3 { margin: 18px 0 0; font-size: 1.15rem; font-weight: 700; }

.alianzas {
  text-align: center;
  border-top: 1px solid var(--cyan-dim);
  padding-top: 44px;
}

.alianzas__title {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  color: var(--ink-faint);
  margin: 0 0 20px;
}

.alianzas__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.alianzas__list span {
  font-family: var(--font-mono);
  background: var(--panel);
  border: 1px solid var(--cyan-dim);
  padding: 10px 18px;
  font-weight: 500;
  font-size: .78rem;
  color: var(--ink-muted);
}

/* Contacto */
.contacto {
  padding: 90px 0;
  background: var(--navy-deep);
}

.contacto__inner { display: flex; justify-content: center; }
.contacto__info { max-width: 620px; text-align: left; }
.contacto__lead { font-family: var(--font-mono); color: var(--ink-muted); font-size: 1rem; margin-bottom: 34px; line-height: 1.8; }

.contacto__list {
  list-style: none;
  margin: 0 0 38px;
  padding: 0;
  display: grid;
  gap: 18px;
  font-family: var(--font-mono);
}
.contacto__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .92rem;
}
.contacto__list svg { flex-shrink: 0; color: var(--cyan); }
.contacto__list a:hover { text-decoration: underline; }

/* Footer */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--cyan-dim);
  color: var(--ink-faint);
  padding: 36px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .78rem;
}
.footer__logo {
  height: 60px;
  width: auto;
  margin: 0 auto 14px;
}
.footer p { margin: 4px 0; }

/* Floating WhatsApp button */
.float-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6);
  z-index: 90;
  transition: transform .15s ease;
}
.float-whatsapp:hover { transform: scale(1.08); }

/* Responsive */
@media (max-width: 860px) {
  .nosotros__inner { grid-template-columns: 1fr; }
  .hero__schematic { opacity: .16; width: 420px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--cyan-dim);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a:not(.btn) { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--cyan-faint); }
  .nav__cta { margin-top: 14px; width: 100%; justify-content: center; }

  .hero { padding: 90px 0 70px; }
  .hero__schematic { display: none; }
  .servicios, .nosotros, .proyectos, .contacto { padding: 64px 0; }

  .nosotros__stats { grid-template-columns: 1fr; }
}
