/* ==========================================================================
   LCS · Ficha de tecnología (/tecnologias/<slug>/, plantilla solucion), con la estética
   de la maqueta (#tecnologias). Se carga solo en esta plantilla, después de las hojas globales.
   La base lcs-ref-*, lcs-tec-* y lcs-srv-* es copia de la de lcs-listado.css: mantenerlas iguales.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base común de Tecnologías y Soluciones (repetida en lcs-listado.css, lcs-solucion.css
   y lcs-servicio.css porque cada plantilla carga solo su hoja). Valores de la maqueta
   (lcs-ref.css: .eyebrow, .section-title, .gradient-text, .button, .text-link, .ico);
   los turquesas de texto pequeño se oscurecieron levemente para contraste AA.
   -------------------------------------------------------------------------- */
.lcs-body .lcs-ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.lcs-body .lcs-ref-eyebrow { display: block; margin: 0; font-size: 11px; font-weight: 800; line-height: 1.4; letter-spacing: .27em; text-transform: uppercase; color: #007a86; }
.lcs-body .lcs-ref-titulo { margin: 14px 0 17px; font-family: var(--lcs-fuente-titulos, inherit); font-size: clamp(30px, 3.8vw, 54px); font-weight: 800; line-height: 1.13; letter-spacing: -.04em; word-spacing: .08em; text-transform: uppercase; color: #062b40; text-wrap: balance; }
.lcs-body .lcs-ref-titulo--sm { font-size: clamp(26px, 2.6vw, 40px); }
.lcs-body .lcs-degradado { background: linear-gradient(105deg, #55d968 0%, #04af9c 48%, #0069ed 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lcs-ref-cabecera { margin-bottom: 33px; }
.lcs-ref-cabecera--fila { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 30px; }
.lcs-body .lcs-ref-cabecera--fila .lcs-ref-titulo { margin-bottom: 0; }

.lcs-body .lcs-ref-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 13px;
  min-height: 48px; padding: 14px 23px; border: 0; border-radius: 50px;
  background: linear-gradient(105deg, #00a47a, #0461bf); color: #fff;
  font-size: 12px; font-weight: 800; line-height: 1.2; letter-spacing: .025em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 8px 18px rgba(3, 88, 134, .13); transition: transform .22s ease, box-shadow .22s ease;
}
.lcs-body .lcs-ref-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(3, 88, 134, .21); }
.lcs-body .lcs-ref-btn .lcs-ico { width: 16px; height: 16px; stroke-width: 2; }
.lcs-body .lcs-ref-btn--borde { background: #fff; color: #0a3249; border: 1.6px solid #00a7a9; box-shadow: none; }
.lcs-body .lcs-ref-btn--borde:hover { color: #0a3249; border-color: #008d9a; }
.lcs-body .lcs-ref-enlace { display: inline-flex; align-items: center; gap: 9px; color: #027a88; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.lcs-body .lcs-ref-enlace b { font-size: 17px; line-height: 1; }
.lcs-body .lcs-ref-enlace .lcs-ico { width: 15px; height: 15px; stroke-width: 2; transition: transform .2s ease; }
.lcs-body a.lcs-ref-enlace:hover { color: #035f6b; }
.lcs-body a.lcs-ref-enlace:hover .lcs-ico { transform: translateX(3px); }
.lcs-body .lcs-ref-enlace--suave { color: #3f5d70; }
.lcs-body .lcs-ref-btn:focus-visible, .lcs-body .lcs-ref-enlace:focus-visible,
.lcs-body .lcs-tec-tarjeta:focus-visible, .lcs-body .lcs-srv-item summary:focus-visible, .lcs-body a.lcs-srv-item:focus-visible { outline: 3px solid #25bcd1; outline-offset: 4px; }

.lcs-tec-icono { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #e9f7f4; color: #039c9e; }
.lcs-body .lcs-tec-icono .lcs-ico { width: 23px; height: 23px; }

/* --------------------------------------------------------------------------
   Tecnologías (maqueta #tecnologias): fondo, tarjetas y bloques detallados alternados
   -------------------------------------------------------------------------- */
.lcs-tec { padding: 94px 0; background: #f5fafc; }
.lcs-tec [id] { scroll-margin-top: calc(var(--lcs-header-alto, 80px) + 20px); }
.lcs-tec-grilla { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lcs-tec-grilla--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lcs-tec-grilla--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lcs-tec-grilla--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lcs-tec-grilla > li { display: flex; min-width: 0; }
.lcs-body .lcs-tec-tarjeta {
  display: flex; flex-direction: column; width: 100%; min-width: 0;
  padding: 13px 13px 23px; border: 1px solid #e1edf1; border-radius: 18px; background: #fff;
  color: #0a3249; text-decoration: none; box-shadow: 0 9px 22px rgba(15, 52, 71, .05);
  transition: transform .2s ease, border-color .2s ease;
}
.lcs-body a.lcs-tec-tarjeta:hover { color: #0a3249; transform: translateY(-6px); border-color: #42b6b8; }
.lcs-tec-tarjeta__media { height: 151px; overflow: hidden; border-radius: 12px; background: #eaf3f7; }
.lcs-tec-tarjeta__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lcs-tec-tarjeta__meta { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 13px; }
.lcs-tec-tarjeta__estado { max-width: 125px; color: #0f7a73; font-size: 10px; font-weight: 800; line-height: 1.25; text-align: right; }
.lcs-body .lcs-tec-tarjeta__titulo { margin: 10px 0 5px; font-family: var(--lcs-fuente-titulos, inherit); font-size: 16px; font-weight: 800; line-height: 1.25; text-transform: uppercase; color: #062b40; overflow-wrap: anywhere; }
.lcs-body .lcs-tec-tarjeta__frase { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; line-height: 1.3; color: #0a3249; }
.lcs-body .lcs-tec-tarjeta__texto { flex: 1; min-height: 89px; margin: 0; font-size: 12px; line-height: 1.6; color: #5d788b; }
.lcs-body .lcs-tec-tarjeta .lcs-ref-enlace { margin-top: auto; padding-top: 19px; font-size: 10px; }

.lcs-tec-detalles { display: grid; gap: 23px; margin-top: 45px; }
.lcs-tec-detalle {
  display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 38px; align-items: center;
  overflow: hidden; border: 1px solid #e2eff1; border-radius: 21px; background: #fff;
}
.lcs-tec-detalles .lcs-tec-detalle:nth-child(even) { grid-template-columns: minmax(0, 1fr) 40%; }
.lcs-tec-detalles .lcs-tec-detalle:nth-child(even) .lcs-tec-detalle__media { order: 2; }
.lcs-tec-detalle--sin-imagen, .lcs-tec-detalles .lcs-tec-detalle--sin-imagen:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
.lcs-tec-detalle__media { position: relative; height: 100%; min-height: 360px; background: #ddebf1; }
.lcs-tec-detalle__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lcs-body .lcs-tec-detalle__estado { position: absolute; right: 18px; bottom: 18px; left: 18px; margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .94); color: #047a85; font-size: 11px; font-weight: 800; line-height: 1.35; text-align: center; }
.lcs-body .lcs-tec-detalle__estado--linea { position: static; display: inline-block; margin: 0 0 12px; background: #eef8f8; }
.lcs-tec-detalle__texto { min-width: 0; padding: 28px 37px 30px 0; }
.lcs-tec-detalles .lcs-tec-detalle:nth-child(even) .lcs-tec-detalle__texto { padding: 28px 0 30px 37px; }
.lcs-tec-detalle--sin-imagen .lcs-tec-detalle__texto, .lcs-tec-detalles .lcs-tec-detalle--sin-imagen:nth-child(even) .lcs-tec-detalle__texto { padding: 30px 37px; }
.lcs-body .lcs-tec-detalle__titulo { margin: 12px 0 8px; font-family: var(--lcs-fuente-titulos, inherit); font-size: 31px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; text-transform: uppercase; color: #062b40; overflow-wrap: anywhere; }
.lcs-body .lcs-tec-detalle__frase { margin: 0 0 12px; font-size: 15px; font-weight: 700; line-height: 1.4; color: #00808a; }
.lcs-body .lcs-tec-detalle__texto > p:not([class]) { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: #587486; }
.lcs-tec-aplicacion { margin: 16px 0; padding: 12px 15px; border-left: 3px solid #14ada7; border-radius: 8px; background: #f0f8fa; }
.lcs-body .lcs-tec-aplicacion__titulo { margin: 0; font-size: 12px; font-weight: 800; color: #0a3249; }
.lcs-body .lcs-tec-aplicacion__texto { margin: 2px 0 0; font-size: 13px; line-height: 1.6; color: #5b7583; }
.lcs-tec-detalle__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* --------------------------------------------------------------------------
   Responsive (cortes de la maqueta: 1300 · 1000 · 700 px)
   -------------------------------------------------------------------------- */
@media (max-width: 1300px) {
  .lcs-tec-grilla, .lcs-tec-grilla--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .lcs-tec, .lcs-srv { padding: 70px 0; }
  .lcs-tec-grilla--4, .lcs-tec-grilla--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lcs-srv__grilla { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .lcs-srv__lateral { position: static; }
}
@media (max-width: 700px) {
  .lcs-body .lcs-ref-titulo { font-size: 34px; }
  .lcs-body .lcs-ref-titulo--sm { font-size: 28px; }
  .lcs-body .lcs-ref-btn { min-height: 46px; padding: 12px 17px; font-size: 11px; }
  .lcs-tec-grilla, .lcs-tec-grilla--4, .lcs-tec-grilla--3, .lcs-tec-grilla--2 { grid-template-columns: minmax(0, 1fr); }
  .lcs-tec-tarjeta__media { height: 190px; }
  .lcs-body .lcs-tec-tarjeta__texto { min-height: 0; }
  .lcs-tec-detalle, .lcs-tec-detalles .lcs-tec-detalle:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lcs-tec-detalle__media { min-height: 255px; }
  .lcs-tec-detalles .lcs-tec-detalle:nth-child(even) .lcs-tec-detalle__media { order: 0; }
  .lcs-tec-detalle__texto, .lcs-tec-detalles .lcs-tec-detalle:nth-child(even) .lcs-tec-detalle__texto,
  .lcs-tec-detalle--sin-imagen .lcs-tec-detalle__texto { padding: 23px; }
  .lcs-body .lcs-tec-detalle__titulo { font-size: 27px; }
  .lcs-srv-item__cabecera { gap: 12px; padding: 15px 16px; }
  .lcs-srv-item__icono { width: 38px; height: 38px; }
  .lcs-srv-item__cuerpo { padding: 0 18px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .lcs-body .lcs-ref-btn, .lcs-body .lcs-tec-tarjeta, .lcs-srv-item__mas, .lcs-body .lcs-ref-enlace .lcs-ico { transition: none; }
  .lcs-body .lcs-ref-btn:hover, .lcs-body a.lcs-tec-tarjeta:hover, .lcs-body a.lcs-ref-enlace:hover .lcs-ico { transform: none; }
}

/* -------------------------------------------------------------------------- Propio de la ficha de tecnología */
.lcs-solucion [id] { scroll-margin-top: calc(var(--lcs-header-alto, 80px) + 20px); }

/* Estado del desarrollo (insignia del hero): etiqueta simple, sin medidor */
.lcs-solucion-estado {
  gap: .5rem;
  border-color: color-mix(in srgb, currentColor 30%, transparent);
  background: color-mix(in srgb, currentColor 7%, transparent);
  color: inherit;
}
.lcs-solucion-estado__punto { font-size: .5rem; color: #21b768; }
.lcs-solucion-estado__etiqueta { font-weight: 500; opacity: .8; }

/* Lista (aplicaciones o capacidades) en tarjetas con ícono */
.lcs-sol-lista { padding: 80px 0; background: #fff; }
.lcs-sol-lista__grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.lcs-sol-capacidad { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 18px 20px; border: 1px solid #dcebee; border-radius: 15px; background: #fff; box-shadow: 0 9px 22px rgba(15, 52, 71, .04); }
.lcs-sol-capacidad__texto { font-size: 14px; font-weight: 700; line-height: 1.35; color: #0a3249; }
.lcs-sol-otras .lcs-ref-cabecera { margin-bottom: 28px; }
.lcs-body .lcs-tec-detalle .lcs-tec-detalle__titulo { text-transform: none; font-size: clamp(24px, 2.2vw, 31px); }
