/* Presentación del sistema (/sistema). Cada .cl-escena se anima al entrar en pantalla (sistema.js le pone .ver).
   Los elementos con [data-a] aparecen con el retraso --d. --p es el color del panel (Sneat). */
.cl {
    --p: #696cff;
    --p-claro: #e7e7ff;
    --pend: #6c757d;
    --proc: #0d6efd;
    --listo: #ffc107;
    --val: #198754;
    --wa: #25d366;
    --wa-fondo: #e5ddd5;
    --tinta: #384551;
}

/* ---------- Aparecer ---------- */
.cl [data-a] { opacity: 0; }
.cl .ver [data-a] { animation: cl-subir .6s cubic-bezier(.2, .7, .3, 1) var(--d, 0s) both; }
.cl .ver [data-a="derecha"] { animation-name: cl-derecha; }
.cl .ver [data-a="abajo"] { animation-name: cl-bajar; }
.cl .ver [data-a="zoom"] { animation-name: cl-zoom; }
@keyframes cl-subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cl-derecha { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes cl-bajar { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes cl-zoom { from { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.06); } to { opacity: 1; transform: none; } }

/* ---------- Portada ---------- */
.cl-portada {
    position: relative; overflow: hidden; color: #fff; padding: 90px 0 100px;
    background: linear-gradient(135deg, var(--c2) 0%, color-mix(in srgb, var(--c2) 55%, var(--c1)) 100%);
}
.cl-portada-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; }
.cl-portada .burbujas { z-index: 1; }

/* Fotos de fondo, igual que el carrusel de inicio (sitio.css .slide): en grises con el tinte azul de la marca,
   se alternan solas cada 7 s con un leve acercamiento. Pensado para 3 fotos (--i = 0, 1, 2). */
.cl-fotos span {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: grayscale(1) contrast(1.1) brightness(1.05);
    opacity: 0; animation: cl-foto 21s linear infinite; animation-delay: calc(var(--i) * 7s - .5s);
}
@keyframes cl-foto {
    0% { opacity: 0; transform: scale(1.12); }
    5% { opacity: 1; }
    33% { opacity: 1; }
    40% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; transform: scale(1); }
}
.cl-tinte {
    position: absolute; inset: 0;
    background: linear-gradient(100deg,
        color-mix(in srgb, var(--c2) 92%, transparent) 0%,
        color-mix(in srgb, var(--c2) 82%, transparent) 40%,
        color-mix(in srgb, color-mix(in srgb, var(--c2) 55%, var(--c1)) 62%, transparent) 75%,
        color-mix(in srgb, var(--c1) 50%, transparent) 100%);
}
.cl-portada h1 { color: #fff; font-size: clamp(44px, 8vw, 76px); letter-spacing: -.02em; margin: 14px 0 6px; }
.cl-logo { display: block; width: min(460px, 100%); height: auto; margin: 6px 0 4px; }
.cl-lema { font-size: clamp(19px, 2.6vw, 25px); font-weight: 600; color: #fff; margin-bottom: 14px; }
.cl-sub { color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 560px; }
.cl-sello {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 14px; border-radius: 30px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
}
.cl-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cl-flujo { display: grid; gap: 12px; }
.cl-paso {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-weight: 600;
    position: relative;
}
.cl-ico { display: grid; place-items: center; flex: none; }
.cl-paso .cl-ico { font-size: 24px; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .15); }
.cl-paso:not(:last-child)::after {
    content: ''; position: absolute; left: 39px; bottom: -13px; width: 2px; height: 14px; background: rgba(255, 255, 255, .35);
}
.ver .cl-paso { animation: cl-encender 10s calc(var(--i) * 1.2s + 1s) infinite; }
@keyframes cl-encender {
    0%, 14% { background: rgba(255, 255, 255, .1); }
    3%, 10% { background: var(--c1); border-color: var(--c1); }
}

/* ---------- Dos columnas ---------- */
.cl-dos { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.cl-invertido > .cl-texto { order: 2; }
.cl-texto h2 { font-size: clamp(26px, 3.6vw, 36px); }
.cl-lista { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.cl-lista li { display: flex; gap: 10px; align-items: flex-start; }
.cl-lista .cl-ico { color: #fff; background: var(--c1); border-radius: 50%; font-size: 14px; width: 20px; height: 20px; margin-top: 3px; }
.cl-lista.dos { grid-template-columns: 1fr 1fr; gap: 8px 18px; }

/* ---------- Ventana del panel ---------- */
.cl-ventana {
    background: #fff; border-radius: 14px; box-shadow: var(--sombra-fuerte); overflow: hidden;
    font-size: 13px; color: var(--tinta); min-width: 0;
}
.cl-ventana.chica { max-width: 300px; }
.cl-barra { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--p); color: #fff; }
.cl-barra span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.cl-barra b { margin-left: 8px; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-cuerpo { padding: 16px; display: grid; gap: 10px; }
.cl-paciente { background: var(--p-claro); color: #2a2b66; padding: 8px 12px; border-radius: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cl-tabla { width: 100%; border-collapse: collapse; }
.cl-tabla th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #8592a3; padding: 6px 8px; border-bottom: 1px solid #eceef1; }
.cl-tabla td { padding: 8px; border-bottom: 1px solid #f2f3f5; }
.cl-tabla th:not(:first-child), .cl-tabla td:not(:first-child) { text-align: right; white-space: nowrap; }
.cl-desc td { color: var(--val); }
.cl-chip { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: var(--p-claro); color: var(--p); }
.cl-chip.ok { background: #e8fadf; color: #56ca00; }
.cl-total { display: flex; justify-content: space-between; align-items: center; font-size: 15px; padding: 8px 12px; background: #f5f5f9; border-radius: 8px; }
.cl-total b { color: #2a2b66; }
.cl-pagos { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-pagos span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; background: #e8fadf; color: #3e8f00; font-size: 12px; }
.cl-acciones { display: flex; justify-content: flex-end; }
.cl-boton { background: var(--p); color: #fff; padding: 7px 18px; border-radius: 8px; font-weight: 600; }
.ver .cl-pulso { animation: cl-pulso .7s var(--d, 0s) both; }
@keyframes cl-pulso { 40% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(105, 108, 255, .6); } 100% { transform: none; box-shadow: 0 0 0 14px rgba(105, 108, 255, 0); } }
.cl-aviso { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-radius: 8px; background: #e8fadf; color: #3e8f00; font-weight: 500; }
.cl-fila { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; }

/* ---------- Teléfono ---------- */
.cl-telefono {
    width: 270px; max-width: 100%; margin: 0 auto; padding: 12px; border-radius: 38px; background: #1b1d2a;
    box-shadow: var(--sombra-fuerte);
}
.cl-pantalla {
    position: relative; border-radius: 28px; background: #f5f7fb; min-height: 430px; overflow: hidden;
    padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--tinta);
}
.cl-app-barra { font-weight: 700; color: var(--c2); font-size: 15px; padding: 4px 2px 6px; }
.cl-app-item { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: #fff; padding: 10px 12px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.cl-app-item.total { background: var(--c1-claro); color: var(--c2); }
.cl-qr { align-self: center; display: grid; grid-template-columns: repeat(7, 14px); gap: 2px; padding: 10px; background: #fff; border-radius: 12px; margin-top: 6px; }
.cl-qr i { width: 14px; height: 14px; background: #eef0f4; border-radius: 2px; }
.cl-qr i.on { background: var(--c2); }
.cl-codigo { text-align: center; font-weight: 600; letter-spacing: .1em; color: var(--c2); }
.cl-par { display: flex; align-items: center; gap: 18px; justify-content: center; }
.cl-par .cl-telefono { margin: 0; flex: none; width: 230px; }
.cl-par .cl-pantalla { min-height: 400px; }
.cl-flecha { font-size: 34px; color: var(--c1); }
.cl-par .cl-ventana { flex: 1; }
.cl-notif { display: flex; gap: 10px; align-items: center; background: #fff; padding: 10px 12px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.cl-notif .cl-ico { font-size: 22px; color: #fff; background: var(--c1); border-radius: 10px; width: 34px; height: 34px; }
.cl-notif div { display: grid; line-height: 1.3; }
.cl-notif small { color: #8592a3; }
.cl-notif.arriba { margin-bottom: 4px; }

/* ---------- Tubos ---------- */
.cl-tubos { gap: 6px; }
.cl-tubo-fila { display: grid; grid-template-columns: 26px 1fr auto 22px; align-items: center; gap: 12px; padding: 8px 6px; border-bottom: 1px solid #f2f3f5; }
.cl-tubo-fila div { display: grid; line-height: 1.3; }
.cl-tubo-fila small { color: #8592a3; }
.cl-tubo { width: 16px; height: 40px; border-radius: 4px 4px 9px 9px; background: linear-gradient(#ddd 0 22%, #f6e7e7 22%); position: relative; margin: 0 auto; border: 1px solid #d8dbe0; }
.cl-tubo::before { content: ''; position: absolute; left: -2px; right: -2px; top: -4px; height: 11px; border-radius: 3px; background: var(--tapa); }
.cl-tubo::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 55%; border-radius: 2px 2px 7px 7px; background: #b3262c; opacity: .85; }
.cl-tubo.lila { --tapa: #8e5bd8; }
.cl-tubo.rojo { --tapa: #d93a3a; }
.cl-tubo.celeste { --tapa: #43b5f0; }
.cl-tubo.frasco { --tapa: #f2c200; width: 22px; height: 30px; border-radius: 4px; }
.cl-tubo.frasco::after { background: #f5d64e; height: 60%; border-radius: 2px; }
.cl-estado { display: grid; font-size: 11px; font-weight: 600; }
.cl-estado em { grid-area: 1 / 1; font-style: normal; padding: 3px 9px; border-radius: 20px; transition: opacity .3s; }
.cl-estado .pend { background: #eceef1; color: var(--pend); }
.cl-estado .proc { background: #e0edff; color: var(--proc); opacity: 0; }
.cl-marca { color: var(--val); font-size: 20px; opacity: 0; }
.ver .cl-tubo-fila .pend { animation: cl-fuera .3s calc(var(--i) * .7s + 1s) both; }
.ver .cl-tubo-fila .proc { animation: cl-dentro .3s calc(var(--i) * .7s + 1s) both; }
.ver .cl-tubo-fila .cl-marca { animation: cl-zoom .4s calc(var(--i) * .7s + .8s) both; }
.ver .cl-tubo-fila { animation: cl-resaltar 1s calc(var(--i) * .7s + .6s) both; }
@keyframes cl-fuera { to { opacity: 0; } }
@keyframes cl-dentro { from { opacity: 0; } to { opacity: 1; } }
@keyframes cl-resaltar { 30% { background: #f2f6ff; } }

/* ---------- Equipos ---------- */
.cl-equipos { display: grid; gap: 0; min-width: 0; }
.cl-maquinas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cl-maquina {
    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; font-weight: 600;
    background: #fff; color: var(--c2); padding: 12px 6px; border-radius: 12px; box-shadow: var(--sombra);
}
.cl-maquina .bx { font-size: 24px; color: var(--c1); }
.ver .cl-maquina { animation: cl-latido 2.4s calc(var(--i) * .6s) infinite; }
@keyframes cl-latido { 0%, 100% { box-shadow: var(--sombra); } 15% { box-shadow: 0 0 0 4px var(--c1-claro), var(--sombra); } }
.cl-cable { position: relative; height: 70px; margin: 0 auto; width: 4px; background: repeating-linear-gradient(var(--c1) 0 6px, transparent 6px 12px); }
.cl-hl7 { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: var(--c1); letter-spacing: .1em; }
.cl-cable i { position: absolute; left: -5px; top: 0; width: 14px; height: 14px; border-radius: 4px; background: var(--c1); box-shadow: 0 0 10px var(--c1); opacity: 0; }
.ver .cl-cable i { animation: cl-paquete 1.6s linear infinite; }
.ver .cl-cable i:nth-child(3) { animation-delay: .4s; }
.ver .cl-cable i:nth-child(4) { animation-delay: .8s; }
.ver .cl-cable i:nth-child(5) { animation-delay: 1.2s; }
@keyframes cl-paquete { 0% { top: -6px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 62px; opacity: 0; } }
.cl-valor, .cl-bandera { opacity: 0; display: inline-block; }
.ver .cl-valor { animation: cl-escribir .4s var(--d) both; font-weight: 600; }
.ver .cl-bandera { animation: cl-zoom .35s var(--d) both; }
@keyframes cl-escribir { from { opacity: 0; transform: translateY(-8px); background: var(--c1-claro); } to { opacity: 1; transform: none; } }
.cl-bandera { margin-left: 6px; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.cl-bandera.alto { background: #ffe5e1; color: #e53c25; }
.cl-bandera.bajo { background: #e0edff; color: var(--proc); }

/* ---------- Antibiograma ---------- */
.cl-antibio { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cl-sir { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 1px solid #eceef1; border-radius: 8px; }
.cl-sir b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; }
.cl-sir b.s { background: var(--val); }
.cl-sir b.i { background: #f0a400; }
.cl-sir b.r { background: #e53c25; }

/* ---------- Validación ---------- */
.cl-validar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid #eceef1; border-radius: 10px; background: #fff; }
.cl-validar .cl-ico { width: 30px; height: 30px; border-radius: 8px; border: 2px solid #d8dbe0; color: transparent; font-size: 20px; }
.ver .cl-validar { animation: cl-validado .5s var(--d) both; }
.ver .cl-validar .cl-ico { animation: cl-check .5s var(--d) both; }
@keyframes cl-validado { to { background: #f1fbec; border-color: #c9eeb6; } }
@keyframes cl-check { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { background: var(--val); border-color: var(--val); color: #fff; transform: none; } }
.cl-pdf { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: #fff3f2; color: #b42318; }
.cl-pdf .bx { font-size: 32px; }
.cl-pdf div { display: grid; line-height: 1.3; }
.cl-pdf small { color: #8592a3; }

/* ---------- Seguimiento ---------- */
.cl-leyenda { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.cl-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.cl-leyenda i, .cl-punto { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.cl-leyenda .pend { background: var(--pend); }
.cl-leyenda .proc { background: var(--proc); }
.cl-leyenda .listo { background: var(--listo); }
.cl-leyenda .val { background: var(--val); }
.cl-tarjetas { display: grid; gap: 14px; min-width: 0; }
.cl-tarjeta { background: #fff; border-radius: 12px; box-shadow: var(--sombra); overflow: hidden; font-size: 13px; color: var(--tinta); }
.cl-tarjeta-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #f2f3f5; }
.cl-tarjeta-cab small { color: #8592a3; }
.cl-tarjeta-ex { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 10px 14px; }
.cl-tarjeta-ex span { display: flex; align-items: center; gap: 8px; }
.cl-punto { background: var(--pend); }
.ver .cl-punto { animation: cl-estados 3.2s var(--d) both; }
@keyframes cl-estados {
    0%, 20% { background: var(--pend); }
    25%, 45% { background: var(--proc); }
    50%, 70% { background: var(--listo); }
    75%, 100% { background: var(--val); box-shadow: 0 0 0 3px #d9f2e3; }
}
.cl-tarjeta-pie { display: flex; align-items: center; gap: 6px; padding: 7px 14px; background: #e9fbef; color: #12823b; font-weight: 600; font-size: 12px; opacity: 0; }
.ver .cl-tarjeta-pie { animation: cl-dentro .4s var(--d) both; }

/* ---------- WhatsApp ---------- */
.cl-wa .cl-pantalla { background: var(--wa-fondo); padding: 0; gap: 0; }
.cl-wa-barra { display: flex; align-items: center; gap: 8px; padding: 12px; background: #075e54; color: #fff; font-size: 14px; }
.cl-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--c1); display: grid; place-items: center; font-weight: 700; }
.cl-chat { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.cl-burbuja { max-width: 85%; padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); line-height: 1.4; }
.cl-burbuja.yo { align-self: flex-end; background: #dcf8c6; }
.cl-adjunto { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.cl-adjunto .bx { grid-row: span 2; font-size: 28px; color: #e53c25; }
.cl-adjunto small { color: #8592a3; }
.cl-escribiendo { display: flex; gap: 4px; padding: 0 12px; max-height: 0; overflow: hidden; background: #fff; border-radius: 10px; width: max-content; opacity: 0; margin-top: -8px; }
.cl-escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: #9aa0a6; }
.ver .cl-escribiendo { animation: cl-un-rato 1s var(--d) both; }
.ver .cl-escribiendo i { animation: cl-puntos 1s infinite; }
.ver .cl-escribiendo i:nth-child(2) { animation-delay: .15s; }
.ver .cl-escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes cl-un-rato { 0% { opacity: 0; max-height: 0; padding: 0 12px; } 10%, 90% { opacity: 1; max-height: 30px; padding: 10px 12px; margin-top: 0; } 100% { opacity: 0; max-height: 0; padding: 0 12px; margin-top: -8px; } }
@keyframes cl-puntos { 50% { transform: translateY(-3px); } }

/* ---------- Gráfica ---------- */
.cl-grafica { width: 100%; height: 150px; background: #fff; border-radius: 12px; padding: 8px; }
.cl-grafica .rango { fill: #e8fadf; }
.cl-grafica .linea { fill: none; stroke: var(--c1); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; vector-effect: non-scaling-stroke; }
.ver .cl-grafica .linea { animation: cl-trazo 1.8s .4s ease-out forwards; }
@keyframes cl-trazo { to { stroke-dashoffset: 0; } }
.cl-grafica .punto { fill: #fff; stroke: var(--c2); stroke-width: 2; opacity: 0; vector-effect: non-scaling-stroke; }
.ver .cl-grafica .punto { animation: cl-dentro .3s var(--d) both; }

/* ---------- Gestión ---------- */
.cl-rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cl-caja { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; transition: transform .3s, box-shadow .3s; }
.cl-caja:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.cl-caja .cl-ico { font-size: 28px; color: var(--c1); background: var(--c1-claro); width: 54px; height: 54px; border-radius: 14px; margin-bottom: 14px; }
.cl-caja h3 { font-size: 18px; }
.cl-caja p { margin: 0; font-size: 14px; }
.cl-nube {
    margin-top: 36px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
    padding: 30px; border-radius: var(--radio); color: #fff;
    background: linear-gradient(135deg, var(--c2), color-mix(in srgb, var(--c2) 60%, var(--c1)));
}
.cl-nube h3 { color: #fff; display: flex; align-items: center; gap: 8px; }
.cl-nube p { margin: 0; color: rgba(255, 255, 255, .85); }
.cl-nube-dibujo { display: flex; align-items: center; justify-content: center; gap: 14px; }
.cl-nodo { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .12); }
.cl-nodo .bx { font-size: 34px; }
.cl-sinc { font-size: 28px; color: var(--c1); }
.ver .cl-sinc { animation: cl-ida 1.6s ease-in-out infinite; }
@keyframes cl-ida { 50% { transform: translateX(6px); } }

/* ---------- Cierre ---------- */
.cl-cierre { align-items: start; }
.cl-faq { background: #fff; border-radius: var(--radio); padding: 26px; box-shadow: var(--sombra); }
.cl-faq h3 { font-size: 20px; }
.cl-faq details { border-top: 1px solid var(--borde); padding: 12px 0; }
.cl-faq summary { cursor: pointer; font-weight: 600; color: var(--c2); }
.cl-faq details p { margin: 8px 0 0; font-size: 14px; }

/* ---------- Video ---------- */
.cl-video { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 10, 40, .88); display: grid; place-items: center; padding: 16px; }
.cl-video[hidden] { display: none; }
.cl-video video { width: min(1100px, 100%); max-height: 85vh; border-radius: 12px; background: #000; }
.cl-video .cerrar { position: absolute; top: 14px; right: 14px; background: #fff; border: 0; border-radius: 50%; width: 42px; height: 42px; font-size: 26px; cursor: pointer; display: grid; place-items: center; }

/* ---------- Pantallas chicas ---------- */
@media (max-width: 991px) {
    .cl-portada-in, .cl-dos, .cl-nube { grid-template-columns: 1fr; gap: 36px; }
    .cl-invertido > .cl-texto { order: 0; }
    .cl-rejilla { grid-template-columns: 1fr 1fr; }
    .cl-flujo { grid-template-columns: repeat(5, 1fr); gap: 8px; }
    .cl-paso { flex-direction: column; text-align: center; gap: 6px; padding: 10px 4px; font-size: 12px; }
    .cl-paso:not(:last-child)::after { display: none; }
}
@media (max-width: 600px) {
    .cl-portada { padding: 60px 0 70px; }
    .cl-botones .btn { width: 100%; }
    .cl-flujo { grid-template-columns: repeat(5, 1fr); gap: 4px; }
    .cl-paso { font-size: 10px; padding: 8px 2px; }
    .cl-paso .cl-ico { width: 34px; height: 34px; font-size: 20px; }
    .cl-rejilla, .cl-lista.dos, .cl-antibio { grid-template-columns: 1fr; }
    .cl-maquinas { grid-template-columns: 1fr 1fr; }
    .cl-par { flex-direction: column; }
    .cl-par .cl-telefono { width: 250px; }
    .cl-flecha { transform: rotate(90deg); }
    .cl-par .cl-ventana { width: 100%; max-width: none; }
    .cl-tarjeta-ex { grid-template-columns: 1fr; }
    .cl-ventana { font-size: 12px; }
    .cl-tabla td, .cl-tabla th { padding: 6px 4px; }
}

/* Sin animaciones: todo se ve en su estado final. */
@media (prefers-reduced-motion: reduce) {
    .cl *, .cl *::before, .cl *::after { animation: none !important; transition: none !important; }
    .cl [data-a], .cl-valor, .cl-bandera, .cl-marca, .cl-tarjeta-pie, .cl-grafica .punto { opacity: 1; }
    .cl-estado .pend { opacity: 0; }
    .cl-estado .proc { opacity: 1; }
    .cl-punto { background: var(--val); }
    .cl-validar .cl-ico { background: var(--val); border-color: var(--val); color: #fff; }
    .cl-grafica .linea { stroke-dashoffset: 0; }
    .cl-fotos span:first-child { opacity: 1; }
}
