/* ==========================================================================
   SERVICES PAGE STYLESHEET (Scoped for Clean Integration)
   ========================================================================== */
/* Scoped Container inside Main Content */
.services-page-wrapper .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* =========================================
   1. HERO SECTION
   ========================================= */
.services-hero {
  background: linear-gradient(180deg, #f0f7fc 0%, var(--bg-light) 100%);
  padding: clamp(50px, 7vw, 85px) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(30px, 5vw, 60px);
}

.hero-text-side {
  flex: 1.2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(41, 169, 224, 0.12);
  border: 1px solid rgba(41, 169, 224, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-sky);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--brand-sky);
}

.hero-headline {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.18;
  margin: 0 0 18px 0;
}

.hero-headline span {
  background: linear-gradient(135deg, var(--brand-sky), var(--brand-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-action-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--brand-sky), var(--brand-primary));
  color: var(--pure-white);
  box-shadow: 0 8px 20px rgba(28, 117, 188, 0.25);
}

.btn-hero-primary svg {
  width: 18px;
  height: 18px;
}

.btn-hero-whatsapp {
  background: #25d366;
  color: var(--pure-white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.22);
}

.btn-hero-whatsapp svg {
  width: 18px;
  height: 18px;
}

.btn-hero-primary:hover,
.btn-hero-whatsapp:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: clamp(15px, 3vw, 30px);
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.stat-unit {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 35px;
  background: var(--border-subtle);
}

/* Layered Image Stack */
.hero-visual-side {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.visual-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 420px;
}

.visual-frame {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 4px solid var(--pure-white);
}

.frame-primary {
  width: 320px;
  height: 340px;
  top: 0;
  left: 0;
  z-index: 1;
}

.frame-secondary {
  width: 240px;
  height: 260px;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floating-badge {
  position: absolute;
  background: var(--pure-white);
  padding: 10px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
  z-index: 4;
}

.floating-badge strong {
  display: block;
  font-size: 0.85rem;
  color: var(--brand-navy);
}

.floating-badge small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(41, 169, 224, 0.12);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon svg {
  width: 18px;
  height: 18px;
}

.badge-icon.green-pulse {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.badge-top {
  top: 30px;
  right: -10px;
}

.badge-bottom {
  bottom: 25px;
  left: -10px;
}

/* =========================================
   2. GUARANTEES SECTION
   ========================================= */
.service-guarantees-section {
  padding: clamp(60px, 8vw, 90px) 0;
  background: var(--pure-white);
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.guarantee-card {
  padding: 36px 28px;
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.guarantee-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-sky);
}

.guarantee-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(41, 169, 224, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--brand-primary);
}

.guarantee-icon svg {
  width: 26px;
  height: 26px;
}

.guarantee-card h3 {
  font-size: 1.2rem;
  color: var(--brand-navy);
  margin: 0 0 10px 0;
  font-weight: 700;
}

.guarantee-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* =========================================
   3. ORBIT COMPONENT (Services Section)
   ========================================= */
.services-section {
  background-color: var(--bg-light);
  padding: clamp(60px, 8vw, 100px) 0;
  color: var(--text-main);
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header { 
  text-align: center; 
  margin-bottom: clamp(35px, 5vw, 65px); 
}

.section-tag {
  color: var(--brand-sky);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--brand-navy);
  font-weight: 800;
  margin: 0 0 10px 0;
}

.section-title span {
  background: linear-gradient(135deg, var(--brand-sky), var(--brand-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

.services-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 5vw, 80px);
}

.services-circle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 440px;
  height: 440px;
  flex-shrink: 0;
}

.services-circle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px dashed rgba(28, 117, 188, 0.25);
}

.center-circle {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; 
  height: 130px;
  background: linear-gradient(135deg, var(--brand-sky), var(--brand-primary));
  color: var(--pure-white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(41, 169, 224, 0.35);
}

.center-circle span { font-size: 0.85rem; letter-spacing: 1px; }
.center-circle strong { font-size: 1.15rem; }

.service-card {
  position: absolute;
  top: 50%; 
  left: 50%;
  width: 100px; 
  height: 100px;
  margin-top: -50px; 
  margin-left: -50px;
  background: var(--pure-white);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-align: center;
  color: var(--text-main);
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.service-card span { 
  font-size: 0.8rem; 
  font-weight: 600; 
  padding: 6px; 
  pointer-events: none; 
  line-height: 1.2;
}

.service-card:hover {
  border-color: var(--brand-sky);
  box-shadow: 0 6px 18px rgba(41, 169, 224, 0.18);
}

.service-card.active {
  background: var(--brand-primary);
  color: var(--pure-white);
  border-color: var(--brand-primary);
  box-shadow: 0 10px 25px rgba(28, 117, 188, 0.35);
  z-index: 5;
}

/* Fixed Trigonometric Positions (Radius: 155px) */
.service-card:nth-of-type(1) { transform: translate(0px, -155px); }
.service-card:nth-of-type(2) { transform: translate(134px, -78px); }
.service-card:nth-of-type(3) { transform: translate(134px, 78px); }
.service-card:nth-of-type(4) { transform: translate(0px, 155px); }
.service-card:nth-of-type(5) { transform: translate(-134px, 78px); }
.service-card:nth-of-type(6) { transform: translate(-134px, -78px); }

.service-description { 
  flex: 1; 
  max-width: 520px; 
}

.glass-card {
  background: var(--pure-white);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-label { 
  color: var(--brand-primary); 
  font-size: 0.75rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 1px;
}

.service-panel {
  display: none;
  animation: panelReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-panel.active { display: block; }

@keyframes panelReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.service-panel h3 { 
  font-size: clamp(1.8rem, 3vw, 2.3rem); 
  margin: 12px 0; 
  font-weight: 700; 
  color: var(--brand-navy);
}

.service-panel p { 
  color: var(--text-muted); 
  margin-bottom: 25px; 
  line-height: 1.65; 
  font-size: 0.98rem;
}

.btn-primary-services { 
  display: inline-block; 
  padding: 12px 28px; 
  background: linear-gradient(135deg, var(--brand-sky), var(--brand-primary)); 
  color: var(--pure-white); 
  text-decoration: none; 
  border-radius: 100px; 
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 6px 18px rgba(28, 117, 188, 0.25);
}

/* =========================================
   4. RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 1024px) {
  .hero-layout {
    flex-direction: column;
    text-align: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-action-group, .hero-stats {
    justify-content: center;
  }
  .services-wrapper {
    flex-direction: column;
    gap: 50px;
  }
  .guarantee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-circle-container {
    width: 100%;
    height: auto;
  }
  .services-circle {
    border: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    height: auto;
  }
  .center-circle {
    display: none;
  }
  .service-card {
    position: static;
    width: 100%;
    height: 80px;
    margin: 0;
    transform: none !important;
  }
  .guarantee-grid {
    grid-template-columns: 1fr;
  }
  .visual-stack {
    max-width: 320px;
    height: 300px;
  }
  .frame-primary {
    width: 230px;
    height: 240px;
  }
  .frame-secondary {
    width: 170px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .services-circle {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-action-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-hero-primary, .btn-hero-whatsapp {
    width: 100%;
    justify-content: center;
  }
}