/* ========= Servicios — Capacidades ========= */
.servicios-capacidades {
  position: relative;
  width: 100%;
  background: url('../imagenes/ser1.jpg') center center / cover no-repeat;
  color: #ffffff;
  padding: 140px 0 0;
  overflow: hidden;
}

.servicios-capacidades-wrap {
  width: 96%;
  max-width: 1980px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Intro */
.servicios-intro {
  width: 100%;
  margin-bottom: 3rem;
}

.servicios-intro-title {
  font-size: clamp(4rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1.5rem; letter-spacing: 2px;
}

.servicios-intro-text {
  width: 100%;
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  line-height: 1.1;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

/* Hero block — lograr / línea / bola / texto / botón */
.servicios-hero-block {
  width: 100%;
  margin-bottom: 2.5rem;
  position: relative;
}

.servicios-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 3;
  margin-bottom: clamp(-6.5rem, -11vw, -9rem);
}

.servicios-hero-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.servicios-hero-arrow {
  width: clamp(48px, 5.5vw, 72px);
  max-width: 72px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.75;
}

.servicios-hero-center {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(140px, 20vw, 280px);
  margin: 0;
  z-index: 2;
}

.servicios-hero-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(260px, 44vw, 540px);
  height: clamp(100px, 16vw, 220px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(140, 190, 255, 0.22) 0%, rgba(80, 130, 220, 0.08) 45%, transparent 72%);
  z-index: 0;
  pointer-events: none;
  animation: serviciosAuraBreath 8s linear infinite;
}

.servicios-hero-line {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none; opacity: .4;
}

.servicios-hero-line-glow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 46%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.35) 54%,
    transparent 60%,
    transparent 100%
  );
  background-size: 40% 100%;
  background-repeat: no-repeat;
  z-index: 3;
  pointer-events: none;
  opacity: 0.9;
  animation: serviciosLineFlow 8s linear infinite;
}

.servicios-hero-sphere-wrap {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: serviciosSphereRotate 90s linear infinite;
  will-change: transform;
}

.servicios-hero-sphere {
  display: block;
  width: clamp(220px, 36vw, 440px);
  height: auto;
  animation: serviciosSphereBreath 8s linear infinite;
  will-change: transform, filter;
}

@keyframes serviciosSphereRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes serviciosAuraBreath {
  0% {
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0.4;
  }
  12.5% {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0.52;
  }
  25% {
    transform: translate(-50%, -50%) scale(0.99);
    opacity: 0.65;
  }
  37.5% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.78;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.92;
  }
  62.5% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.78;
  }
  75% {
    transform: translate(-50%, -50%) scale(0.99);
    opacity: 0.65;
  }
  87.5% {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0.52;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0.4;
  }
}

@keyframes serviciosLineFlow {
  0% {
    background-position: -45% 0;
  }
  100% {
    background-position: 145% 0;
  }
}

@keyframes serviciosSphereBreath {
  0% {
    transform: scale(0.94) translateY(4px);
    filter: drop-shadow(0 0 14px rgba(170, 205, 255, 0.12));
  }
  12.5% {
    transform: scale(0.98) translateY(2px);
    filter: drop-shadow(0 0 20px rgba(175, 210, 255, 0.2));
  }
  25% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 26px rgba(180, 215, 255, 0.28));
  }
  37.5% {
    transform: scale(1.03) translateY(-5px);
    filter: drop-shadow(0 0 34px rgba(185, 218, 255, 0.36));
  }
  50% {
    transform: scale(1.06) translateY(-12px);
    filter: drop-shadow(0 0 42px rgba(190, 220, 255, 0.45));
  }
  62.5% {
    transform: scale(1.03) translateY(-5px);
    filter: drop-shadow(0 0 34px rgba(185, 218, 255, 0.36));
  }
  75% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 26px rgba(180, 215, 255, 0.28));
  }
  87.5% {
    transform: scale(0.98) translateY(2px);
    filter: drop-shadow(0 0 20px rgba(175, 210, 255, 0.2));
  }
  100% {
    transform: scale(0.94) translateY(4px);
    filter: drop-shadow(0 0 14px rgba(170, 205, 255, 0.12));
  }
}

.servicios-hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 3;
  margin-top: clamp(-6.5rem, -11vw, -9rem);
}

.servicios-hero-text {
  max-width: 420px;
  font-size: clamp(0.78rem, 0.85vw, 0.9rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.servicios-contacto-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.servicios-contacto-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.servicios-contacto-btn:hover {
  border-color: rgba(255, 255, 255, 0.75);
}

.servicios-contacto-btn:hover svg {
  transform: translate(3px, -3px);
}

/* Service cards */
.servicios-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 0 3rem;
}

.servicios-card {
  position: relative;
  min-height: 260px;
  padding: 1.5rem 1.4rem 1.45rem;
  border: none;
  border-radius: 22px;
  background: url('../imagenes/ser6.png') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  gap: 0;
  isolation: isolate;
}

.servicios-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(145deg, #2b50a0 1%, rgba(255, 255, 255, .7) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.servicios-card-num,
.servicios-card-title,
.servicios-card-line,
.servicios-card-desc {
  position: relative;
  z-index: 1;
}

.servicios-card-num {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(6, 12, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  margin-bottom: 1.15rem;
}

.servicios-card-title {
  font-size: clamp(1.2rem, 1.4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.42;
  color: #ffffff;
  margin: 0 0 1rem;
  flex-grow: 1;
}

.servicios-card-line {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 0 1rem;
  flex-shrink: 0;
}

.servicios-card-desc {
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(200, 210, 235, 0.65);
  margin: 0;
  margin-top: auto;
}

/* FAQ — fondo #0f0fab */
.servicios-faq-wrap {
  width: 100%;
  background-color: #0f0fab;
  padding: 3rem 0 0;
  margin-bottom: 0;
  overflow-x: hidden;
}

.servicios-faq-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 1.75rem;
}

.servicios-faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.servicios-faq-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.servicios-faq-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  border: none;
  background: transparent;
  color: rgba(120, 145, 195, 0.9);
  font-family: inherit;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 0.35s ease;
}

.servicios-faq-arrow {
  width: 0;
  height: 18px;
  opacity: 0;
  flex-shrink: 0;
  transition: width 0.35s ease, opacity 0.35s ease;
  object-fit: contain;
}

.servicios-faq-question {
  display: block;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.servicios-faq-item:hover,
.servicios-faq-item.is-active {
  color: #ffffff;
}

.servicios-faq-item:hover .servicios-faq-arrow,
.servicios-faq-item.is-active .servicios-faq-arrow {
  width: 22px;
  opacity: 1;
}

.servicios-faq-toggle {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(8, 20, 80, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: #ffffff;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.servicios-faq-item:hover .servicios-faq-toggle,
.servicios-faq-item.is-active .servicios-faq-toggle {
  background: rgba(20, 45, 110, 0.85);
}

.servicios-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  opacity: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #ffffff;
}

.servicios-faq-group.is-open .servicios-faq-answer {
  opacity: 1;
}

.servicios-faq-answer-inner {
  width: 94%;
  max-width: 1980px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.servicios-faq-answer h5 {
  display: block;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.6;
  font-weight: 400;
  color: #0a1638;
}

.servicios-faq-group:last-child .servicios-faq-answer-inner {
  padding-bottom: 1.5rem;
}

.servicios-faq-group:last-child:not(.is-open) {
  border-bottom: none;
}

.servicios-faq-group.is-open .servicios-faq-item {
  color: #ffffff;
}

.servicios-faq-group.is-open .servicios-faq-arrow {
  width: 22px;
  opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
  .servicios-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
.servicios-card-title {  font-size: clamp(1.35rem, 1.6vw, 1.4rem);}    
 .servicios-card-desc {  font-size: clamp(1.2rem, 1.5vw, 1.5rem);    }
    
    
.servicios-intro-text {font-size: clamp(1.7rem, 3vw, 2.4rem);}    
    
  .servicios-capacidades {
    padding-top: 110px;
  }

  .servicios-intro {
    text-align: center;
  }

  .servicios-intro-title {
        font-size: clamp(2.6rem, 4vw, 3rem);
    display: block;
    width: 100%;
    text-align: center;
  }

  .servicios-intro-text {
    text-align: center;
  }

  .servicios-hero-block {
    text-align: center;
  }

  .servicios-hero-top {
    justify-content: center;
    margin-bottom: 0.75rem;
  }

  .servicios-hero-arrow {
    display: none;
  }

  .servicios-hero-label {
    width: 100%;
    text-align: center;
  }

  .servicios-hero-center {
    min-height: clamp(120px, 28vw, 200px);
  }

  .servicios-hero-sphere {
    width: clamp(200px, 50vw, 340px);
  }

  .servicios-hero-sphere-wrap {
    animation-duration: 90s;
  }

  .servicios-hero-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    margin-top: 0.75rem;
  }

  .servicios-hero-text {
    max-width: none;
    width: 100%;
    text-align: center;
  }

  .servicios-contacto-btn {
    align-self: center;
    margin: 0 auto;
  }

  .servicios-faq-label {
    text-align: center;
    width: 100%;
  }

  .servicios-faq-item {
    font-size: 1.2rem;
    padding: 1.1rem 0;
    text-align: center;
  }

  .servicios-faq-question {
    text-align: center;
  }

  .servicios-faq-answer-inner,
  .servicios-faq-answer h5 {
  text-align: center;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
}    
    

  .servicios-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 2rem;
  }

  .servicios-card {
    text-align: center;
    align-items: center;
  }

  .servicios-card-num {
    margin-left: auto;
    margin-right: auto;
  }

  .servicios-card-title,
  .servicios-card-desc {
    text-align: center;
  }

  .servicios-faq-answer-inner {
    width: 94%;
  }
}

@media (max-width: 600px) {
  .servicios-capacidades-wrap {
    width: 94%;
  }

  .servicios-hero-arrow {
    width: 48px;
    max-width: 48px;
  }

  .servicios-hero-sphere {
    width: min(350px, 100vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .servicios-hero-sphere,
  .servicios-hero-sphere-wrap,
  .servicios-hero-aura,
  .servicios-hero-line-glow {
    animation: none;
  }

  .servicios-hero-sphere {
    filter: none;
  }
}
