/* ==========================================================================
   PEXCOM — Single Page Styles
   ========================================================================== */

:root {
  --color-primary: #083e45;
  --color-primary-light: #0a5560;
  --color-primary-dark: #062e33;
  --color-accent: #f77f00;
  --color-accent-light: #f5821f;
  --color-highlight: #4bd7de;
  --color-highlight-dim: rgba(75, 215, 222, 0.15);
  --color-bg: #f8fafb;
  --color-bg-alt: #eef3f4;
  --color-white: #ffffff;
  --color-text: #1a2e32;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-success: #059669;
  --color-error: #dc2626;

  --font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --navbar-height: 140px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(8, 62, 69, 0.08);
  --shadow-md: 0 4px 20px rgba(8, 62, 69, 0.1);
  --shadow-lg: 0 12px 40px rgba(8, 62, 69, 0.15);
  --transition: 250ms ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-light);
}

ul {
  list-style: none;
}

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

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: var(--color-primary);
  box-shadow: none;
  transition:
    background var(--transition),
    box-shadow var(--transition);
}

.navbar--scrolled {
  background: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
  transform-origin: left center;
  transition: transform var(--transition);
}

.navbar__logo:hover {
  transform: scale(1.04);
  color: inherit;
}

.navbar__logo-img,
.navbar__logo img {
  height: 120px;
  width: auto;
  transform-origin: center center;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.45))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  animation:
    logo-enter 0.7s ease-out both,
    logo-float 3.6s ease-in-out 0.7s infinite;
}

@keyframes logo-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar__logo:hover {
    transform: none;
  }

  .navbar__logo-img,
  .navbar__logo img {
    animation: none;
  }
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.navbar__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar__list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar__link {
  padding: 0.65rem 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 1.40625rem; /* 1.125rem + 25% */
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition:
    color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.navbar__link:hover {
  color: var(--color-highlight);
  background: rgba(75, 215, 222, 0.12);
}

.navbar__link.active {
  color: var(--color-highlight);
  background: rgba(75, 215, 222, 0.2);
  box-shadow: inset 0 -3px 0 var(--color-highlight);
}

.navbar__link--cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  margin-left: 0.5rem;
  border-radius: var(--radius-md);
  font-size: 1.40625rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
}

.navbar__link--cta:hover {
  background: var(--color-accent-light);
  color: var(--color-white) !important;
}

.navbar__link--cta.active {
  background: var(--color-accent-light);
  color: var(--color-white) !important;
  box-shadow: 0 0 0 2px var(--color-highlight);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  min-height: 48px;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(247, 127, 0, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--full {
  width: 100%;
}

.btn__loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.loading .btn__text {
  display: none;
}

.btn.loading .btn__loader {
  display: inline-block !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 50%,
    #0c6b75 100%
  );
  padding-top: var(--navbar-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
}

.hero__link {
  opacity: 0.28;
  stroke-dasharray: 8 12;
  animation: network-flow 16s linear infinite;
}

.hero__link--2 {
  animation-delay: -2s;
}
.hero__link--3 {
  animation-delay: -4s;
}
.hero__link--4 {
  animation-delay: -6s;
}
.hero__link--5 {
  animation-delay: -1.5s;
}
.hero__link--6 {
  animation-delay: -3.5s;
}
.hero__link--7 {
  animation-delay: -5s;
}
.hero__link--8 {
  animation-delay: -7s;
}
.hero__link--9 {
  animation-delay: -2.5s;
}
.hero__link--10 {
  animation-delay: -8s;
}
.hero__link--11 {
  animation-delay: -4.5s;
}
.hero__link--12 {
  animation-delay: -9s;
}
.hero__link--13 {
  animation-delay: -1s;
}
.hero__link--14 {
  animation-delay: -6.5s;
}

.hero__node {
  opacity: 0.3;
  animation: network-pulse 14s ease-in-out infinite;
}

.hero__node--2 {
  animation-delay: -1.5s;
}
.hero__node--3 {
  animation-delay: -3s;
}
.hero__node--4 {
  animation-delay: -4.5s;
}
.hero__node--5 {
  animation-delay: -2s;
}
.hero__node--6 {
  animation-delay: -5.5s;
}
.hero__node--7 {
  animation-delay: -7s;
}
.hero__node--8 {
  animation-delay: -3.5s;
}
.hero__node--9 {
  animation-delay: -8s;
}
.hero__node--10 {
  animation-delay: -1s;
}
.hero__node--11 {
  animation-delay: -6s;
}
.hero__node--12 {
  animation-delay: -9s;
}
.hero__node--13 {
  animation-delay: -4s;
}

@keyframes network-pulse {
  0%,
  100% {
    opacity: 0.22;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes network-flow {
  0% {
    stroke-dashoffset: 0;
    opacity: 0.18;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    stroke-dashoffset: -40;
    opacity: 0.18;
  }
}

@media (max-width: 768px) {
  .hero__network {
    opacity: 0.28;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

.hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(75, 215, 222, 0.15);
  color: var(--color-highlight);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid rgba(75, 215, 222, 0.3);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.trust-badge {
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.hero__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.hero__pillar {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.hero__pillar:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(75, 215, 222, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  color: inherit;
}

.hero__pillar-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.hero__pillar-icon svg {
  width: 26px;
  height: 26px;
}

.hero__pillar-icon--software {
  background: linear-gradient(135deg, var(--color-primary-light), #0c6b75);
  box-shadow: 0 0 0 1px rgba(75, 215, 222, 0.25);
}

.hero__pillar-icon--hardware {
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-light)
  );
}

.hero__pillar-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.hero__pillar-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.hero__pillar-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-highlight);
}

.hero__pillar:hover .hero__pillar-link {
  color: var(--color-accent-light);
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats {
  display: none;
  background: var(--color-white);
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-top: -1px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stat__suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-accent);
}

.stat__label {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 6rem 0;
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section__tag {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  background: var(--color-highlight-dim);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  position: relative;
  isolation: isolate;
  background: #083e45;
  overflow: hidden;
}

.about__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Duotono naranja + teal: sin verde Matrix */
  background: linear-gradient(
    145deg,
    #083e45 0%,
    #f77f00 42%,
    #4bd7de 100%
  );
}

.about__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(1) contrast(1.1) brightness(0.8);
  mix-blend-mode: luminosity;
  transform: scale(1.05);
  opacity: 0.65;
}

.about__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(8, 62, 69, 0.9) 0%,
    rgba(247, 127, 0, 0.38) 45%,
    rgba(8, 62, 69, 0.88) 100%
  );
}

.about__inner {
  position: relative;
  z-index: 2;
}

.about .section__tag {
  background: rgba(247, 127, 0, 0.22);
  color: #ffc078;
}

.about .section__title {
  color: var(--color-white);
}

.about .section__desc {
  color: rgba(255, 255, 255, 0.78);
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.about .info-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.about .info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.info-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.info-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.info-card__icon {
  width: 40px;
  height: 40px;
  background: var(--color-highlight-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 0.875rem;
}

.info-card__icon svg {
  width: 22px;
  height: 22px;
}

.info-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.375rem;
}

.info-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.why {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.why__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-light)
  );
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.why__item strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.why__item p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  background: var(--color-white);
  padding-bottom: 0;
}

.services .section__header {
  margin-bottom: 3rem;
}

.services__block {
  margin-bottom: 4rem;
}

.services__block:last-child {
  margin-bottom: 0;
}

.services__band {
  position: relative;
  isolation: isolate;
  padding: 4rem 0;
  margin-top: 1rem;
  overflow: hidden;
  min-height: 28rem;
}

.services__band + .services__band {
  margin-top: 0;
}

.services__collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
  pointer-events: none;
}

.services__collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Disimular código binario: blur + tinte teal + opacidad */
.services__collage-img--muted {
  filter: blur(3px) brightness(0.55) saturate(0.35) hue-rotate(155deg);
  opacity: 0.7;
  transform: scale(1.08);
  object-position: 70% center;
}

/* Software: 4 fotos — AI grande; binario en panel pequeño */
#desarrollo-software .services__collage img:nth-child(1) {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
}

#desarrollo-software .services__collage img:nth-child(2) {
  grid-column: 4 / 7;
  grid-row: 1;
}

#desarrollo-software .services__collage img:nth-child(3) {
  grid-column: 4 / 5;
  grid-row: 2;
}

#desarrollo-software .services__collage img:nth-child(4) {
  grid-column: 5 / 7;
  grid-row: 2;
}

/* Hardware: 4 fotos — collage asimétrico */
#hardware-instalacion .services__collage img:nth-child(1) {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
}

#hardware-instalacion .services__collage img:nth-child(2) {
  grid-column: 4 / 7;
  grid-row: 1;
}

#hardware-instalacion .services__collage img:nth-child(3) {
  grid-column: 4 / 5;
  grid-row: 2;
}

#hardware-instalacion .services__collage img:nth-child(4) {
  grid-column: 5 / 7;
  grid-row: 2;
}

.services__band-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(8, 62, 69, 0.88) 0%,
    rgba(8, 62, 69, 0.78) 45%,
    rgba(10, 85, 96, 0.82) 100%
  );
  pointer-events: none;
}

#desarrollo-software .services__band-shade {
  background: linear-gradient(
    135deg,
    rgba(8, 62, 69, 0.9) 0%,
    rgba(8, 62, 69, 0.84) 50%,
    rgba(10, 85, 96, 0.86) 100%
  );
}

.services__band-inner {
  position: relative;
  z-index: 2;
}

.services__block-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-border);
}

.services__block-header--on-dark {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.services__block-header--on-dark .services__block-title {
  color: var(--color-white);
}

.services__block-header--on-dark .services__block-desc {
  color: rgba(255, 255, 255, 0.8);
}

.services__block-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.services__block-icon svg {
  width: 28px;
  height: 28px;
}

.services__block-icon--software {
  background: rgba(75, 215, 222, 0.2);
  color: var(--color-highlight);
}

.services__block-icon--hardware {
  background: rgba(247, 127, 0, 0.25);
  color: var(--color-accent-light);
}

.services__block-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.375rem;
}

.services__block-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
}

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

.services__grid--pair {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-top: 3px solid transparent;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card--glass {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 3px solid var(--color-highlight);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border);
  border-top-color: var(--color-highlight);
  background: var(--color-white);
}

.service-card--glass:hover {
  background: var(--color-white);
  border-color: rgba(75, 215, 222, 0.45);
  border-top-color: var(--color-accent);
}

.service-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-primary);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.05);
}

.service-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.service-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
  flex: 1;
}

.service-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: color var(--transition);
}

.service-card__link:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  position: relative;
  isolation: isolate;
  background: #f5f8f9;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Duotono blanco: base clara */
  background: linear-gradient(145deg, #ffffff 0%, #f0f4f5 45%, #ffffff 100%);
}

.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  filter: grayscale(1) contrast(1.05) brightness(1.15);
  mix-blend-mode: multiply;
  transform: scale(1.04);
  opacity: 0.35;
}

.contact__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.65) 100%
  );
}

.contact__inner {
  position: relative;
  z-index: 2;
}

.contact .section__tag {
  background: rgba(8, 62, 69, 0.08);
  color: var(--color-primary);
}

.contact .section__title {
  color: var(--color-primary);
}

.contact .section__desc {
  color: var(--color-text-muted);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__detail svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__detail strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.125rem;
}

.contact__detail p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.contact__detail a {
  color: var(--color-text-muted);
}

.contact__detail a:hover {
  color: var(--color-accent);
}

.contact__map {
  margin-top: 2.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 21 / 9;
  max-height: 360px;
  width: 100%;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
  transition: filter 0.3s ease;
}

.contact__map:hover iframe {
  filter: none;
}

.contact__form {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.375rem;
}

.form-group label span {
  color: var(--color-accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  min-height: 48px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-highlight);
  box-shadow: 0 0 0 3px var(--color-highlight-dim);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--color-error);
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.form-hint.error {
  color: var(--color-error);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.captcha__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.captcha__question {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  min-height: 48px;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  user-select: none;
}

.captcha__refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-primary);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.captcha__refresh:hover {
  background: var(--color-highlight-dim);
  border-color: var(--color-highlight);
  color: var(--color-primary);
}

.captcha__refresh svg {
  width: 20px;
  height: 20px;
}

.captcha__row input {
  flex: 1;
  min-width: 6rem;
  max-width: 8rem;
}

.form-actions {
  margin-top: 0.5rem;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.form-feedback.error {
  display: block;
  background: rgba(220, 38, 38, 0.08);
  color: var(--color-error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.form-consent {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer__logo,
.footer__brand img {
  filter: brightness(0) invert(1);
  margin-bottom: 0.75rem;
}

.footer__tagline {
  font-size: 0.875rem;
  max-width: 280px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--color-highlight);
}

.footer__legal {
  text-align: right;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__legal p + p {
  margin-top: 0.25rem;
}

/* ==========================================================================
   Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 0.15s;
}

.reveal--delay-2 {
  transition-delay: 0.3s;
}

.reveal--delay-3 {
  transition-delay: 0.45s;
}

.service-card.reveal {
  transition-delay: calc(var(--i, 0) * 0.08s);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }

  .hero__visual {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }

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

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid--pair {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

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

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

  .footer__legal {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 100px;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__nav {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform var(--transition),
      opacity var(--transition),
      visibility var(--transition);
  }

  .navbar__nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar__list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .navbar__link {
    color: rgba(255, 255, 255, 0.92);
    padding: 0.875rem 1rem;
    width: 100%;
    font-size: 1.328125rem; /* 1.0625rem + 25% */
  }

  .navbar__link:hover {
    color: var(--color-highlight);
    background: rgba(75, 215, 222, 0.12);
  }

  .navbar__link.active {
    color: var(--color-highlight);
    background: rgba(75, 215, 222, 0.2);
    box-shadow: inset 3px 0 0 var(--color-highlight);
  }

  .navbar__link--cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  .navbar__logo img {
    height: 90px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .services__band {
    padding: 3rem 0;
    min-height: auto;
  }

  .services__collage {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, minmax(100px, 1fr));
  }

  #desarrollo-software .services__collage img:nth-child(1),
  #desarrollo-software .services__collage img:nth-child(2),
  #desarrollo-software .services__collage img:nth-child(3),
  #desarrollo-software .services__collage img:nth-child(4),
  #hardware-instalacion .services__collage img:nth-child(1),
  #hardware-instalacion .services__collage img:nth-child(2),
  #hardware-instalacion .services__collage img:nth-child(3),
  #hardware-instalacion .services__collage img:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .services__grid,
  .services__grid--pair {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact__map {
    max-height: 260px;
    aspect-ratio: 16 / 9;
  }

  .contact__form {
    padding: 1.5rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__nav {
    align-items: center;
  }

  .footer__tagline {
    margin: 0 auto;
  }

  .footer__legal {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

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

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

  .why {
    padding: 1.5rem;
  }
}
