/*
 * Cartel del portal (SGMI → Oficina virtual → Portal). Lo cargan el portal y el editor del SGMI.
 * Bloques que se pueden usar en el HTML del cartel (clases "cartel-…", las únicas que deja pasar el filtro):
 *   cartel-tarjeta    caja con borde de color alrededor (si es lo único del cartel, reemplaza al recuadro)
 *   cartel-encabezado franja de color (degradé del color del borde) · cartel-etiqueta · cartel-titulo · cartel-subtitulo
 *   cartel-cuerpo     zona blanca debajo · cartel-seccion (rótulo en mayúsculas)
 *   cartel-grilla     grilla de 2 a 4 columnas (cartel-grilla-2 / -3 / -4) · cartel-opcion (cajita con ícono y texto)
 *   cartel-lugar      fila con ícono de ubicación, nombre y dirección
 *   cartel-ico cartel-ico-<nombre>: efectivo, debito, credito, qr, transferencia, ubicacion, porcentaje, reloj,
 *                     info, alerta, check, wifi, telefono, calendario
 */
.cartel-contenido .cartel-tarjeta { border: 2px solid color-mix(in srgb, var(--cartel-borde, #10b981) 45%, white); border-radius: 16px; overflow: hidden; background: #fff; color: #1e293b; box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--cartel-borde, #10b981) 60%, transparent); margin: 0; }
.cartel-contenido .cartel-encabezado { background: linear-gradient(90deg, var(--cartel-borde, #10b981), color-mix(in srgb, var(--cartel-borde, #10b981) 70%, #14b8a6)); color: #fff; padding: 1.15rem 1.35rem; margin: 0; }
.cartel-contenido .cartel-etiqueta { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 .2rem; }
.cartel-contenido .cartel-titulo { font-size: 1.55rem; font-weight: 800; line-height: 1.2; margin: 0; }
.cartel-contenido .cartel-subtitulo { font-size: .9rem; opacity: .9; margin: .25rem 0 0; }
.cartel-contenido .cartel-cuerpo { padding: 1.1rem 1.35rem 1.25rem; margin: 0; }
.cartel-contenido .cartel-seccion { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; margin: 0 0 .7rem; }
.cartel-contenido .cartel-grilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin: 0 0 .9rem; }
.cartel-contenido .cartel-grilla-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cartel-contenido .cartel-grilla-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cartel-contenido .cartel-opcion { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .8rem .4rem; border-radius: 12px; text-align: center; font-size: .82rem; font-weight: 500; margin: 0;
	background: color-mix(in srgb, var(--cartel-borde, #10b981) 9%, white); border: 1px solid color-mix(in srgb, var(--cartel-borde, #10b981) 22%, white); }
.cartel-contenido .cartel-opcion .cartel-ico { color: var(--cartel-borde, #10b981); }
.cartel-contenido .cartel-lugar { display: flex; align-items: center; gap: .8rem; padding: .8rem; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; margin: 0; }
.cartel-contenido .cartel-lugar .cartel-ico { flex-shrink: 0; width: 2.2rem; height: 2.2rem; border-radius: 8px; background-color: #2563eb; -webkit-mask-size: 1.1rem; mask-size: 1.1rem; }
.cartel-contenido .cartel-lugar-caja { flex-shrink: 0; width: 2.2rem; height: 2.2rem; border-radius: 8px; background: #dbeafe; display: flex; align-items: center; justify-content: center; }
.cartel-contenido .cartel-lugar-caja .cartel-ico { width: 1.1rem; height: 1.1rem; background-color: #2563eb; border-radius: 0; -webkit-mask-size: contain; mask-size: contain; }
.cartel-contenido .cartel-lugar b, .cartel-contenido .cartel-lugar strong { display: block; font-size: .92rem; }
.cartel-contenido .cartel-lugar span { color: #64748b; font-size: .88rem; }
.cartel-contenido .cartel-ico { display: inline-block; width: 1.25rem; height: 1.25rem; vertical-align: -.2em; background-color: currentColor;
	-webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
/* Si el cartel es una sola cartel-tarjeta, la tarjeta reemplaza al recuadro de colores */
.cartel:has(> .cartel-contenido > .cartel-tarjeta:only-child) { background: none; border: 0; padding: 0; box-shadow: none; }
@media (max-width: 480px) {
	.cartel-contenido .cartel-grilla-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cartel-contenido .cartel-titulo { font-size: 1.3rem; }
}
/* Íconos (trazos tipo Lucide, se pintan con el color del texto) */
.cartel-ico-efectivo { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='12' x='2' y='6' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E"); }
.cartel-ico-debito, .cartel-ico-credito { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='5' rx='2'/%3E%3Cline x1='2' x2='22' y1='10' y2='10'/%3E%3C/svg%3E"); }
.cartel-ico-qr { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='5' height='5' x='3' y='3' rx='1'/%3E%3Crect width='5' height='5' x='16' y='3' rx='1'/%3E%3Crect width='5' height='5' x='3' y='16' rx='1'/%3E%3Cpath d='M21 16h-3a2 2 0 0 0-2 2v3M21 21v.01M12 7v3a2 2 0 0 1-2 2H7M3 12h.01M12 3h.01M12 16v.01M16 12h1M21 12v.01M12 21v-1'/%3E%3C/svg%3E"); }
.cartel-ico-transferencia { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 3 4 4-4 4M20 7H4M8 21l-4-4 4-4M4 17h16'/%3E%3C/svg%3E"); }
.cartel-ico-ubicacion { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.cartel-ico-porcentaje { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' x2='5' y1='5' y2='19'/%3E%3Ccircle cx='6.5' cy='6.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='2.5'/%3E%3C/svg%3E"); }
.cartel-ico-reloj { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }
.cartel-ico-info { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }
.cartel-ico-alerta { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.cartel-ico-check { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.cartel-ico-wifi { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h.01M2 8.82a15 15 0 0 1 20 0M5 12.859a10 10 0 0 1 14 0M8.5 16.429a5 5 0 0 1 7 0'/%3E%3C/svg%3E"); }
.cartel-ico-telefono { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.cartel-ico-calendario { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
