/* =========================================================================
   AD2N CLOUD - SERVICIOS TECNOLOGICOS INDEPENDENT STYLESHEET
   File: css/servicios-tecnologicos-custom.css
   ========================================================================= */

:root {
  --st-bg-dark: #060913;
  --st-bg-card: rgba(10, 15, 30, 0.42);
  --st-border-glass: rgba(255, 255, 255, 0.12);
  --st-accent-magenta: #D50B52;
  --st-accent-cyan: #00B4D8;
  --st-ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Wrapper & Deep Dark Background */
.st-section-wrapper {
  position: relative;
  width: 100%;
  background:
    radial-gradient(circle at 8% 18%, rgba(0, 180, 216, 0.12), transparent 28rem),
    radial-gradient(circle at 94% 54%, rgba(213, 11, 82, 0.13), transparent 32rem),
    linear-gradient(145deg, #040817 0%, #060913 52%, #071126 100%) !important;
  color: #ffffff !important;
  overflow: hidden;
  padding: 85px 0;
}

.st-section-wrapper h1,
.st-section-wrapper h2,
.st-section-wrapper h3,
.st-section-wrapper h4,
.st-section-wrapper .st-service-title,
.st-section-wrapper .st-split-title {
  color: #ffffff !important;
}

.st-section-wrapper p,
.st-section-wrapper .service-description {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Fine Minimal Scroll-Drawn Red Motion Network */
.st-scroll-motion-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.st-scroll-motion-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.st-scroll-path {
  fill: none;
  stroke: #D50B52;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(213, 11, 82, 0.65));
  opacity: 0.85;
  will-change: stroke-dashoffset;
}

.st-scroll-path:nth-child(even) {
  stroke: #00B4D8;
  filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.62));
  opacity: 0.62;
}

/* Glassmorphism Cards for Servicios Tecnológicos */
.st-glass-card,
.st-service-item {
  position: relative;
  background: rgba(10, 15, 30, 0.42) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  padding: 35px 30px !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.4s var(--st-ease-smooth), border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease !important;
  overflow: hidden;
  z-index: 2;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}

.st-glass-card::before,
.st-service-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(213, 11, 82, 0.45), rgba(0, 180, 216, 0.3) 50%, rgba(10, 15, 30, 0.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.st-glass-card::after,
.st-service-item::after {
  display: none !important;
}

.st-glass-card:hover,
.st-service-item:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: #D50B52 !important;
  background: rgba(10, 15, 30, 0.85) !important;
  box-shadow: 0 15px 35px rgba(213, 11, 82, 0.3), 0 0 20px rgba(213, 11, 82, 0.2) !important;
}

.svc-card-arrow {
  display: none !important;
}
.st-node-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 10, 24, 0.85);
  border: 1px solid rgba(213, 11, 82, 0.3);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #00B4D8;
  margin-top: 12px;
  transition: all 0.25s ease;
  will-change: transform;
  transform: translateZ(0);
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.st-glass-card:hover .st-node-status,
.st-service-item:hover .st-node-status {
  border-color: #D50B52;
  box-shadow: 0 0 15px rgba(213, 11, 82, 0.3);
  transform: translateY(-2px);
}

/* Image Parallax Frame */
.st-image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  min-height: 310px;
  transform-style: preserve-3d;
  will-change: transform, clip-path;
}

.st-image-frame img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  transition: transform 0.8s var(--st-ease-smooth);
}

.st-service-item:hover .st-image-frame img {
  transform: scale(1.06);
}

/* 3D Flip Card System for Servicios Tecnológicos */
.st-flip-card {
  position: relative;
  width: 100%;
  height: 320px;
  perspective: 1200px;
  cursor: pointer;
  z-index: 2;
  transform-style: preserve-3d;
  will-change: transform;
}

.st-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.st-flip-card-front,
.st-flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: rgba(10, 15, 30, 0.42) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  padding: 30px 25px !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.st-flip-card-back {
  transform: rotateY(180deg);
  border-color: rgba(213, 11, 82, 0.45) !important;
  background: linear-gradient(145deg, rgba(10, 15, 30, 0.75), rgba(213, 11, 82, 0.25)) !important;
  padding: 22px 20px !important;
  justify-content: flex-start;
  align-items: center;
}

.st-flip-card-back .svc-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.st-flip-card-back .svc-card-body h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.st-flip-card-back .svc-card-body p {
  font-size: 12.5px;
  line-height: 1.45;
  flex: 1;
  overflow: hidden;
  margin-bottom: 8px;
}

.st-flip-card-back .svc-card-body .btn-glass-neon {
  margin-top: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.st-flip-card:hover .st-flip-card-front {
  border-color: #D50B52 !important;
  background: rgba(14, 20, 44, 0.6) !important;
  box-shadow: 0 15px 35px rgba(213, 11, 82, 0.35) !important;
}

/* Visible GSAP typography and reveal language shared by every tech-service page. */
.st-hero-content,
.st-service-intro {
  position: relative;
  z-index: 3;
}

.st-hero-content {
  opacity: 1 !important;
  visibility: visible !important;
}

.st-split-title,
.st-service-intro .st-service-title,
.heading-section .st-split-title {
  perspective: 900px;
}

.st-char {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.st-word {
  display: inline-block;
  white-space: nowrap;
}

.st-char--space {
  width: 0.28em;
}

.st-service-intro::after {
  display: block;
  width: min(18rem, 58vw);
  height: 2px;
  margin: 1.65rem auto 0;
  content: '';
  background: linear-gradient(90deg, transparent, #00B4D8 35%, #D50B52 65%, transparent);
  box-shadow: 0 0 22px rgba(0, 180, 216, 0.32);
}

.st-benefit-grid {
  position: relative;
  z-index: 3;
}

.st-benefit-grid .st-glass-card {
  min-height: 100%;
}

.st-benefit-grid .svc-card-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(0, 180, 216, 0.42);
  border-radius: 18px;
  color: #00B4D8;
  background: linear-gradient(145deg, rgba(0, 180, 216, 0.14), rgba(213, 11, 82, 0.08));
  box-shadow: inset 0 0 22px rgba(0, 180, 216, 0.08), 0 0 24px rgba(0, 180, 216, 0.1);
  font-size: 1.45rem;
}

.st-service-item .svc-tag-pill,
.st-service-intro .svc-tag-pill {
  border-color: rgba(0, 180, 216, 0.32);
  color: #00B4D8;
  background: rgba(0, 180, 216, 0.08);
}

.st-detail-list {
  position: relative;
  z-index: 3;
}

.st-detail-list::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  content: '';
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 180, 216, 0.38), rgba(213, 11, 82, 0.42), transparent);
  transform: translateX(-50%);
}

.st-detail-cta {
  position: relative;
  overflow: hidden;
  background-color: #040817;
}

.st-detail-cta::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background: linear-gradient(100deg, rgba(0, 180, 216, 0.12), transparent 42%, rgba(213, 11, 82, 0.15));
}

.st-detail-cta .container {
  position: relative;
  z-index: 2;
}

.st-flip-card:focus-visible {
  outline: 2px solid #00B4D8;
  outline-offset: 5px;
}

.st-flip-card-front::after,
.st-flip-card-back::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: '';
  background: linear-gradient(90deg, transparent, #00B4D8, #D50B52, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 420ms var(--st-ease-smooth);
}

.st-flip-card:hover .st-flip-card-front::after,
.st-flip-card.is-flipped .st-flip-card-back::after {
  transform: scaleX(1);
}

@media (max-width: 767.98px) {
  .st-section-wrapper {
    padding: 64px 0;
  }

  .st-service-intro {
    padding-inline: 8px;
  }

  .st-service-intro .st-service-title,
  .heading-section .st-split-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.22;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .st-section-wrapper .service-description {
    max-width: 100%;
    text-align: justify;
    text-justify: inter-word;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .st-service-item {
    padding: 24px 18px !important;
  }

  .st-image-frame,
  .st-image-frame img {
    min-height: 230px;
  }

  .st-detail-list::before {
    display: none;
  }

  .st-flip-card {
    height: 350px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-glass-card,
  .st-service-item,
  .st-image-frame img,
  .st-flip-card-inner,
  .st-node-status {
    transition: none !important;
  }
}
