/* ═══════════════════════════════════════════════════════
   Global Standard América — Service Detail Pages CSS
   Shared styles for all /servicios/ pages
   ═══════════════════════════════════════════════════════ */

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: #fff; }

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb-current {
  color: #5CC4D6;
  font-weight: 600;
}

/* ── SERVICE HERO ── */
.svc-hero {
  position: relative;
  height: 92vh;
  min-height: 580px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.svc-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.svc-hero.loaded .svc-hero-bg {
  transform: scale(1);
}

.svc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 53, 66, 0.92) 0%,
    rgba(11, 79, 91, 0.75) 50%,
    rgba(26, 107, 122, 0.5) 100%
  );
}

.svc-hero-content {
  position: relative;
  z-index: 10;
  padding: 120px 0 60px;
  color: #fff;
  max-width: 760px;
}

.svc-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5CC4D6;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.svc-partner-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5CC87A;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.svc-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.svc-hero-accent {
  background: linear-gradient(135deg, #5CC87A, #5CC4D6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.svc-hero-desc {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin-bottom: 36px;
}

.svc-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Scroll Cue */
.svc-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bobble 2.5s ease-in-out infinite;
}

.svc-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #5CC4D6, transparent);
}

/* ── SECTION SHARED ── */
.svc-section {
  padding: 96px 0;
}

.svc-section--dark {
  background: #0A3542;
  color: #fff;
}

.svc-section--gray {
  background: #F8FAFC;
}

.svc-section--alt {
  background: linear-gradient(135deg, #0B4F5B 0%, #0A3542 100%);
}

/* ── SECTION LABEL ── */
.svc-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1E8FA3;
  margin-bottom: 14px;
}

.svc-label::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #1A6B7A, #228B22);
  border-radius: 1px;
}

.svc-section--dark .svc-label,
.svc-section--alt .svc-label {
  color: #5CC4D6;
}

.svc-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0A3542;
  margin-bottom: 16px;
}

.svc-section--dark .svc-title,
.svc-section--alt .svc-title {
  color: #fff;
}

.svc-desc {
  font-size: 17px;
  color: #64748B;
  line-height: 1.7;
  max-width: 640px;
}

.svc-section--dark .svc-desc,
.svc-section--alt .svc-desc {
  color: rgba(255,255,255,0.7);
}

/* ── TECH OVERVIEW ── */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 56px;
}

.tech-text {}

.tech-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.tech-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 12px rgba(10,53,66,0.05);
  transition: all 0.3s ease;
}

.tech-feature:hover {
  border-color: #96DAE7;
  box-shadow: 0 8px 30px rgba(10,53,66,0.10);
  transform: translateY(-2px);
}

.tech-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1A6B7A, #228B22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.tech-feature h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0A3542;
  margin-bottom: 4px;
}

.tech-feature p {
  font-size: 13.5px;
  color: #64748B;
  line-height: 1.6;
}

/* Norms */
.norm-group {
  margin-top: 32px;
}

.norm-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94A3B8;
  margin-bottom: 12px;
}

.norm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.norm-badge {
  display: inline-block;
  padding: 5px 14px;
  background: #E8F7FA;
  color: #126A7A;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid #96DAE7;
  letter-spacing: 0.04em;
}

.tech-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(10,53,66,0.22);
}

.tech-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.tech-visual-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(10, 53, 66, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px 20px;
  color: #fff;
}

.tech-visual-badge strong {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #5CC4D6;
  display: block;
  line-height: 1;
}

.tech-visual-badge span {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

/* ── APPLICATIONS ── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.app-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 28px;
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
  overflow: hidden;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(92, 196, 214, 0.12),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.app-card:hover::before { opacity: 1; }
.app-card:hover {
  border-color: rgba(92, 196, 214, 0.3);
  transform: translateY(-4px);
}

.app-card-num {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: rgba(92,196,214,0.18);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.app-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.app-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
}

/* ── STATS BAR ── */
.svc-stats {
  background: linear-gradient(135deg, #1A6B7A, #228B22);
  padding: 56px 0;
}

.svc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.svc-stat {
  color: #fff;
  padding: 8px;
}

.svc-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  display: inline;
}

.svc-stat-sfx {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}

.svc-stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  margin-top: 6px;
  font-weight: 500;
}

/* ── PROCESS TIMELINE ── */
.svc-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 60px;
  position: relative;
}

.svc-timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, #1A6B7A, #228B22);
  z-index: 0;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
}

.timeline-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A6B7A, #228B22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(26,107,122,0.4);
  position: relative;
}

.timeline-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(26,107,122,0.2);
}

.timeline-step h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0A3542;
  margin-bottom: 6px;
}

.timeline-step p {
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.5;
}

/* ── GALLERY ── */
.svc-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 12px;
  margin-top: 48px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.9);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,53,66,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── CTA STRIP ── */
.svc-cta-strip {
  background: #0A3542;
  padding: 80px 0;
  text-align: center;
}

.svc-cta-strip h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.svc-cta-strip p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  max-width: 560px;
  margin-inline: auto;
}

.svc-cta-strip .cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── RELATED SERVICES ── */
.related-services {
  padding: 80px 0;
  background: #F8FAFC;
}

.related-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0A3542;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

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

.related-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E2E8F0;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  position: relative;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10,53,66,0.14);
  border-color: #96DAE7;
}

.related-card-img {
  height: 130px;
  overflow: hidden;
  position: relative;
}

.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .related-card-img img {
  transform: scale(1.08);
}

.related-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,53,66,0.55) 0%, transparent 60%);
}

.related-card-body {
  padding: 14px 16px 16px;
}

.related-card-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1A7A8C;
  margin-bottom: 5px;
}

.related-card-body h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #0A3542;
  line-height: 1.35;
}

.related-card-arrow {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A6B7A, #228B22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s ease;
}

.related-card:hover .related-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ── BACK TO TOP (página de servicio) ── */
.svc-back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #1A6B7A, #228B22);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(10,53,66,0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  z-index: 500;
}

.svc-back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.svc-back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(10,53,66,0.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: 1fr; }
  .tech-visual { order: -1; }
  .tech-visual img { height: 360px; }
  .svc-timeline { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .svc-timeline::before { display: none; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .svc-hero { height: auto; min-height: 88vh; }
  .svc-hero-bg { background-attachment: scroll; }
  .svc-section { padding: 64px 0; }
  .apps-grid { grid-template-columns: 1fr; }
  .svc-stats-grid { grid-template-columns: 1fr 1fr; }
  .svc-timeline { grid-template-columns: 1fr 1fr; }
  .svc-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item:first-child { grid-row: span 1; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .svc-hero-title { font-size: 2rem; }
  .svc-hero-desc { font-size: 16px; }
  .svc-stats-grid { grid-template-columns: 1fr 1fr; }
  .svc-timeline { grid-template-columns: 1fr; }
  .svc-gallery { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
