/* ==========================================================================
   LCS · Listados: /tecnologias/ (brief §06) y /soluciones/ (brief §07),
   con la composición de la maqueta (docs/brief/referencia, #tecnologias y #servicios).
   Se carga solo en la plantilla listado, después de las hojas globales.
   Prefijos propios: lcs-ref-* (base de la maqueta), lcs-tec-*, lcs-srv-*, lcs-listado-*.
   ========================================================================== */

/* --------------------------------------------------------------------------
   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; }

/* --------------------------------------------------------------------------
   Soluciones (maqueta #servicios): columna lateral + lista numerada en acordeón
   -------------------------------------------------------------------------- */
.lcs-srv { padding: 94px 0; background: #fff; }
.lcs-srv [id] { scroll-margin-top: calc(var(--lcs-header-alto, 80px) + 20px); }
.lcs-srv__grilla { display: grid; grid-template-columns: .66fr 1fr; gap: 75px; align-items: start; }
.lcs-srv__lateral { position: sticky; top: calc(var(--lcs-header-alto, 80px) + 33px); }
.lcs-srv__visual { height: 225px; margin: 25px 0; overflow: hidden; border-radius: 19px; background: #eff8fb; }
.lcs-srv__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lcs-srv__lista { display: grid; gap: 10px; }
.lcs-srv-item { display: block; overflow: hidden; border: 1px solid #dcebee; border-radius: 15px; background: #fff; color: #0a3249; }
.lcs-srv-item[open] { border-color: #8fdad4; box-shadow: 0 7px 22px rgba(0, 94, 120, .07); }
.lcs-srv-item__cabecera { display: flex; align-items: center; gap: 16px; min-height: 85px; padding: 17px 21px; cursor: pointer; list-style: none; }
.lcs-srv-item__cabecera::-webkit-details-marker { display: none; }
.lcs-srv-item__cabecera::marker { content: ""; }
.lcs-srv-item__numero { flex: none; min-width: 1.6em; color: #00838a; font-size: 13px; font-weight: 900; }
.lcs-srv-item__icono { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #eaf8f6; color: #009c9c; }
.lcs-body .lcs-srv-item__icono .lcs-ico { width: 25px; height: 25px; }
.lcs-srv-item__textos { flex: 1; min-width: 0; }
.lcs-srv-item__titulo { display: block; font-family: var(--lcs-fuente-titulos, inherit); font-size: 15px; font-weight: 800; line-height: 1.25; text-transform: uppercase; color: #062b40; }
.lcs-srv-item__resumen { display: block; margin-top: 4px; font-size: 12px; line-height: 1.45; color: #5e7886; }
.lcs-srv-item__mas { flex: none; font-size: 25px; line-height: 1; color: #009cab; transition: transform .2s ease; }
.lcs-srv-item[open] .lcs-srv-item__mas { transform: rotate(45deg); }
.lcs-srv-item__cuerpo { padding: 0 25px 25px 95px; }
.lcs-body .lcs-srv-item__cuerpo p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: #567184; }
.lcs-srv-item__acciones { display: flex; flex-wrap: wrap; gap: 10px 26px; }

/* --------------------------------------------------------------------------
   Estado vacío (brief §11)
   -------------------------------------------------------------------------- */
.lcs-listado-vacio {
  display: grid;
  justify-items: start;
  gap: var(--lcs-esp-4, 1rem);
  max-width: 40rem;
  padding: var(--lcs-esp-6, 2rem);
  border: 1px dashed #dcebf0;
  border-radius: 18px;
}
.lcs-listado-vacio__texto { margin: 0; }

/* --------------------------------------------------------------------------
   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; }
}
