/* ==========================================================================
   CREAKTIVE - HOJA DE ESTILOS DE PÁGINAS DE SERVICIO (SERVICE.CSS)
   Específico para páginas de servicio (ej. Servicios de Marketing Digital)
   Totalmente integrado con tokens de theme.css y style.css
   ========================================================================== */

/* --- 1. HERO DE SERVICIO (ESTILO IDÉNTICO AL RESTO DE HEROS DE CREAKTIVE) --- */
.service-hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: #0b0b0d;
  overflow: hidden;
  padding-top: var(--header-height, 85px);
  padding-bottom: 60px;
}

.service-hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.service-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% top;
  opacity: 1;
}

.service-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(11, 11, 14, 0.90) 0%,
      rgba(11, 11, 14, 0.80) 40%,
      rgba(11, 11, 14, 0.40) 72%,
      rgba(11, 11, 14, 0.10) 100%);
  z-index: 2;
}

.service-hero-section .hero-content {
  max-width: 720px;
}

.service-hero-section .hero-eyebrow {
  margin-bottom: 16px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.service-hero-section .hero-title {
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  line-height: 1.14;
  margin-bottom: 28px;
}

.service-hero-section .hero-title.hero-title-compact {
  font-size: clamp(1.85rem, 3.8vw, 3.45rem);
  line-height: 1.18;
}

.service-hero-section .hero-desc-wrapper {
  margin-bottom: 28px;
  gap: 20px;
}

.service-hero-section .hero-description {
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
}

.service-hero-section .hero-title,
.service-hero-section .hero-eyebrow,
.service-hero-section .hero-description {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .service-hero-section {
    min-height: 80vh;
    padding-top: calc(var(--header-height, 85px) + 15px);
    padding-bottom: 50px;
  }

  .service-hero-overlay {
    background: linear-gradient(180deg,
        rgba(11, 11, 14, 0.90) 0%,
        rgba(11, 11, 14, 0.72) 45%,
        rgba(11, 11, 14, 0.85) 100%);
  }

  .service-hero-bg-img {
    object-position: 75% 2%;
    opacity: 0.70;
  }
}

/* --- 2. CARRUSEL INFINITO DE LOGOS DE EMPRESAS (ANCHO COMPLETO, GRIS CLARITO) --- */
.service-clients-section {
  width: 100%;
  background-color: #f4f5f8;
  border-bottom: none;
  padding: 30px 0;
  overflow: hidden;
  position: relative;
}

/* Máscaras de desvanecimiento suave en los bordes izquierdo y derecho */
.service-clients-section::before,
.service-clients-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.service-clients-section::before {
  left: 0;
  background: linear-gradient(90deg, #f4f5f8 0%, rgba(244, 245, 248, 0) 100%);
}

.service-clients-section::after {
  right: 0;
  background: linear-gradient(270deg, #f4f5f8 0%, rgba(244, 245, 248, 0) 100%);
}

.clients-carousel-track-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.clients-carousel-track {
  display: flex;
  align-items: center;
  gap: 52px;
  width: max-content;
  animation: clients-scroll-left 36s linear infinite;
  padding-left: 24px;
}

.service-clients-section:hover .clients-carousel-track {
  animation-play-state: paused;
}

@keyframes clients-scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.client-logo-slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  max-width: 220px;
  height: 54px;
  padding: 0 16px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0.65;
  filter: grayscale(100%);
}

.client-logo-slide:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.client-logo-img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .service-clients-section {
    padding: 24px 0;
  }

  .clients-carousel-track {
    gap: 32px;
    animation-duration: 20s;
  }

  .client-logo-slide {
    width: 135px;
    height: 44px;
  }
}

/* --- 3. SECCIÓN DE 3 PILARES (ESTILO WHY-CHOOSE-US DE CREAKTIVE) --- */
.service-pillars-section {
  padding: 120px 0 100px;
  background-color: var(--color-white);
  border-bottom: none;
}

.pillars-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 70px;
}

.pillars-header .section-eyebrow {
  margin-bottom: 12px;
}

.pillars-header .section-title {
  font-family: var(--font-display);
  font-size: var(--text-title-section);
  line-height: 1.25;
  color: var(--color-heading);
  margin-bottom: 16px;
  font-weight: 700;
}

.pillars-header .section-desc {
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 1.7;
  margin: 0 auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pillar-card {
  background-color: #f5f5f5;
  border: none;
  border-radius: 0;
  padding: 44px 36px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-top: 0;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.2, 0.85, 0.25, 1);
  will-change: transform;
}

.pillar-card:hover {
  transform: translateY(-20px);
}

.pillar-card-1,
.pillar-card-2,
.pillar-card-3,
.pillar-card-4,
.pillar-card-5,
.pillar-card-6 {
  margin-top: 0;
}

.pillar-number {
  font-family: var(--font-body);
  font-size: 2.2rem;
  font-weight: 800;
  color: #111111;
  line-height: 1;
  margin-bottom: 28px;
}

.pillar-card-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 26px;
  display: block;
}

.pillar-card-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 12px;
  line-height: 1.3;
  text-align: left;
}

.pillar-card-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #555555;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* --- 3. SECCIÓN DE VALOR & DOLOR/SOLUCIÓN --- */
.service-value-section {
  padding: 100px 0;
  background-color: #fbfcff;
}

.value-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.value-content-left .section-title {
  margin-bottom: 20px;
}

.value-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #222222;
  font-weight: 500;
  margin-bottom: 18px;
}

.value-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 24px;
}

/* --- COMPOSICIÓN VISUAL: IMAGEN EDITORIAL (VALOR Y CONVERSIÓN) --- */
.value-visual-composition {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-editorial-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.09);
  border: none;
}

.value-editorial-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 580px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-editorial-img-wrap:hover .value-editorial-img {
  transform: scale(1.02);
}

/* Compatibilidad con mockup phones previo si se reutiliza */
.value-phones-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(17, 17, 17, 0.05) 0%, rgba(245, 245, 245, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.value-phones-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatPhone 6s ease-in-out infinite alternate;
}

@keyframes floatPhone {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-12px) rotate(0.5deg);
  }
}

.value-phones-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.14));
}

@media (max-width: 992px) {
  .value-visual-composition {
    margin: 40px auto 0;
    max-width: 480px;
  }
}

@media (max-width: 576px) {
  .value-visual-composition {
    max-width: 100%;
  }
}


/* --- 4. ESTRATEGIAS DE MARKETING A MEDIDA (2 COLUMNAS) --- */
.service-custom-strategy-section {
  padding: 120px 0 110px;
  background-color: #fafafa;
  border-bottom: none;
}

.custom-strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 64px;
  align-items: center;
}

/* Columna Izquierda: Imagen */
.custom-strategy-visual {
  position: relative;
  width: 100%;
}

.custom-strategy-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.09);
  border: none;
}

.custom-strategy-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 580px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Tag flotante sobre la imagen */
.custom-strategy-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 11px 20px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.strategy-tag-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #111111;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.15);
}

/* Columna Derecha: Contenido */
.custom-strategy-content {
  text-align: left;
}

.custom-strategy-content .section-title {
  font-family: var(--font-display);
  font-size: var(--text-title-section, 38px);
  line-height: 1.25;
  color: var(--color-heading);
  margin-bottom: 22px;
  font-weight: 700;
}

.custom-strategy-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #222222;
  font-weight: 500;
  margin-bottom: 16px;
}

.custom-strategy-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 32px;
}

/* Lista de 3 pilares estratégicos con numeración moderna */
.custom-strategy-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.strategy-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 20px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 3px solid #111111;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.strategy-pillar-item:hover {
  transform: translateX(6px);
  border-left-color: var(--color-primary, #F9CF1E);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.pillar-bullet-num {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  color: #111111;
  line-height: 1.2;
  min-width: 24px;
}

.pillar-bullet-title {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 6px;
  line-height: 1.35;
}

.pillar-bullet-desc {
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.55;
  margin: 0;
}

.custom-strategy-cta {
  margin-top: 10px;
}

/* Responsive para la sección */
@media (max-width: 992px) {
  .service-custom-strategy-section {
    padding: 80px 0;
  }

  .custom-strategy-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .custom-strategy-visual {
    max-width: 580px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .custom-strategy-tag {
    bottom: 16px;
    left: 16px;
    padding: 8px 16px;
    font-size: 0.78rem;
  }

  .strategy-pillar-item {
    gap: 14px;
    padding: 14px 16px;
  }
}

/* --- 5. METODOLOGÍA EN 4 FASES (HORIZONTAL PINNED SCROLL) --- */
.service-methodology-scroll-container {
  position: relative;
  height: 380vh;
  /* Duración y recorrido del bloqueo de scroll */
  background-color: #ffffff;
}

.service-methodology-sticky-frame {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffffff;
  z-index: 10;
  padding-top: calc(var(--header-height, 85px) + 16px);
  padding-bottom: 36px;
  box-sizing: border-box;
}

/* Cabecera superior de metodología (unificada con el Design System de Creaktive) */
.methodology-header-container {
  width: 100%;
  margin-bottom: clamp(24px, 3.5vh, 40px);
}

.methodology-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.methodology-title-col {
  flex: 1 1 560px;
}

.methodology-title-col .section-eyebrow {
  margin-bottom: 8px;
}

.methodology-title {
  font-family: var(--font-display);
  font-size: var(--text-title-section, 38px);
  font-weight: var(--font-bold, 700);
  line-height: 1.25;
  color: var(--color-heading, #111111);
  margin: 0;
}

.methodology-desc-col {
  flex: 0 1 460px;
}

.methodology-desc {
  font-family: var(--font-body);
  font-size: var(--text-base, 1rem);
  font-weight: var(--font-regular, 400);
  line-height: var(--leading-normal, 1.7);
  color: var(--color-text-main, #4B4B4B);
  margin: 0;
}

/* Pista de tarjetas horizontal */
.methodology-track-viewport {
  width: 100%;
  overflow: visible;
}

.methodology-cards-track {
  display: flex;
  gap: 32px;
  will-change: transform;
  padding-left: max(24px, calc((100vw - var(--container-width, 1200px)) / 2 + 24px));
  padding-right: max(24px, calc((100vw - var(--container-width, 1200px)) / 2 + 24px));
}

/* Tarjeta individual (Diseño con fotografía realista y foco en la parte superior) */
.methodology-phase-card {
  position: relative;
  flex: 0 0 clamp(420px, 36vw, 530px);
  height: clamp(380px, 45vh, 440px);
  border-radius: 10px;
  overflow: hidden;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 3vw, 36px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
  background-color: #141416;
  box-sizing: border-box;
}

.phase-card-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.phase-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.phase-card-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 10, 12, 0) 0%,
      rgba(10, 10, 12, 0.4) 35%,
      rgba(10, 10, 12, 0.85) 60%,
      rgba(10, 10, 12, 0.98) 85%,
      #0a0a0c 100%);
  z-index: 2;
}

.phase-card-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.phase-card-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary, #F9CF1E);
  margin-bottom: 10px;
}

.phase-card-title {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 1.7vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 10px;
}

.phase-card-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 22px;
}

/* Botón píldora estilo Explore More */
.phase-card-pill-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-primary, #F9CF1E);
  color: #111111;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-pill, 999px);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.phase-card-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 207, 30, 0.35);
  background-color: #ffd835;
}

.phase-card-pill-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.phase-card-pill-btn:hover svg {
  transform: translate(2px, -2px);
}

/* --- 6. RESULTADOS Y MÉTRICAS CUANTIFICABLES (ANCHO COMPLETO, GRIS CLARITO) --- */
.service-metrics-section {
  width: 100%;
  background-color: #f4f5f8;
  border-bottom: none;
  padding: 34px 0;
  margin-top: 0;
}

.metrics-inner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.metric-stat-item {
  padding: 4px 16px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.metric-stat-item:last-child {
  border-right: none;
}

.metric-stat-number {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 2.3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.metric-stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0;
  line-height: 1.3;
}

.metric-stat-subtext {
  display: none;
}

@media (max-width: 1024px) {
  .metrics-inner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .metric-stat-item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .service-metrics-section {
    padding: 30px 0;
  }

  .metrics-inner-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .metric-stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 20px;
  }

  .metric-stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* --- 7. TESTIMONIOS Y VALORACIONES (CARRUSEL FULL-WIDTH) --- */
.service-testimonials-section {
  padding: 110px 0 100px;
  background-color: #ffffff;
  overflow: hidden;
  position: relative;
  border-bottom: none;
}

.testimonials-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.testimonials-header .section-eyebrow {
  margin-bottom: 12px;
}

.testimonials-header .section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading);
  margin-bottom: 16px;
}

.testimonials-header .section-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 1.65;
  margin: 0 auto;
}

/* Carrusel de ancho completo con máscara degradada en los extremos */
.testimonials-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 44px 0 24px;
  user-select: none;
  position: relative;
  cursor: grab;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 1) 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 1) 95%, transparent 100%);
}

.testimonials-marquee-wrapper:active {
  cursor: grabbing;
}

.testimonials-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: max-content;
  animation: testimonials-scroll-left 45s linear infinite;
  padding: 0 12px;
  will-change: transform;
}

.testimonials-marquee-wrapper:hover .testimonials-track,
.testimonials-marquee-wrapper.is-paused .testimonials-track {
  animation-play-state: paused;
}

@keyframes testimonials-scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Tarjeta individual de testimonio */
.testimonial-card {
  background-color: #f7f8fa;
  border-radius: 28px;
  width: 350px;
  min-width: 350px;
  max-width: 350px;
  flex-shrink: 0;
  padding: 32px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

/* Oculto temporalmente hasta contar con permisos de imagen de clientes */
.testimonial-avatar-wrap {
  display: none;
}

.testimonial-quote-icon {
  margin-bottom: 18px;
  color: #101828;
  display: block;
}

.testimonial-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.68;
  color: #475467;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.testimonial-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: #101828;
  line-height: 1.3;
}

.testimonial-author-role {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #667085;
  margin-top: 3px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .service-testimonials-section {
    padding: 80px 0 70px;
  }

  .testimonial-card {
    width: 290px;
    min-width: 290px;
    max-width: 290px;
    padding: 42px 20px 20px;
    border-radius: 24px;
  }

  .testimonials-marquee-wrapper {
    padding: 40px 0 20px;
  }

  .testimonials-track {
    gap: 16px;
    animation-duration: 35s;
  }

  .testimonial-avatar-wrap {
    width: 60px;
    height: 60px;
    top: -30px;
  }
}

/* --- 8. PREGUNTAS FRECUENTES (FAQ INTERACTIVO NATIVO) --- */
/* --- 8. PREGUNTAS FRECUENTES (FAQ MINIMALISTA CENTRADO, ESTILO UNTITLED UI) --- */
.service-faq-section {
  padding: 110px 0;
  background-color: #ffffff;
}

.faq-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}

.faq-header .section-eyebrow {
  margin-bottom: 12px;
}

.faq-header .section-title {
  margin-bottom: 16px;
}

.faq-header .section-desc {
  margin: 0 auto;
}

.faq-accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid #eaecf0;
}

.faq-item {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #eaecf0;
  border-radius: 0;
  transition: none;
}

.faq-question-btn {
  padding: 26px 0;
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  font-weight: 600;
  color: #101828;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  user-select: none;
  transition: color 0.2s ease;
}

/* Normalización universal: cualquier etiqueta (H1-H6, P, SPAN) mantiene la misma estética exacta */
.faq-question-btn > :is(h1, h2, h3, h4, h5, h6, p, span):not(.faq-toggle-icon) {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
  flex: 1;
}

.faq-question-btn::-webkit-details-marker {
  display: none;
}

.faq-question-btn:hover {
  color: #000000;
}

.faq-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: #98a2b3;
  transition: color 0.2s ease, transform 0.2s ease;
}

.faq-question-btn:hover .faq-toggle-icon {
  color: #344054;
}

.faq-item[open] .faq-toggle-icon {
  color: #101828;
}

.faq-icon-vert {
  transform-origin: 12px 12px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.faq-item[open] .faq-icon-vert {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer-body {
  padding: 0 0 28px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: #475467;
  overflow: hidden;
  box-sizing: border-box;
}

.faq-answer-body p+p {
  margin-top: 12px;
}

.faq-answer-body strong {
  color: #101828;
  font-weight: 600;
}

/* --- 8. BANNER CTA DE CONTRATACIÓN --- */
.service-cta-banner {
  padding: 110px 0;
  background: radial-gradient(circle at center, #1c1c22 0%, #101014 60%, #0a0a0c 100%);
  color: var(--color-white);
  text-align: center;
  position: relative;
}

.cta-banner-content {
  max-width: 820px;
  margin: 0 auto;
}

.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.22;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.cta-banner-desc {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 38px;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-banner-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* --- 9. ADAPTACIONES RESPONSIVAS --- */
@media (max-width: 1024px) {
  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .methodology-top-row {
    gap: 28px;
  }

  .methodology-title {
    font-size: 2.2rem;
  }

  .methodology-phase-card {
    flex: 0 0 420px;
    height: 370px;
  }

  .metrics-inner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .metric-stat-item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .service-hero {
    padding-top: calc(var(--header-height, 85px) + 30px);
    padding-bottom: 60px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pillar-card-2 {
    margin-top: 0;
  }

  /* Responsive Metodología en Móvil */
  .service-methodology-scroll-container {
    height: 320vh;
  }

  .service-methodology-sticky-frame {
    padding-top: calc(var(--header-height, 75px) + 10px);
    padding-bottom: 24px;
  }

  .methodology-header-container {
    margin-bottom: 18px;
  }

  .methodology-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .methodology-title-col,
  .methodology-desc-col {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .methodology-title {
    font-size: clamp(1.8rem, 5.5vw, 2.1rem);
  }

  .methodology-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .methodology-cards-track {
    gap: 16px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .methodology-phase-card {
    flex: 0 0 clamp(290px, 80vw, 360px);
    height: clamp(320px, 44vh, 370px);
    padding: 22px 20px;
    border-radius: 20px;
  }

  .phase-card-eyebrow {
    font-size: 0.72rem;
    margin-bottom: 8px;
  }

  .phase-card-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .phase-card-desc {
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 18px;
  }

  .phase-card-pill-btn {
    padding: 8px 18px;
    font-size: 0.82rem;
  }

  .metrics-inner-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .metric-stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
  }

  .metric-stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .service-faq-section {
    padding: 70px 0;
  }

  .faq-header {
    margin-bottom: 40px;
  }

  .faq-question-btn {
    padding: 20px 0;
    font-size: 1.02rem;
    gap: 16px;
  }

  .faq-answer-body {
    padding: 0 0 22px 0;
    font-size: 0.94rem;
  }
}

/* --- 10. FOOTER ESTILO CONTACTO (OFICINA) --- */
.contact-footer {
  position: relative;
  background-color: #0A0A0A;
  background-image: url('../images/footer-background.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 60px;
  padding-bottom: 24px;
  overflow: hidden;
}

.contact-footer-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(5, 5, 5, 0.65);
  z-index: 1;
}

.contact-footer-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1350px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}

.contact-footer-logo {
  text-align: center;
  margin-bottom: 45px;
}

.contact-footer-logo img {
  width: 195px;
  height: auto;
  opacity: 0.96;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-footer-logo:hover img {
  transform: scale(1.03);
  opacity: 1;
}

.contact-footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.18);
  margin-bottom: 22px;
}

.contact-footer-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.contact-footer-copy {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}

.contact-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  transition: color 0.2s ease;
}

.contact-footer-links a:hover {
  color: var(--color-primary, #F9CF1E);
}

.footer-separator {
  color: rgba(255, 255, 255, 0.4);
  user-select: none;
}

@media (max-width: 768px) {
  .contact-footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
    justify-content: center;
    gap: 14px;
  }

  .contact-footer-links {
    justify-content: center;
  }
}