/*=========================================================
SERVICIOS — PREMIUM B2B (Página Servicios)
Archivo: /assets/css/pages/servicios.css
========================================================= */

/* -------------------------
1) HERO EDITORIAL (SERVICIOS)
------------------------- */
.services-hero{
  padding: 6.5rem 0 4.75rem;
  background: #ffffff;
}

.services-hero__inner{
  max-width: 820px;
}

.services-hero__title{
  margin-top: .9rem;
  font-size: clamp(2.1rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.services-hero__lead{
  margin-top: 1.25rem;
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Separador fino (editorial) */
.services-hero__inner::after{
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  margin-top: 2.25rem;
  background: rgba(11,15,20,.08);
}

/* -------------------------
2) BLOQUES DE SERVICIO (DECISIÓN TÉCNICA)
------------------------- */
.services-section{
  padding: 0 0 6.75rem;
  background: #ffffff;
}

.services-section__inner{
  max-width: 920px;
}

/* Cada servicio como bloque editorial premium */
.service-block{
  padding: 2.25rem 0 2.75rem;
  border-bottom: 1px solid rgba(11,15,20,.08);
}

.service-block:last-of-type{
  border-bottom: none;
  padding-bottom: 1.5rem;
}

/* Título + contexto */
.service-block__title{
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.service-block__context{
  margin-top: .75rem;
  font-size: .95rem;
  color: rgba(11,15,20,.62);
}

/* Descripción */
.service-block__description{
  margin-top: 1rem;
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Impacto: checklist sobrio */
.service-block__impact{
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .6rem;
  max-width: 70ch;
}

.service-block__impact li{
  position: relative;
  padding-left: 1.35rem;
  color: rgba(11,15,20,.72);
  line-height: 1.55;
  font-size: .95rem;
}

.service-block__impact li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(201,164,76,.95), rgba(201,164,76,.25));
}

/* -------------------------
3) IMAGEN TÉCNICA (PAUSA VISUAL PREMIUM)
------------------------- */
.services-visual{
  padding: 0 0 6.75rem;
  background: #ffffff;
}

.services-visual img{
  width: min(100%, 920px);
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(2,6,23,.12);
  border: 1px solid rgba(11,15,20,.10);
}

/* -------------------------
4) CTA FINAL (DECISIÓN)
------------------------- */
.services-cta{
  padding: 6.75rem 0 7.25rem;
  background: linear-gradient(to bottom, #ffffff 0%, var(--surface-2) 100%);
  border-top: 1px solid rgba(11,15,20,.08);
}

.services-cta__inner{
  max-width: 820px;
}

.services-cta__title{
  font-size: clamp(1.85rem, 2.8vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.services-cta__text{
  margin-top: 1.15rem;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.services-cta .btn-primary{
  margin-top: 2rem;
  display: inline-flex;
}

/* -------------------------
5) Responsive
------------------------- */
@media (max-width: 768px){
  .services-hero{
    padding: 5.25rem 0 4rem;
  }

  .services-section{
    padding-bottom: 5.5rem;
  }

  .service-block{
    padding: 1.9rem 0 2.25rem;
  }

  .services-visual{
    padding-bottom: 5.5rem;
  }

  .services-cta{
    padding: 5.5rem 0 6rem;
  }
}

/* =========================================================
 — MICRO-LAYOUT + HOVER PREMIUM (B2B)
Pegar al FINAL de /assets/css/pages/servicios.css
========================================================= */

/* 1) Bloque de servicio como “ficha técnica” (no texto plano) */
.service-block{
  position: relative;
  padding: 2.25rem 2rem 2.4rem;
  border: 1px solid rgba(11,15,20,.08);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 40px rgba(2,6,23,.06);
  margin-bottom: 1.75rem;
}

/* Filete dorado estructural (premium, no decorativo) */
.service-block::before{
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(201,164,76,.95),
    rgba(201,164,76,.25)
  );
}

/* Título con más presencia */
.service-block__title{
  font-size: 1.45rem;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

/* 2) Contexto como “chip editorial” */
.service-block__context{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .65rem;
  margin-top: .9rem;
  border-radius: 999px;
  border: 1px solid rgba(11,15,20,.10);
  background: rgba(15,23,42,.04);
  color: rgba(11,15,20,.68);
  font-size: .9rem;
  line-height: 1.2;
}

.service-block__context::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(201,164,76,.55);
  box-shadow: 0 0 0 4px rgba(201,164,76,.12);
}

/* 3) Descripción y lista de impacto con ritmo */
.service-block__description{
  margin-top: 1.15rem;
  max-width: 72ch;
  line-height: 1.65;
}

.service-block__impact{
  margin-top: 1.35rem;
  gap: .65rem;
}

.service-block__impact li{
  padding-left: 1.4rem;
}

/* 4) Hover premium (solo desktop) */
@media (hover:hover){
  .service-block{
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }

  .service-block:hover{
    transform: translateY(-3px);
    box-shadow: 0 20px 55px rgba(2,6,23,.10);
    border-color: rgba(201,164,76,.26);
  }

  .service-block:hover .service-block__context{
    border-color: rgba(201,164,76,.25);
    background: rgba(201,164,76,.08);
  }
}

/* 5) CTA final: más “escenario de decisión” */
.services-cta{
  background:
    radial-gradient(900px 360px at 18% 0%, rgba(201,164,76,.10), transparent 60%),
    linear-gradient(to bottom, #ffffff 0%, var(--surface-2) 100%);
}

/* Botón más centrado visualmente dentro del bloque */
.services-cta .btn-primary{
  box-shadow: 0 12px 30px rgba(201,164,76,.36);
}
.services-cta .btn-primary:hover{
  box-shadow: 0 16px 42px rgba(201,164,76,.46);
}

/* 6) Responsive: padding más controlado */
@media (max-width: 768px){
  .service-block{
    padding: 1.6rem 1.35rem 1.7rem;
  }
}

/* Ajuste de cierre entre servicios y siguiente sección ===== */

/* Reduce el espacio SOLO después del último servicio */
.service-block:last-of-type{
  margin-bottom: .75rem;
}

/* Ajusta el cierre del bloque de servicios */
.services-section{
  padding-bottom: 4.5rem;
}

/* Afinación de alineación interna (editorial) */
.service-block__description,
.service-block__impact{
  margin-left: .25rem;
}

.service-block__context{
  font-weight: 500;
  letter-spacing: .01em;
}


.service-block:hover::before{
    opacity: .85;
  }

  /* Ajuste servicios */
.services-visual img{
  max-width: 720px;   /* antes 920px */
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* =========================================================
 — INTEGRAR IMAGEN + CTA (CIERRE PREMIUM)
Pegar al final de /assets/css/pages/servicios.css
========================================================= */

/* 1) Reduce el vacío entre la última ficha y la imagen */
.services-visual{
  padding-top: 2.5rem;
  padding-bottom: 3.25rem;
}

/* 2) La imagen actúa como parte del cierre (menos protagonista, más editorial) */
.services-visual img{
  max-width: 720px; /* ya la redujiste: reforzamos consistencia */
  margin: 0 auto;
}

/* 3) Unimos visualmente imagen + CTA con “escenario” compartido */
.services-cta{
  position: relative;
  margin-top: -2rem; /* acerca el CTA a la imagen sin montarse */
  padding-top: 5.25rem;
}

/* 4) Añadimos un puente visual suave entre imagen y CTA */
.services-cta::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(920px, 100%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201,164,76,.28),
    transparent
  );
}

/* 5) El CTA se siente más “bloque de decisión” (sin cambiar tu botón) */
.services-cta__inner{
  max-width: 820px;
  padding-top: 1.25rem;
}

/* 6) Responsive: evita que el margin-top negativo sea agresivo */
@media (max-width: 768px){
  .services-visual{
    padding-top: 2rem;
    padding-bottom: 2.75rem;
  }

  .services-cta{
    margin-top: -1.25rem;
    padding-top: 4.75rem;
  }
}

/* =========================================================
SERV========================================================= */SERVICIOS — MICRO AJUSTE PREMIUM CTA FINAL

/* 1) El CTA se siente como bloque de decisión, no texto flotante */
.services-cta__inner{
  position: relative;
  max-width: 760px;
  padding-top: 2.25rem;
}

/* 2) Línea editorial superior (ancla visual) */
.services-cta__inner::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(201,164,76,.95),
    rgba(201,164,76,.35)
  );
}

/* 3) Ajuste fino del título (más autoridad) */
.services-cta__title{
  letter-spacing: -0.02em;
}

/* 4) Texto ligeramente más contenido (decisión clara) */
.services-cta__text{
  max-width: 56ch;
}

/* 5) Botón con presencia final (sin exagerar) */
.services-cta .btn-primary{
  margin-top: 2.25rem;
}

/* Mobile: nada cambia radicalmente */
@media (max-width: 768px){
  .services-cta__inner{
    padding-top: 2rem;
  }
}

/* =========================================================
SERVICIOS — MARCO PREMIUM PARA IMAGEN
========================================================= */

.services-visual img{
  border-radius: 20px;
  border: 1px solid rgba(11,15,20,.10);
  box-shadow:
    0 18px 55px rgba(2,6,23,.12),
    0 0 0 1px rgba(201,164,76,.19) inset;
}

/* Filete dorado parcial (estructura, no decoración) */
.services-visual img{
  position: relative;
}

.services-visual img{
  outline: 1px solid rgba(201,164,76,.23);
  outline-offset: -6px;
}

/* =========================================================
SERVICIOS — CTA PREMIUM (ESQUINAS SUAVES, CIERRE ELEGANTE)
========================================================= */

/* Panel del CTA (no cambia el texto, solo el contenedor) */
.services-cta__inner{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(11,15,20,.10);
  border-radius: 22px;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 18px 55px rgba(2,6,23,.08);
  position: relative;
}

/* Filete dorado parcial (igual lenguaje que servicios) */
.services-cta__inner::after{
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(201,164,76,.95),
    rgba(201,164,76,.25)
  );
}

/* Respira mejor en móvil */
@media (max-width: 768px){
  .services-cta__inner{
    padding: 2.25rem 1.5rem;
    border-radius: 18px;
  }
}



/* =========================================================
SERVICIOS — FOOTER IDÉNTICO A "QUIÉNES SOMOS"
(Aire + últimas dos líneas correctas)
========================================================= */

/* 1) Más aire superior del footer */
footer.footer-premium{
  padding-top: 6.5rem;
}

/* 2) Grid principal con misma respiración */
.footer-premiumfooter-grid{
  padding-bottom: 3.25rem;
}

/* 3) Separación clara antes de la barra legal */
.footer-premium .footer-legal{
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.10);
}

/* 4) Últimas dos líneas: alineación y jerarquía EXACTA */
.footer-premium .footer-legal__inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Texto legal */
.footer-premium .footer-legal__copy{
  margin: 0;
  font-size: .9rem;
  color: rgba(255,255,255,.55);
}

/* Crédito */
.footer-premium .footer-legal__credit{
  font-size: .9rem;
  color: rgba(255,255,255,.62);
  text-decoration: none;
}

.footer-premium .footer-legal__credit strong{
  color: rgba(255,255,255,.86);
  font-weight: 800;
}

/* Hover consistente */
.footer-premium .footer-legal__credit:hover{
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(201,164,76,.85);
  text-underline-offset: 4px;
}

/* Responsive igual al resto del sitio */
@media (max-width: 768px){
  .footer-premium .footer-legal__inner{
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
}

/* =========================================================
SERVICIOS — LOGO FOOT18px rgba(0,0,0,.25);SERVICIOS — LOGO FOOTER CON PLACA
}
(IGUAL A QUIÉNES SOMOS)
========================================================= */

footer.footer-premium .footer-brand img{
  height: 52px;
  width: auto;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

/* =========================================================
SERVICIOS — FOOTER IDÉNTICO A INICIO / QUIÉNES SOMOS
(Párrafo bajo logo + una sola línea corta)
========================================================= */

/* Párrafo bajo el logo — idé;/* Párrafo bajo el logo — idéntico visualmente */

footer.footer-premium .footer-desc{
  max-width: 44ch;
  margin-top: .75rem;
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
}

/* ELIMINA cualquier línea larga heredada */
footer.footer-premium .footer-grid{
  border-bottom: none !important;
}

/* Dejar SOLO la línea corta correcta */
footer.footer-premium .footer-legal{
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.10);
}
