/* =========================================================
   VPSOFT - hoja de estilos
   Paleta tomada del logo: azul marino, rojo, ambar.
   ========================================================= */

:root {
  --azul: #0b3c8c;
  --azul-claro: #1565c0;
  --azul-oscuro: #072a63;
  --rojo: #c1121f;
  --ambar: #f0a202;
  --verde: #1b7f4b;
  --verde-boton: #128c7e;
  --verde-boton-hover: #0f7a6d;
  --verde-boton-texto: #ffffff;

  --tinta: #14181f;
  --tinta-media: #4a5462;
  --tinta-suave: #737f8f;
  --linea: #e2e7ee;
  --fondo: #ffffff;
  --fondo-alt: #f5f7fa;
  --fondo-oscuro: #0d1420;

  --radio: 12px;
  --radio-chico: 8px;
  --sombra: 0 1px 3px rgba(16, 24, 40, .08), 0 8px 24px rgba(16, 24, 40, .06);
  --sombra-alta: 0 12px 40px rgba(16, 24, 40, .14);

  --ancho: 1140px;
  --fuente: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1.1em; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }

.saltar {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--azul); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radio-chico) 0;
}
.saltar:focus { left: 0; }

:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------ cabecera */

.cabecera {
  background: var(--fondo);
  border-bottom: 1px solid var(--linea);
  position: sticky; top: 0; z-index: 100;
}

.cabecera-int { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }

.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.marca:hover { text-decoration: none; }

.marca-logo {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-oscuro) 100%);
  color: #fff; font-weight: 900; font-size: 1.35rem;
  border-radius: 10px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}

.marca-txt { display: flex; flex-direction: column; line-height: 1.15; }
.marca-txt strong { color: var(--tinta); font-size: 1.12rem; font-weight: 900; letter-spacing: .01em; }
.marca-txt small { color: var(--tinta-suave); font-size: .74rem; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--tinta-media); font-weight: 600; font-size: .95rem; padding: 8px 11px; border-radius: var(--radio-chico); }
.nav a:hover { color: var(--azul); background: var(--fondo-alt); text-decoration: none; }

.btn-menu { display: none; }

/* ------------------------------------------------------ botones */

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--verde-boton); color: var(--verde-boton-texto);
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: .97rem;
  border: 0; cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
  /* Sombra propia del boton de contacto: verde difusa y profunda.
     Los demas botones usan una sombra plana, este se destaca a proposito
     porque es la unica accion que el visitante tiene que ejecutar. */
  box-shadow: 0 10px 22px -8px rgba(18, 140, 126, .7), 0 3px 8px -3px rgba(0, 0, 0, .26);
}

/* Halo que se expande desde el boton. Se desactiva solo si el visitante
   pidio menos movimiento en su sistema. */
.btn-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(64, 210, 194, .85);
  animation: halo-wa 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes halo-wa {
  0%   { transform: scale(1);    opacity: .6; }
  60%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-whatsapp::before { animation: none; opacity: 0; }
}

.btn-whatsapp:hover {
  background: var(--verde-boton-hover);
  text-decoration: none;
  color: var(--verde-boton-texto);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -8px rgba(18, 140, 126, .75), 0 6px 14px -4px rgba(0, 0, 0, .28);
}
.btn-whatsapp svg { flex: none; }

.btn-linea {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--azul); color: var(--azul);
  background: #fff; padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: .95rem;
}
.btn-linea:hover { background: var(--azul); color: #fff; text-decoration: none; }

/* ------------------------------------------------------ hero */

.hero {
  background:
    radial-gradient(1100px 480px at 12% -12%, #1a5cc0 0%, transparent 62%),
    linear-gradient(160deg, var(--azul-oscuro) 0%, var(--azul) 52%, #0a2f6b 100%);
  color: #fff;
  padding: 68px 0 76px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -90px; bottom: -110px;
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(240, 162, 2, .16);
}
.hero-chico { padding: 52px 0; }

.hero h1 { color: #fff; max-width: 18ch; }
.hero-chico h1 { max-width: none; }
.hero p.entradilla { font-size: 1.16rem; color: #d3e0f5; max-width: 62ch; margin-bottom: 1.6em; }
/* Sobre el fondo oscuro del encabezado la sombra va en verde brillante,
   porque una sombra negra se pierde contra el azul marino. */
.hero .btn-whatsapp {
  background: #fff; color: var(--verde-boton);
  box-shadow: 0 12px 28px -8px rgba(46, 200, 113, .55), 0 4px 10px -4px rgba(0, 0, 0, .35);
}
.hero .btn-whatsapp:hover { background: #e8f4f2; color: var(--verde-boton-hover); }
.hero .btn-whatsapp::before { border-color: rgba(46, 200, 113, .85); }
.hero .btn-linea { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.hero .btn-linea:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.hero-datos {
  display: flex; flex-wrap: wrap; gap: 12px 30px;
  list-style: none; margin: 30px 0 0; padding: 0;
  color: #c6d8f2; font-size: .95rem; font-weight: 600;
}
.hero-datos li { display: flex; align-items: center; gap: 8px; }
.hero-datos li::before { content: "✓"; color: var(--ambar); font-weight: 900; }

/* ------------------------------------------------------ secciones */

.seccion { padding: 62px 0; }
.seccion-alt { background: var(--fondo-alt); }
.seccion-cab { text-align: center; max-width: 64ch; margin: 0 auto 44px; }
.seccion-cab p { color: var(--tinta-media); font-size: 1.06rem; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--rojo); margin-bottom: 12px;
}

/* rejilla de categorias */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.tarjeta {
  background: #fff; border: 1px solid var(--linea);
  border-radius: var(--radio); padding: 28px 26px;
  display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tarjeta:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: #c9d4e3; }

.tarjeta-icono {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: #eaf0fa; color: var(--azul);
}
.tarjeta-icono svg { width: 24px; height: 24px; }
.tarjeta-icono.rojo { background: #fdecec; color: var(--rojo); }
.tarjeta-icono.amarillo { background: #fdf3dd; color: #9a6708; }

.tarjeta h3 { margin-bottom: .35em; }
.tarjeta h3 a { color: var(--tinta); }
.tarjeta h3 a:hover { color: var(--azul); text-decoration: none; }
.tarjeta p { color: var(--tinta-media); font-size: .97rem; flex: 1; }

.tarjeta-mas { font-weight: 700; color: var(--azul); font-size: .93rem; margin-top: 4px; }
.tarjeta-enlace { color: inherit; text-decoration: none; }
.tarjeta-enlace:hover { text-decoration: none; }

/* problema -> solucion */

.problema {
  background: #fff8f8; border: 1px solid #f4d7d7;
  border-left: 4px solid var(--rojo);
  border-radius: var(--radio-chico);
  padding: 18px 22px; margin: 0 0 26px;
}
.problema strong { color: var(--rojo); display: block; margin-bottom: 3px; font-size: .95rem; }
.problema p { margin: 0; color: var(--tinta-media); }

.lista-check { list-style: none; margin: 0 0 26px; padding: 0; }
.lista-check li { position: relative; padding-left: 32px; margin-bottom: 11px; color: var(--tinta-media); }
.lista-check li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 21px; height: 21px; border-radius: 50%;
  background: #e7f4ec; color: var(--verde);
  font-size: .78rem; font-weight: 900;
  display: grid; place-items: center;
}
.lista-check strong { color: var(--tinta); }

/* pasitos */

.pasos { counter-reset: paso; list-style: none; margin: 0; padding: 0; }
.pasos li {
  counter-increment: paso; position: relative;
  padding: 0 0 26px 60px; border-left: 2px solid var(--linea);
  margin-left: 19px;
}
.pasos li:last-child { border-left-color: transparent; padding-bottom: 0; }
.pasos li::before {
  content: counter(paso);
  position: absolute; left: -20px; top: -3px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--azul); color: #fff;
  font-weight: 800; font-size: 1.02rem;
  display: grid; place-items: center;
}
.pasos h3 { font-size: 1.06rem; margin-bottom: .25em; }
.pasos p { color: var(--tinta-media); margin: 0; }

/* ------------------------------------------------------ articulos */

.art-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  font-size: .89rem; color: var(--tinta-suave);
  margin-bottom: 22px; padding-bottom: 18px;
  border-bottom: 1px solid var(--linea);
}
.art-meta .chip {
  background: #eaf0fa; color: var(--azul);
  padding: 4px 12px; border-radius: 999px;
  font-weight: 700; font-size: .82rem;
}

.art-cuerpo { max-width: 74ch; }
.art-cuerpo h2 { margin-top: 2em; }
.art-cuerpo h3 { margin-top: 1.6em; }
.art-cuerpo ul, .art-cuerpo ol { padding-left: 24px; margin-bottom: 1.2em; }
.art-cuerpo li { margin-bottom: .55em; }
.art-cuerpo blockquote {
  margin: 1.6em 0; padding: 18px 24px;
  background: var(--fondo-alt);
  border-left: 4px solid var(--ambar);
  border-radius: 0 var(--radio-chico) var(--radio-chico) 0;
  color: var(--tinta-media);
}
.art-cuerpo blockquote p:last-child { margin-bottom: 0; }

.tabla-envoltura { overflow-x: auto; margin: 1.6em 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 460px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--linea); }
th { background: var(--fondo-alt); font-weight: 800; font-size: .86rem; }
tbody tr:hover { background: #fafbfd; }

/* resumen en caja */

.caja-dato {
  background: var(--fondo-alt); border: 1px solid var(--linea);
  border-radius: var(--radio); padding: 24px 26px; margin: 1.8em 0;
}
.caja-dato h3 { margin-top: 0; }
.caja-dato p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------ cta */

.cta {
  background: linear-gradient(150deg, var(--azul-oscuro), var(--azul));
  color: #fff; border-radius: var(--radio);
  padding: 38px 34px; margin: 44px 0;
  text-align: center;
}
.cta h2 { color: #fff; margin-bottom: .35em; }
.cta p { color: #ccdcf3; max-width: 54ch; margin: 0 auto 1.5em; }
/* En el bloque ambar el boton se pinta de ambar, asi que la sombra y el
   halo cambian de color para no verse descolgados. */
.cta .btn-whatsapp {
  background: var(--ambar); color: #1a1200;
  box-shadow: 0 12px 26px -8px rgba(240, 162, 2, .6), 0 4px 10px -4px rgba(0, 0, 0, .3);
}
.cta .btn-whatsapp:hover { background: #ffb91f; }
.cta .btn-whatsapp::before { border-color: rgba(255, 200, 80, .85); }

.banda-contacto { background: var(--fondo-oscuro); color: #fff; padding: 46px 0; }
.banda-int { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.banda-int h2 { color: #fff; font-size: 1.65rem; margin-bottom: .2em; }
.banda-int p { color: #9fb2cd; margin: 0; }

/* ------------------------------------------------------ relacionados */

.relacionados { margin: 52px 0 0; padding-top: 36px; border-top: 2px solid var(--linea); }
.relacionados h2 { font-size: 1.4rem; }
.rel-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rel-card {
  display: block; border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 20px 22px; text-decoration: none; color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.rel-card:hover { border-color: var(--azul); box-shadow: var(--sombra); text-decoration: none; }
.rel-cat { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--azul); }
.rel-card h3 { font-size: 1.03rem; margin: 7px 0 12px; line-height: 1.35; }
.rel-mas { color: var(--azul); font-weight: 700; font-size: .9rem; }

/* ------------------------------------------------------ publicidad */

.ad-zona { margin: 34px 0; text-align: center; }
.ad-eti {
  display: block; font-size: .68rem; letter-spacing: .13em;
  text-transform: uppercase; color: #a9b4c2; margin-bottom: 6px;
}
.ad-marco {
  background: var(--fondo-alt); border: 1px dashed #cdd6e1;
  border-radius: var(--radio-chico);
  min-height: 108px; display: grid; place-items: center;
  color: #98a3b2; font-size: .87rem; padding: 12px;
}

/* ------------------------------------------------------ pie */

.pie { background: var(--fondo-oscuro); color: #9fb2cd; padding: 52px 0 0; font-size: .93rem; }
.pie-int { display: grid; gap: 34px; grid-template-columns: 1.4fr 1fr 1fr; padding-bottom: 36px; }
.pie-marca { display: flex; gap: 13px; align-items: flex-start; }
.pie-marca p { margin: 0; line-height: 1.55; }
.pie-marca strong { color: #fff; font-size: 1.05rem; }
.pie-col h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.pie-col ul { list-style: none; margin: 0; padding: 0; }
.pie-col li { margin-bottom: 8px; }
.pie-col a { color: #9fb2cd; }
.pie-col a:hover { color: #fff; }
.pie-legal {
  border-top: 1px solid #1e2b40; padding: 18px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: .85rem; color: #6b7d96;
}
.pie-legal span { margin: 0; }

/* ------------------------------------------------------ legales */

.legal-cuerpo { max-width: 74ch; padding: 44px 0 20px; }
.legal-cuerpo h2 { margin-top: 2em; }
.legal-cuerpo h2:first-child { margin-top: 0; }
.legal-cuerpo ul { padding-left: 22px; }
.legal-cuerpo li { margin-bottom: .5em; color: var(--tinta-media); }
.legal-cuerpo p { color: var(--tinta-media); }

/* ------------------------------------------------------ contacto */

.contacto-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 40px 0; }
.contacto-tarjeta { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 26px; text-align: center; }
.contacto-tarjeta .tarjeta-icono { margin: 0 auto 14px; }
.contacto-tarjeta h3 { margin-bottom: .3em; }
.contacto-tarjeta p { color: var(--tinta-media); font-size: .95rem; margin: 0; }
.contacto-tarjeta a { font-weight: 700; font-size: 1.02rem; word-break: break-word; }

.aviso { background: #fff8e6; border: 1px solid #f0dca8; border-radius: var(--radio-chico); padding: 16px 20px; color: #7a5a08; font-size: .93rem; }
.aviso strong { color: #5c4406; }

/* ------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .pie-int { grid-template-columns: 1fr 1fr; }
  .pie-marca { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .seccion { padding: 48px 0; }
  .hero { padding: 48px 0 54px; }

  .btn-menu {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0;
    background: var(--fondo-alt); border: 1px solid var(--linea);
    border-radius: var(--radio-chico); cursor: pointer;
  }
  .btn-menu span { display: block; width: 20px; height: 2px; background: var(--tinta); margin: 0 auto; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .btn-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .btn-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .btn-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--linea);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 22px;
    box-shadow: var(--sombra-alta);
    max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0;
    transition: max-height .25s ease, padding .25s ease;
  }
  .nav.abierto { max-height: 78vh; overflow-y: auto; padding-top: 12px; padding-bottom: 22px; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav a { display: block; padding: 13px 10px; font-size: 1.02rem; }
  .btn-nav { justify-content: center; margin-top: 14px; }

  .cta { padding: 30px 22px; }
  .banda-int { flex-direction: column; align-items: flex-start; }
  .pie-int { grid-template-columns: 1fr; gap: 28px; }
  .art-cuerpo, .legal-cuerpo { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-datos { flex-direction: column; gap: 9px; }
  .marca-txt small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .cabecera, .pie, .banda-contacto, .ad-zona, .cta, .relacionados, .btn-menu { display: none !important; }
  body { font-size: 12pt; }
  .art-cuerpo { max-width: 100%; }
}

/* --- Sistemas adicionales en la portada --- */

.sistemas-mas {
  margin-top: 32px;
  text-align: center;
}

.btn-mas {
  cursor: pointer;
  font: inherit;
}

.sistemas-mas-nota {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--texto-claro);
}

.sistemas-extra {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--borde);
}

.sistemas-extra[hidden] {
  display: none;
}

/* --- Bloque destacado "cualquier rubro" --- */
/* Se usa en la pagina /sistemas/. Fondo oscuro para que resalte entre
   las secciones claras, con el ambar de la marca como acento. */

.rubro-otro {
  background: linear-gradient(135deg, #12233f 0%, #1c3a63 100%);
  color: #fff;
  padding: 64px 0 60px;
  margin: 40px 0;
}

.rubro-otro-cab {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 34px;
}

.rubro-otro-etiqueta {
  display: inline-block;
  background: var(--ambar);
  color: #3a2a00;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.rubro-otro h2 {
  border: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 2.5rem;
  line-height: 1.12;
  letter-spacing: -1px;
  color: #fff;
}

.rubro-otro-lead {
  font-size: 1.22rem;
  color: var(--ambar);
  margin: 0;
  font-weight: 600;
}

.rubro-otro-texto {
  max-width: 700px;
  margin: 0 auto;
}

.rubro-otro-texto p {
  color: #ccdaeb;
  font-size: 1.03rem;
  margin: 14px 0;
}

.rubro-otro-texto strong {
  color: #fff;
}

.rubro-otro-destacado {
  max-width: 640px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ambar);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 20px 0;
}

/* El boton de WhatsApp necesita contraste sobre fondo oscuro */
.rubro-otro .cta {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.rubro-otro .cta h2 {
  font-size: 1.4rem;
  margin-top: 0;
}

.rubro-otro .cta p {
  color: #ccdaeb;
}

@media (max-width: 780px) {
  .rubro-otro { padding: 44px 0 40px; }
  .rubro-otro h2 { font-size: 1.85rem; }
  .rubro-otro-lead { font-size: 1.08rem; }
  .rubro-otro-destacado { font-size: 1.05rem; }
}

/* --- Esquemas de la interfaz dentro de las tarjetas de sistemas --- */
/* Son dibujos vectoriales, no capturas. Se recortan desde arriba para que
   todas las tarjetas queden con la misma altura. */

.tarjeta-sistema {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tarjeta-il {
  display: block;
  line-height: 0;
  background: #e8edf5;
  border-bottom: 1px solid var(--borde, #dde4ee);
}

.sistema-il {
  display: block;
  width: 100%;
  height: 148px;
}

.tarjeta-cuerpo {
  display: block;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tarjeta-cuerpo .tarjeta-icono {
  margin-bottom: 12px;
}

.tarjeta-cuerpo h3 {
  margin-top: 0;
}

.tarjeta-cuerpo p {
  flex: 1;
}

/* --- Figura grande en la pagina de cada rubro --- */

.sistema-figura {
  margin: 0;
  background: #fff;
  border: 1px solid var(--borde, #dde4ee);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(18, 35, 63, 0.08);
}

.sistema-figura .sistema-il {
  height: auto;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.sistema-figura figcaption {
  margin-top: 16px;
  padding: 0 6px;
  font-size: 0.95rem;
  color: var(--gris, #5b6b80);
  text-align: center;
}

/* Va al cierre del texto descriptivo, entre dos bloques de contenido,
   asi que se recorta el espacio para que no se abra un hueco enorme. */
.seccion-il {
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 780px) {
  .sistema-il { height: 116px; }
  .sistema-figura { padding: 12px; }
}

/* --- Boton flotante de WhatsApp --- */
/* Sigue al visitante por toda la pagina. Se esconde solo cuando ya hay un
   boton de WhatsApp a la vista, para no repetir la misma accion dos veces. */

.wa-flotante {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 58px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--verde-boton);
  color: var(--verde-boton-texto);
  text-decoration: none;
  box-shadow: 0 12px 28px -8px rgba(18, 140, 126, .65), 0 4px 12px -4px rgba(0, 0, 0, .32);
  transform: translateY(90px);
  opacity: 0;
  visibility: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), opacity .3s ease, background .18s ease, gap .25s ease;
}

/* Al entrar en la pagina, cuando ya se paso el encabezado */
.wa-flotante.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Se oculta cuando ya hay un boton de WhatsApp visible en la pantalla */
.wa-flotante.tapado {
  transform: translateY(120px);
  opacity: 0;
  visibility: hidden;
}

.wa-flotante:hover { background: var(--verde-boton-hover); }

.wa-flotante-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}

.wa-flotante-ico svg { width: 28px; height: 28px; display: block; }

.wa-flotante-txt {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 700;
  font-size: .97rem;
  opacity: 0;
  transition: max-width .28s ease, opacity .22s ease, padding .28s ease;
}

/* Al pasar el mouse se abre y muestra el texto */
.wa-flotante:hover .wa-flotante-txt,
.wa-flotante:focus-visible .wa-flotante-txt {
  max-width: 140px;
  opacity: 1;
  padding: 0 16px 0 12px;
}

/* En pantallas tactiles no hay hover, asi que se muestra siempre el texto */
@media (hover: none) {
  .wa-flotante-txt { max-width: 140px; opacity: 1; padding: 0 16px 0 12px; }
  .wa-flotante { height: 54px; }
  .wa-flotante-ico { width: 42px; height: 42px; }
  .wa-flotante-ico svg { width: 25px; height: 25px; }
}

@media (max-width: 780px) {
  .wa-flotante { right: 14px; bottom: 14px; }
}

/* Se respeta la preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .wa-flotante, .wa-flotante-txt { transition: none; }
}
