/*
 * Páginas de Servicios. Portado del diseño aprobado (Propuesta-WEB-14-Opcion-2.html): mismos valores y
 * nombres de clase, acotados a .ht-servicio. Se carga solo en el template "Servicio".
 *
 * Diferencias con el diseño, todas a propósito:
 *  - Fuera el índice de Servicios, el encabezado y el editor del prototipo (el sitio tiene los suyos).
 *  - El acordeón es <details>/<summary> en vez de botones con max-height por JS.
 *  - Las fotos son <img> con srcset y object-fit, no background-image: la del hero es la imagen
 *    principal de la página y así se descarga con prioridad y en el tamaño justo.
 *
 * Primera ronda (14-10-2026): la versión aprobada por el cliente pasa todo a Rajdhani, la tipografía del
 * resto del sitio (la carga el tema), con una escala propia; la portada ocupa la pantalla, con la foto
 * fundida en el azul y el texto del panel tipeado (servicios.js); las métricas pasan a blanco con cifras
 * verdes; en móvil, la franja de foto pone la foto arriba. Montserrat deja de usarse.
 */

.ht-servicio {
  --navy: #14264C;
  --navy-2: #0D1B38;
  --green: #66CC99;
  --green-2: #8CE2B7;
  --sky: #60B0E2;
  --paper: #F7F8FA;
  --ink: #111827;
  --muted: #6B7280;
  --shadow: 0 24px 70px rgba(6,17,42,.20);
  --radius: 28px;
  /* Achique de los títulos grandes respecto del diseño, pedido tras la primera revisión (28-9). */
  --ht-ajuste-titulos: -10px;
  display: block;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 16px;
  line-height: normal;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  interpolate-size: allow-keywords;
}

/*
 * El tema (Reobiz + Bootstrap 4) da estilo a h1–h6, p, ul, a, button… en toda la página. `all: revert`
 * devuelve cada elemento de adentro al estilo por defecto del navegador, que es sobre lo que se diseñó.
 * Especificidad (0,1,0): cualquier regla de abajo, que empieza con .ht-servicio y agrega algo más, la gana.
 * Los pseudoelementos también: el tema pone íconos en li::before.
 *
 * Cada selector del diseño lleva .ht-servicio delante SIN retocarlo: así se conservan sus prioridades
 * relativas, que son parte de cómo se ve (p. ej. `.value-copy p` le gana a `.value-quote` y a
 * `.section-kicker`: la cita no tiene su margen de 26 px y el kicker del panel no es verde).
 */
.ht-servicio *,
.ht-servicio *::before,
.ht-servicio *::after { all: revert; box-sizing: border-box; }
.ht-servicio a { color: inherit; text-decoration: none; }
.ht-servicio img { display: block; max-width: 100%; }

/*
 * El CSS dinámico del tema (opciones de Redux, un <style> sin id) fuerza con !important la familia de
 * h1–h6, el tamaño y el interlineado de h1 y el interlineado de h3–h6. Un !important solo le gana a otro
 * más específico: se imponen exactamente esas propiedades, con los valores del diseño. Los h2 no llevan
 * interlineado forzado por el tema y conservan los suyos.
 */
.ht-servicio :is(h1,h2,h3,h4,h5,h6) { font-family: inherit !important; }
.ht-servicio :is(h3,h4,h5,h6) { line-height: normal !important; }
.ht-servicio .detail-copy h1 { font-size: 50px !important; line-height: 59px !important; }
.ht-servicio .service-overview-card h3 { line-height: 1.12 !important; }
.ht-servicio .acc-trigger h4 { font-weight: inherit !important; line-height: inherit !important; }

/*
 * Escala tipográfica de la primera ronda (versión aprobada, 14-10-2026). Es una escala única a propósito: se
 * impone sobre el tamaño de cada componente (las tarjetas pasan de 14 a 16 px, todos los h2 a 36 px…), por eso
 * va con !important en un solo lugar en vez de retocar cada regla. Los selectores más específicos de abajo
 * (portada, franja de foto, notas) ganan a los generales por especificidad.
 */
/* el texto de lectura, desde global.css (--ht-texto: 18 px, 17 en celular; la versión aprobada usaba 16) */
.ht-servicio :is(p,li) { font-size: var(--ht-texto) !important; line-height: var(--ht-texto-alto) !important; }
.ht-servicio h2 { font-size: 36px !important; line-height: 40px !important; font-weight: 700 !important; letter-spacing: 0 !important; }
.ht-servicio h3 { font-size: 22px !important; line-height: 28px !important; font-weight: 700 !important; letter-spacing: 0 !important; }
.ht-servicio h4,
.ht-servicio .acc-trigger h4 { font-size: 18px !important; line-height: 26px !important; font-weight: 700 !important; letter-spacing: 0 !important; }
.ht-servicio .detail-copy h1 { font-weight: 500 !important; letter-spacing: 0 !important; max-width: 640px !important; }
.ht-servicio .detail-copy p,
.ht-servicio .visual-story-copy p { font-size: var(--ht-bajada) !important; line-height: var(--ht-bajada-alto) !important; }
.ht-servicio .hero-panel h2 { font-size: 30px !important; line-height: 36px !important; font-weight: 600 !important; }
.ht-servicio .hero-panel strong,
.ht-servicio .section-kicker,
.ht-servicio .visual-story-copy .section-kicker {
  font-size: 16px !important; line-height: 27.2px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important;
}
.ht-servicio .hero-panel p { font-size: var(--ht-texto) !important; line-height: var(--ht-texto-alto) !important; }
.ht-servicio .visual-story-copy h2 { font-size: 50px !important; line-height: 59px !important; font-weight: 500 !important; }
.ht-servicio :is(.service-map-note,.accordion-hint,.service-type) { font-size: 14px !important; line-height: 22px !important; }
.ht-servicio .metric-label { font-size: 15px !important; line-height: 21px !important; }
.ht-servicio .value-quote { font-size: 18px !important; line-height: 28px !important; font-weight: 600 !important; }
.ht-servicio :is(.signal-card,.benefit-card) strong { font-size: 18px !important; line-height: 24px !important; }
@media (max-width: 767px) {
  .ht-servicio .detail-copy h1,
  .ht-servicio .visual-story-copy h2 { font-size: 34px !important; line-height: 40px !important; }
  .ht-servicio h2 { font-size: 30px !important; line-height: 34px !important; }
}

html:has(.ht-servicio) { scroll-behavior: smooth; }

/* Anclas, encabezado azul y barra de progreso: compartidos con Contacto y Academy, en global.css. */


/* ---------- Hero ---------- */
/*
 * Primera ronda: la portada ocupa la pantalla menos el encabezado (--ht-header, lo mide servicios.js) y se
 * alarga 150 px por debajo del borde, donde vive un degradado fijo hacia el fondo de la página (::after): así
 * no aparece una franja clara ni una línea al bajar. Más ancha la foto que el texto; tope de 1920 px.
 */
.ht-servicio .detail-hero {
  min-height: calc(100vh - var(--ht-header,164px) + 150px);
  min-height: calc(100svh - var(--ht-header,164px) + 150px);
  max-width: 1920px; margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(520px,1.08fr);
  color: #fff;
  background:
    radial-gradient(circle at 80% 30%,rgba(102,204,153,.18),transparent 22%),
    linear-gradient(135deg,var(--navy-2),var(--navy));
  position: relative;
  overflow: hidden;
}
.ht-servicio .detail-copy { padding: clamp(70px,8vw,112px) clamp(32px,5vw,82px); align-self: center; }
.ht-servicio .detail-hero::after {
  content: ""; position: absolute; z-index: 5; right: 0; bottom: -2px; left: 0; height: 190px; pointer-events: none;
  background: linear-gradient(180deg,rgba(247,248,250,0) 0%,rgba(247,248,250,.05) 15%,rgba(247,248,250,.18) 30%,rgba(247,248,250,.38) 45%,
    rgba(247,248,250,.6) 60%,rgba(247,248,250,.8) 75%,rgba(247,248,250,.94) 88%,#F7F8FA 100%);
}
/* Pantallas de más de 1920 px: el azul sigue a los costados de la portada, con el mismo degradado al pie.
   Con box-shadow + clip-path se filtraba media línea oscura en el borde inferior; border-image no. */
@media (min-width: 1921px) {
  .ht-servicio { overflow-x: clip; }
  .ht-servicio .detail-hero {
    border: 0 solid;
    border-image-source: linear-gradient(180deg,#0E1D3E calc(100% - 188px),#1A2847 calc(100% - 159.5px),#384460 calc(100% - 131px),
      #677085 calc(100% - 102.5px),#9AA0AF calc(100% - 74px),#C8CCD4 calc(100% - 45.5px),#E9EBEF calc(100% - 20.8px),#F7F8FA 100%);
    border-image-slice: 0 1; border-image-width: 0 100vmax; border-image-outset: 0 100vmax; border-image-repeat: stretch;
  }
}
.ht-servicio .detail-copy h1 {
  max-width: 900px; margin: 0 0 22px;
  font-size: clamp(46px,6vw,92px); line-height: .92; letter-spacing: -.065em;
}
.ht-servicio .detail-copy p {
  max-width: 780px; font-size: clamp(17px,1.6vw,22px); line-height: 1.6; color: rgba(255,255,255,.78);
}

.ht-servicio .hero-panel {
  min-height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: clamp(38px,4vw,64px);
  color: #fff;
  /* sin fondo propio: la foto se funde en el azul de la portada (máscara de .ht-foto, abajo) */
  position: relative; overflow: hidden; isolation: isolate;
}
.ht-servicio .hero-panel strong { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.ht-servicio .hero-panel h2 {
  margin: 0; max-width: 430px;
  font-size: calc(clamp(30px,3.2vw,52px) + var(--ht-ajuste-titulos)); line-height: 1.04; letter-spacing: -.04em;
  text-shadow: 0 2px 18px rgba(0,0,0,.22);
}
.ht-servicio .hero-panel p { margin: 0; color: rgba(255,255,255,.82); line-height: 1.55; }

/* Foto de fondo: debajo del velo (::before) y del texto; el logo va encima de todo (::after). */
.ht-servicio .ht-foto {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
}
.ht-servicio .hero-panel::before,
.ht-servicio .visual-story::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.ht-servicio .hero-panel::before {
  background:
    linear-gradient(180deg,rgba(8,19,43,.12) 0%,rgba(8,19,43,.46) 50%,rgba(8,19,43,.88) 100%),
    linear-gradient(90deg,rgba(20,38,76,.08),rgba(20,38,76,.22));
  /* el velo aparece con el texto (servicios.js agrega .ht-copy-visible) */
  opacity: 0; transition: opacity .75s ease;
}
.ht-servicio .hero-panel.ht-copy-visible::before { opacity: 1; }
/* Foto y velo se funden hacia el azul por la izquierda (por arriba en móvil, y también por la derecha en
   pantallas de más de 1920 px): la misma máscara en los dos, así el velo no oscurece el azul del costado. */
.ht-servicio .hero-panel .ht-foto,
.ht-servicio .hero-panel::before {
  -webkit-mask-image: linear-gradient(90deg,transparent 0,rgba(0,0,0,.18) 60px,rgba(0,0,0,.55) 130px,rgba(0,0,0,.85) 200px,#000 260px);
          mask-image: linear-gradient(90deg,transparent 0,rgba(0,0,0,.18) 60px,rgba(0,0,0,.55) 130px,rgba(0,0,0,.85) 200px,#000 260px);
}
@media (max-width: 980px) {
  .ht-servicio .hero-panel .ht-foto,
  .ht-servicio .hero-panel::before {
    -webkit-mask-image: linear-gradient(180deg,transparent 0,rgba(0,0,0,.35) 50px,rgba(0,0,0,.8) 110px,#000 160px);
            mask-image: linear-gradient(180deg,transparent 0,rgba(0,0,0,.35) 50px,rgba(0,0,0,.8) 110px,#000 160px);
  }
}
@media (min-width: 1921px) {
  .ht-servicio .hero-panel .ht-foto,
  .ht-servicio .hero-panel::before {
    -webkit-mask-image: linear-gradient(90deg,transparent 0,rgba(0,0,0,.55) 130px,#000 260px,#000 calc(100% - 220px),transparent 100%);
            mask-image: linear-gradient(90deg,transparent 0,rgba(0,0,0,.55) 130px,#000 260px,#000 calc(100% - 220px),transparent 100%);
  }
}
/* Texto del panel: entra con el tipeo */
/* aparece con un fundido, sin subir: se tipea en su lugar final (servicios.js, pedido del 15-10) */
.ht-servicio .hero-panel .ht-hero-reveal { opacity: 0; transition: opacity .7s ease; }
.ht-servicio .hero-panel.ht-copy-visible .ht-hero-reveal { opacity: 1; }
.ht-servicio .hero-panel .ht-por-tipear { visibility: hidden; } /* lo que falta tipear ocupa su lugar, sin verse */
.ht-servicio .hero-panel h2.ht-hero-reveal { transition-delay: .12s; }
.ht-servicio .hero-panel p.ht-hero-reveal { transition-delay: .24s; }
/* En escritorio, texto y logo suben para quedar en la parte visible: la portada sigue 150 px bajo el borde */
@media (min-width: 981px) {
  .ht-servicio .detail-hero > .detail-copy,
  .ht-servicio .detail-hero > .hero-panel > .ht-hero-reveal { translate: 0 -75px; }
  .ht-servicio .detail-hero .hero-panel::after { bottom: 172px; }
}
.ht-servicio .hero-panel > :not(.ht-foto) { position: relative; z-index: 2; }
.ht-servicio .hero-panel::after,
.ht-servicio .visual-story::after {
  content: "";
  position: absolute; right: 24px; bottom: 22px; z-index: 3;
  width: 132px; aspect-ratio: 2.98/1;
  background: url("../img/marca-agua.webp") center / contain no-repeat;
  opacity: .88;
  pointer-events: none;
}

/* ---------- Estructura de secciones ---------- */
.ht-servicio .detail-main { max-width: 1240px; margin: 0 auto; padding: 90px clamp(22px,4vw,48px) 110px; }
.ht-servicio .content-block { margin-top: 78px; padding-top: 12px; }
.ht-servicio .services-first { margin-top: 0; padding-top: 0; }

.ht-servicio .section-kicker {
  margin: 0 0 10px; color: var(--green);
  font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase;
}
/* subtítulo debajo del título, no a su derecha (pedido del 16-10: se lee mejor); antes, flex en dos columnas */
.ht-servicio .section-head { display: block; margin-bottom: 36px; }
.ht-servicio .section-head h2 { margin: 0; font-size: calc(clamp(34px,4.5vw,64px) + var(--ht-ajuste-titulos)); letter-spacing: -.05em; color: var(--navy); }
.ht-servicio .section-head p { max-width: 720px; margin: 14px 0 0; color: var(--muted); line-height: 1.6; }

/* "Detalle de los servicios": subtítulo debajo del título, como en las demás secciones (16-10); antes, en dos columnas */
.ht-servicio .detail-intro { display: block; margin-bottom: 32px; }
.ht-servicio .detail-intro p { max-width: 720px; margin: 14px 0 0; color: var(--muted); line-height: 1.65; }

.ht-servicio .service-map-note,
.ht-servicio .micro-note { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.ht-servicio .micro-note { margin-top: 16px; }

/* ---------- Servicios disponibles ---------- */
.ht-servicio .service-overview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.ht-servicio .service-overview-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.ht-servicio .service-overview-card {
  display: block; width: 100%; min-height: 206px; padding: 24px;
  border: 1px solid #E1E7EF; border-radius: 22px;
  background: #fff; color: var(--ink);
  box-shadow: 0 16px 42px rgba(20,38,76,.06);
  position: relative; overflow: hidden;
  transition: transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.ht-servicio .service-overview-card:hover,
.ht-servicio .service-overview-card:focus-visible {
  transform: translateY(-5px); border-color: rgba(102,204,153,.9);
  box-shadow: 0 22px 52px rgba(20,38,76,.11); outline: none;
}
.ht-servicio .service-overview-card::after {
  content: ""; position: absolute; width: 120px; height: 120px; right: -52px; bottom: -62px;
  border-radius: 50%; background: rgba(102,204,153,.13);
}
.ht-servicio .service-type {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; margin-bottom: 18px;
  border-radius: 999px; background: rgba(102,204,153,.17); color: var(--navy);
  font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.ht-servicio .service-overview-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 22px; line-height: 1.12; }
.ht-servicio .service-overview-card p { margin: 0 0 34px; color: var(--muted); line-height: 1.52; font-size: 14px; }
.ht-servicio .service-detail-link { position: absolute; left: 24px; bottom: 20px; color: var(--navy); font-size: 13px; font-weight: 900; }
.ht-servicio .service-detail-link::after { content: " →"; color: var(--green); }

.ht-servicio .service-groups { display: grid; gap: 24px; }
.ht-servicio .service-group { padding: 22px; border: 1px solid #E1E7EF; border-radius: 24px; background: linear-gradient(180deg,#fff,#F8FAFC); }
/* la bajada del grupo, al lado del título y no en el otro extremo (16-10): se lee como una sola frase */
.ht-servicio .service-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 4px 14px; margin-bottom: 16px; }
.ht-servicio .service-group-head h3 { margin: 0; color: var(--navy); font-size: 24px; }
.ht-servicio .service-group-head span { color: var(--muted); font-size: 13px; font-weight: 700; }
.ht-servicio .service-group .service-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ht-servicio .service-group .service-overview-card { min-height: 190px; }

/* ---------- Cuadrículas de tarjetas ---------- */
.ht-servicio .signal-grid,
.ht-servicio .benefits-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.ht-servicio .signal-card {
  min-height: 145px; padding: 22px; border-radius: 20px;
  border: 1px solid #DDE4ED; background: linear-gradient(180deg,#fff,#F8FAFC);
  box-shadow: 0 14px 36px rgba(20,38,76,.05);
}
.ht-servicio .signal-card strong { display: block; color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.ht-servicio .signal-card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }

.ht-servicio .benefit-card {
  padding: 22px; min-height: 150px; border-radius: 20px; color: #fff;
  background: linear-gradient(145deg,var(--navy),#203763);
  position: relative; overflow: hidden;
}
.ht-servicio .benefit-card::before {
  content: ""; position: absolute; width: 90px; height: 90px; right: -35px; top: -35px;
  border: 1px solid rgba(102,204,153,.35); border-radius: 50%;
}
.ht-servicio .benefit-card strong { display: block; color: var(--green); font-size: 18px; margin-bottom: 8px; }
.ht-servicio .benefit-card p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.5; font-size: 14px; }

.ht-servicio .confidentiality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ht-servicio .confidentiality-card { padding: 25px; border-radius: 22px; border: 1px solid #DDE4ED; background: #fff; }
.ht-servicio .confidentiality-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 22px; }
.ht-servicio .confidentiality-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.ht-servicio .tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.ht-servicio .tool-grid.complete-tools { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ht-servicio .tool-card { padding: 26px; border-radius: 22px; border: 1px solid #DDE4ED; background: linear-gradient(180deg,#fff,#F7FAFC); }
.ht-servicio .tool-grid.complete-tools .tool-card { min-height: 180px; }
.ht-servicio .tool-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 24px; }
.ht-servicio .tool-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.ht-servicio .deliverables-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.ht-servicio .deliverable-card {
  min-height: 142px; padding: 22px; border-radius: 20px; background: #fff;
  border: 1px solid #E1E6EE; box-shadow: 0 15px 38px rgba(20,38,76,.055);
}
.ht-servicio .deliverable-card span {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 15px;
  border-radius: 12px; background: rgba(102,204,153,.18); color: var(--navy); font-weight: 950;
}
.ht-servicio .deliverable-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 19px; }
.ht-servicio .deliverable-card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }

/* ---------- Cómo generamos valor ---------- */
.ht-servicio .value-panel {
  margin-top: 78px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr);
  border-radius: 30px; overflow: hidden; background: var(--navy); color: #fff; box-shadow: var(--shadow);
}
.ht-servicio .value-copy {
  padding: clamp(34px,5vw,65px);
  background: radial-gradient(circle at 10% 15%,rgba(102,204,153,.14),transparent 22%), var(--navy);
}
.ht-servicio .value-copy h2 { margin: 0 0 18px; max-width: 720px; font-size: calc(clamp(34px,4.2vw,58px) + var(--ht-ajuste-titulos)); line-height: 1; letter-spacing: -.05em; }
.ht-servicio .value-copy p { margin: 0 0 18px; max-width: 720px; color: rgba(255,255,255,.74); line-height: 1.65; }
.ht-servicio .value-quote {
  margin-top: 26px; padding-left: 18px; border-left: 4px solid var(--green);
  color: #fff !important; font-size: 18px; font-weight: 800;
}
/* Primera ronda: métricas en blanco con la cifra en verde, en peso normal */
.ht-servicio .metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #DFE6EF; }
.ht-servicio .metric {
  min-height: 170px; display: flex; flex-direction: column; justify-content: center; padding: 28px;
  background: #fff; color: var(--navy);
}
.ht-servicio .metric-value { display: block; color: var(--green); font-size: calc(clamp(34px,4vw,54px) + var(--ht-ajuste-titulos)); font-weight: 400; letter-spacing: -.06em; line-height: .95; margin-bottom: 9px; }
.ht-servicio .metric-label { display: block; font-size: 13px; font-weight: 400; line-height: 1.35; }

/* ---------- Historia visual ---------- */
.ht-servicio .visual-story {
  min-height: 390px; margin-top: 78px; padding: 0; border-radius: 30px;
  overflow: hidden; position: relative; display: flex; align-items: flex-end;
  background-color: var(--navy); box-shadow: var(--shadow); isolation: isolate;
}
.ht-servicio .visual-story::before {
  background:
    linear-gradient(90deg,rgba(13,27,56,.96) 0%,rgba(13,27,56,.82) 48%,rgba(13,27,56,.24) 100%),
    linear-gradient(180deg,transparent 25%,rgba(13,27,56,.62) 100%);
}
.ht-servicio .visual-story-copy { position: relative; z-index: 2; max-width: 760px; padding: clamp(34px,5vw,66px); color: #fff; }
.ht-servicio .visual-story-copy h2 { margin: 0 0 14px; font-size: calc(clamp(34px,4.7vw,62px) + var(--ht-ajuste-titulos)); line-height: 1; letter-spacing: -.05em; }
.ht-servicio .visual-story-copy .section-kicker { color: var(--green); }
.ht-servicio .visual-story-copy p {
  margin: 0; max-width: 700px; color: rgba(255,255,255,.80); font-size: clamp(16px,1.5vw,20px); line-height: 1.6;
}

/* ---------- Acordeón (detalle y preguntas frecuentes) ---------- */
.ht-servicio .accordion-hint { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ht-servicio .accordion { display: grid; gap: 14px; }
.ht-servicio .acc-item {
  display: block; background: #fff; border: 1px solid #E0E5ED; border-radius: 20px;
  overflow: hidden; box-shadow: 0 13px 35px rgba(20,38,76,.05);
}
.ht-servicio .acc-trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 24px; color: var(--navy); font-weight: 900; font-size: 18px;
  list-style: none; cursor: pointer;
}
.ht-servicio .acc-trigger::-webkit-details-marker { display: none; }
.ht-servicio .acc-trigger:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.ht-servicio .acc-trigger h4 { margin: 0; font: inherit; }
.ht-servicio .acc-icono {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(102,204,153,.18); transition: transform .25s ease;
}
.ht-servicio .acc-item[open] .acc-icono { transform: rotate(45deg); }
.ht-servicio .ht-detalle .acc-trigger::after { content: "Ver detalle"; margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 800; }
.ht-servicio .ht-detalle .acc-item[open] .acc-trigger::after { content: "Ocultar detalle"; }
.ht-servicio .acc-body-inner { padding: 0 24px 24px; color: var(--muted); line-height: 1.65; }
.ht-servicio .acc-body-inner p { margin: 1em 0 0; }
.ht-servicio .acc-body-inner p:first-child { margin-top: 0; }
.ht-servicio .acc-body-inner ul { padding-left: 20px; margin: 10px 0 0; }
.ht-servicio .acc-body-inner li { margin: 6px 0; }
.ht-servicio .acc-body-inner a { color: var(--navy); font-weight: 700; text-decoration: underline; }

/* Apertura animada donde el navegador lo permite (::details-content); en el resto abre sin animación. */
.ht-servicio .acc-item::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .35s ease, content-visibility .35s ease allow-discrete;
}
.ht-servicio .acc-item[open]::details-content { block-size: auto; }
.ht-servicio .ht-sin-transicion .acc-item::details-content { transition: none; }

.ht-servicio .scope-note {
  margin: 24px 0 0; padding: 20px 22px; border-left: 5px solid var(--green); border-radius: 0 18px 18px 0;
  background: #fff; color: var(--navy); box-shadow: 0 12px 32px rgba(20,38,76,.055); line-height: 1.6;
}
.ht-servicio .scope-note strong { display: block; margin-bottom: 5px; }

.ht-servicio .ht-faq-grupo + .ht-faq-grupo { margin-top: 36px; }
.ht-servicio .ht-faq-grupo-titulo { margin: 0 0 16px; color: var(--navy); font-size: 24px; }
.ht-servicio .ht-faq .acc-trigger { font-size: 17px; }
/* enlace a las preguntas sobre la empresa, en la Homepage desde el 16-10 */
.ht-servicio .ht-faq-empresa { margin: 28px 0 0 !important; }
.ht-servicio .ht-faq-empresa a { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--green); }
.ht-servicio .ht-faq-empresa a:is(:hover, :focus-visible) { color: #2B7F59; }

/* ---------- Hoja de ruta ---------- */
.ht-servicio .roadmap { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.ht-servicio .roadmap.five { grid-template-columns: repeat(5,minmax(0,1fr)); }
.ht-servicio .road-step { min-height: 210px; border-radius: 22px; background: var(--navy); color: #fff; padding: 24px; position: relative; overflow: hidden; }
.ht-servicio .road-step:nth-child(even) { background: #203763; }
.ht-servicio .road-step b { display: block; color: var(--green); margin-bottom: 28px; font-size: 13px; letter-spacing: .1em; }
.ht-servicio .road-step h3 { margin: 0 0 10px; font-size: 21px; }
.ht-servicio .road-step p { margin: 0; color: rgba(255,255,255,.68); line-height: 1.5; }
.ht-servicio .road-step .phase-chip {
  display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 999px; margin-bottom: 14px;
  background: rgba(102,204,153,.16); color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.ht-servicio .phase-divider {
  margin: 26px 0 16px; display: flex; align-items: center; gap: 14px;
  color: var(--navy); font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.ht-servicio .phase-divider::before,
.ht-servicio .phase-divider::after { content: ""; height: 1px; flex: 1; background: #DCE3EC; }

/* ---------- Llamada a la acción ---------- */
.ht-servicio .cta {
  margin-top: 90px; border-radius: 30px; padding: clamp(34px,6vw,70px); color: #fff;
  background: radial-gradient(circle at 90% 20%,rgba(102,204,153,.22),transparent 26%), var(--navy);
  display: grid; grid-template-columns: 1fr auto; gap: 25px; align-items: center;
}
.ht-servicio .cta h2 { margin: 0 0 10px; font-size: calc(clamp(30px,4vw,54px) + var(--ht-ajuste-titulos)); letter-spacing: -.04em; }
.ht-servicio .cta p { margin: 0; color: rgba(255,255,255,.7); }
.ht-servicio .cta a {
  display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 20px;
  border-radius: 999px; background: var(--green); color: var(--navy); font-weight: 900; white-space: nowrap;
}

/* ---------- Responsive (mismos cortes que el diseño) ---------- */
@media (max-width: 1050px) {
  .ht-servicio .service-overview-grid.four,
  .ht-servicio .tool-grid.complete-tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .ht-servicio .signal-grid,
  .ht-servicio .deliverables-grid,
  .ht-servicio .benefits-grid,
  .ht-servicio .roadmap,
  .ht-servicio .roadmap.five { grid-template-columns: 1fr 1fr; }
  .ht-servicio .confidentiality-grid,
  .ht-servicio .detail-hero,
  .ht-servicio .value-panel,
  .ht-servicio .hero-panel { min-height: 420px; }
  /* Primera ronda: la foto va arriba, horizontal, y el texto debajo, sin recortes extremos */
  .ht-servicio .visual-story { min-height: 0; display: block; background: #0E1D3E; overflow: hidden; }
  .ht-servicio .visual-story .ht-foto { position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
  .ht-servicio .visual-story::before { display: none; }
  .ht-servicio .visual-story::after { top: 12px; bottom: auto; right: 14px; }
  .ht-servicio .visual-story-copy { padding: 24px 20px 28px; }
}
@media (max-width: 760px) {
  .ht-servicio .service-overview-grid,
  .ht-servicio .service-overview-grid.four,
  .ht-servicio .service-group .service-overview-grid,
  .ht-servicio .tool-grid.complete-tools { grid-template-columns: 1fr; }
  .ht-servicio .service-group { padding: 16px; }
  .ht-servicio .service-group-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .ht-servicio .service-overview-card { min-height: 180px; }
  .ht-servicio .ht-detalle .acc-trigger::after { display: none; }
}
@media (max-width: 680px) {
  .ht-servicio .detail-copy { padding: 55px 20px; }
  .ht-servicio .hero-panel { padding: 34px 20px; }
  .ht-servicio .detail-main { padding: 60px 18px 80px; }
  .ht-servicio .roadmap,
  .ht-servicio .roadmap.five,
  .ht-servicio .benefits-grid,
  .ht-servicio .tool-grid,
  .ht-servicio .signal-grid,
  .ht-servicio .deliverables-grid { grid-template-columns: 1fr; }
  .ht-servicio .metrics-grid { grid-template-columns: 1fr 1fr; }
  .ht-servicio .cta { grid-template-columns: 1fr; }
  .ht-servicio .cta a { width: 100%; }
  .ht-servicio .hero-panel::after { width: 102px; right: 16px; bottom: 15px; }
  .ht-servicio .visual-story::after { width: 102px; }
  .ht-servicio .visual-story { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.ht-servicio) { scroll-behavior: auto; }
  .ht-servicio .hero-panel .ht-hero-reveal { opacity: 1; transform: none; }
  .ht-servicio *, .ht-servicio *::before, .ht-servicio *::after,
  .ht-servicio .acc-item::details-content { transition: none; animation: none; }
}
