html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #ffffff;
}

.page-shell {
  background:
    radial-gradient(circle at top right, rgba(239, 139, 44, 0.12), transparent 24%),
    radial-gradient(circle at left 18%, rgba(31, 120, 191, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 38%, #ffffff 100%);
}

.empresa-section {
  background: transparent;
}

.micro-grid {
  background-image:
    linear-gradient(rgba(31, 120, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 120, 191, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.section-kicker::before {
  content: '';
  display: block;
  width: 4rem;
  height: 1px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, rgba(239, 139, 44, 0.9), rgba(239, 139, 44, 0));
}

.hero-frame {
  position: relative;
}

.hero-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  border: 1px solid rgba(31, 120, 191, 0.18);
  pointer-events: none;
}

.hero-frame::after {
  content: '';
  position: absolute;
  inset: 1rem;
  border-radius: 1.35rem;
  border: 1px dashed rgba(239, 139, 44, 0.28);
  pointer-events: none;
}

.paper-section {
  position: relative;
  background: #f8fbff;
  color: #1f78bf;
}

.services-section {
  background-image:
    linear-gradient(rgba(248, 251, 255, 0.82), rgba(248, 251, 255, 0.82)),
    url('../images/technical-paper.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover, cover;
}

.services-section::before {
  background-size: 24px 24px;
  opacity: 0.18;
}

.paper-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 120, 191, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 120, 191, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.34;
  pointer-events: none;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.service-card:hover {
  transform: translateY(-7px);
  filter: saturate(1.06);
}

.service-grid {
  align-items: stretch;
}

.service-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 9.25rem;
}

.icon-panel {
  display: flex;
  height: 4rem;
  width: 4rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 1.2rem;
}

.service-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Material Symbols Rounded';
  font-size: 2rem;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 40;
}

.service-copy {
  margin-top: 1rem;
  max-width: 34rem;
}

.service-inline-list {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.2rem;
}

.service-inline-list li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.45;
}

.service-inline-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52rem;
  height: 0.4rem;
  width: 0.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.78);
}

.service-panel {
  border-radius: 1.8rem;
  border: 1px solid rgba(31, 120, 191, 0.12);
  background: rgba(255, 255, 255, 0.74);
  padding: 1.25rem;
  box-shadow: 0 18px 48px rgba(31, 120, 191, 0.08);
  backdrop-filter: blur(14px);
}

.service-panel-stat {
  border-radius: 1.15rem;
  border: 1px solid rgba(31, 120, 191, 0.12);
  background: rgba(248, 251, 255, 0.9);
  padding: 0.95rem 1rem;
}

.service-panel-stat strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #1f78bf;
}

.service-panel-note {
  margin-top: 1rem;
  border-top: 1px solid rgba(31, 120, 191, 0.1);
  padding-top: 1rem;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.45rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-card::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  width: 2.8rem;
  height: 2.8rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  opacity: 0.14;
  pointer-events: none;
}

.service-card[data-tone='ink'] {
  background: linear-gradient(180deg, rgba(31, 120, 191, 0.96), rgba(46, 136, 207, 0.96));
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(31, 120, 191, 0.16);
}

.service-card[data-tone='ink']:hover {
  box-shadow: 0 30px 68px rgba(31, 120, 191, 0.26);
}

.service-card[data-tone='paper'] {
  background: rgba(255, 255, 255, 0.98);
  color: #1f78bf;
  border: 1px solid rgba(31, 120, 191, 0.14);
  box-shadow: 0 18px 48px rgba(31, 120, 191, 0.08);
}

.service-card[data-tone='paper']:hover {
  box-shadow: 0 28px 62px rgba(31, 120, 191, 0.16);
}

.service-card[data-tone='signal'] {
  background: linear-gradient(180deg, rgba(239, 139, 44, 0.96), rgba(227, 124, 29, 0.96));
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(239, 139, 44, 0.16);
}

.service-card[data-tone='signal']:hover {
  box-shadow: 0 30px 68px rgba(239, 139, 44, 0.26);
}

.service-card[data-tone='line'] {
  background: rgba(31, 120, 191, 0.08);
  color: #1f78bf;
  border: 1px solid rgba(31, 120, 191, 0.16);
}

.service-card[data-tone='line']:hover {
  box-shadow: 0 28px 62px rgba(31, 120, 191, 0.16);
}

.feature-card,
.contact-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.feature-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
}

.feature-card:hover {
  box-shadow: 0 28px 60px rgba(31, 120, 191, 0.18);
  filter: saturate(1.05);
}

.contact-card:hover {
  box-shadow: 0 24px 52px rgba(31, 120, 191, 0.16);
}

.service-card[data-tone='paper'] .service-tag,
.service-card[data-tone='line'] .service-tag {
  border-color: rgba(31, 120, 191, 0.12);
  background: rgba(31, 120, 191, 0.08);
  color: #1f78bf;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-top: 1px solid currentColor;
  border-top-color: rgba(255, 255, 255, 0.14);
  padding-top: 0.8rem;
}

.service-list li::before {
  content: '';
  margin-top: 0.65rem;
  height: 0.45rem;
  width: 0.45rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.74);
}

.service-card .service-list {
  margin-top: auto;
}

.service-card[data-tone='paper'] .service-list li,
.service-card[data-tone='line'] .service-list li {
  border-top-color: rgba(31, 120, 191, 0.12);
}

.service-card[data-tone='paper'] .service-list li::before,
.service-card[data-tone='line'] .service-list li::before {
  background: #ef8b2c;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  padding: 0.7rem 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.service-chip-icon {
  display: inline-flex;
  height: 1.1rem;
  width: 1.1rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-family: 'Material Symbols Rounded';
  font-size: 1.05rem;
  line-height: 1;
  color: #efb16f;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.service-chip-label {
  line-height: 1.15;
}

.brand-badge {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px solid rgba(31, 120, 191, 0.12);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 1));
  padding: 0.9rem 1rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(31, 120, 191, 0.08);
}

.brand-badge img {
  max-height: 2rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

body.has-reveal .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 2rem, 0);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

body.has-reveal .reveal-on-scroll[data-reveal='left'] {
  transform: translate3d(-2.5rem, 1.25rem, 0);
}

body.has-reveal .reveal-on-scroll[data-reveal='right'] {
  transform: translate3d(2.5rem, 1.25rem, 0);
}

body.has-reveal .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  body.has-reveal .reveal-on-scroll,
  body.has-reveal .reveal-on-scroll[data-reveal='left'],
  body.has-reveal .reveal-on-scroll[data-reveal='right'] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1023px) {
  .paper-section::before {
    opacity: 0.2;
  }

  .services-section {
    background-position: center;
    background-size: cover;
  }

  .empresa-section {
    background-position: center;
    background-size: cover;
  }

  .service-head {
    min-height: 0;
    flex-direction: column;
  }

  .icon-panel {
    height: 3.5rem;
    width: 3.5rem;
  }

  .service-copy {
    min-height: 0;
  }
}
